This obviously assumes Claude Code is doing most of the heavy lifting on your codebase. If you’re only using it for the occasional function, you probably don’t need this.
I spent a few days hacking on workarounds for this and eventually pulled them together into Ghost. It hooks into Claude Code sessions, summarises them, and indexes everything into QMD https://github.com/tobi/qmd for semantic search.
Next session, relevant context gets injected automatically. What you were working on, what decisions were made, what already failed.
It also keeps a mistake ledger. Things that went wrong get tracked and surfaced as warnings so you stop walking into the same walls.
Sessions are stored as markdown in .ai-sessions/ (gitignored).
Summaries get attached to commits as git notes so context travels with the code. Everything runs locally, nothing leaves your machine. Built with Bun. Hooks run under 100ms.
It’s early and rough but anecdotally it feels like it actually works.