chronicle why
The prompt behind each change to a file. The forensic tool git blame should have been.
Git records what changed. Gigai Chronicle records what was asked — the prompts, the AI's responses, the tools it ran, the code it produced — as an append-only, plain-text history that lives inside your git repository. It runs entirely on your machine. It never calls a model. Nothing ever leaves your device.
git blame says who. chronicle why says what was asked.
$ chronicle why src/auth.ts
why src/auth.ts looks like this — 2 prompt(s):
2026-07-18 09:41 +65 −1 "add refresh-token rotation to login"
⏪ chronicle restore evt_01KXR2…
2026-07-18 09:47 +3 −2 "revoke the token family on reuse"
⏪ chronicle restore evt_01KXR4…
git blame tells you you changed the line. Chronicle tells you
what you asked for — the prompt behind each change to a file — and offers
to put the code back to that exact moment.
# git blame
a1f2b3c you const t = rotate(token)
# chronicle why
▸ "add refresh-token rotation to login"
▸ "revoke the token family on reuse"
Passive capture, plain-text storage, and tools that answer the questions you actually ask.
The prompt behind each change to a file. The forensic tool git blame should have been.
Put your code back to how it was at any prompt. Always safety-checkpointed — nothing is ever lost.
Step through prompts, responses, tool runs and commits, interleaved. Code review with the intent attached.
Keep the prompt that worked — versioned, diffable, synced by git. Save the one you just typed, no retyping.
chronicle doctor proves it: log integrity, secret audit, and a zero-egress report — nothing leaves your machine.
History in the sidebar, prompt versions as a git-graph, and "Why is this file like this?" — in VS Code, Cursor and Windsurf.
Files are the API; git is the transport. That single choice is why there's no infrastructure to run.
Editor hooks feed each moment through the Event Engine — validate, redact, enrich, normalize. Secrets are stripped before the first byte reaches disk.
.chronicle/An append-only JSONL log inside your git repository. It travels by git clone like everything else. The index is a disposable cache you can delete anytime.
Every prompt snapshots your tree into a hidden git ref — so you can attribute lines and travel back, without ever touching HEAD or your history.
$ chronicle doctor
store 3 stream file(s), 0 problem(s)
index v3 — 1336/1336 events
egress zero-network (no endpoints, telemetry: none)
✓ healthy
doctor proves it on demandThe CLI records your journey; the editor extension shows it. Free and open source.
$ npm install -g gigai-chronicle
$ chronicle init
$ chronicle hooks install claude-codeSearch "Gigai Chronicle" in the Extensions view, or install from the Marketplace.
Search "Gigai Chronicle" in the extensions panel — it's on the Open VSX registry.
Free, open source, and entirely on your machine. Your journey belongs to you.