# Cadence\: Adaptive Monitoring and Guidance for Coding Agents


Runtime monitors are increasingly used to improve the reliability of LLM-based coding agents by inspecting execution trajectories and delivering corrective guidance when misbehavior is detected. Their effectiveness, however, remains limited by static guidance triggering schemes. Existing monitors rely either on fixed inspection intervals, which miss timely guidance during severe misbehavior while adding unnecessary overhead during healthy execution, or on rigid heuristic rules that fail to detect complex reasoning errors. The authors propose Cadence, a dynamic monitoring framework that adaptively schedules inspections and delivers guidance according to the agent's real-time execution health.

Cadence has 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, and replacement-level guidance for severe misbehavior. Driven by the intervention level, the scheduler tightens supervision after replacement-level guidance and relaxes it after advisory-level guidance.

The framework is evaluated on 300 SWE-bench Lite tasks with two distinct agents, mini-swe-agent and Moatless. Cadence achieves the highest resolve rate among all evaluated monitors, outperforming vanilla agents by 25.33% &#40;76 additional resolved tasks&#41; on mini-swe-agent and 15.67% &#40;47 additional resolved tasks&#41; on Moatless, while maintaining competitive token efficiency relative to state-of-the-art baselines.
