| name | memory |
| description | Long-term memory via vector DB. Activated when the user asks about past decisions, previous solutions, project history, "how did we do X", "last time", "we already solved", or when the agent needs historical context before planning an implementation. |
| allowed tools | Read, Bash |
Long-Term Memory
When to use
- Before implementing: search for previous solutions to similar problems
- Before deciding: search for already-documented ADRs and trade-offs
- After incidents: search for post-mortems of similar issues
- When reviewing: search for project patterns and conventions
How to search
python memory/query.py "your question here" --agent-format
python memory/query.py "rate limiting" --type docs --agent-format
python memory/query.py "authentication middleware" --type code --agent-format
python memory/query.py "fix deploy" --type git_commit --agent-format
python memory/query.py "how did we solve auth" --global --agent-format
python memory/query.py "rate limiting strategy" --both --agent-format
Always use --agent-format to get structured markdown output.
When to index
python memory/index.py --incremental
Rules
- ALWAYS check memory before creating an ADR (one may already exist on the topic)
- ALWAYS check before implementing a complex feature
- If memory returns relevant context, CITE the source in the implementation plan
- If no results, move on without mentioning memory
Setup (if not configured)
pip install -r memory/requirements.txt
python memory/index.py