Agent Context Compaction Halves Costs
appenz · x · 2026-07-14
This post discusses agent 上下文压缩(compact): when an agent experiences a cache miss due to prolonged inactivity, performing a compaction pass first can reduce token costs by 50% 以上.
Key points:
- Simulations using real Fable 5 traces showed that maintaining context within 128k–256k tokens shifts overall spending from 二次增长 to nearly 线性增长.
- The catch: self-summarization is slow, taking 1–2 分钟 on long traces.
- To fix this, the team trained an ultra-fast compaction model, Relace Compact, achieving 50k tok/s for token-level classification at a cost lower than cache reads.
- Pricing is about $0.20 / million input and $0.20 / million output tokens.
- It has already been integrated into Jacq, with documentation provided for integration into other products.
This is highly valuable reference material for those working on agent workflows, context management, and inference cost optimization.
Related event: Relace Compact Model Compresses Agent Context in 5 Seconds to Cut Costs(3 posts)→
More from coding & agent
- Dev builds interactive 3D product experience with GPT-6 Astra + Hyper3D Rodin — nikola_mr64990 · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11
- Cognition's SWE-2 uses a KKT duality argument in RL to shift the effort Pareto curve — YouJiacheng · 2026-09-11
- First-ever Three.js Conference lands in Paris, with a panel on AI-shortened design workflows — OdinLovis · 2026-09-11
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11