Ocean Capture

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.

npm install -g ocean-capture

Needs git and Node 22.18 or later. No account, no server, no API key, no model.

01Use

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.

03Privacy

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 .env file 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 wantcapture --no-thinking --no-tool-output drops the agent's thinking and every tool's output before writing.
04Measured

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.

21 sfirst capture; 4 s on the next
0.3 sfor why to answer
919strings blanked by the redactor
0dependencies; a 32 kB package

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