Cadence: Strategic Guidance for Coding Agents
Minxing Wang, He Ye, Earl T. Barr, Yintong Huo
Key points
From the paper's conclusion- Specifically, Cadence outperforms vanilla agents by 25.33\% (+76 resolved tasks) on mini-swe-agent and 15.67\% (+47 resolved tasks) on Moatless, while maintaining competitive token efficiency compared to state-of-the-art baselines.
Abstract
Runtime monitors are increasingly used to improve the reliability of LLM-based coding agents by inspecting execution trajectories and delivering corrective guidance upon detecting misbehavior. However, their effectiveness remains limited by static guidance triggering schemes. Existing monitors rely either on fixed inspection intervals, missing timely guidance during severe misbehaviors while incurring unnecessary overhead during healthy execution, or on rigid heuristic rules, failing to detect complex reasoning errors. To address these limitations, we propose Cadence, a dynamic monitoring framework that adaptively schedules inspections and delivers guidance according to the agent's real-time execution health. Cadence consists of two core modules: a two-tier intervention module and an inspection scheduler. The intervention module delivers advisory-level guidance for normal executions and minor lapses, while providing replacement-level guidance for severe misbehaviors. Driven by the intervention level, the scheduler adjusts the inspection frequency by tightening supervision after replacement-level guidance and relaxing it after advisory-level guidance. Evaluated on 300 SWE-bench Lite tasks across two distinct agents, mini-swe-agent and Moatless, Cadence achieves the highest resolve rate among all evaluated monitors. Specifically, Cadence outperforms vanilla agents by 25.33\% (+76 resolved tasks) on mini-swe-agent and 15.67\% (+47 resolved tasks) on Moatless, while maintaining competitive token efficiency compared to state-of-the-art baselines.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Learning When and How to Intervene: A Hindsight-Distilled Sentinel for Coding AgentsarXiv · 2026
- From Watching to Steering: Enabling Human-Coding Agent Collaboration through Execution TracesarXiv · 2026
- Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written CodearXiv · 2026
- StateMirror: Pre-Execution Detection of Hallucinated Tool Calls in Coding AgentsarXiv · 2026
- Opera: A Verbal Critic Framework for Long-horizon Coding AgentsarXiv · 2026
- Beyond Clumsy Agentic Tool Calling: How Cueing and Spotting Make the DifferencearXiv · 2026