paracosm/swarm — focused API surface for the agent-swarm view of a paracosm run. Pairs with paracosm/schema (types) and root WorldModel static helpers; use this module when you only need swarm inspection without pulling the full WorldModel surface.
paracosm/swarm
paracosm/schema
WorldModel
import { getSwarm, swarmByDepartment, moodHistogram } from 'paracosm/swarm';const swarm = getSwarm(runArtifact);if (swarm) { console.log(`${swarm.population} agents`); console.log(swarmByDepartment(runArtifact)); console.log(moodHistogram(swarm));} Copy
import { getSwarm, swarmByDepartment, moodHistogram } from 'paracosm/swarm';const swarm = getSwarm(runArtifact);if (swarm) { console.log(`${swarm.population} agents`); console.log(swarmByDepartment(runArtifact)); console.log(moodHistogram(swarm));}
Every function is a pure projection over the public RunArtifact shape. No I/O, no side effects, no live LLM calls.
RunArtifact
paracosm/swarm— focused API surface for the agent-swarm view of a paracosm run. Pairs withparacosm/schema(types) and rootWorldModelstatic helpers; use this module when you only need swarm inspection without pulling the full WorldModel surface.Example
Every function is a pure projection over the public
RunArtifactshape. No I/O, no side effects, no live LLM calls.