Why Agent-Native?
WarmHub is designed as agent-native knowledge infrastructure. AI agents can read and write structured knowledge through standard protocols, with built-in attribution, versioning, and context bootstrapping. Every agent builds on what previous agents learned — knowledge compounds across sessions and teams instead of resetting at the end of each conversation.
Agent-Friendly Properties
Section titled “Agent-Friendly Properties”MCP-first. WarmHub exposes all operations via the Model Context Protocol, so any MCP-compatible client (Claude, Cursor, custom agents) can discover and call tools automatically.
Structured knowledge. Shapes enforce schema on agent-written data. Agents can’t write malformed records — the commit pipeline validates everything.
Attribution. Every commit records an author field. When multiple agents collaborate on the same repo, you can always trace who wrote what.
Immutable history. Agents can’t silently overwrite data. Every change creates a new version, and old versions are preserved. You can always answer “what did agent X believe at time T?”
Context bootstrapping. The wh prime command and warmhub_repo_describe MCP tool give agents a complete context dump in a single call — shapes, sample data, commit contract, and write examples tailored to the repo’s actual schema.
Batch operations. Agents can commit multiple operations atomically. The $N/#N token system lets agents create entities and reference them in the same commit.
Integration Paths
Section titled “Integration Paths”MCP Server (recommended)
Section titled “MCP Server (recommended)”For AI agents that support the Model Context Protocol:
- Configure the MCP endpoint in your client
- Agent discovers the MCP tool catalog automatically
- Start with
warmhub_repo_describefor orientation - Use
warmhub_commit_applyfor writes,warmhub_thing_queryfor reads
See MCP Server for setup and MCP Tools Reference for the full tool catalog.
TypeScript SDK
Section titled “TypeScript SDK”For custom agents and applications built in TypeScript:
- Install
@warmhub/sdk-ts(reactis only needed if you use the React provider) - Create a
WarmHubClientwith your deployment URL - Use typed surfaces:
client.thing.head(...),client.commit.apply(...) - Use
CommitBuilderfor multi-operation commits with client-side validation
See SDK Overview for setup and Client Surfaces for the full API.
CLI with —json
Section titled “CLI with —json”For agents with shell access:
- Install
whCLI - Set
WARMHUB_REPOenvironment variable - Run
wh prime --jsonfor structured context - Use
whcommands with--jsonfor machine-readable output
export WARMHUB_REPO=myorg/myrepowh prime --json # bootstrap contextwh thing head --json # read current statewh commit create --ops '...' # write dataAgent Workflow Pattern
Section titled “Agent Workflow Pattern”A typical agent session:
- Bootstrap — call
warmhub_repo_describeorwh primeto understand the repo’s schema, existing data, and write contract - Read — use
warmhub_thing_headfor broad orientation,warmhub_thing_queryfor targeted lookups - Write — commit observations, decisions, or beliefs via
warmhub_commit_apply - Iterate — read updated state, make new assertions, revise existing ones
The describe tool dynamically generates write examples based on the repo’s current shapes, so agents get correct field names and types without guessing.
For guidance on what to model and how — when to use assertions vs things, shape design, naming conventions, and common pitfalls — see Principles & Patterns. For the underlying data model, see Core Concepts.