What breaks first without staged compression?
Tool outputs: one verbose test run or directory dump poisons every later turn until compaction. Micro caps are the cheapest lever.
Glossary · Token-Fold
Compression in three tiers.
The short answer
Token-Fold is Anvaya's staged compression thesis: Micro (per-tool-call output caps and filters), Meso (per-turn packing under budget), and Macro (cross-session synthesis into threads and nodes).
Each tier assumes the last leaks, caps catch verbose tools, packing catches redundant retrieval, synthesis catches repeated history. Design thesis: 100+ tool rounds at stable quality, because no single tier carries the whole burden.
Token-Fold, working
Candidates are ranked and packed into a fixed budget by value per token; the rest stays on disk.
11 of 14 served, 3,310 of 4,096 tokens.
anvaya-mind-rs/crates/mind-services/src/quorum.rs · mind-types/src/config.rsIn Anvaya
Questions
Tool outputs: one verbose test run or directory dump poisons every later turn until compaction. Micro caps are the cheapest lever.
Design target is 100+ rounds at stable quality. Measured so far: micro-fold −11.0% median uncached (n=5, verification 19/19), headless fix tasks −11%…−21%; meso variants measured losses and were retired.
No, summarization is one Meso tactic. Folding spans caps, packing, caching, isolation, and cross-session synthesis as one budget discipline.
23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.
Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.