Auto Memory - Claude Code
Automatic session-to-session memory of build commands, errors, and learnings.
Auto memory records the small facts Claude picks up during a session - how to run tests, which commands failed, what you corrected - and surfaces them on the next session.
What it does
Claude writes short notes to a per-project memory file when something seems worth remembering: "tests run with pnpm test --filter web", "the deploy script needs DATABASE_URL exported", "user prefers short commit messages". On the next session, Claude reads those notes into context automatically.
When to use it
- Projects where build or deploy steps are non-obvious.
- Long-running work that spans many sessions.
- Capturing user preferences without manually writing them into CLAUDE.md.
- Reducing the "what's the test command?" dance.
Gotchas
- The file grows over time. Review and prune periodically or you'll carry stale notes.
- Auto memory is local by default. Don't rely on it for team-wide context - use CLAUDE.md for that.
- Secrets may slip in if you're not careful. Scan the file before committing it anywhere.
Official docs: https://code.claude.com/docs/en/memory.md#auto-memory
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
Was this helpful?
Related Guides
Related Tools
Claude Code
Anthropic's agentic coding CLI. Runs in your terminal, edits files autonomously, spawns sub-agents, and maintains memory...
View ToolCodeburn
Interactive TUI dashboard that shows exactly where your Claude Code and Cursor tokens are going, in real time.
View ToolClaude Opus 4.7
Anthropic's flagship reasoning model. Best-in-class for coding, long-context analysis, and agentic workflows. 1M token c...
View ToolConductor
Mac app for running parallel Claude Code, Codex, and Cursor agents in isolated workspaces. Watch every agent work at onc...
View ToolRelated Videos

Claude Code: NEW Remote Control, Auto Memory, Plugins & More
Anthropic's Big Claude Code & Cowork Update: Remote Control, Scheduled Tasks, Plugins, Auto Memory + New Simplify/Batch Skills The script recaps a consolidated update on new Anthropic releases across

Claude Code Can Now Automate Work in Chrome
In this video, learn to utilize Claude Code within Chrome to access new automation capabilities that were previously impossible. Leveraging your existing browser sessions, Claude Code enhances...

How to Run Claude Code For Hours Autonomously
Setting up Claude Code to Run Autonomously with Stop Hooks In this video, we dive into the setup and configuration of Claude Code to enable autonomous long-running scripts. We explore the...
Related Posts

Claude Outages Are a Workflow Design Problem
Claude outages and 529 overloads expose whether your AI coding workflow has checkpoints, receipts, model-switch paths, a...

Claude Opus 4.8 Is an Agent Honesty Release
Claude Opus 4.8 looks like a benchmark bump, but the developer story is better honesty, dynamic workflows, and effort co...

Continual Learning in Claude Code: Memory That Compounds
Skills turn Claude Code sessions into persistent memory. Successes and failures get captured, progressively disclosed, a...

Anthropic Sonnet 4.5 in Claude Code
Anthropic's Claude Sonnet 4.5 isn't just another model increment. The company claims they've observed it maintaining foc...

Clean Code Makes AI Agents 34% More Efficient - New Research
A controlled study of 660 Claude Code trials shows clean codebases reduce token usage by 7-8% and file revisitations by...

Does Code Cleanliness Affect AI Coding Agents?
A new SonarSource study finds clean code doesn't boost agent pass rates - but it cuts token usage by 8% and file revisit...
