Rebuilding the Runtime: What NVIDIA NOOA Reveals About Agent Frameworks
Its object-oriented model clarifies the trade-off between live program state and durable runtime control.
Takeaways
- NVIDIA's OO Agents framework (NOOA) collapses agent prompts, tools, state, and model-driven loops into a single Python class, where ordinary methods handle deterministic logic and methods with
...bodies are completed at runtime by the model. - NOOA supports two execution strategies per generation method:
PredictStrategyfor single structured predictions andCodeActStrategy, which gives the model an iterative Python REPL with access to live object state, avoiding repeated JSON serialization round-trips. - The framework's key trade-off is that live objects eliminate serialization overhead within a process but offer no built-in cross-session recovery, making durability, distribution, and replay harder compared to graph-based runtimes that treat checkpointing as a first-class mechanism.
- NOOA reports competitive benchmark results on SWE-bench Verified, Terminal-Bench 2.0, and ARC-AGI-3, though scores conflate model, prompt, tool design, and runtime and cannot isolate the object model as the causal factor.
- The article argues that framework proliferation stems from tool calling defining only an action boundary while leaving loop ownership, state location, termination conditions, and failure handling unresolved — the two key design questions being which loop layer the model should own and where state must survive.
Take one stateful task like working through a production incident, and try to write the agent for it. A single task turns into a list of tasks. You write a system prompt, JSON tool schemas, and callbacks that fire when a tool returns. One task ends up scattered across several configuration systems that share no vocabulary.
This scattering helps explain why agent frameworks keep multiplying. Tool calling solved the first problem, which was how a model invokes an external capability. In solving it, tool calling exposed how much it left unsolved.
A tool schema defines only an action boundary. It says what a single call looks like and what comes back. It does not say who runs the loop that strings calls together. It does not say where the state between calls lives, or what counts as done, or what happens when something fails halfway. Those decisions constitute the runtime. Many newer frameworks are really arguments about how to make them, including graph engines, file-and-shell agents, and now object-oriented ones.
NVIDIA's recently published OO Agents framework (NOOA) takes an unusually clean position: collapse prompts, tools, state, and model-driven loops into one Python class. NVIDIA reports competitive results on SWE-bench Verified, Terminal-Bench 2.0, and ARC-AGI-3. To understand why the design matters, first look at what an agent runtime controls.
What a Runtime Actually Controls
Strip away the branding and every runtime answers the same five questions. How does model output become an executable action? Who controls the loop and decides when the model gets control back? Where does state live across calls? What counts as done? And how are failures handled through errors, retries, checkpoints, and recovery?
Two of these questions dominate the rest. The first is who controls the loop, whether that is the model, the developer's application code, or a dedicated runtime. The second is where state lives, whether in the transcript, in files, in checkpoints, or in live program objects.
One useful version of the first splits the agent loop, where the model calls tools and reads results inside one session, from the harness loop outside it. The harness loop decides whether the task is finished and injects more work if not.
I think most framework disagreements are really about where the boundary between those two loops belongs. They are also about which loop owns the state.
Four Ways to Represent an Agent
Frameworks cluster into four models. The table below maps where each one places control and state. Real systems routinely combine two or more.
Typed tool calls keep the cleanest contracts. Every action has a schema and every result has a shape. They pay for that clarity by serializing data in and out of the transcript on every turn.
Graph workflows, the LangGraph lineage, make control durable and inspectable. The cost is a workflow abstraction layered on top of the model's own reasoning. The core move is to represent the task as explicit states, with transitions governed either by fixed rules or by the model.
StateFlow stated this crisply. It separates process control (i.e., the state machine) from task judgment (i.e., the work done inside a state). That separation is the row's defining idea. Durable checkpointing and restart are properties of specific engines, not of the abstraction itself. File-and-shell agents give the model the most expressive action space, since it can write and run arbitrary code. This is the design behind coding tools like Claude Code and Mario Zechner's deliberately minimal Pi. Their persistent state usually lives indirectly and untyped in the file system, even where the tool boundaries stay typed.
The idea that a model should act by emitting executable code, rather than a constrained JSON call, is not new. CodeAct made the case in 2024. It consolidated agent actions into a single Python action space, precisely because pre-defined tool schemas limit what the model can compose. Live-object frameworks are the newest entry, and NOOA is the clearest specimen.
NOOA Turns the Agent into a Python Object
NOOA's proposal is to collapse the scattered runtime into a single Python class.
Most systems keep prompts, tools, callbacks, and workflows as separate abstractions. NOOA brings them into one object. Methods are the actions the model can take. Fields hold state, docstrings serve as prompts, and type annotations act as contracts.
The pivot is the method body. A method written normally is ordinary deterministic Python. A method whose entire body is ... is completed at runtime by the model. The framework calls these generation methods. The signature acts as the contract and the docstring acts as the prompt. Here is a rough sketch, close to the repository's own quick-start.
from nooa import Agent
class IncidentAgent(Agent, llm=llm):
"""You triage production incidents."""
_events: list[Event] # large live object, kept private
graph: ServiceGraph
record: IncidentRecord
def customer_impact_events(self) -> list[Event]:
# ordinary method: deterministic, real Python
return [e for e in self._events if e.customer_impact][:100]
def investigate(self, events: list[Event]) -> IncidentRecord:
"""Investigate the incident and return an evidence-backed record."""
... # generation method: body written by the model at runtime
Here customer_impact_events is ordinary code the developer writes and can unit-test. The investigate method is an empty body, the ..., that the model fills at runtime. That distinction is the whole idea, so the ellipsis is load-bearing. It is the marker that hands a method to the model. The underscore matters too. It keeps the full event store out of the model-facing interface, while a narrow method exposes only the relevant slice.
NVIDIA uses this pattern in its live-object tutorial. A large DataFrame stays private, while small deterministic methods give CodeAct bounded access to it. Pass-by-reference is not "show the model every object". It keeps the large object inside Python and exposes a limited interface. The paper's claimed contribution is not any single capability. It is combining six on one surface, namely typed I/O, pass-by-reference over live objects, code as the action language, programmable loops, explicit object state, and model-callable context APIs.
The paper notes the field is already converging on several of these individually. Shared live state in particular is not NOOA's invention. Nightjar already let prompts operate directly on Python variables and objects. NOOA's move is to package that state inside an agent class, alongside typed methods and code actions.
A generation method does not use one fixed mechanism. NOOA selects a strategy per method. PredictStrategy makes a single model call and returns a structured answer. The default, CodeActStrategy, hands the model an iterative Python REPL for tasks that need inspection, computation, or several dependent steps.
NVIDIA's strategy tutorial makes this split explicit. The choice matters, because a Predict method and a CodeAct method differ in loop ownership and token cost, even though both are generation methods.
In a CodeAct method the model writes Python in a persistent, Jupyter-style REPL, with access to self and its helper methods. Variables created in one generated cell remain available in later cells. The model can build a filtered working set once and reuse it as the method runs. A Predict method returns a typed value directly without executing code.
CodeAct is where pass-by-reference pays off, though the payoff is narrower than it first sounds. The Python runtime retains the event store or dependency graph instead of placing a full JSON copy in the prompt. But the model still needs a model-facing route into that object, and the size of each returned preview or helper result still matters. The object stays outside the prompt. Anything shown to the model still consumes context.
One further qualification should not be overstated. The model-written Python controls only local flow, meaning loops, branching, object access, and tool composition. It runs inside an inference-and-validation cycle that NOOA's harness still owns. Control has layers, and NOOA moves the inner layer to the model, not the whole loop.
To see what that collapses, place the same operation side by side. Updating the incident record with typed tool calls takes several steps. It means a schema, an emitted call, deserialization, a store mutation, and re-serialization back into context.
# Typed tool calls: state crosses the boundary as JSON, twice
UPDATE_TOOL = {"name": "update_record",
"parameters": {"service": "string", "status": "string"}}
def handle(call): # runtime deserializes the call
rec = store.load(call.incident_id) # state lives in an external store
rec.services[call.service] = call.status
store.save(rec)
return json.dumps(rec.summary()) # serialized back into the transcript
In NOOA the same update is a mutation on a live field. The model writes it in the REPL, and it never leaves the process.
# NOOA generation method: the record is a live object, mutated in place
self.record.services[service] = status # no schema, no round-trip
The typed version is more portable and its boundary is explicit. The NOOA version skips two serialization steps and a store round-trip. What the second version gives up is the rest of this section.
What Moving to Objects Actually Trades
NOOA's paper reports respectable results on SWE-bench Verified, Terminal-Bench 2.0, and ARC-AGI-3.
But a benchmark score is the product of a model, a prompt, a tool design, and a runtime at once. It cannot isolate the object model as the cause. That is why what follows reasons about the mechanism instead.
On the plus side, the four pressure points ease in ways you can trace to the mechanism.
The clearest gain is the one most easily overstated. Live objects move the serialization boundary; they do not remove it. A large object can stay in Python memory while CodeAct queries it through bounded methods and keeps small intermediate variables in its REPL.
But helper outputs still enter the model's working context, so an unbounded search result recreates the same problem inside a different interface. NVIDIA's tutorial explicitly asks the user to keep tool results small.
Dynamic control flow and dependent actions become ordinary Python in the REPL, rather than a narration of one call at a time. And the policy boundary sharpens. Deterministic rules stay in ordinary methods, judgment goes in generation methods, and a typed return value defines "done".
CodeAct also carries a fixed prompt cost. Its prompt must describe the execution context, the Python tool, the iterative loop, and the typed return mechanism. PredictStrategy omits that machinery and suits bounded classification or extraction.
CodeAct suits work where the model must inspect data, compute locally, branch, or combine dependent operations. Comparing NOOA with typed tools therefore requires a strategy-matched comparison. Weigh typed structured output against a Predict method, and a multi-step typed-tool loop against a CodeAct method. Pitting a one-call classifier against a full CodeAct REPL measures runtime overhead, not the object model.
CodeAct makes the design's most contestable choice, and it has a credible opponent. It gives the model programmable control inside a generation method, though only of local flow, since the harness still owns the outer inference-and-validation loop.
Predict makes no such move, as it is one prediction with no programmable loop. LLM-as-Code would pull even that inner control back. They argue that model-controlled loops, branches, and sequencing cause token growth, control-flow errors, and unreliable termination. They keep control flow in the program and call the model only for judgment.
Both approaches keep deterministic work in ordinary code. They split on how much of the loop the model should hold, which is this article's thesis in miniature. The object model bets the model should hold the inner layer, where judgment and computation interleave. Reasonable engineers are betting on keeping it out even there.
None of that is free, and the costs are the ones token counts never show. Object fields provide explicit working state. They do not by themselves make a live object graph recoverable after a process restart.
Cross-session recovery still means reaching for NOOA's optional memory facilities or another persistence layer. This is the trap to watch in any comparison. It is easy to credit the object model for skipping serialization. It is easy to forget that graph runtimes make checkpointing a first-class mechanism, even if persistence there needs configuration and serializable state, and that file-based agents leave their work on disk.
Python objects also do not cross language or network boundaries cleanly. Distributed execution therefore reintroduces the very serialization the design avoided locally. Mutable object state complicates deterministic replay and debugging. And a large agent class tends to accumulate unrelated responsibilities. It is the ordinary entropy of object-oriented code, just presented as an agent.
Match the Model to the Workload
I would not conclude with a ranking because the four models answer different questions. The useful output is a mapping.
Live objects fit the fourth row. That means work inside one Python process that leans on rich typed structure. Pass-by-reference and code-as-action pay off there, and the process-bound costs are tolerable, because the work was never going to span services. Push that same agent toward durability, distribution, or a hostile input surface, and those costs move to the foreground. That is why the other three models persist.
The trade is clearest when NOOA sits beside a framework built on the opposite instinct. Agent libOS, a recent research prototype, starts from the same premise this piece opened with, that a chat loop plus a tool registry is not a runtime. But instead of collapsing the runtime into a Python object, it makes the boundaries explicit. It treats an agent as a process with checkpoints, approval queues, and audit records, under one rule.
What the model can see may change freely, but what it is authorized to do changes only through audited primitives. That is directness traded for control and audit. Neither instinct is wrong.
Which returns us to the opening question. Frameworks keep rebuilding the runtime for one reason. Tool calling defined an action boundary and called it an agent. It left the loop, the state, the contracts, and the failure handling for everyone to reinvent.
So the useful takeaway is not which framework won, since none did. It is which two questions to ask before you pick one. Which layer of the loop should the model own, and how much of it? And where must state survive, whether only as working memory for the length of a process, or across crashes, restarts, and service boundaries?
So judge the next agent framework less by how many abstractions it removes. Judge it more by which runtime obligations it makes explicit.