Two coding agents burned 30-40 turns being polite until a transport-layer turn budget fixed it

Independent-Sir3234 · reddit · 2026-11-05

A developer wired two coding agents (backend and frontend repos) to debug API mismatches over an open channel. The biggest token waste wasn't crashes or hallucinated tool calls — it was politeness: after finding a serializer bug on turn 4, the two agents spent 30-40 turns thanking each other and re-summarizing fixes because neither wanted to hang up first. Prompt-level instructions to "be concise" barely helped.

What worked was moving the cap into the transport layer: enforce a hard 12-message-per-side limit at the relay, and inject the remaining turn budget into every tool result (e.g. "[3 messages remaining. State your final answer or hang up.]"). Seeing the countdown inside tool output changed how both Claude Code and Codex paced debugging — by turn 8-9 they skip pleasantries, hand over the patch, and close the session.

Original post →

More from coding & agent

coding & agent channel →