Create a Person
Zero inference — pure structured state in SQLite
Create a durable Person with biography, personality, interests, and current state. Assign roles at zero cost.
create-person.tspnpm tsx examples/create-person.tsEvery example runs on MockProvider at $0. Copy the command, run it, see the output.
From the runtime repo:
git clone https://github.com/M4G3LL4N0/grokbot-society.gitcd grokbot-society && pnpm installpnpm typecheck && pnpm testThen run any example:
pnpm tsx examples/create-person.tspnpm tsx examples/group-scene.tsZero inference — pure structured state in SQLite
Create a durable Person with biography, personality, interests, and current state. Assign roles at zero cost.
create-person.tspnpm tsx examples/create-person.tsComposable behavior at zero cost
Assign multiple roles to a person. At scene time, only context-relevant roles compose into the Actor.
assign-roles.tspnpm tsx examples/assign-roles.tsNamed communities with ordered membership
Create a named community, add members, assign relevant roles, and establish relationships between members.
create-circle.tspnpm tsx examples/create-circle.tsOne inference, multiple speakers, bounded context
Run a group scene with the Inner Circle. One inference returns multiple speakers. Zero cost on MockProvider.
group-scene.tspnpm tsx examples/group-scene.tsWatch relationships evolve with inertia over multiple interactions
Simulate multiple interactions and watch relationship dimensions (familiarity, trust, affection) evolve with 15% inertia per scene.
relationship-evolution.tspnpm tsx examples/relationship-evolution.tsDormant population = $0 inference cost
Create 1,000 people with only 5 active. Run cost simulator showing dormant population = $0 across all scenarios.
zero-cost-population.tspnpm tsx examples/zero-cost-population.tsRolling-window context for road trips, evenings, ambient
Start a road-trip session, append messages, compile bounded context (rolling window + participant cards), end session.
session.tspnpm tsx examples/session.tsRun the full example suite sequentially. Each demonstrates a different facet of the runtime at $0 cost.
for f in examples/*.ts; do
echo "=== Running $f ==="
pnpm tsx "$f"
echo ""
done