The question: how to build and test agents that work through software

According to the authors, existing agent frameworks generally provide three things: interfaces through which agents act on the world (such as JSON-based function calls or code execution), environments in which they operate, and interaction mechanisms between humans and agents or among agents.

The authors start from the view that software is the most powerful way humans currently act on the world. It underpins everything from logistics to scientific research, and tooling for developing and using it already exists, so they argue that it also makes an ideal interface for agents. They then note that building agents that can develop software brings its own difficulties, and they pose three questions:

  • How can agents effectively create and modify code in complex software systems?
  • How can they be given tools to gather information on the fly, for debugging or for what a task requires?
  • How can development be kept safe and free of negative side effects on the user's systems?

OpenHands answers with five features: an event stream that connects user interfaces, agents and environments; a runtime environment consisting of a Docker-sandboxed operating system with a bash shell, a web browser and an IPython server; an interface for acting on that environment much as human engineers do (creating and editing complex software, executing arbitrary code, browsing the web); multi-agent delegation that divides work among specialized agents; and an evaluation framework for measuring results across varied tasks.

The authors stress that this is not only a conceptual framework but includes an immediately usable implementation. At the time of writing, its agent hub holds more than 10 implemented agents. Users interact through a chat-based interface that shows the agent's current actions and accepts real-time feedback (Figure 1 of the paper shows a screen for viewing files, checking executed commands and Python code, and watching the agent's browser activity). A footnote says the initial inspiration came from the AI software engineer Devin, and that community contributions have since extended the platform to uses beyond software engineering. [Source: §1, Figure 1, footnote 1, pp. 1–3]

The core design: connecting everything through a history of actions and observations

Open full-size figure ↗Scroll horizontally ↔

Figure 2, original paper p. 3: overview of OpenHands. On the left, the agent abstraction; in the centre, the event stream that records actions and observations; on the right, the runtime that executes actions and returns observations.

Figure 2 shows the three main components of OpenHands. The Agent on the left takes the history and produces the next action. The Event Stream in the centre records every action and observation. The Agent Runtime on the right executes actions and returns observations. The lower left of the figure states the relationship in short form:

  • Event Stream: List[Action_1, Observation_1, Action_2, ...]
  • Agent: Event History -> Action (produces an action from the history)
  • Runtime: Action -> Observation (executes an action and returns an observation)

The paper has no numbered equations. These three lines are the most formal statement of the design's skeleton.

The centre of the figure is a worked example. A user asks for a list of the numbers from 1 to 10 and a web page that displays it on port 5000 ([1] Message). The agent runs create_file('app.py') in IPython ([2]) and observes that the file was created ([3]). It then writes Flask code with edit_file ([4], [5]), starts python3 app.py in the background from bash and reads the log ([6], [7]), and finally opens http://127.0.0.1:5000 in the browser and observes the output [1, 2, 3, ..., 10] ([8], [9]). Editing, running and checking all sit on the same single record.

The design's terms are defined as follows.

  • State: a data structure holding the information relevant to the agent's execution. Its core is the event stream, a chronological record of past actions and observations that includes the agent's own actions and the user's instructions and feedback. It also carries the accumulated cost of calls to LLMs (large language models), metadata for tracking multi-agent delegation and other execution parameters.
  • Action: IPythonRunCellAction and CmdRunAction execute arbitrary Python code and bash commands inside the sandbox. BrowseInteractiveAction operates a web browser through a domain-specific language for browsing introduced by BrowserGym (the body text of §2.1 spells it BrowserInteractiveAction). The authors say these were chosen as primitives covering most of what human software engineers and analysts do.
  • Observation: a description of a change in the environment, such as an execution result or a message from the user.

The underlying idea comes from CodeAct, earlier work by some of the authors. By basing action on "running a program" rather than on calling pre-registered tools, tools in different forms, such as Python functions or REST APIs, can be handled through the same action. The authors claim this approach is powerful and flexible while being reliable and easy to maintain. It also remains compatible with existing tool-calling agents that need a predefined list of tools: a calculator can be written as a Python function and offered through JSON-style function calling. If no suitable API exists, the agent can create a tool itself by generating a Python function.

Open full-size figure ↗Scroll horizontally ↔

Figure 3, original paper p. 4: a minimal example of implementing an agent in OpenHands. The step function builds messages from the history, parses the LLM's response and returns the next action.

