← Latest papers
🤖 AI

Runtime-Structured Task Decomposition for Agentic Coding Systems

This paper introduces runtime-structured task decomposition, an architectural approach for agentic coding systems that replaces monolithic prompts with executable control logic to isolate failures and rerun only failed subtasks, thereby reducing retry costs by up to 73.2% compared to static decomposition and 51.7% compared to monolithic baselines.

Original authors: Shubhi Asthana, Bing Zhang, Chad DeLuca, Hima Patel, Ruchi Mahindru

Published 2026-05-18
📖 4 min read☕ Coffee break read

Original authors: Shubhi Asthana, Bing Zhang, Chad DeLuca, Hima Patel, Ruchi Mahindru

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 you are trying to fix a broken machine, but instead of a human mechanic, you have a very smart, but slightly clumsy, robot assistant (the AI).

The Problem: The "All-or-Nothing" Robot

Most current AI coding systems work like a robot that tries to fix the whole machine in one giant, continuous thought process.

  • The Monolithic Approach: You tell the robot, "Fix this entire engine." It thinks through every step at once.
  • The Flaw: If the robot makes a tiny mistake in step 3 (like misidentifying a bolt), the whole thought process collapses. Because the robot didn't break its thinking into separate steps, it has to start over from the very beginning, re-reading all the manuals and re-thinking every single step. This is expensive, slow, and wasteful.

The Old "Fixed" Solution: The Assembly Line

Some systems try to fix this by breaking the job into a list of steps (Step 1: Look, Step 2: Fix, Step 3: Test).

  • The Static Approach: This is like a rigid assembly line. If Step 2 fails, the robot can't just fix Step 2. Because the line is fixed, it has to re-do Step 2, Step 3, and Step 4 to get the final result.
  • The Surprise: The paper found that this rigid assembly line is actually worse than the "all-or-nothing" robot in some cases! Because it has to re-run multiple steps after a failure, it ends up using more energy (tokens) than just starting over from scratch.

The New Solution: The "Smart Manager" (Runtime-Structured Decomposition)

The authors propose a new way of working called Runtime-Structured Task Decomposition (RSTD). Imagine a Project Manager who doesn't just give orders, but actively watches the work.

  1. Small, Checked Tasks: Instead of one giant order, the Manager breaks the job into tiny, specific tasks (e.g., "Find the bug," "Write the fix," "Check the fix").
  2. The "Stop and Check" Rule: After every tiny task, the Manager checks the work immediately.
    • If the work is good, the Manager moves to the next step.
    • If the work is bad (e.g., the "Find the bug" step missed something), the Manager only sends the robot back to fix that specific step.
  3. No Re-reading: The robot doesn't have to re-read the whole manual or re-do the steps it already got right. It just fixes the one broken piece.

The Results: Saving Energy

The researchers tested this on two real-world software problems: fixing code with multiple bugs and figuring out why a computer server crashed. They compared three methods:

  1. The Giant Thinker (Monolithic).
  2. The Rigid Assembly Line (Static).
  3. The Smart Manager (RSTD).

What they found:

  • The Rigid Assembly Line was the most expensive. When it made a mistake, it had to re-do three or four steps, costing 80% more energy than just starting over from scratch.
  • The Smart Manager was the winner. When it made a mistake, it only re-did the one broken step.
    • In the server crash test, it saved 51% of the energy compared to the Giant Thinker.
    • It saved 73% of the energy compared to the Rigid Assembly Line.

The Catch

There is a small trade-off. The "Smart Manager" approach requires a bit more setup and communication between the Manager and the robot, even when everything goes perfectly. So, if the robot never makes a mistake, the Smart Manager might be slightly slower than the Giant Thinker.

However, in the real world, mistakes happen. The paper concludes that by building systems that can pause, check, and only fix the broken part, we save a massive amount of time and money when errors occur. It turns a "crash and restart" system into a "fix and continue" system.

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 →