Kenny (@lwrf42) — Harnesses and agentic coding

Original post: https://x.com/lwrf42/status/2115842574267416622
Posted: 2026-10-29T16:25:54Z · Collected: 2026-10-30T14:59:37Z

Why it matters

Data-driven context compaction tuning for harnesses.

Summary

Kenny (@lwrf42) built compactlab, an MIT local tool that replays your agent history against auto-compaction thresholds; for 24 days of 1M-context sessions, compacting at 625K instead of ~967K was an estimated 22% cheaper and about 3 min/day slower, after correcting for the one-hour prompt cache tier; it also reads DeepSeek Harness logs (LemonCANDY42/compactlab).

Topics

Keywords

compactlab, auto-compaction, context-window, prompt-cache, claude-code

Archive

Browse