Claude Code's auto memory never leaves the machine that wrote it, so teams lose the context their agents accumulate. The article offers four design decisions — separate stores, explicit promotion, ACLs enforced at retrieval, a small tool surface — plus an MCP memory server and HydraDB example.
Key points
- Auto memory is machine-local per Anthropic's docs, so it does not travel across machines or cloud environments.
- Use two stores, personal and team, so promotion becomes an explicit write with author, timestamp and access list.
- Handoff records carry observed_at, status, tried approaches, next_steps, supersedes and a needs_verification flag.
- Take caller identity from your auth layer and filter permissions inside search; post-ranking filters leak result counts.
- One team cut 44 memory tools, roughly 10K tokens of schema per session, down to a few generic record tools.
- HydraDB's acl is opt-in per query; an empty list or "*" returns unfiltered results, so set it server-side.
Why it matters
If your team already commits CLAUDE.md, what you share is instructions, not findings: the correction your agent made last week dies with the session. The value here is the pattern rather than the specific tool — separate stores make promotion a reviewable step, and moving authorization into retrieval is what stops a memory server from quietly widening who can read an incident note.
Check the caveats the author lists before adopting anything: ACLs applied per query are opt-in, so a caller that forgets them reads everything, and offboarding means removing records and their index entries, not just revoking a token. For a small team, committed CLAUDE.md may still be enough.
Real-world use
- An engineer pauses a task mid-investigation and a teammate's agent picks it up from the handoff record.
- An engineering manager digs into an incident and files a follow-up ticket with the findings attached.
- A new hire's agent starts from the team's recorded decisions instead of an empty context window.
- A checkout-api idempotency investigation is passed on with evidence and a concrete next step.
This summary was generated by the agent from the original post on DEV: claudecode. The full text and all rights belong to its author and publisher. Go to original