AI Agent Memory Harness (codename: Cookbook Memory)
Repository: https://github.com/kenhuangus/agent-memory-harness · Live site: https://kenhuangus.github.io/agent-memory-harness/
A persistent memory harness for long-running coding agents — an installable plugin plus the
benchmarks that measure it.
The harness gives an agent self-curating memory so a smaller model (Haiku) can close the gap to a frontier
model (Opus 4.8) without memory, measured on public memory benchmarks. This repo holds the plugin, the
evaluation harness, and the project site documenting the plan, architecture, benchmarks, and results.
Install the plugin (Claude Code)
claude plugin marketplace add kenhuangus/agent-memory-harness
claude plugin install cookbook-memory@cookbook-memory
That's the whole install — no clone, no pip. The plugin ships a recall skill, a recall MCP tool, and
fail-open lifecycle hooks that extract memories in the background (the Daydreamer). On first use the
plugin's launcher bootstraps its own Python runtime into ~/.cookbook-memory/runtime (using
uv if you have it, else python3 -m venv + pip — Python ≥ 3.11,
macOS/Linux). Verify with:
claude plugin details cookbook-memory # Skills (1) · Hooks (5) · MCP servers (1)
Good to know:
- Memory creation needs a model. Background extraction calls OpenRouter — set
OPENROUTER_API_KEY
in your environment. Without it, everything still works fail-open; you just get recall over whatever
is already in the store.
- What lands in your repo. Memory lives in
.cookbook-memory/ at the project root. The store writes
its own .gitignore so that only the markdown memories (markdown/**/*.md) are committable — the
databases, locks, events stream, and dream state are per-machine artifacts that don't merge in git.
Commit the markdown files to share memory with your team; the derived indexes rebuild locally as new
memories are written.
- Prefer a pinned runtime?
pip install --user "cookbook-memory[mcp] @ git+https://github.com/kenhuangus/agent-memory-harness.git#subdirectory=plugin" before installing the
plugin — the launcher then uses your installed memory-cli instead of bootstrapping. Developers working
from a checkout: see plugin/README.md.
What's here
| Page | File | Contents |
|---|
| Overview | index.html | Hypothesis, the four modules, the four metrics |
| Plan | plan.html | Problem, technical approach, scope, ownership, Gantt + milestones — with a PDF download |
| Architecture | architecture.html | The diagram, data flows, the router, indexing |
| Benchmarks | benchmarks.html | The 5 public benchmarks + metric mapping, with links |
| Implementation | implementation.html | Schemas, storage interface, router/dreaming contracts, eval protocol |
| Results | results.html | Live scoreboard rendered from results.json (v0.1 results exist; see results/) |
| Collaborate | collaborate.html | Branch model, ownership, running the pipeline, PR/merge flow |
.
├── index.html plan.html architecture.html benchmarks.html implementation.html results.html collaborate.html
├── project-plan.md # full plan (problem · approach · scope · ownership · timeline)
├── project-plan.pdf # downloadable PDF of the plan
├── plan.md · prd.md · architecture.md # the design contracts (what · why · how)
├── assets/
│ ├── css/style.css # theme + all components
│ ├── js/main.js # nav toggle, active link, reveal-on-scroll
│ └── img/architecture.svg # standalone architecture diagram
├── eval/ # the evaluation harness (Python pkg `memeval`) — see "Run the benchmarks"
├── plugin/ # the installable Cookbook Memory plugin (cookbook_memory) — see plugin/README.md
├── results/ # committed benchmark results, bucketed by memory version (v0.1, v0.1-bm25, …)
├── docs/ # ADRs and design records (docs/adrs/**)
├── tools/ # helper scripts (dataset probes, etc.)
├── .nojekyll # serve assets as-is (no Jekyll build)
└── README.md
The site is plain HTML/CSS/JS — no build step, no dependencies. Open index.html locally, or publish it
straight to GitHub Pages.
Publish to GitHub Pages
-
Create a repository on GitHub (e.g. agent-memory-harness).
-
From this folder:
git init
git add .
git commit -m "Add AI Agent Memory Harness project site"
git branch -M main
git remote add origin https://github.com/<you>/agent-memory-harness.git
git push -u origin main