~/.cagent/memory/<agent-name>/memory.db by default.
Available tools
| Tool | Description |
|---|---|
add_memory | Store a new memory with optional category. |
get_memories | Retrieve all stored memories. |
search_memories | Search memories by keywords and/or category — more efficient than get_memories. |
update_memory | Update an existing memory’s content or category by ID. |
delete_memory | Delete a specific memory by ID. |
Configuration
Options
Path to the SQLite database file. Use a relative path to store the database alongside your agent configuration.
Custom database path
Memory categories
Memories support an optionalcategory field for organization and filtering. Use categories consistently so the agent can search efficiently.
Common categories:
| Category | Purpose |
|---|---|
preference | User preferences and settings |
fact | Factual information about the project or user |
project | Project-specific context and conventions |
decision | Past decisions and their rationale |
Example agent
mem.yaml
Related
Think
Reason through problems before acting.
Todo
Track tasks across multi-step workflows.
Agents
Agent configuration reference.
Configuration
Full toolset configuration reference.