Free tool · MIT · v0.1
Which chat changed this line, and why.
Capture keeps your coding-agent chats next to the commits and lines they produced. Months later, point at a line and read the request that put it there.
Needs git and Node 22.18 or later. No account, no server, no API key, no model.
$ capture why src/money.ts:2 src/money.ts:2 commit 3f9c2ab 2026-11-28 Pat "round refunds to the nearest paise" chat claude-5e6f7a8b9c (Claude Code), request 2 link: the chat ran this commit asked: "refunds should round to the nearest paise, not truncate" read: capture show claude-5e6f7a8b9c 6-11
Git decides. The chat explains.
Capture reads the transcripts Claude Code and Codex CLI already keep on your laptop. Git says which commit last changed a line; the stored chat explains that commit.
cd your-repo capture # read this repository's chats into .capture/ (any time, also mid-chat) capture why src/money.ts:2 # the chat and commit behind one line capture search rounding refund # find past requests by their words capture show claude-5e6f7a8b9c 6-11 # read part of a stored chat capture hook install # capture after every commit; `capture hook remove` undoes it
It works on a fresh git init with no remote, and on chats that happened before you installed it. Every command takes --json. The full option list is in the README.
It says how sure it is.
A commit is tied to a chat at one of three levels. capture why shows the level, and hides a weaker link when a stronger one exists for the same commit.
The chat ran this commit
The chat ran git commit and its output printed this commit's id.
The chat edited these files
The commit was made during the chat, or up to 60 minutes after it, and carries text the chat's edit tool added.
Only the clock agrees
The commit was made while the chat was running and nothing else ties them. Weak: with two agents in one repository it can name the wrong chat.
Nothing leaves your laptop.
Agent chats hold private work and sometimes secrets. Capture is built so the default is to keep them where they already are.
- Local by defaultThe store is a
.capture/folder inside the repository, ignored through.git/info/exclude. Capture never opens a network connection. - Read-only on the agentsIt only reads the transcripts the agents already keep. It never edits them and changes no agent setting.
- Redaction before writingAPI keys and tokens in their known shapes, private keys, authorization headers, passwords in URLs, credential-named fields and the whole content of any
.envfile are blanked. Your home folder is written as~. - A net, not a guaranteeA secret in a shape Capture does not know is stored as it was. Treat
.capture/as private, and do not commit or share it without reading it. - Store less if you want
capture --no-thinking --no-tool-outputdrops the agent's thinking and every tool's output before writing.
What was measured, and what was not.
One Mac, 28 Nov 2026, on a real repository with heavy agent use: 399 transcripts looked at, 91 chats stored.
why to answerNot measured, only reasoned: Windows and Linux, and Node 22.18 itself (it was run on Node 26). Agents covered today: Claude Code and Codex CLI. The rest of what does not work yet is in the gaps list.