The heart of writing a new agent is the step function. In the MinimalAgent of Figure 3, reset sets the system message and step(state) does the following: it turns the action and observation pairs in state.history into a list of messages, calls the LLM, parses the response and, depending on the content, returns one of AgentFinishAction, CmdRunAction, IPythonRunCellAction, BrowseInteractiveAction or MessageAction. Nothing in it says how actions are executed. That is the authors' aim: developers can concentrate on the agent's behaviour and decision logic and leave the details of execution to the runtime. [Source: §2, §2.1, Figure 2, Figure 3, pp. 3–4]

The runtime: a Docker sandbox and an API that executes actions

The Agent Runtime is the environment that gives an agent a range of actions comparable to a human developer's. For each task session it starts a Docker container sandbox, which the authors describe as securely isolated, and executes every action from the event stream inside it. A configurable workspace directory containing the files the user wants worked on is mounted into this sandbox.

Inside the container, an action execution API server listens for execution requests from the event stream. OpenHands sends actions through this REST API and receives the results as observations. The server maintains three things:

  1. A bash shell connected to the operating system environment (defined by the Docker image).
  2. A Jupyter IPython server that handles interactive Python execution requests and returns results to the event stream.
  3. A Chromium browser based on Playwright. It accepts the primitives defined by BrowserGym, such as navigation, clicking, typing and scrolling, and returns observations including HTML, the DOM, the accessibility tree (a structured representation of page elements intended for assistive technology), a screenshot and the open tabs.

Users can supply any Docker image. OpenHands installs the action execution API into that image, which is how agents can run on operating systems with different software environments.

Open full-size figure ↗

Figure 4, original paper p. 20: how the runtime works. The OpenHands backend builds a runtime image from the user's Docker image and talks over a REST API to the Runtime Client inside the launched container.

Appendix F explains the mechanism in more detail (Figure 4). The workflow has six stages: the user supplies a base Docker image; OpenHands builds an "OH runtime image" from it (whose main addition is the "runtime client", the API server of §2.2); on start-up, a container is launched from that image; the backend (runtime.py) and the client communicate over a RESTful API; the client executes actions inside the sandboxed environment; and the results return to the event stream as observations. The client also manages the sandbox's state, including the current working directory and loaded plugins, and formats observations consistently. In the figure, the backend spawns the EventStream and the Agent, while the Runtime Client inside the container initializes the Browser, the Bash Shell and Plugins (which in turn initialize the Jupyter Server).

Runtime images carry two kinds of tag.

  • A hash-based tag (for example runtime:abc123def456) comes from the MD5 hash of the build folder, which contains the source code of the runtime client and its dependencies and the Dockerfile. An identical hash guarantees the image was built from exactly the same source code and Dockerfile, which provides reproducibility.
  • A generic tag (for example runtime:oh_v0.9.3_ubuntu_tag_22.04) points to the latest build for a combination of OpenHands version and base image. It is updated with each new build, even when the source code changes, and serves as a stable reference.

The build decision is shown in the flowchart of Figure 5 in the paper. The system converts the base image name, generates the build context and computes its hash. If an image with that hash exists, it is reused as is. If not, the system looks for the generic-tagged image; if found, it rebuilds on top of it, saving time on installing dependencies. If neither exists, it builds from scratch from the original base image, and the new image receives both tags. [Source: §2.2, §F, Figure 4, Figure 5, pp. 4–5, 20–22]

AgentSkills: how far to expand a shared toolbox

Work on SWE-Agent showed the importance of a carefully crafted Agent-Computer Interface (ACI, a set of specialized tools through which an agent operates a computer). The authors point out, however, that creating, maintaining and distributing many tools across different agent implementations is a heavy burden. Their response is the AgentSkills library.

Its construction is simple: tools are functions in a Python package. They are imported automatically into the Jupyter IPython environment, so any agent can use them through the core IPythonRunCellAction. Since writing a Python function is enough to create a tool, the authors argue, the barrier for community contributions drops.

The distinctive part of the design is its clarity about what stays out. The authors do not wrap every Python package and re-teach agents how to use it. An LLM already knows how to read a CSV with pandas, for instance, so no tool is built for that. A new skill is added only when one or both of the following hold:

  1. It is not easy for an LLM to achieve by writing code directly (such as editing code and replacing particular lines).
  2. It involves calling an external model (such as a speech-to-text model or a model for code editing).

