A bigger context window fixes forgetting mid-session.
Heartwood fixes it between sessions and projects.
Heartwood is agent memory you can check: it signs every memory and re-checks the signature each time it is recalled, and erasing a subject destroys that subject's key and can issue a signed receipt you verify offline. Claude Code, Codex and any other MCP client can read the same store on your machine.
python -m pip install "heartwood-memory[recall,mcp]" · embedded Python · local MCP · source-available under BSL 1.1
DB="${XDG_DATA_HOME:-$HOME/.local/share}/heartwood/heartwood.db"
mkdir -p "$(dirname "$DB")"
claude mcp add --scope user --env HEARTWOOD_DB_PATH="$DB" \
--env HEARTWOOD_TENANT=tenant:ops --env HEARTWOOD_MCP_PRINCIPAL_ID=agent:claude-code \
--env HEARTWOOD_MCP_ALLOWED_TOOLS=recall,explain_recall,health \
--transport stdio heartwood -- uvx heartwood-memory
codex mcp add heartwood --env HEARTWOOD_DB_PATH="$DB" \
--env HEARTWOOD_TENANT=tenant:ops --env HEARTWOOD_MCP_PRINCIPAL_ID=agent:codex \
--env HEARTWOOD_MCP_ALLOWED_TOOLS=recall,explain_recall,health \
-- uvx heartwood-memoryBoth clients start read-only on the same file. Once any server opens it with a custody root, every server on the store needs that root and key ID.
Works with Claude Code, Codex, GitHub Copilot in VS Code (read-only plugin), Hermes Agent (tested on v0.22.4) and any MCP client
Heartwood Memory at a glance
- What it does
A governed memory store for AI agents. Agents remember and recall through an embedded Python library or a local MCP server. Before ranking, recall removes records the caller isn't cleared to use. Each result carries its author, its source IDs and a signature check. Writes and deletions are recorded in a hash-chained audit log.
- Who it's for
Engineers running Claude Code, Codex or their own agents who need memory to carry across sessions and projects. Also teams that must show where an agent's answer came from, or erase one person's data and keep a record of it.
- What you bring
- Python 3.11 or newer, and uv for the one-line MCP setup.
- An absolute file path for the store. With no path set, the MCP server keeps memory in RAM, and it is gone when the server stops.
- If any agent writes: one custody root and its key ID, kept in your own secret store and given to every server that opens the store, including read-only ones.
- What you get
- One local SQLite store shared by every server you point at it, using the same custody root and key ID whenever any server on the store uses one.
- MCP tools
recall,explain_recallandhealthby default.rememberandforgetare added only when you name them. - Signed recall and erasure receipts, when you also configure a custody root and an audit anchor.
- Cost and limits
- Community is free for non-production use at any size. It is also free in production for organizations with fewer than 100 people and under $1,000,000 in revenue, as the licence defines them.
- Team is $349/month or $3,490/year per organization, bought from the pricing page.
- Professional is $6,000/year per organization, billed annually, for US organizations.
- Limits:
- MCP runs over local stdio on one machine. Hosted MCP isn't available.
- The core is source-available under BSL 1.1. It is not open source.
- Next step
Run the 5-minute quickstart at /get-started.
Governed memory for AI agents, now with an opt-in Jev judge.
Hosted organizations can now opt in to a judge that uses Jev, TypeSafe AI's System One model, to rank recall. Only records your policy clears can reach it, and the local ranker takes over whenever a recall can't be sent. Checking AI-written memories with Jev is planned.
opt-in · off by default · hosted Team and Professional only · the self-hosted core never calls Jev
- ranker
- Jev at a pinned version, or the local ranker on fallback
- egress
- the decision and the policy it came from
- request
- a SHA-256 hash of what was sent, never the text
- provider
- TypeSafe request ID and model
- per memory
- one probability for each memory the judge scored
What an opted-in recall records. Field names, not a published API. No values shown.
Inspect the proof behind every trust claim.
Product-path enterprise retrieval over 8 queries on a 24-memory trace (nDCG@10 0.818). Measured with the local ranker, before the Jev judge.
Every recalled memory carries its source chain, model version, and signature.
Zero cross-tenant policy leakage under adversarial probes in the single-trust-domain trust suite.
Retrieval, policy, faithfulness, deletion, egress, and resilience gates.
The pre-registered Phase 1 gate, measured warm with the store, index, embedder, and reranker hot in one process. On our own team's local recall daemon, serving our agents' recalls on a shared developer machine, p95 measured 795ms across 873 recalls over a 7-day window in July 2026. We publish the benchmark because it is the budget we design hook- and agent-loop integrations against — not a service level we commit to. Measured without the Jev judge.
Policy-before-ranking vs. 0.000 MRR@10 when the same filter runs after the vector search.
Every figure above states how it was measured. Gate results come from executable gates in the Heartwood core with pre-registered thresholds and paired-bootstrap confidence intervals; figures marked as benchmarks are controlled measurements and are not production service levels.
Five ways Heartwood keeps agent memory trustworthy.
New in 0.2.10Replace a memory, and recall stops returning the old one. How it works
Retire what you replace
From version 0.2.10, when a new memory names the one it replaces, or the Heartwood memory tool edits or deletes a file, default recall stops returning the old text, even after a restart. Earlier versions of an edited file stay reachable only when you ask for history. Heartwood does not detect replacements by itself: if a new memory does not name what it replaces, both stay current and the old one can still be recalled.
Filter before you rank
Heartwood removes memories the agent is not cleared to use before the vector search scores them (from version 0.2.9). Restricted records never appear in results.
Trace every answer to its source
Each memory is signed when stored and rechecked when recalled. Results include source IDs, content-hash status, and a provenance tree that follows derived memories back to their origins.
Detect changes in the record
Remember, expiry, supersession, and deletion events join a hash-chained audit log. Verification detects an edited or missing row, so the history can be checked instead of merely trusted.
Integrate without replacing your stack
Use the embedded Python library or a local MCP server beside your existing systems. MCP starts read-only unless you explicitly enable write or erase tools.
Need to erase a subject? Hard-delete destroys the per-subject key, purges the subject's records, and records the erasure, with a signed receipt when durable signing custody and an audit anchor are configured; it does not claim byte-level deletion proof.
For agents where being wrong is expensive.
Built for teams running high-stakes agents over support tickets, customer records, operational Postgres, internal policy and knowledge bases, and compliance-sensitive workflows — teams that already have agents but need stronger answers for provenance, policy, deletion, and auditability.
Regulated support agents
Answer from policy and customer evidence, cite where every claim came from, and record the erasure — key destroyed, the customer's records purged — when a customer is deleted.
Operations & workflow assistants
Carry workflow memory and audit trails across long-running tasks without leaking one tenant’s state into another.
Research & synthesis agents
Produce source-grounded summaries that are gated on faithfulness before they are trusted as memory.
Compliance-sensitive copilots
Keep restricted material behind classification clearance; on governed generation paths, egress is evaluated before the external-model call — by policy, not by prompt.
The control plane between your agents and your systems of record — not a replacement for your database, and not “unlimited memory.”
See governed recall in one working example.
Install
Add the embedded library with one pip command, or start the local MCP server.
Remember
Store one policy or fact with its subject, source, and access rules. Heartwood signs it and records the write.
Recall and verify
Ask one question, then inspect the returned source IDs, signature status, and recall explanation.
Source-available core. Pay when you need governance backed by a team.
Community
Engineering teams proving the fit.
Free to read, run, and self-host for non-production use at any size. Organizations that qualify as a Small Organization under the licence — fewer than 100 employees and contractors, and under $1,000,000 in total revenue in the prior tax year — may also run it in production at no charge. See the LICENSE for the controlling definition.
- Embedded library (Python) + MCP server
- Provenance, typed memory, policy-gated recall
- Crypto-shred deletion + tamper-evident audit
- Run the public trust-receipts benchmark yourself
- Community support
Team
Organizations taking governed memory from a laptop into production.
Monthly or annual subscription that renews automatically until cancelled. After checkout, send the short written setup form. Your hosted gateway will be ready to use, with its hostname and recall token emailed within 2 business days of the form, or we refund your first month’s fee: $349 on the monthly plan or $290.83 on the $3,490 annual plan. See the Team terms for the Pacific Time deadline.
- Everything in Community
- Production recall gateway, hosted by us — serve recall to your app, authenticated and remote (or self-host it from the source-available core)
- Supported production deployment configuration
- Commercial-use license for production
- Email support (no SLA)
- Opt-in Jev judge for recall ranking — off by default; only policy-cleared records are sent
Professional
Organizations governing agent memory under compliance pressure.
Professional is available now. Annual subscription, billed once per year, renews automatically until cancelled.
- Everything in Team
- Dedicated isolated tenant — your own instance, volume, and hostname; per-credential principal binding enforced server-side
- Per-answer evidence — every recall returns a hash-chained audit row and an explain_recall rationale you can re-run
- Priority support with a one-business-day response target (defined in Terms of Service §16.K) and security advisories
Enterprise
Regulated organizations with auditors in the room.
Enterprise is quoted in writing. Send the form and we send a fixed quote within 3 business days.
- Everything in Professional
- Self-hosted and air-gapped deployment, scoped with you
- Custom framework adapters and audit consulting
Professional is billed annually, and Team monthly or annually, through Edukas Solutions; both renew automatically until cancelled. Enterprise is quoted in writing within 3 business days. Prices are per organization, in USD. Subscriptions are currently offered to organizations in the United States only.
See whether Heartwood fits your hardest agent.
Tell us the agent, the data it recalls, and the rule it cannot break. We’ll answer in writing with the smallest governed-memory path, and show which claims you can verify yourself.