Local-first · Zero dependencies · Zero network calls

Claude Code writes down everything you do.
Then it hands you a list of stale titles.

Chronicle indexes the session history already sitting on your disk and gives it back at the three moments it actually matters — when you start work, before a compaction destroys your context, and when you are about to redo something you already solved.

git clone https://github.com/tanujrajputdev/chronicle.git See what it finds
  • Python 3.11+, standard library only
  • 500 MB of transcripts indexed in 3.4 s
  • MIT licensed
chronicle stats
$ chronicle stats

  125 episodes across 13 projects · 47 active days
  2026-07-07 → 2026-09-09

  1155 prompts · 394h40m elapsed
  142 compactions survived
  221 agent runs (1.6M output tokens)

  51.0M output tokens · 9.5B cache reads

$ chronicle agents

The 221 problem

You have already paid for research you have never seen.

Every time Claude Code spawns a subagent, that agent's full reasoning and final answer are written to a file on your machine. Nothing surfaces them. On the machine Chronicle was built against there were 221 — including a complete file-level design blueprint for a website.

The record of your work is already on disk. The only thing missing is a way to read it.
Index your own history
chronicle agent 155
$ chronicle agent 155

Agent run @155 · acme · 2026-08-19 16:52
29 tool calls · 15.8k output tokens

--- TASK IT WAS GIVEN ---
You are producing a FILE-LEVEL implementation
blueprint for the marketing site. For every
route, list the components it renders, the
data it needs, and where that data comes …

--- WHAT IT CONCLUDED ---
14 routes, 41 components, 6 data sources.
Three routes share a layout that does not
exist yet …

What you get

Six ways to read back the work you have already done.

Everything runs against one SQLite file. Nothing leaves the machine, and nothing is invented on your behalf — Chronicle assembles facts, it does not write prose.

How it works

Four ideas do most of the work.

Each one is a deliberate departure from how Claude Code stores things.

1

A session is not a unit of work

Claude Code indexes by file and auto-titles each one from whatever you happened to do in the first ten minutes. Chronicle segments every file into episodes — contiguous stretches of work split on a four-hour idle gap, each with its own title, files, tools and cost.

Harness machinery — <task-notification>, /compact, command wrappers — never starts an episode and never becomes a title.

2

A project is not a directory

Work launched in one folder routinely edits repos elsewhere. Chronicle attributes a project from the files an episode actually edits, not the working directory it was launched in.

One project on the reference machine turned out to span five separate repos. chronicle map --cross shows anything still landing wrong; aliases.json fixes it permanently.

3

References must be permanent

#118 is assigned once per session and sequence and is never reassigned — it survives incremental indexing and --rebuild alike. Agent-run ids are keyed to their transcript file.

An id you write down today still resolves next year.

4

Silence is the correct default

The repeat-work check runs on every prompt, so a false positive is a tax on your attention. It clears five gates before it says anything — and you can audit every decision with chronicle why.

Replayed against all 1,136 prompts in the reference history it fired 4 times, and every one was correct.

The five gates

Before Chronicle interrupts you, it has to earn it.

  • 01Distinctive words≥ 4 words in your prompt that are rare across your own history
  • 02Shared words≥ 3 of them appear in the candidate episode
  • 03Coverage≥ 60% of the distinctive words matched
  • 04Rarity≥ 3 of the shared words are genuinely rare (df ≤ 6%)
  • 05Size-normalised score≥ 0.030, so sprawling episodes stop matching everything
audit any decision
$ chronicle why "fix the button colour"

  · distinctive words      colour
  · stopped                only 1 distinctive word,
                           need 4

  stays silent

Turn the check off entirely with CHRONICLE_NO_RECALL=1.

The ambient layer

A dashboard is somewhere you have to remember to go.
These arrive on their own.

Four Claude Code hooks, plus a launchd job that re-indexes every 30 minutes so nothing depends on a hook firing.

SessionStartevery session

Injects a project brief: last session, how it ended, open tasks, files in flight. About 1,200 characters.

PreCompactbefore compression

Saves your prompts verbatim, the open task list and files in flight — then SessionStart feeds them back into the fresh context.

SessionEndon exit

Re-indexes and regenerates digests in the background.

UserPromptSubmitevery prompt

Debounced re-index, plus the repeat-work check. Costs 3 ms.

What a cold start looks like

