SOP-006: Memory System
DOCUMENT CONTROL
| Field | Value |
|---|---|
| SOP ID | SOP-006 |
| Version | 1.0 |
| Status | Active |
Purpose
Configure and use Claude Code memory system for persistent context across sessions.
Memory Architecture
Claude Code maintains memory at multiple levels:
- Project Memory - Stored in CLAUDE.md files
- User Memory - Stored in ~/.claude/memory/
- Session Memory - Current conversation context
Managing Memory
View Current Memory
Use the slash command:
- /memory - Show current memory state
Memory Commands
| Command | Action |
|---|---|
| /memory | View memory |
| /memory add | Add to memory |
| /memory clear | Clear memory |
| /memory edit | Edit memory entries |
CLAUDE.md Files
Project-level memory stored in CLAUDE.md:
Location hierarchy:
- Project root: CLAUDE.md
- Subdirectories: CLAUDE.md (scoped context)
- User level: ~/.claude/CLAUDE.md
Example CLAUDE.md
Memory Persistence
Memory persists across:
- Session restarts
- Project switches
- Claude Code updates
Memory does NOT persist:
- Between different machines (unless synced)
- After explicit clear
Best Practices
Memory Tips
- Keep CLAUDE.md focused and updated
- Use for project patterns and conventions
- Include important architectural decisions
- Update when tech stack changes
Verification Checklist
- [ ] Access memory via /memory command
- [ ] Understand CLAUDE.md hierarchy
- [ ] Know how to add/edit memory
- [ ] Keep memory current and relevant