Agentic AI
New framework shifts LLM agents from probabilistic decision-makers to deterministic program components
Researchers propose a new architecture where the program controls execution flow and the language model acts as a specialized reasoning tool, rather than the orchestrator.
Current LLM agent frameworks delegate core control responsibilities to the language model itself—deciding what action to take, when to invoke tools, and when to finish. This design approach creates persistent problems: excessive token consumption, reasoning failures that corrupt program logic, and inconsistent task completion. Rather than technical glitches, these issues stem from a fundamental mismatch: giving probabilistic decision-making tasks to a language model that excels at reasoning and generation but struggles with reliable sequencing.
The Core Problem#
The root challenge lies in asking a language model to handle deterministic work. Looping, conditional branching, and sequential execution are jobs for a program, not for a probabilistic system that may hallucinate or deviate from intended paths regardless of prompt engineering or model capability. Pushing the model to manage these duties introduces unnecessary complexity and instability.
A New Architectural Approach#
Researchers propose Agentic Programming, which inverts the typical structure. Here, the program takes full control of execution flow, and the language model becomes a specialized component embedded within it—termed LLM-as-Code. The model only participates where its strengths matter: open-ended reasoning and content generation. Once called, the model retains complete flexibility within its scope, but it cannot alter the program's execution path or control structure.
By anchoring context in the program's call tree rather than a flat step-by-step history, the system builds a directed acyclic graph (DAG). Each model invocation's context window depends on its depth in that tree rather than accumulating across all prior steps, keeping computational costs more predictable.
Practical Results#
A case study examining computer-use agents demonstrates that this design is viable and impactful. The approach substantially enhances stability for long visual operation sequences, showing that the theoretical argument translates to real performance gains.
The full paper is available at arXiv:2606.15874.

