Skip to main content

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

SOUL.md should contain identity and principles, not implementation details.
As patterns emerge, document them for future reference.
Add your preferences and context for more tailored responses.
Clear old conversations to prevent context bloat.

Auto-Memory

With auto_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

Memory Across Agents

Workspace is shared across all agents by default:
For isolated memory per agent:

Next Steps

Architecture

Understand the full system architecture

First Agent

Build your first custom agent