Measuring the Sloppiness of Code
Research 5 min +50 XP
Functionally correct LLM-generated code still accumulates slop such as needless abstractions, duplication and LOC explosions, and measuring it is hard.
Functionally correct LLM-generated code still accumulates slop such as needless abstractions, duplication and LOC explosions, and measuring it is hard.
Pi handles context-window overflow in long coding-agent sessions by compacting: it keeps recent messages within a configurable token budget (default 20k tokens, roughly 5–20 turns) and replaces older history with an LLM-generated structured summary.