beliefs SDK
Keep your agents coherent over long-running work on hard problems. Beliefs track what's known, what conflicts, and what's missing so every turn starts from reality.
npm i beliefsWorks withClaude Agent SDK·Vercel AI SDK·React·any LLM
thinkn.ai/llms.txt—give this to your coding agent
The core loop
before loads what your agent believes. after updates it.
Go deeper
Get your key, install, and build — framework recipes for Vercel AI, Anthropic, OpenAI, and more.
Install the SDK and run your first belief turn in 5 minutes.
Why memory and RAG aren't enough — and what beliefs change.
The five primitives: beliefs, intent, clarity, moves, and world.
The full API: before, after, add, search, and patterns.
Use beliefs with Anthropic, Vercel AI SDK, OpenAI, and any LLM.
How teams use beliefs in finance, health, engineering, and science.
How fusion, decay, and the ledger work under the hood.