Overview
Memory files are markdown templates that agents read and write to maintain context across sessions. The specific files depend on the workspace mode.Hub Mode Files
user.md
Stores user preferences, communication style, and decisions.projects.md
Registry of all projects in the workspace.systems.md
Infrastructure, systems, and conventions record.log.md
Chronological action log — the activity journal.### YYYY-MM-DD — title
Project Mode Files
context.md
Project overview, architecture, and key information.decisions.md
ADR-style technical decision records.patterns.md
Code patterns, conventions, and anti-patterns.log.md (Project Mode)
Same format as hub mode:Memory Protocol
Both modes include a memory protocol in agent instructions that tells agents:- Read all memory files at the start of every session
- Write after significant actions
- Be specific and factual — memory should be useful to a future session with zero context
- Create reusable prompts when performing the same multi-step workflow repeatedly (self-evolution)
Custom Memory Files
Add custom files via thecustomFiles config option: