AI agents say it's done. Capsid checks.
Capsid is an open-source MCP server you run on Cloudflare. Your agents start every session from the same project notes. Each one can use only the tools you allow. When an agent says a job is done, Capsid asks GitHub whether it is.
Catch an agent
They match. Capsid saves 2.
In the last 90 days this server checked 2,235 claims, and 98% matched GitHub. All the numbers
Agents remember the project
Capsid keeps each project's notes, decisions and session logs in one place. Agents search it, and every new session starts from it. Each edit keeps the old version. This server holds 2,024 documents in 13 namespaces.
Search it Example notes
- Decisions
sample/decisions.md - Checking claims against GitHub
sample/specs/verification.md - Outcome rows
sample/specs/outcomes.md - Session: the claim check
sample/sessions/2026-10-20.md
Left out 1 closed or replaced document. Capsid rereads every meaning match from the database first, so it never shows a deleted document.
Keywords alone find 2 of 4. Add meaning to find documents that use other words.
- Sample core
sample/core.md - Document history
sample/specs/versions.md - Restoring a page from a backup
sample/runbooks/restore.md - Session: moved the old notes
sample/sessions/2026-10-02.md
No closed or replaced documents matched. Capsid rereads every meaning match from the database first, so it never shows a deleted document.
Keywords alone find 2 of 4. Add meaning to find documents that use other words.
- Decisions
sample/decisions.md - The signed merge policy
sample/specs/merge-policy.md - Grants and flags
sample/specs/grants.md - Session: who may merge
sample/sessions/2026-10-18.md
Left out 2 closed or replaced documents. Capsid rereads every meaning match from the database first, so it never shows a deleted document.
Keywords alone find 2 of 4. Add meaning to find documents that use other words.
Start a session
- Rules for every project
capsid/conventions.md6 KB - Project overview
sample/core.md9 KB - Decisions
sample/decisions.md11 KB - 3 open tasks
sample/tasks/5 KB - Last 3 session notes
sample/sessions/6 KB - Your note from last session
sample/sessions/2026-10-25.md1 KB
Agents use only what you allow
A read-only agent can use 6 of 18 tools, and 2 more in part.
- Start a session: needs read access
- Find documents: needs read access
- Read a document: needs read access
- Read a repo: needs read access
- Inspect a repo and its site: needs read access
- Read Capsid's status: needs read access
- Write a document: needs write access
- Delete a document: needs write access
- Lint a namespace: needs read or write access, by action
- Merge, close, delete, tag and release: needs write access
- Work the job queue: needs read or write access, by action
- What needs me: needs admin and read access
- Manage namespaces: needs admin and write access
- Manage agents: needs admin and write access
- Read claims: needs admin and read access
- Read operations state: needs admin and read access
- Run a control: needs admin and write access
- Administrator switches: needs admin and write access
How a job runs
One job, from the moment a session posts it to the moment Capsid checks the agent's claims against GitHub.
-
Posted 1 of 9
A session posts a job over MCP. The Worker checks that the caller may post, picks a model, signs the job and stores it.
MCP WorkerAgentscapsid
- jobs completed, last 30 days
- 15
-
Claimed 2 of 9
An agent claims the job. The Worker checks the signature first, then records which agent holds it.
MCP WorkerAgentscapsid
- open now
- 3
- waiting on a person
- 0
-
Worked 3 of 9
The agent works on one branch of one repo.
MCP WorkerAgentscapsid
- median job time, last 30 days
- 309 hours
-
Blocked 4 of 9
Before a push, a deploy, a secret or a merge, the agent stops. The job waits with the exact command until a person or the signed policy approves it, and resume hands it back.
MCP WorkerAgentscapsid
- approval waits, last 30 days
- 13
- median wait
- 6 minutes
-
Pull request 5 of 9
The agent opens a pull request through Capsid's GitHub App, and CI runs on it.
MCP WorkerGitHub
- of agents' pull requests merged
- 97%
-
Merged 6 of 9
Every five minutes, Capsid merges a pull request when CI passed on its latest commit and the signed auto-merge policy allows it. The session that opened it can also merge it once CI passes.
Five-minute tickGitHub
- of waits the signed policy cleared
- 0%
-
Deployed 7 of 9
The merge to master starts CI on GitHub Actions, which deploys the Worker.
GitHubMCP Worker
- of checked jobs with passing CI
- 96%
-
Verified 8 of 9
CI reads the Worker's /health page and checks that it reports the merged commit.
GitHubMCP Worker
- the commit running now
- 22e4ad3
-
Claims checked 9 of 9
When the job finishes, the Worker reads the pull request, its commits and CI from GitHub, and saves each claim next to what GitHub says.
MCP WorkerGitHubcapsid
- of 2235 claims matched GitHub, last 90 days
- 98%
Inside Capsid
Runs
MCP Worker
Cloudflare Worker
MCP Worker Serves MCP, the operator routes, /health and the Portal's API. writes to capsid writes to capsid-media writes to capsid-mcp-tool-calls writes to app KV writes to OAuth KV serves Portal serves Agents writes to GitHub reads GitHub reads Search index reads capsidPortal
React, served by the Worker
Portal The admin view, behind Cloudflare Access.Five-minute tick
Workers cron trigger
Five-minute tick Auto-merge, the watcher and the daily passes. reads GitHub writes to GitHub writes to capsid writes to app KV writes to Search index
Stores
capsid
D1 with FTS5
capsid Documents, jobs, agents and the audit log.Search index
Cloudflare AI Search
Search index A meaning index of every document, derived from D1 and rebuildable from it. D1 stays the record.capsid-media
R2
capsid-media Media and the daily backups.capsid-mcp-tool-calls
R2
capsid-mcp-tool-calls Copies of the tool-call log, kept a year under a lock rule after the log prunes them.app KV
Workers KV
app KV Caches, rate-limit counters and computed documents.OAuth KV
Workers KV
OAuth KV The OAuth provider's grants and tokens, kept apart from the app KV.
Outside
Agents
Coding sessions over MCP
Agents The sessions that post, claim and work jobs.GitHub
Repos, pull requests, Actions
GitHub Where the code, the pull requests and CI live. Capsid reaches it through its GitHub App. deploys MCP Worker watches MCP Worker
Step by step
A job's life
One job, from the moment a session posts it to the moment Capsid checks the agent's claims against GitHub.
- Posted: a session posts a job over MCP. The Worker checks that the caller may post, picks a model, signs the job and stores it.
- Claimed: an agent claims the job. The Worker checks the signature first, then records which agent holds it.
- Worked: the agent works on one branch of one repo.
- Blocked: before a push, a deploy, a secret or a merge, the agent stops. The job waits with the exact command until a person or the signed policy approves it, and resume hands it back.
- Pull request: the agent opens a pull request through Capsid's GitHub App, and CI runs on it.
- Merged: every five minutes, Capsid merges a pull request when CI passed on its latest commit and the signed auto-merge policy allows it. The session that opened it can also merge it once CI passes.
- Deployed: the merge to master starts CI on GitHub Actions, which deploys the Worker.
- Verified: CI reads the Worker's /health page and checks that it reports the merged commit.
- Claims checked: when the job finishes, the Worker reads the pull request, its commits and CI from GitHub, and saves each claim next to what GitHub says.