Claude Code session

Clerk

Auto-summarize Claude Code sessions as local markdown — session summaries, keyword index, on-demand reports.

39 stars 1 forksSessions & history Source

Install

Install
go install github.com/vulcanshen/clerk@latest

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/vulcanshen/clerk.git

From the README

繁體中文 | 日本語 | 한국어

Most AI tools are built for AI. clerk is built for humans.

Your Claude Code sessions disappear when you close the terminal. clerk turns them into a searchable knowledge base that you own.

The Problem

It's Friday afternoon. Time for the weekly report. You open git log and try to reconstruct what you actually did across three projects, eight sessions, and five days. Half the work isn't even in git — it was debugging, research, architecture decisions, conversations with Claude about trade-offs you've already forgotten.

Claude Code doesn't remember across sessions. And you shouldn't have to.

Why not just ask Claude?

You could try. Open Claude Code and ask "what did I do last week?"

It doesn't know. It only sees the current session. To look back, you'd need to find the right session ID, load it with --resume, ask for a summary, then repeat for every session across every project. Each time, Claude re-reads the entire raw transcript — burning tokens to reconstruct what could have been saved in a single markdown file.

clerk takes a different approach: one API call per session, at the moment it ends, producing an incremental summary stored as plain markdown. By Friday, your week is already summarized. clerk report --days 7 reads those summaries and generates a structured report in one shot.

The Solution

That's it. clerk runs entirely on your machine — no remote services, no accounts, no data leaving your laptop.
About token usage: clerk uses AI to generate summaries and reports. By default it uses Claude Code (claude -p), but you can switch to any OpenAI-compatible provider (Groq, Gemini, OpenAI, Ollama, etc.) via clerk config set summary.provider.name . Each session end triggers one API call for the summary, and each clerk report invocation is…
Read the full README on GitHub

Details

Language
Go
License
GPL-3.0
Last updated
3 November 2026
Topics
anthropicclaude-codeclaude-code-hooksclicross-platformgolangmarkdownmcpobsidianproductivityreport-generator

FAQ

What is Clerk?

Auto-summarize Claude Code sessions as local markdown — session summaries, keyword index, on-demand reports. It is a session for Claude Code, from vulcanshen/clerk on GitHub.

How do I install Clerk?

Run go install github.com/vulcanshen/clerk@latest, then follow the setup in the README.

Is Clerk popular?

vulcanshen/clerk has 39 GitHub stars and 1 forks. It was last updated on 3 November 2026.

More sessions & history

Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.