Skip to content

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

The agent says2
GitHub says2
Capsid saves2

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

  1. Decisionssample/decisions.mdcoremeaningkeyword
  2. Checking claims against GitHubsample/specs/verification.mdbothkeyword
  3. Outcome rowssample/specs/outcomes.mdmeaningkeyword
  4. Session: the claim checksample/sessions/2026-10-20.mdkeywordkeyword

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.

How search works

Start a session

  1. Rules for every projectcapsid/conventions.md6 KB
  2. Project overviewsample/core.md9 KB
  3. Decisionssample/decisions.md11 KB
  4. 3 open taskssample/tasks/5 KB
  5. Last 3 session notessample/sessions/6 KB
The session's brief37 KB of the 40 KB limit. Nothing cut.

How a session starts

Agents use only what you allow

A read-only agent can use 6 of 18 tools, and 2 more in part.

  1. Start a session: needs read access
  2. Find documents: needs read access
  3. Read a document: needs read access
  4. Read a repo: needs read access
  5. Inspect a repo and its site: needs read access
  6. Read Capsid's status: needs read access
  1. Write a document: needs write access
  2. Delete a document: needs write access
  3. Lint a namespace: needs read or write access, by action
  4. Merge, close, delete, tag and release: needs write access
  5. Work the job queue: needs read or write access, by action
  1. What needs me: needs admin and read access
  2. Manage namespaces: needs admin and write access
  3. Manage agents: needs admin and write access
  4. Read claims: needs admin and read access
  5. Read operations state: needs admin and read access
  6. Run a control: needs admin and write access
  7. 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.

  1. 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
  2. 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
  3. Worked 3 of 9

    The agent works on one branch of one repo.

    MCP WorkerAgentscapsid

    median job time, last 30 days
    309 hours
  4. 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
  5. 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%
  6. 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%
  7. 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%
  8. 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
  9. 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%
A job's life, over the parts of Capsid

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 capsid
  • Portal

    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.
  • 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.

  1. 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.
  2. Claimed: an agent claims the job. The Worker checks the signature first, then records which agent holds it.
  3. Worked: the agent works on one branch of one repo.
  4. 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.
  5. Pull request: the agent opens a pull request through Capsid's GitHub App, and CI runs on it.
  6. 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.
  7. Deployed: the merge to master starts CI on GitHub Actions, which deploys the Worker.
  8. Verified: CI reads the Worker's /health page and checks that it reports the merged commit.
  9. 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.

Contents

  1. 2.0Systems21 drawn with their parts
  2. 3.0Flows5 told step by step
  3. 4.0Tools18 served over MCP
  4. 5.0Numbers2,024 documents held
  5. 6.0Code2,044 modules scored