Compact in one click
A button that types /compact for you, and a threshold the code never matched.
Claude Code has a /compact command that compacts a long conversation to free its context. Otto put a compact button, which the decision calls “Compact now”, on each session card, next to the fill bar of D008.
The decision says the button writes /compact and a newline straight into the session’s terminal, through the client Otto uses to talk to its daemon (the background process that owns the terminals). It is as if you had typed it. There is no dialog and no confirmation; one click runs it.
The reason, in the entry’s words: “Minimum friction. The developer already decided to compact when they clicked. Confirmation adds clicks without value.” We didn’t record what else we considered.
The cost is the accidental click. With nothing to confirm, a stray press compacts a session, so the entry says the button stays hidden until the context is at least 70% full.
Git disagrees on that number. The button arrived on 2026-05-05 in d99123f9, two hours before the decision, and that first version showed it once fill passed 0.65, which is 65%. The plan added with the decision, dated 2026-04-24 in its file name, asked for 70%. So the entry matches the plan, and the code never matched the entry. We didn’t write down why the code used 65%.
The decision arrived in a commit with ten others and no message.
Later, on 2026-06-11, our check found the rule in force, through a session:compact request handled in the main process. Its note says the threshold “was later lowered” to above 0.65. Git shows no lowering. The button had used 0.65 from its first commit.
Decision D009 · 2026-05-05 · ba6e1975, 9399ca23 (moved to its own file in 94a000a6, wording unchanged)