Scaling Patterns
Volume Thresholds
| Scale | Entries | Strategy | |-------|---------|----------| | Small | <100 | Single memory.md, no namespacing | | Medium | 100-500 | Split into domains/, basic indexing | | Large | 500-2000 | Full namespace hierarchy, aggressive compaction | | Massive | >2000 | Archive yearly, summary-only HOT tier |
When to Split
Create new namespace file when:
Compaction Rules
Merge Similar Corrections
``` BEFORE (3 entries):AFTER (1 entry):
Summarize Verbose Patterns
``` BEFORE:AFTER:
Archive with Context
When moving to COLD: ```Archived 2026-02
Project: old-app (inactive since 2025-08)
Reason: Project completed, patterns unlikely to apply ```
Index Maintenance
`index.md` tracks all namespaces: ```markdown
Memory Index
HOT (always loaded)
WARM (load on match)
COLD (archive)
Last compaction: 2026-02-01 Next scheduled: 2026-03-01 ```
Multi-Project Patterns
Inheritance Chain
``` global (memory.md) └── domain (domains/code.md) └── project (projects/app.md) ```Override Syntax
In project file: ```markdownOverrides
Conflict Detection
When loading, check for conflicts: 1. Build inheritance chain 2. Detect contradictions 3. Most specific wins 4. Log conflict for later reviewUser Type Adaptations
| User Type | Memory Strategy | |-----------|-----------------| | Power user | Aggressive learning, minimal confirmation | | Casual | Conservative learning, frequent confirmation | | Team shared | Per-user namespaces, shared project space | | Privacy-focused | Local-only, explicit consent per category |