← Latest papers
💬 NLP

Online Monitoring and Corrective Steering of Programming Agents

This paper introduces LivePlan, a cost-effective framework that enhances the performance of programming agents on complex GitHub issues by employing a deterministic monitor to detect behavioral drifts in real time and selectively consulting an LLM advisor for targeted corrections, thereby achieving significant resolution rate improvements with minimal overhead.

Original authors: Shuyang Liu, Saman Dehghan, Ji Young Kim, Jatin Ganhotra, Martin Hirzel, Reyhaneh Jabbarvand

Published 2026-08-10
📖 4 min read☕ Coffee break read

Original authors: Shuyang Liu, Saman Dehghan, Ji Young Kim, Jatin Ganhotra, Martin Hirzel, Reyhaneh Jabbarvand

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a world where computers can write their own software, fixing bugs and building new features all by themselves. This is the realm of "AI agents," digital workers that use Large Language Models (LLMs)—the same kind of smart brainpower behind chatbots—to read code, figure out what's wrong, and try to fix it. But here's the catch: these digital workers aren't perfect. Sometimes they get distracted, wander off the path, repeat the same mistake over and over, or give up before they're done. It's like sending a very smart but easily confused robot into a giant library to find a specific book; it might start reading the wrong section, get stuck in a loop trying to open a door that's locked, or decide to leave before finding the book. Researchers care deeply about this because if we want AI to handle complex, real-world jobs like fixing massive software projects, we need to make sure these agents don't just drift away from their goals or waste time and money on dead ends.

Enter LIVEPLAN, a new system designed to act like a vigilant, real-time coach for these coding robots. The researchers, Shuyang Liu and their team, noticed that previous attempts to fix these wandering agents had a major flaw: they often tried to "judge" the robot's work and "give advice" at the same time using a single AI brain. This was like asking a single referee to both blow the whistle for a foul and immediately tell the player exactly how to play the rest of the game. The problem? The referee might get confused, invent a foul that didn't happen, and give bad instructions that actually make the player mess up even more.

LIVEPLAN solves this by splitting the job into two distinct roles. First, it uses a deterministic monitor—think of this as a strict, rule-following traffic cop. This cop doesn't guess or hallucinate; it simply watches for specific, clear signs of trouble, like the robot taking the same step twice in a row, skipping a crucial safety check, or staring at the same wall for too long. If the traffic cop sees a problem, then it calls in a smart advisor (a powerful AI) to give a quick, high-level tip on how to get back on track. The key is that the advisor only speaks up when the traffic cop says, "Hey, we have a problem here," rather than constantly interrupting the robot with unsolicited advice.

The team tested this system on real-world GitHub issues, which are like to-do lists for fixing bugs in huge software projects. They found that LIVEPLAN was a game-changer. Compared to the standard "vanilla" agents that just run without a coach, LIVEPLAN helped solve significantly more problems—boosting success rates by up to 15.2% on the hardest tasks, with an average improvement of 9.9%. Perhaps most impressively, it did this while only adding a tiny cost of about $0.08 per fix.

The paper also shows what happens when you don't use this careful approach. They tested other methods that tried to re-plan the robot's entire journey from scratch or checked in too frequently. These often backfired: the "re-planning" coaches sometimes invented problems that didn't exist and sent the robot on wild goose chases, while the "frequent check-ins" often gave advice too late to be useful. LIVEPLAN's approach of waiting for clear signals before intervening proved to be the sweet spot. It successfully guided the agents through the tricky middle and hard problems that usually stump them, without messing up the ones they were already good at. In short, by letting a simple rule-checker watch the door and only calling in the big brain when necessary, the researchers found a way to keep these digital workers focused, efficient, and much more likely to finish the job.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →