paracosm.agentos.sh

Live demo

GitHub

npm

frame.dev

Paracosm is an open-source (Apache-2.0) digital twin API from Frame.dev, built on AgentOS. It runs a person, a team or a world through a what-if with and without the change from the same start, and forks and replays runs saved with snapshots. It ships as a TypeScript package on npm and as a hosted dashboard with a free demo.

Paracosm's landing page in dark mode, showing the headline "Simulate any what-if as divergent timelines", a Run a what-if key for a free run of about three and a half minutes, the npm install line, and a saved Mars Genesis run with two leaders, six turns and 30 colonists

What it does

Paracosm takes a what-if for a person, a team or a world, such as a Mars colony under two leaders or a product change for one subject, and plays it forward turn by turn. A seeded kernel advances the state deterministically; models decide what the leaders, departments and agents do. A run saved with snapshots can be forked from a captured state without recomputing the earlier turns. A dashboard run takes 2 to 300 actors.

The demo, recorded on the live site on 3 December 2026. It compiles a written what-if into a scenario, runs Mars Genesis with two leaders, steps through the run, reads the verdict, then opens a fork from the first turn with a different leader.

Mars Genesis demo

The recorded Mars Genesis run has two leaders and six turns, and the saved run on the landing page starts both colonies with the same 30 people. The npm package's Mars scenario has 100 colonists and five departments. Aria Chen (the Visionary) and Dietrich Voss (the Engineer) each lead a copy of the colony. Each turn an event director model writes the turn's events, the departments analyze them in parallel, the leader decides, and the colonists react.

Paracosm's Watch screen at turn 3 of Mars Genesis, with the two colony maps side by side, amber for Aria Chen and teal for Dietrich Voss, Aria Chen's order to restore shielding duty cycles, Dietrich Voss's order for a deep flush on the potable loop, and the evidence row reading REFERENCES 21 and FORGED TOOLBOX 21

In the recorded run, the verdict, which comes from a model call, gives the win to Dietrich Voss on survival and resource security, citing fewer deaths, more food, more power and higher science (56.2 to 52.4). Aria Chen's colony forged more tools (12 to 9) and scored higher on modules (14.4 to 13.3).

Paracosm's Reports screen with the simulation verdict, in which Dietrich Voss wins on stronger survival and resource security, the key divergence between turns 2 and 5, and the figures for modules, science and tools forged

Turn pipeline

The kernel is seeded and deterministic. From the same state and seed, its step between turns (ageing, dose, deaths, births, food and morale) gives the same result. Judgment calls go to models. A turn runs the director's event, the kernel step, department analysis in parallel, the commander's decision, outcome classification, kernel effects, agent reactions, memory consolidation and personality drift. Every structured model call (director, departments, commander, reactions, verdict) is validated with Zod and retried with feedback.

Departments can forge their own tools in the middle of a decision. Every call to a forged tool runs in a QuickJS WebAssembly instance of its own, and an LLM judge has to approve the tool before it enters the pipeline. The forging engine, the judge, web research for seed enrichment and per-run memory come from AgentOS.

Fork, replay and scenarios

With captureSnapshots: true, the run saves a JSON snapshot at the end of each turn. A fork resumes from the captured state without recomputing the turns before it. Replay restores the kernel from the state each step started from, re-runs the step between turns and compares the result with the state the run saved after it. It calls no model, so it is fast and free.

Paracosm's Run screen after a written brief was compiled into the scenario Harbor Closure Crisis, with 4 departments, 6 turns and 27 sources, keys to read it or load it, and the Start key below

The Write tab compiles a written brief, a public link or a PDF into a typed scenario. The npm package exports Mars Genesis and Lunar Outpost, and the repository's scenarios folder holds five more.

Digital twins

const treated = await twin.intervene({ subject, intervention, actor, maxTurns: 4, seed: 11 });
// The control arm: the same subject, actor and seed, with no intervention.
const baseline = await twin.simulate({ subject, actor, maxTurns: 4, seed: 11 });

A digital twin run puts one subject under an intervention, such as a first use that asks three questions in place of twelve and offers a worked example. twin.intervene() runs the treated arm and twin.simulate() runs the control arm: The same subject, actor and seed, with no intervention.

Cost

Runs call real LLM APIs. A Mars pair on the hosted demo on 10 November 2026 (six turns, 30 people, three departments, GPT-5.4 mini for the departments and the tool judge, GPT-5.4 nano for the rest) cost $0.6243 in 58 model calls for Aria Chen and $0.8191 in 65 calls for Dietrich Voss, $1.44 for the pair. The verdict that compares the two colonies is a separate call, on GPT-5.4 mini. The README estimates a six-turn run with 100 agents, five departments and up to three events per turn at about $1 to $3 on OpenAI and $3 to $7 on Anthropic on the default quality preset, and at about $0.20 to $0.60 on OpenAI and $3 to $5 on Anthropic on the economy preset. Replay and shared replay links call no model and cost nothing.

Limitations

  • Replay re-runs the kernel's steps between turns. It does not re-apply a turn's decisions, which came from models.
  • Decisions, reactions and the verdict come from model calls. A run reports what the models produced for one scenario and seed.
  • On the economy preset, forge approval drops 10 to 20 points, because the mid-tier department model occasionally violates structured-output schemas the judge rejects.
  • The hosted demo runs on the host's keys with two leaders, capped turns, population and departments, and a daily run limit per IP address. A visitor's own OpenAI or Anthropic key lifts the run caps and the run limit for a run they start. A Digital Twin run takes no key, so it always counts against the daily limit, and live search runs only on search keys the visitor brings.
  • Fork and replay need a run saved with snapshots (captureSnapshots: true). Attempting to replay a run saved before the turn loop kept those states raises WorldModelReplayError.

Tech stack

Layer Stack
Language TypeScript, Node 22 or newer
Agents and models AgentOS (@framers/agentos) for agents, model calls, tool forging, the LLM judge, per-run memory; OpenAI and Anthropic
Sandbox QuickJS compiled to WebAssembly (quickjs-emscripten-core)
Validation Zod 4
Research @framers/agentos-ext-web-search over Firecrawl, Tavily, Serper, Brave
Storage @framers/sql-storage-adapter, better-sqlite3
Testing Playwright, axe-core

At 07:15 UTC on 5 December 2026, npm listed 490 versions of the package. The first was published on 13 April 2026. The latest listed was 0.9.1254, published on 5 December 2026 at 05:29 UTC. The runtime underneath it is covered in the AgentOS and Wunderland write-up.

Website: paracosm.agentos.sh

Live demo: paracosm.agentos.sh/sim

GitHub: github.com/framerslab/paracosm

npm: npmjs.com/package/paracosm

Frame.dev: frame.dev