Run one complete turn
The npm package is awaiting its initial authenticated publication. Untilstateweave is available from npm, run the SDK from source. This path is complete and requires no API key.
1. Build the SDK
2. Run a deterministic agent
Createquickstart.mjs in the repository root:
MockModel is deterministic. It proves the agent loop, state commit, and cross-turn continuity without sending data to a provider.
3. Persist and resume
AgentState is plain validated data. Store the first run’s state wherever your application stores user-owned data.
4. Connect Anthropic
What just happened
Onerun() call:
- created a
systemroot andgoal; - compiled a bounded causal view;
- called the model;
- parsed one ordinary action;
- recorded the inference and answer with exact read-set parents;
- committed a new
AgentStateonly after success.