DEV Community

Cover image for MemCTX – Autonomous session memory for Claude Code (open source, MIT)
Fahad Qureshi
Fahad Qureshi

Posted on

MemCTX – Autonomous session memory for Claude Code (open source, MIT)

I built MemCTX to solve a problem I kept hitting with Claude Code —
losing context between sessions and having to re-explain my project every time.

What it does:

  • Hooks into Claude Code's session lifecycle (start/stop/post-tool-use)
  • Captures every session and stores it in a local SQLite database
  • Uses Claude API to auto-generate summaries of each session
  • Injects relevant history into CLAUDE.md at the start of new sessions
  • Includes a dashboard to search, browse, and tag your session history

Who it's for: Claude Code users who work on ongoing projects and
hate repeating context.

Cost: Free and open source (MIT license)
My relationship to it: I built it.

GitHub: https://github.com/bbhunterpk-ux/memctx
npm: npm install -g memctx

Top comments (0)