Half of Your Coding Agent's Rules Die on Compaction: 7 Paper-Backed Fixes
victor_explore · x · 2026-09-25
Key findings
- When Claude Code compacts a long conversation, about half of your rules don't survive into the summary; after five compactions roughly one in ten remains.
- A rule outside the context window isn't a weak rule — it's no rule: agents that never violated a policy while it was visible broke it 38% of the time once the summary dropped it. Same model, same rule, just absent at action time.
The fixes
The author outlines 7 fixes, each backed by a paper from the past year. None require changing your agent or workflow — the shared idea is moving where the rule lives (full details are behind a paywall).
More from coding & agent
- Mk1.5 explained: factor world knowledge into tool calls, parallel research via sub-agents — AkshatS07 · 2026-09-25
- Dev open-sources Goated Prompter, a local browser prompt generator recreating a gatekept ComfyUI node — Jolanoff · 2026-09-25
- Solo Dev Automating SMB Workflows for 3 Years: From $1.1K–3.8K/Month to One Contract Matching a Month's Income — Kakachia777 · 2026-09-25
- Solidity Auditor v4 open-sourced with 85% recall on High findings, ported to Vyper — banteg · 2026-09-25
- I Analyzed 246 Repos and 57 Papers on Agent Harnesses — Here's What Actually Works — Marmelab · 2026-09-25
- Cua ships stable Driver for Omarchy, enabling OS-level multi-cursor computer use — TianbaoX · 2026-09-25