What is Memory?
Memory is klaw’s system for maintaining persistent context across conversations. It allows agents to remember important information, maintain identity, and build knowledge over time. Memory operates at multiple levels:- Workspace files: Structured context loaded into every conversation
- Conversation history: Per-thread message history
- Session logs: Daily interaction logs for long-term reference
Workspace Structure
The workspace is the agent’s persistent knowledge base:Core Files
SOUL.md
Defines the agent’s identity, values, and operating principles:AGENTS.md
Documents available agents and their capabilities:TOOLS.md
Reference documentation for available tools:USER.md (Optional)
User-specific context and preferences:MEMORY.md (Optional)
Accumulated knowledge and patterns:Memory Loading
Workspace files are loaded into the system prompt:Conversation History
Each conversation maintains its own history:Thread-Aware History
For channels like Slack, history is maintained per-thread:Session Logs
Daily logs capture all interactions:Memory Configuration
Managing Memory
View Workspace
Edit Workspace Files
Clear History
Export Logs
Memory Best Practices
Keep SOUL.md focused
Keep SOUL.md focused
SOUL.md should contain identity and principles, not implementation details.
Update MEMORY.md regularly
Update MEMORY.md regularly
As patterns emerge, document them for future reference.
Personalize USER.md
Personalize USER.md
Add your preferences and context for more tailored responses.
Prune old history
Prune old history
Clear old conversations to prevent context bloat.
Auto-Memory
Withauto_memory enabled, agents can update MEMORY.md:
What Gets Auto-Saved
- Explicit “remember this” requests
- Patterns learned across multiple interactions
- Important project-specific conventions
- Common error solutions
What Doesn’t Get Auto-Saved
- Temporary information
- Session-specific context
- Information already in CLAUDE.md
- Unverified or speculative conclusions

