Build and maintain a knowledge graph of patterns, decisions, and learnings across sessions.
| Pattern | Recurring code patterns | CQRS, Validation, Repository | | Decision | Architectural/design decisions | Why we chose X over Y | | BugFix | Bug solutions for future reference | Race condition fixes | | ServiceBoundary | Service ownership and responsibilities | TextSnippet owns Snippets |
| SessionSummary | End-of-session progress snapshots | Task progress, next steps | | Dependency | Cross-service dependencies | TextSnippet depends on Accounts| | AntiPattern | Patterns to avoid | Don't call side effects in cmd |
Use when saving or retrieving important patterns, decisions, and learnings across sessions. Triggers on keywords like "remember", "save pattern", "recall", "memory", "persist", "knowledge base", "learnings". Source: congdon1207/agents.md.