Appendix I lists 16 functions as of OpenHands v0.6 (this article's count). For viewing and editing files: open_file, goto_line, scroll_up, scroll_down (moving by 100 lines), create_file, and edit_file (replacing lines start through end of the open file). For searching: search_dir, search_file, find_file. For reading documents and media: parse_pdf, parse_docx, parse_latex, parse_pptx, parse_audio (defaulting to whisper-1), parse_image, and parse_video (defaulting to every 30 frames). The editing tools are adapted from SWE-Agent and Aider, and image reading uses vision-language models such as GPT-4V. [Source: §2.3, §I, pp. 5, 23–26]

Delegation and the agent hub

For cooperation among agents there is a dedicated action, AgentDelegateAction, which lets one agent hand a specific subtask to another. In the paper's example, the generalist CodeActAgent, which has limited support for web browsing, delegates complex activity such as navigating, clicking buttons and submitting forms to the specialized BrowsingAgent.

Built on the agent abstraction, AgentHub collects community-contributed implementations. Users can choose from them, and they also serve as baselines for different tasks. The main ones are these:

  • CodeActAgent: the default generalist agent. At each step it either talks to the human in natural language (for clarification or confirmation, for example) or executes bash commands, Python code or the browser language. With this general action space, versions from v1.5 onward are described as able to edit files, browse the web, run programs and more.
  • BrowsingAgent: a generalist web agent meant as a simple yet effective baseline for web tasks. It resembles the WebArena agent, with improved observations and actions, and its prompting is described as zero-shot (no worked example of the task to be solved; the paper does not define the term).
  • GPTSwarm Agent: based on research that builds agent systems from optimizable graphs. Nodes represent individual operations and edges represent paths of collaboration and communication, and both can be optimized automatically.
  • Micro Agent: an agent specialized for a particular task that reuses most of the implementation of an existing generalist agent. It lowers the barrier to agent development and lets the community share prompts that work well.

Appendix H notes that the in-context demonstration for CodeActSWEAgent is adapted from SWE-Agent's released trajectory (a recorded sequence of agent steps). [Source: §2.4, §3, §H, pp. 5–6, 23]

Inside browsing: the action vocabulary and the prompt

Appendices J and K give concrete material for anyone building web agents. The main action vocabulary is the set of functions defined by BrowserGym v0.3.4. The authors group them into agent control, navigation, page element-based, coordinate-based and tab-related actions, and note that they can be configured to use only a subset. The main functions can be arranged as follows (the grouping below is this article's).

  • Agent control: messaging the user (send_msg_to_user), reporting that instructions are infeasible (report_infeasible) and waiting (noop).
  • Page element-based: fill, check, uncheck, select_option, click, dblclick, hover, press, focus, clear, drag_and_drop, upload_file.
  • Coordinates and keyboard: scroll, mouse_move, mouse_click, mouse_drag_and_drop, keyboard_press, keyboard_type and others.
  • Navigation and tabs: goto, go_back, go_forward, new_tab, tab_close, tab_focus.

The example prompt in Appendix K shows how the information BrowsingAgent receives at each step is organized: instructions, the goal, the available actions (16 types in this example), the current accessibility tree, the previous actions, and a short example of how to write the reply. Each element in the tree carries a number, as in [10] button 'Click me', and the agent acts on that number, as in click("10").

Two practical touches are described. First, a sequence of actions that needs no feedback from the page can be issued in one turn, which could save turns in cases such as filling in a username and password and submitting a login form. Second, for the WebArena evaluation: because some tasks are judged by an exact match on the agent's message back to the user, an example of replying with only a concise answer is added to the prompt so that extra text does not cause a failure. [Source: §J, §K, pp. 26–38]

Comparison with other frameworks

Open full-size figure ↗Scroll horizontally ↔

Table 1, original paper p. 6: the authors' comparison of agent frameworks. Rows are frameworks, columns are nine features; a check means the feature is present and a cross means it is not.

Table 1 compares OpenHands with 11 frameworks on nine features: a graphical user interface, a standardized tool library, built-in sandboxing and code execution, a built-in web browser, multi-agent collaboration, human-AI collaboration (such as interrupting during a task to give further instructions), an AgentHub, an evaluation framework, and Agent QC (tests that keep the framework's software quality). OpenHands has a check in every column. By this article's count, the next highest is AutoGen, with seven of nine (lacking the interface and Agent QC). The software-engineering specialists AutoCodeRover and SWE-Agent have only sandboxing and code execution. A note on LangChain's sandbox and browser entries says there is no native support but third-party commercial options exist.

The related-work section frames the landscape this way. Auto-GPT uses LLMs to decompose goals into executable steps, MetaGPT emphasizes standardized operating procedures, and AutoGen provides a conversation framework for interactive systems. LangChain and LangGraph offer foundational building blocks with basic runtime support, CrewAI focuses on orchestrating multi-agent communication, BrowserGym on web browsing, and DSPy on prompt optimization. AutoGen can execute Python and bash, though the authors describe its command execution as stateless, and CrewAI's code interpreter as sandboxed but limited. In software development, ChatDev automates a waterfall-like lifecycle, AutoCodeRover addresses GitHub issues through code search and syntax-tree manipulation, and AgentCoder refines generated code iteratively with testing and feedback. [Source: Table 1, §C, pp. 6, 18–19]

Human collaboration and the stance on safety

Besides the command line, OpenHands has a graphical interface that visualizes actions such as browsing the web and executing commands. Users can interrupt at any moment to give additional feedback or instructions. Because the interface connects directly to the event stream to control and display agents and runtimes, it is described as agent- and runtime-agnostic. The upper left of Figure 2 also shows a web UI and IDE plugins among the entry points.

In their ethics statement the authors acknowledge that most AI agents today are still research artifacts that cannot reliably perform complex, long-horizon tasks in the real world. They add that security risks to society may grow as performance improves and deployment spreads, and they name three ways OpenHands helps mitigate this: systematic evaluation can find risks before wide deployment, the platform facilitates human-agent interaction instead of unsupervised autonomy, and researchers worldwide can access strong agents for safety research (the last is stated as a hope). [Source: §B, §D, Figure 2, pp. 3, 18–19]

Quality control: integration tests with a mocked LLM

Unlike an LLM with its simple input and output, an agent is complex software, and small errors can damage final task performance. A full benchmark suite is the ultimate measure of performance degradation, but it is too slow and expensive to run for every code change. By the authors' figures, a SWE-Bench Lite evaluation with gpt-4o costs about $600, and the full 2,294 instances of SWE-Bench come to $6.9k at a conservative estimate of $3 each.

The authors therefore built an end-to-end testing framework that combines integration testing from software engineering with LLM mocking (returning fixed responses in place of a real model).

  • Defining a test: developers define a task and the expected result. For example, a task corrects typos in a document called bad.txt, and the output is compared with a predefined gold file.
  • Deterministic behaviour (the same result every time): all LLM calls are intercepted and answered with predefined responses based on exact prompt matches. This removes variability in results and reduces cost.
  • Regeneration on change: prompt-response pairs are generated and stored by a script. Routine tests try to reuse existing responses by slightly adjusting the prompts, while substantial changes that affect how tasks are handled require regenerating the pairs with real LLMs.

The authors name three benefits. The stored pairs make prompt changes traceable and help new team members understand LLM interactions. Tests run automatically on every pull request and every commit to the main branch across multiple environments and agents, including Linux and Mac and local, SSH and exec sandboxes. And they catch errors in prompt generation, message passing and sandbox execution. [Source: §E, footnote 2, footnote 4, pp. 7, 19]

Evaluation design and overview

The authors integrated 15 established benchmarks into OpenHands (Table 2 of the paper).

  • Software: SWE-Bench (fixing GitHub issues), HumanEvalFix (fixing bugs), BIRD (text-to-SQL), BioCoder (bioinformatics coding), ML-Bench (machine learning coding), Gorilla APIBench (calling software APIs), ToolQA (tool use).
  • Web: WebArena (goal planning and realistic browsing), MiniWoB++ (short trajectories on synthetic web interfaces).
  • Miscellaneous assistance: GAIA (tool use, browsing, multiple modalities), GPQA (graduate-level questions that cannot be answered by search alone), AgentBench (operating system interaction through bash), MINT (multi-turn maths and code problems), Entity Deduction Arena (state tracking and strategic planning), ProofWriter (deductive logic reasoning).

The authors say they compare against open-source, reproducible baselines that do not hand-engineer prompts around the benchmark content. Results are given as a success rate and an average cost. All SWE-Bench results are reported without the hint text that suggests how to solve each problem.

Open full-size figure ↗Scroll horizontally ↔

Table 3, original paper p. 7: a selection of the authors' evaluation results. The upper blocks are existing agents in each area, the lower block OpenHands agents. Values are success rates (%). The 53.1 marked with an asterisk comes from CodeActAgent v1.5.

Table 3 gives the overview. The authors' claim is that OpenHands agents are not at the top in every category but are designed for generality, and that the same CodeAct agent, without changes to its system prompt, shows competitive performance across three categories: software development, web interaction and miscellaneous tasks. They consider this especially significant next to baselines designed and optimized for specific categories.

The table's values show the following. On SWE-Bench Lite, the 26.0 of CodeActAgent v1.8 with claude-3-5-sonnet falls just below Agentless (27.3), Moatless Tools (26.7) and Aider (26.3), and above AutoCodeRover (19.0) and SWE-Agent (18.0). On WebArena, its 15.3 is short of Auto Eval & Refine (20.2) and AutoWebGLM (18.2) and slightly above WebArena Agent (14.4). On GPQA, 53.1 (v1.5, gpt-4o) and 52.0 (v1.8, claude-3-5-sonnet) exceed the best few-shot Chain-of-Thought value (a method that shows a few examples with their reasoning) of 38.8. The 32.1 on GAIA belongs to GPTSwarm v1.0, not CodeAct, and is set against AutoGPT's 13.2. The SWE-Bench Lite value for gpt-4o-mini is given as 6.3 in Table 3 and 7.0 in Table 4. [Source: §4, §4.1, Table 2, Table 3, Table 4, pp. 6–8]

Results: software engineering

Open full-size figure ↗Scroll horizontally ↔

Table 4, original paper p. 8: results on the seven software benchmarks. Each block heading gives the number of instances, and each row gives a success rate (%) and an average cost (USD).

The conditions and results in Table 4 are as follows.

  • SWE-Bench Lite (300 instances): agents resolve real GitHub issues through file editing and code execution, judged by a test suite that includes the tests added with the human fixes. For cost reasons this canonical subset is the default instead of the full 2,294 instances. CodeActAgent v1.8 reaches 26.0% with claude-3-5-sonnet ($1.10), 22.0% with gpt-4o ($1.72) and 7.0% with gpt-4o-mini ($0.01). The comparisons are SWE-Agent at 18.0% ($1.67), AutoCodeRover at 19.0% and Aider at 26.3%. The authors call this resolve rate competitive with other open-source software-engineering specialists.
  • HumanEvalFix (164 instances): agents fix bugs in Python functions, where the bugs are created so that test cases fail. Agents self-debug over several turns with feedback from test execution, and the setup from the original paper is followed, measuring with pass@k (a success if any of k attempts succeeds; the value of k is not given in the text). CodeActAgent v1.5 reaches 79.3% with gpt-4o ($0.14) and 20.1% with gpt-3.5-turbo-16k ($0.11). Among prompting-only approaches (Prompting, 0-shot), StarCoder2-15B is highest at 48.6%, and the authors describe their result as almost doubling it (by this article's calculation, the ratio of the table values, 79.3 to 48.6, is about 1.6). SWE-Agent's 87.7% is higher, but the authors point out that SWE-Agent shows the model a full demonstration of a successful fix of one of the bugs in the test data (1-shot), whereas OpenHands uses no demonstration (0-shot). Because all bugs were validated by humans, they consider 100% entirely feasible and aim for it in future versions.
  • BIRD (300 instances): text-to-SQL on realistic, large-scale databases. They select 300 samples from the dev set and measure execution accuracy. The authors extend the setting to allow multiple turns, so the agent can correct its query after seeing execution results. Results are 47.3% with gpt-4o ($0.11) and 42.7% with gpt-4-1106-preview ($0.19). Prompting-only approaches reach 31.3% with CodeQwen-7B-Chat and 18.3% with CodeLlama-7B-Instruct.
  • ML-Bench (68 instances): a benchmark of 9,641 tasks spanning 169 machine learning problems across 18 GitHub repositories, of which the quarter subset is used, following the original paper (Table 4 gives 68 instances; the paper does not explain how that count relates to 9,641). Results are 76.5% with gpt-4o ($0.25), 58.8% with gpt-4-1106-preview ($1.22) and 13.2% with gpt-3.5-turbo-16k ($0.12). Aider reaches 64.4%, SWE-Agent 42.6% ($1.91), and prompting approaches with BM25 retrieval (keyword-based document search) at most 26.2%.
  • BioCoder (Python, 157 instances): generating bioinformatics code that has been masked out of existing repositories (157 Python and 50 Java functions overall). The authors say they removed the relevant code context found in the original prompts in order to demonstrate OpenHands' context retrieval, self-debugging and reasoning. The result is 27.5% with gpt-4o ($0.13); prompting-only approaches reach 12.7% with gpt-4-1106-preview and 11.0% with gpt-3.5-turbo.
  • Gorilla APIBench (1,775 instances): questions about API usage on TorchHub, TensorHub and HuggingFace, judged by whether the API call is in the correct domain. Results are 36.4% with gpt-4o ($0.04) and 21.6% with gpt-3.5-turbo-0125 ($0.002). Prompting-only approaches reach at most 29.7%, and Gorilla, fine-tuned for API calls, reaches 75.0%, well beyond these results.
  • ToolQA (800 instances): tasks on topics such as flight status, coffee prices, Yelp and Airbnb that require text, database, maths, graph, code and system tools. The easy subset, which focuses on single-tool usage, is used. Results are 47.2% with gpt-4o ($0.91) and 2.3% with gpt-3.5-turbo-0125 ($0.03). ReAct reaches 43.1% with gpt-3 and 36.8% with gpt-3.5-turbo.

[Source: §4.2, §4.2.1, Table 4, footnote 2, pp. 7–9]

Results: web browsing

WebArena (812 instances) is a self-hostable benchmark of human-curated tasks in areas such as shopping, forums, developer platforms and content management. It judges by execution, and agents may take any path to the goal. BrowsingAgent v1.0 reaches 15.5% with claude-3-5-sonnet ($0.10), 14.8% with gpt-4o ($0.15) and 8.5% with gpt-4o-mini ($0.01). Among the baselines, Auto Eval & Refine reaches 20.2%, AutoWebGLM 18.2%, WebArena Agent 14.4% with gpt-4-turbo and 6.2% with gpt-3.5-turbo, Patel et al. 9.4% and Lemur 5.3%. The authors assess this as competitive among agents using LLMs with domain-general prompting techniques.

When CodeActAgent v1.8 delegates to BrowsingAgent, the results in the same model order are 15.3%, 14.5% and 8.3%. By this article's calculation, that is 0.2 to 0.3 points below using BrowsingAgent directly.

MiniWoB++ (125 environments) consists of synthetic web interfaces with built-in reward functions. It has no page changes, requires fewer steps and gives low-level step-by-step directions, so it is described as easier than WebArena. Some environments need vision, and many earlier studies focus on a subset, but the authors report the full set and include only baselines evaluated on it. BrowsingAgent reaches 40.8% with gpt-4o ($0.05) and 27.2% with gpt-3.5-turbo-0125 ($0.01), and 39.8% through delegation. The baselines are CC-NET, a trained specialist model, at 91.1%, and Workflow Guided Exploration at 34.6%. [Source: §4.3, Table 5, p. 9]

Results: miscellaneous assistance

  • GAIA (Level 1 validation set, 53 instances): real-world tasks that require reasoning, multi-modal understanding, web browsing and coding; the full benchmark has 466 tasks across three levels. Here the evaluated agent is GPTSwarm v1.0, not CodeAct. It reaches 32.1% with gpt-4o ($0.050) and 30.2% with gpt-4-0125-preview ($0.110), against 13.2% for AutoGPT. The authors say OpenHands' infrastructure greatly simplifies setting up this benchmark, which is usually difficult because of the many tools to integrate.
  • GPQA (diamond set, 198 instances): graduate-level questions that cannot be answered by search alone. CodeActAgent v1.8 with claude-3-5-sonnet reaches 52.0% ($0.065); the same table lists 81.3% for experts, 21.9% for non-experts and at most 38.8% for few-shot Chain-of-Thought. The authors explain that tools such as Python and web search are often useful because they provide accurate calculations and access to information outside what the LLM knows.
  • AgentBench (OS subset, 144 instances): multi-turn operation of a task-specific operating system through bash. Results are 57.6% with gpt-4o ($0.085) and 11.8% with gpt-3.5-turbo-0125 ($0.006), against baselines of 42.4% with gpt-4 and 32.6% with gpt-3.5-turbo.
  • MINT: multi-turn solving with tools and natural-language feedback simulated by GPT-4. Following the original paper, the agent has up to five iterations and two chances to propose solutions. On the math subset (225 instances), gpt-4o reaches 77.3% ($0.070), above the baseline's 65.8%. On the code subset (136 instances), gpt-4o reaches 50.0% ($0.087), below the baseline's 59.6%. With gpt-3.5-turbo-16k the values are 33.8% and 5.2%.
  • ProofWriter (600 instances): the hardest subset, requiring five hops of reasoning. To reduce the impact of semantic parsing errors, the logical forms provided by Logic-LM are used. The result with gpt-4o is 78.8%, close to Logic-LM's 79.6% and above few-shot Chain-of-Thought's 68.1%.
  • Entity Deduction Arena (200 instances): identifying an unknown entity through a series of questions, like the game 20 Questions, averaged over the "Things" and "Celebrities" sets of 100 each. Results are 38.0% with gpt-4o and 24.0% with gpt-3.5-turbo-16k, slightly below zero-shot prompting (40.0% with gpt-4-0314 and 27.0% with gpt-3.5-turbo-0613).

Appendix G gives the GPQA results on three subsets (Table 7). CodeActAgent v1.5 with GPT-4o reaches 53.1% on Diamond, 49.3% on Main and 52.8% on Extended (average $0.054); GPT-4-turbo reaches 51.8%, 47.4% and 42.4% ($0.501); and GPT-3.5-turbo reaches 27.9%, 23.4% and 26.1% ($0.012). Experts score 81.2%, 72.5% and 65.4%, and non-experts 21.9%, 30.5% and 33.9%, so the GPT-4o row is above non-experts and below experts on all three subsets. GPT-4 with search reaches 38.8%, 41.0% and 39.4%. The expert value on Diamond is given as 81.3% in Table 6 and 81.2% in Table 7. [Source: §4.4, §G, Table 6, Table 7, pp. 9–10, 22–23]

Limits stated by the authors and future directions

In their conclusion, the authors acknowledge that challenges remain in developing safe and reliable agents. Appendix A is specific:

  • Agent capability: current agents still struggle with complex tasks, and the authors aim for stronger agents through both training-time and inference-time techniques.
  • Editing long files: current agents suffer a lot when editing long files, and other approaches will be explored.
  • Multiple modalities: predefined skills already cover many file formats, but the authors want a more principled approach through standard IPython and browser integration, such as viewing images and videos with a vision-language model through a browser, or processing XLSX files with code.
  • Web browsing: Auto Eval & Refine, which uses retry on error with prompts from the Reflexion method and task-completion reward models, is to be integrated as an optional component of the browsing agent.
  • Automatic workflow generation: workflows still require substantial hand-crafted work. The authors see graph-based frameworks such as GPTSwarm and LangGraph, which make it easier to incorporate optimization methods such as reinforcement learning and meta-prompting, as groundwork for future versions.

[Source: §5, §A, pp. 10, 17–18]

AI assessment: how to read these results

From here on, the text is an AI reading, not a claim made in the paper.

This is a platform report, not an experiment on the effect of design elements. The paper contains no ablation study (an experiment that removes one component and measures the change) for the event stream, AgentSkills or delegation. The closest comparison is Table 5, which sets BrowsingAgent used directly beside CodeActAgent delegating to it, and that compares two routes to the same browsing agent rather than the value of a component. The statement that the design is powerful and flexible is the authors' account; the benchmark scores alone do not show that these design choices produced the results.

The scope of the "same agent across three categories" claim needs checking. In Table 3's CodeActAgent block, the GPQA value of 53.1 comes from v1.5 while the block is otherwise labelled v1.8, and Tables 4 and 6 report several other software and miscellaneous benchmarks with v1.5. The paper does not say whether the two versions share a system prompt. Table 3's web values match the rows in Table 5 for delegation to BrowsingAgent, so the browsing itself was done by another agent with its own prompt, and the GAIA value belongs to GPTSwarm. Appendix K also shows that for WebArena an example of answering concisely is added to BrowsingAgent's prompt. The authors' claim concerns CodeAct's system prompt, so this addition does not contradict it, but the claim should not be stretched to mean that one fully identical configuration solved all three categories. The same appendix shows short examples of the reply format in a prompt that §3 calls zero-shot. The paper does not define the term, and these examples do not demonstrate how to solve a whole task, so the two statements can coexist if zero-shot means no such demonstration. It does not mean a prompt with no examples at all.

The comparison conditions are not always aligned. Many baseline values come from other models and versions, and execution conditions differ. Some rows do share a model: on ML-Bench, gpt-4-1106-preview gives 58.8% for OpenHands and 42.6% for SWE-Agent. OpenHands is allowed multi-turn correction on HumanEvalFix and BIRD, while the comparison rows include prompting-only approaches. The text does not say whether removing context on BioCoder also applied to the comparison rows. §4 describes the baselines as free of manual prompt engineering based on benchmark content, while the WebArena addition above is a benchmark-specific change to OpenHands' own prompt, though it concerns the answer format. Table 1 is a list of the presence or absence of features the authors chose, and it does not compare the quality or performance of those features.

Results change greatly with the model. With the same CodeActAgent, ToolQA is 47.2% with gpt-4o versus 2.3% with gpt-3.5-turbo-0125, MINT code is 50.0% versus 5.2%, and AgentBench is 57.6% versus 11.8%. The authors do not analyse the cause of these gaps. At the least, the platform's generality does not imply performance that is independent of the model.

Look at the absolute success rates too. A 26.0% on SWE-Bench Lite means roughly three quarters of the issues go unresolved, and about 15% on WebArena means most tasks are not achieved. This is consistent with the authors' own view that agents still struggle with complex tasks.

Some things are not measured. The sandbox is described as securely isolated, but no experiment tests the strength of that isolation; the integration tests look for errors in sandbox execution, not for how strong the isolation is. Long continuous runs and reliability in production are outside the evaluation. The "high test coverage" of the integration tests is also given without a number. The statements that the infrastructure greatly simplifies setting up GAIA and that OpenHands accelerates research and applications are not measured either, and the tables give single values without confidence intervals.

Overall, the paper supports something narrower than "a generalist agent that competes everywhere", but still meaningful. Within Table 3's rows, by this article's count, CodeActAgent's best value ranks fourth of six on SWE-Bench Lite, third of six on WebArena and highest among the listed values on GPQA. The strongest argument for the authors is that every baseline in that table has values in only one column, while CodeActAgent has values in three, which is what a generality claim needs. Against that, the table is the authors' own selection, and the conditions differ as described above. The results therefore read as evidence that an agent on one platform can reach mid-table or better scores in several categories. They do not read as evidence that the design produced those scores or that generalist agents match specialists. An ablation study on the same model, a rerun of the three categories with one agent version and one prompt configuration, or a direct test of the sandbox's isolation could change this assessment.

[Source: §2.2, §3, §4, §5, §A, §E, §K, Table 1, Table 3, Table 4, Table 5, Table 6, pp. 4–10, 17, 19, 35–38]

AI interpretation: where this is useful

This section is also an AI interpretation, not something the authors tested. The features it refers to all describe the point in time shown by this version of the paper.

  • When designing the execution side of an autonomous agent. Separating an agent that "produces an action from the history" from a runtime that "executes an action and returns an observation", joined by one chronological record, is a concrete example of a structure that lets user interfaces and agent implementations be swapped. Keeping accumulated cost and delegation metadata in the state is another point worth referring to.
  • When a tool list keeps growing. The criterion of making skills only from what an LLM finds hard to write itself or what calls an external model is a starting point for deciding when to add tools. The paper offers no quantitative support for its effect, so it needs testing on your own tasks.
  • When a runtime needs to stay reproducible. Combining a hash of the build contents with a generic tag determined by version and base image, and deciding in stages between an exact match, a rebuild and a from-scratch build, can serve as a reference for systems that accept arbitrary base images.
  • When prompt regressions need cheap detection. Integration tests that record and replay LLM responses do not replace a full benchmark evaluation, and the authors themselves treat benchmarks as the ultimate measure of performance. They do suit catching broken prompt generation, message passing and runtime wiring on every change. Allow for the separate maintenance cost of regenerating responses when prompts change.
  • When reporting an evaluation of your own agent. This paper's tables, which give the model, agent version, subset, presence of demonstrations (0-shot or 1-shot), use of hints and cost alongside the success rate, can serve as a format for stating the conditions a comparison needs.

Conversely, these numbers alone do not show that a particular model or your own codebase would reach the same success rates, and they are not sufficient for judging the safety of the isolation or the reliability of long-running operation.

[Source: §2.1, §2.3, §E, §F, Table 4, Table 5, Table 6, pp. 3–5, 8–10, 19–22]