memory-dag-compactor
Installation
SKILL.md
Memory DAG Compactor
What it does
Standard memory compaction is lossy — older entries get truncated and details disappear forever. Memory DAG Compactor replaces flat compaction with a directed acyclic graph (DAG) of hierarchical summaries inspired by lossless-claw's Lossless Context Management approach.
Each depth in the DAG uses a purpose-built prompt tuned for that abstraction level:
| Depth | Name | What it preserves | Timeline granularity |
|---|---|---|---|
| d0 | Leaf | File operations, timestamps, specific actions, errors | Hours |
| d1 | Condensed | What changed vs. previous context, decisions made | Sessions |
| d2 | Arc | Goal → outcome → carries forward | Days |
| d3+ | Durable | Long-term context that survives weeks of inactivity | Date ranges |
The raw MEMORY.md entries are never deleted — only organized into a searchable, multi-level summary hierarchy.