π v0.4.0 β Claude Code Support is Here (+ a Sidecar That Just Works) #17
dezgit2025
announced in
Announcements
Replies: 1 comment
-
|
Thanks, PyPi Package still not updated with Claude support. @dezgit2025 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
π v0.4.0 β Claude Code Support is Here (+ a Sidecar That Just Works)
auto-memory now speaks Claude Code.
When I started this project, the goal was simple: give AI coding agents memory that doesn't cost 200K tokens per session. We nailed that for GitHub Copilot CLI β 50 tokens, instant recall, zero deps.
The people wanted Claude Code! So i listened. Every time I'd start a new Claude session, it had zero idea what I'd been working on five minutes ago. Same amnesia, different agent. Also my experience with Claude Code were more inconssitent so your often spent compacting, /clear,etc so this should help with debugging.
What shipped in v0.4.0
A brand-new Claude Code provider β inspired by two community contributions: PR #8 from @osamarehman, which laid out a working JSONL parser and FTS5 schema, and PR #12 from @danielsimonjr, which proposed a clean file-backed provider integration. We used both as reference points, then went our own direction β building a separate binary with its own FTS5 index, security-hardening the parser, and adding our own provider/CLI/sidecar layer. The end result is its own thing β but those PRs were the spark that got us moving.
The big design decisions
Separate binary β
session-recall-ccis a completely separate process fromsession-recall. A bug in the Claude Code provider can never crash your Copilot CLI workflow. They share zero code paths at runtime.Agent-driven, not hook-driven β PR feat: Claude Code backend, Cursor/Aider backends, MCP server, export/prune commandsΒ #8 originally injected via Claude Code's
SessionStarthook, mutating~/.claude/settings.json. We rejected that. Instead, you add a one-line instruction to yourCLAUDE.mdand the agent decides when to call recall. Same philosophy as Copilot CLI β the agent has agency, not a hidden hook.FTS5 with teeth β Not just basic full-text search. We added Porter stemming, unicode61 tokenization, bm25 column weighting (user messages ranked 5Γ higher than assistant output), prefix queries, and snippet extraction with
β¦highlightβ§markers. Search actually finds what you're looking for.Env var gate β
SESSION_RECALL_ENABLE_CLAUDE_BACKEND=1must be explicitly set. If you're a Copilot-only user, you'll never even know Claude Code support exists. Zero cost, zero noise.What it looks like in practice
Instead of guessing or asking you to re-explain, the agent just knows.
session-recall-cc list --limit 53b89ff097e63b4b478c36e1fsession-recall-cc search "database migration"bc112c1401bf810eThe sidecar β tested on my Mac (Apple Silicon)
Here's something I'm personally excited about. The CLI does on-demand indexing β every time you call
session-recall-cc, it checks if any JSONL files changed since the last index and incrementally updates. Typical latency: ~50ms.But I wanted to go further. So we built a sidecar β a lightweight background process that pre-warms the FTS5 index every 5 minutes. On my M-series Mac, I set it up with
launchd:That's it. One command. It auto-detected macOS, wrote a
launchdplist, and now the index is always warm. First call after waking my laptop? Instant. No cold start.The sidecar is completely optional β the CLI works great without it. But if you're the kind of person who wants sub-100ms on every single call (hi, that's me), it's a one-liner to set up on macOS, Linux, or WSL2.
How it works under the hood:
Typical run on Apple Silicon: <50ms for incremental updates (only re-parses changed files). Full rebuild of 30 sessions: ~200ms.
The numbers
Try it
pip install auto-memory[claude] export SESSION_RECALL_ENABLE_CLAUDE_BACKEND=1 session-recall-cc healthThen add the instruction block to your
CLAUDE.mdβ or ask your agent to readdeploy/install-claude-code.mdand it'll walk you through it with confirmation at every step.What's next
sqlite-vecauto-memory-cc,auto-memory-codexare claimedThanks to @osamarehman for PR #8 and @danielsimonjr for PR #12 β both surfaced Claude Code support as a real community need. PR #8's JSONL parsing approach and FTS5 schema, and PR #12's clean file-backed provider integration, were the reference points we built on.
auto-memory v0.4.0 is live on PyPI. Star the repo if this is useful β it helps others find it.
Beta Was this translation helpful? Give feedback.
All reactions