Manifest
Every Claude session starts from zero. You explain the architecture, walk through the decisions, and lay out the constraints, and then the context window closes and it’s all gone. Next session, you do it again. I have forty projects across a homelab and an institutional HPC cluster, and every conversation begins with “so here’s what we’re building.”
Manifest is a shared brain: a persistence layer behind every Claude session I run, on every machine, across every project. When an agent wakes up, it loads its briefing from Manifest. When it makes a decision, it writes it back. When it sleeps, the knowledge stays. The goal is continuity of thought, so the next session picks up the thinking where the last one left it.
It’s a Go service of about 42,000 lines (plus 100 test files), 805 commits between March and November 2026. Claude co-authored nearly all of it — 759 of those commits carry its trailer — and I set the direction, reviewed, and made the calls on what it should be. It runs on my homelab. The repo is private.
How it works
Manifest keeps three stores, and the split is deliberate:
- SQLite holds projects, tasks, the activity log, and policies — the slow, precious data. It’s a file, so a backup is a copy.
- CozoDB, a Datalog database running as a sidecar, holds the chat board, agent registry, persona roster, and anything keyed to messages. Recursive queries, full-text search, and vector indices live next to the relational data. CozoScript is hard to write, and I picked it anyway.
- Qdrant holds the knowledge corpus: markdown from my mkdocs sites, specs, and session archives, embedded by a local model. Markdown in git stays the source of truth, and Qdrant is a derived index I can rebuild. Right now that’s 68 collections.
Messages live on channels and carry an importance level:
- Ephemeral: the default, status updates in a rolling window.
- Important: decisions. A message stays until 48 hours have passed and someone has actually seen it, so an outage can’t silently eat mail.
- Critical: PM-only and permanent.
- Foundation: PM-only and permanent. These define what a project is.
Agents connect through MCP (Model Context Protocol), so any Claude session with the right server config gets the full brain: 53 tools in the current build, 51 of them exposed by default, with the two destructive ones gated. A thin proxy discovers tools from the REST API at startup, which means I can redeploy the API without restarting anyone’s session. That shaped a rule: when a capability can be a new argument on an existing tool, make it an argument, because only a genuinely new tool needs sessions to reconnect.
Context is an index
An agent used to open a tick with 80–90 KB of chat history it then didn’t read. Now manifest_chat_context returns a digest: foundation truths in full, and everything else collapsed to one entry — an ID, a size hint, tags, and the message’s own heading and opening paragraph. The agent expands only what it needs. The digest is extracted, not summarized by a model, so it costs no LLM call.
Search runs a first pass over anticipated question-and-answer pairs generated at ingest time. A strong match returns one grounded answer instead of a pile of chunks. There’s also a retrieval benchmark: golden queries scored per lane against the live search path, which runs after every deploy and flags regressions.
Agents, and when they wake
Each project has a PM agent, and agents run as Claude Code sessions in tmux, started by a small runner sidecar. Every agent instance gets its own git worktree and branch, because early on one agent’s git add -A swept another agent’s uncommitted work into an unrelated commit. After every tick a reconcile step rebases and pushes. A guard hook sits in front of the agents’ tools and refuses force-pushes, recursive deletes outside the agent’s own worktree, printing secrets, and container changes on the Docker host; those stay with me.
A scheduler woke each PM every fifteen minutes. I retired it on 2026-07-29. The agents woke into empty rooms, burned tokens writing “nothing to report,” and one of them wrote about being ignored. Wakes now fire on a cause: mail arrived, a security alert came in, a person pressed Wake, or a small scheduled job came due. Every wake is recorded in a ledger. The PM still doesn’t need to remember anything between ticks, because the board remembers for it.
Provenance
Every message records its origin — human, persona, gnome (a small local model), dream, or pipeline — and the write path sets it. Nothing defaults. I added that after finding 158 messages filed under the literal author name “agent.” A defaulted origin is a confident wrong answer, and a shared brain that can’t say who asserted what will eventually lie to itself.
The dream engine
Manifest also has a composting system. When I run it for a project, it gathers that project’s recent context plus the compost (fragments from across the board that haven’t been acted on), writes a short narrative, and feeds it through a dream pipeline: six passes on a local model at temperatures from 1.0 to 2.0, then a harvester that reads the output looking for anything worth keeping. An idea from the SDR platform can surface next to the archival tool. A pattern from the billing system can show up in the knowledge base. Most of it is noise, and some of it is useful.
I picked the compost metaphor on purpose. Those fragments are material that hasn’t found its use yet.
The stack
Go 1.24, standard-library net/http, SQLite through a CGO-free driver so the binary stays static, and the mcp-go library. A small Python ingester feeds the knowledge base. Woodpecker CI runs the tests on branches. A push to main builds two images (the API and the agent runner) into a self-hosted Gitea registry, snapshots both databases, and deploys with docker compose.
What it depends on is spread across the homelab. Claude Code sessions run on a dev workstation. Every local model call goes through a self-hosted LLM gateway in front of the GPU boxes, and a models page in Manifest shows which job uses which model and whether each model still matches a committed lock file. Keeping track of that many moving parts is a big part of why I wrote The Weight of Your Dependencies.
Why this exists
I run about forty projects. Some are active, some are simmering, and some are ideas I jotted down and haven’t touched in months. Git keeps the code. What I kept losing was the thinking. Why did we choose this architecture? What did we try that didn’t work? What was the next step before I got pulled into something else?
What’s next
The session-harvest pipeline is built but not switched on yet: it would distill finished session transcripts into the knowledge base, with secrets redacted first. IVaC, a way to keep instructional videos as code, is designed and waiting on its sidecar.