Memory Command - Claude Code
View and edit auto-memory and CLAUDE.md via the /memory command.
The /memory command is the CLI surface for inspecting and editing the memory layer without opening files manually.
What it does
Running /memory opens a view of the current session's memory sources - CLAUDE.md files, auto memory entries, and any rules that are loaded. You can edit entries, prune stale notes, and trigger a reload. It's faster than hunting for the right file in a nested repo.
When to use it
- Auditing what Claude currently knows about the project.
- Pruning auto memory that's gone stale.
- Quickly adding a new rule without opening an editor.
- Troubleshooting weird behavior by checking which instructions are active.
Gotchas
- Changes take effect on the next turn, not retroactively.
- Removing a CLAUDE.md entry doesn't delete the file - it just unloads it for this session.
- Be careful editing live during a turn - partial edits can confuse Claude's current plan.
Official docs: https://code.claude.com/docs/en/memory.md#view-and-edit-with-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

Open Design: Turn Websites into Design Assets for Cursor & Claude Code
Open Design: Open-Source n8n App That Turns Any Website into a Brand Kit, Design System, HTML + Images The video introduces Open Design, an MIT-licensed full-stack template that combines AI and n8n a

Nimbalyst: The Open-Source Visual Workspace for Building with Codex and Claude Code
Nimbalyst Demo: A Visual Workspace for Codex + Claude Code with Kanban, Plans, and AI Commits Try it: https://nimbalyst.com/ Star Repo Here: https://github.com/Nimbalyst/nimbalyst This video demos N
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...
