Mission control for your repository and the AI coding agents working in it.
capcom is a command-line issue tracker, task manager and project knowledge base for AI coding agents such as Claude Code, apogee, OpenAI Codex, Cursor, Gemini CLI, Aider and GitHub Copilot, and for the people working beside them. Issues and notes are plain markdown files in your git repository. No server, no account, no database to sync. One binary for Linux, macOS and Windows, written in Go, with a command line for agents and a terminal UI for people. The name comes from spaceflight, where CAPCOM is the one voice on the ground that talks to the crew; capcom is not affiliated with Capcom Co., Ltd., the video game company.
Contents: Why · The agent loop · Features · Terminal UI · Works with · Install · Quick start · Commands · Non-goals · FAQ · License
Most agent issue trackers keep a database and export a copy to git. The two drift apart, and keeping them in sync becomes a chore. capcom keeps one source of truth: files in git. Issues branch, merge and show up in code review, just like the code they describe.
A handful of commands carry an agent from one task to the next:
capcom next # the most urgent ready issue, in full
capcom context <id> # the issue with its deps, plan and the Notes that apply
capcom start <id> # claim it and take the Tree lock
capcom log <id> "<progress>" # note progress as work lands
capcom finish <id> --reason "<what was done>" # close it, free the lock, name what is nextcapcom prime briefs a new session, capcom know show <id> reads a Note, and --json turns any
of it into a versioned envelope. Errors name the file and line, and most end with a hint:
line naming the command that fixes them, so an agent recovers without guessing.
- Issues as markdown files. One file per issue under
.capcom/issues/, with a short YAML header for status, priority, labels and dependencies. Readable ids you choose (login-timeout-race). Folders make the hierarchy. - Ready-work queue.
capcom readylists the open, unblocked issues, most urgent first. - Dependencies and links. Make an issue wait for another, or just link related issues.
capcom dep graphdraws the dependencies as a Mermaid flowchart. - Standing parents. Mark a grouping issue
--standing: it holds its children, is never Ready and cannot be claimed or closed by mistake. - Batch writes.
capcom applyfiles a linked set of issues, updates, logs and closes from one YAML file, all or none, in a single call. - Fast local index. A SQLite cache under
.git/answers queries quickly and rebuilds itself. It is never committed and never drifts. - Your own statuses. Name statuses as you like; each maps to
todo,doing,waiting,doneordropped. - Tree lock for parallel agents. An agent claims the working tree while it edits. Others see who holds it, why and since when, and a write from another session warns. The holder's own writes renew the lock. One lock per git worktree.
- Project knowledge on demand. Conventions, gotchas and design decisions live as small
Notes under
.capcom/knowledge/. Agents read only what they need instead of one huge instructions file.capcom know verifyflags Notes whose files or symbols are gone; a Note that no longer holds is retired or superseded, not deleted. - Starter Knowledge.
capcom know seedadds a base set of Notes, rules that hold in any repository (secrets, destructive actions, what done means), and--updatekeeps them current. - Session briefing.
capcom primeshows ready work, work in progress, locks, broken Note refs, unmerged changes on other branches and store health.capcom recaplists what changed in.capcom/since a date or a commit. - Static HTML export.
capcom export --html <dir>writes the Issues and Notes as a static site that opens from the file system, with no JavaScript and no external resources. - Validator and formatter.
capcom checkreports problems aspath:line: message;capcom fmtkeeps files in canonical form. Both work in CI. - Machine-readable output. Every command prints plain text, or a versioned JSON envelope
with
--json(all butcapcom uiand the bare command groups). Many also take--kvforKEY=VALUElines. Shell completion completes Issue and Note ids. - Stable from release to release. Every store format ever written is still read, and a
format is raised only by
capcom upgrade, never by a write (Compatibility).
capcom ui opens a full-screen terminal UI to browse and update issues and Notes without
leaving the terminal.
- Four tabs: Ready, Issues (a collapsible tree), Knowledge and Closed (the closed issues,
newest first), on keys
1to4, each with its count. - Opens where you left off: it remembers the tab and selection per worktree;
capcom ui closed <id>opens straight on a tab and an issue. - Detail pane with rendered markdown and clickable issue and Note links.
- Filter with
/: words,status:<name>andlabel:<name>. - Quick edits: claim (
a), change status (s), close (c), reopen (R), add a log line (L) or open the file in your editor (e). - Dependency view (
d): what an issue waits on and what it blocks. - Mouse support: click tabs, rows and links, drag the divider to resize, drag over text to copy it to the clipboard.
- Split or stacked layout: side by side on a wide terminal, stacked on a narrow one;
vor the layout button switches,<and>move the divider, and the choice is kept. - Live refresh: changes made by agents or other tools show up within a second.
- Dark and light themes, picked from your terminal, with custom colours.
- Tree lock badge in the status bar shows whether another session is editing.
Full guide: docs/site/getting-started/terminal-ui.md.
capcom is a plain CLI, so any agent that can run a shell command can use it.
AGENTS.md.capcom agentswrites a short how-to block intoAGENTS.md, with the top of the Knowledge tree, and imports it with@AGENTS.mdfromCLAUDE.mdandGEMINI.mdwhen they exist.capcom agents --checkfails in CI when the block is stale.- Claude Code plugin. In Claude Code 2.1.275 or later,
/plugin install capcom --marketplace airiclenz/capcomadds a capcom skill and runscapcom primeat session start and before compaction in any repository with a.capcom/(Agent setup). - Claude Code, Codex, apogee and GitHub Copilot hooks.
capcom init --claude-hooks,--codex-hooks,--apogee-hooksor--copilot-hooksrunscapcom primeat session start, so every session begins with a briefing. - Stable output.
--jsonand--kvare easy to parse;capcom checkerrors are easy to fix in a loop. What stays stable from release to release is in Compatibility.
Homebrew (macOS, Linux):
brew install airiclenz/tap/capcomScoop (Windows):
scoop bucket add airiclenz https://github.com/airiclenz/scoop-bucket
scoop install capcomwinget (Windows):
winget install AiricLenz.CapcomFrom source (Go 1.25 or later):
go install github.com/airiclenz/capcom/cmd/capcom@latestPrebuilt archives for Linux, macOS and Windows (amd64, arm64) are on the releases page.
cd your-repo
capcom init # create .capcom/ in this git repository
capcom agents # tell your agents about capcom in AGENTS.md
capcom create --id first-task --title "Try capcom" --acceptance "capcom ready lists it"
capcom ready # what to work on next
capcom ui # browse it all in the terminal UI
git add .capcom AGENTS.md # plus CLAUDE.md or GEMINI.md if capcom agents changed them
git commit -m "chore: track issues with capcom"# Issues
capcom create --id login-timeout-race --title "Login times out during refresh" --type bug
capcom ready # open, unblocked issues, most urgent first
capcom next # the most urgent ready issue, in full
capcom list --tree # the issue outline
capcom list login-timeout-race token-store-rework # the status of several ids, or "not found"
capcom show login-timeout-race
capcom show login-timeout-race --section acceptance # one section of the body
capcom context login-timeout-race # the issue with its deps, plan and the Notes that apply
capcom search refresh timeout
capcom update login-timeout-race --priority 1
capcom start login-timeout-race # claim it and the Tree lock; again to resume
capcom log login-timeout-race "reproduced with two tabs"
capcom dep add login-timeout-race token-store-rework # wait for another issue
capcom dep graph # the dependencies as a Mermaid flowchart
capcom related add login-timeout-race session-bug # link without blocking
capcom mv login-timeout-race --parent login-flow # the old id stays an alias
capcom finish login-timeout-race --reason "Fixed in 3f2a1c9" # close, free the lock
capcom reopen login-timeout-race --reason "Came back on Safari"
capcom apply issues.yaml # file a linked set of issues in one call, all or none
# Tree lock
capcom lock acquire --purpose "implementing the release plan" # outside an Issue; again to resume
capcom lock touch # only when work outlasts the lock's TTL without a capcom write
capcom lock release # the holder needs no --token; another session passes it
capcom lock status --all
# Knowledge
capcom know add --id release-steps --title "How a release is cut" --ref docs/releasing.md
capcom know tree
capcom know show release-steps code-style # one Note or several
capcom know search release
capcom know verify # Notes whose files or symbols are gone
capcom know seed # add the base set of Notes capcom ships; --dry-run writes nothing
capcom know seed --update # also replace the seeded Notes capcom ships a newer text for
# Store and agents
capcom ui # the terminal UI
capcom prime # the session-start briefing
capcom recap --since 7d # what changed in .capcom in the last 7 days
capcom agents # write or refresh the capcom block of AGENTS.md
capcom check # validate every file
capcom fmt # rewrite files in canonical form
capcom upgrade # raise the store format, on purpose and never on its own
capcom export --html site/ # the Issues and Notes as a static HTML sitecapcom <command> --help lists every flag. The full manual is at
airiclenz.com/capcom (source: docs/site/), with the
file format reference and a guide to
migrating from beads.
Want a shorter command? Use a shell alias such as alias cc=capcom, not a binary named cc:
that name belongs to the system C compiler.
capcom stays one binary over files in git. These would bring back a second store, a background process or a sync chore, so they will not be added:
- A server or hosting. The repository is the only store; git already handles many writers.
- A daemon or background sync. capcom runs only while a command runs. It never fetches, pushes or merges.
- Notifications. capcom sends nothing;
capcom primeshows what changed when asked.
More answers are in the manual's FAQ.
Which coding agents does capcom work with?
Any agent that can run a shell command: Claude Code, OpenAI Codex, apogee, Cursor, Gemini CLI,
Aider, GitHub Copilot and others. capcom agents writes the how-to block into AGENTS.md, and
capcom init --claude-hooks, --codex-hooks, --apogee-hooks or --copilot-hooks briefs every
new session (agent setup).
How do I give a coding agent project knowledge that lasts across sessions?
Write it as Knowledge Notes under .capcom/knowledge/, committed with the code. An agent opens
only the Notes it needs with capcom know tree and capcom know show <id>, and
capcom know verify flags Notes whose files or symbols are gone
(Knowledge).
Does capcom have an MCP server?
Not for now. capcom is a CLI an agent runs through its shell tool, which every coding agent
already has. In capcom's agent evals, agents lose time on the number of calls, not on flag
syntax, so capcom apply and capcom context do in one call what would take several.
How does an agent keep track of its work between sessions?
The issues are the record: an agent logs progress with capcom log as it goes, and the next
session starts from capcom prime and capcom next. Nothing lives in a chat history or in an
agent's private memory, so another agent, or a person, picks up where it stopped.
Does capcom need a server, an account or a database? No. Issues and Notes are files in your repository. The SQLite index is a local cache under the git directory, never committed, and capcom makes no network calls.
How do a team and several agents share issues?
Through git: push, pull and merge. Each issue is its own file, so edits to different issues
merge cleanly. Run capcom check after a merge
(branches and merging).
Can two agents work in the same repository at once? Yes. The Tree lock shows each session whether another one is editing, and each git worktree has its own lock, so agents can work side by side in separate worktrees.
What if two branches add log entries to the same issue?
capcom init --merge-driver sets up a git merge driver that merges the ## Log by entry, so
there is no conflict to resolve by hand
(details).
Can CI check the issue files?
Yes. capcom check, capcom fmt --check and capcom agents --check fail on problems and
write nothing. A minimal
GitHub Actions job:
name: capcom
on: [push, pull_request]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version: stable
- run: go install github.com/airiclenz/capcom/cmd/capcom@latest
- run: capcom check
- run: capcom fmt --check
- run: capcom agents --checkHow is capcom different from beads, GitHub Issues or Task Master?
beads keeps a Dolt database and syncs it with bd dolt push and pull, on a ref of its own;
capcom keeps only the files, so there is nothing to sync. GitHub Issues lives on a server, apart
from your branches; capcom works offline and merges with the code. Task Master generates tasks
with an LLM; capcom calls none. See
capcom compared and
migrating from beads.
Is capcom related to Capcom, the video game company? No. capcom is an open-source developer tool named after spaceflight's CAPCOM and is not affiliated with Capcom Co., Ltd.
Is it only for AI agents? No. The files are readable markdown, and the terminal UI and plain-text output are made for people too.
MIT, see LICENSE.
