Idea · Aug 26, 2026
Session Story
A local CLI that reads your git log and file change timestamps from a coding session and calls Claude API to write a developer journal entry in your own voice, saved to a local SQLite store.
What it would do
Session Story is a Python CLI tool you run at the end of a coding session. Point it at a git repo with an optional time window (for example, '--since 2h') and it pulls the git log with short diffs, file modification timestamps, and any shell history from that period. It compresses that data into a structured prompt and calls claude-sonnet-5, which returns a 150-300 word first-person journal entry ('Today I refactored the auth module and discovered the root cause was...'). The entry is saved to a local SQLite file. A companion minimal React+Vite web UI lets you browse the last 30 days of entries, tag them with a project label, and search by keyword. Everything runs on your machine; nothing is persisted to a server. The CLI has a '--dry-run' flag that shows the prompt before sending it, so you know exactly what leaves your machine. Optional shell alias 'story' makes the whole workflow a single command.
Key features
- Git log + short diff summarization within a configurable time window
- Claude-generated first-person narrative (150-300 words) matching your repo's commit tone
- Local SQLite journal with project tagging and keyword search
- Minimal React+Vite web UI for browsing the 30-day history
- --dry-run flag shows the prompt before any API call