## Chronicle — Acme Corp, picking up from 2 days ago
Last session (2026-09-07, #214): buy now not showing as per session recordings…
It ended on: "also ive attached screenshots of more errors. fix all these errors."
Open tasks when it stopped: Redefine returning customer as delivered-then-returned
Recently edited: snippets/product-schema.liquid
19 episodes over 17 days and 7 agent runs are indexed. Ask me anything about them —
nothing is loaded into context until you ask.

Every hook exits 0 on any failure and logs to ~/.chronicle/hooks.log. A broken Chronicle can never block your session — the prompt path uses a read-only connection with a 60 ms timeout that gives up rather than waiting on a lock.

Commands

Twenty commands. No flags you have to memorise.

install links chronicle into the first writable directory on your PATH, so every one of these works from any project.

index [--rebuild]Ingest new or changed sessions. Incremental and idempotent.
doctorCheck this install: environment, index, hooks, MCP, redaction. 24 checks.
selftestRun the whole product against a synthetic corpus in a sandbox. 64 checks.
statsCorpus overview.
tokens --by projectEvery token spent: input, cache write, cache read, output.
projectsEvery project, most recently worked first.
project <name>One project in full: totals, every repo it spans, biggest work, agent runs.
timeline [project]Episodes, newest first.
search <query>Full-text over episodes and agent runs. FTS5 syntax.
show <id>One episode: verbatim prompts, files, tools, agents.
agents [-p project]Every subagent and workflow run.
agent <id>One agent run: the task it was given and what it concluded.
map [--cross]Where work launched in one folder actually landed.
brief [project]What a new session here is told automatically.
recall [session]The last pre-compaction checkpoint, in full.
checkpointsEvery checkpoint saved so far.
why "<text>"Would the repeat-work check fire? Which gate stopped it?
report [proj] --since 7dA work log you can send someone.
digestRegenerate DIGEST.md and MEMORY.md.
serve [-p 7777]Local dashboard.

Reach your history from any project

install --mcp registers a read-only MCP server with nine tools — projects, search, timeline, project, episode, agent_run, brief, report, recall. Standard-library JSON-RPC over stdio, no SDK.

It costs about 740 tokens of tool definitions per session. If it isn't earning that, install --uninstall removes it.

One SQLite file, 11 MB

Sessions hold episodes; episodes hold your verbatim messages, their project attribution and the subagents they spawned. Term statistics are computed at index time; FTS5 sits over both episodes and agent runs.

~/.chronicle/chronicle.db — 11 MB for 500 MB of transcripts. About 3,000 lines of Python, standard library only.

Privacy and security

Nothing leaves the machine. That is not a setting.

Zero network calls

No account, no telemetry, no cloud, in any code path. It is a rule for contributors too, alongside no dependencies.

Redacted at ingest, before storage

Anthropic, OpenAI, GitHub, Shopify, AWS, Google, Slack and Stripe keys, JWTs, private key blocks, bearer tokens and password: assignments become [REDACTED:TYPE]. It caught 26 on the reference machine.

Your project names stay yours

aliases.json, projects/ and MEMORY.md hold real project names and are never committed. Settings backups are chmod 600, because settings.json often contains API keys.

The index still contains project names, file paths and the text of your prompts. It stays on your disk — back it up with that in mind.

Measured, not estimated

Against 500 MB of real transcripts.

125 episodes, 221 agent runs, 13 projects.

OperationTime
Full index from scratch3.4 s
Incremental re-index0.1 s
Search0.14 s
Repeat-work check3 ms
Checkpoint, 80 MB transcript2.4 s
Index size11 MB
Chroniclemem0 / supermemoryccusage / vibe-log
DirectionReconstructs what happenedDistils facts for future promptsCounts tokens and time
Existing historyIndexes all of itStarts from zeroAggregates only
TranscriptsKept and searchableExplicitly discardedNot read
Subagent resultsSurfaced——
LocationYour machineTheir cloudYour machine

They are not really competitors — they solve a different problem. If you want facts injected into future prompts, use one of those. Chronicle is for the record you already have.

Install

Three commands, then it looks after itself.

Python 3.11 or newer, no packages, and Claude Code. Nothing is written outside ~/.chronicle until you opt in — and install --uninstall removes every trace, backing up your settings.json first.

1

Index what is already there

Reads ~/.claude/projects. Incremental and idempotent — run it as often as you like.

$ git clone https://github.com/\
    tanujrajputdev/chronicle.git
$ cd chronicle
$ ./chronicle-cli index
2

Make it automatic

Hooks, a 30-minute background re-index, and the skill. The installer merges into settings.json — other tools' hooks are left alone.

$ ./chronicle-cli install
$ ./chronicle-cli install --mcp

# then restart Claude Code
3

Confirm it is wired up

24 checks against this machine: environment, index, hooks, MCP, redaction.

$ chronicle doctor
$ cd ~/any-project
$ chronicle brief

Limitations

What it does not do yet.

Worth knowing before you install it, rather than after.

Background re-indexThe 30-minute launchd job is macOS only. Hooks work everywhere and cover the same ground; you lose the belt-and-braces refresh.
Repeat-work yieldNear-silent by design — 4 fires in 1,136 prompts. Yield grows with your history; with a small corpus most domain vocabulary is too common to count as distinctive.
Transcript formatThe JSONL format is undocumented and can change with a Claude Code release. The parser is defensive and fails soft, but a release could still break indexing.
Episode titlesHeuristic, taken from your first substantive prompt. Recognisable, not elegant.
PlatformsTested on macOS with Python 3.11 and 3.13. Linux should work. Windows is untested.
AgentsOne. Codex, Cursor and Gemini CLI write comparable files but are not parsed yet.

If you index your own history and something looks wrong — a bad episode split, a project attributed to the wrong repo, a title that makes no sense — that is the most useful issue you can file.

Your history is already on disk.
Read it back.

Clone it, run index, then run agents. That second command is the one that tends to land.

git clone https://github.com/tanujrajputdev/chronicle.git Read the source