TL;DR
Agent S is a state-of-the-art agentic framework that enables AI to interact with computer GUIs autonomously. By combining hierarchical planning with a multi-level memory system—leveraging both live web searches and past experiences—it nearly doubles the performance of previous models on the OSWorld benchmark.
What Problem Does This Paper Address?
While Large Language Models (LLMs) excel at processing text, they struggle to "act" in the visual, dynamic world of a computer desktop. Asking an AI to "calculate total sales in LibreOffice and generate a chart" presents three massive hurdles:
- Domain Knowledge: The agent might not know the specific shortcuts, formulas, or menu layouts of a niche software package.
- Long Horizons: Complex tasks require dozens of precise clicks and keystrokes; one wrong move can derail the entire process.
- Dynamic Interfaces: GUIs are non-uniform. Pop-ups, loading screens, and varying resolutions make precise "grounding" (knowing exactly where to click) incredibly difficult.
Current agents often get lost or fail to understand visual feedback. Agent S bridges this gap by mimicking human learning: looking up instructions when stuck and remembering what worked in the past.
Methods: How Agent S Works
The researchers introduced two core innovations to make Agent S more capable: experience-augmented hierarchical planning and a specialized Agent-Computer Interface.
1. Experience-Augmented Hierarchical Planning
Agent S utilizes a "Manager-Worker" architecture to handle complex tasks:
- The Manager handles high-level strategy. When given a task, it performs an Online Web Search to find "how-to" guides and retrieves Narrative Memory (summaries of similar past tasks). It then breaks the overarching goal into manageable subtasks.
- The Worker executes these subtasks. It uses Episodic Memory to recall specific, step-by-step actions that succeeded previously. A "Trajectory Reflector" monitors the worker to prevent it from getting stuck in infinite loops or repeating mistakes.
2. Agent-Computer Interface (ACI)
Instead of forcing the AI to guess pixel coordinates on a raw image, the ACI provides a "dual-input" view. It combines the screen's visual output with a linearized accessibility tree—a text-based map of every button and field on the screen, each assigned a unique ID. The agent’s action space is "bounded" to human-like primitives (e.g., click(ID), type(text)), making its reasoning more reliable and execution safer.
Key Insights and Results
The framework was primarily evaluated on OSWorld (a comprehensive benchmark with 369 tasks across Ubuntu Linux) and WindowsAgentArena (to test cross-OS generalization).
Agent S set a new State-of-the-Art (SOTA) record:
- OSWorld Success Rate: It achieved an overall 20.58% success rate, representing a massive 83.6% relative improvement over the previous best baseline (11.21%).
- Task-Specific Gains: It showed particularly strong gains in "Professional" (36.73%) and "Daily" (27.06%) categories, where domain knowledge from web searches is most critical.
- Cross-OS Generalization: On WindowsAgentArena, it achieved an 18.2% success rate, outperforming the specialized NAVI agent (13.3%) despite Agent S being primarily designed for Linux.
Ablation studies revealed that Online Web Search was the single most important component; without the ability to look up software-specific instructions, performance plummeted. Furthermore, Narrative and Episodic memories create a powerful "self-supervised" loop of improvement, allowing the agent to learn from its own successes and failures over time.
Limitations and Future Work
Despite this leap forward, Agent S still fails on a majority of the hardest tasks. The authors identified three main areas for improvement:
- Execution Errors: 79% of failures were due to the agent making incorrect decisions during a subtask or failing to transition smoothly between steps.
- Grounding Accuracy: Even with the accessibility tree, the agent sometimes clicks the wrong element (e.g., clicking a text label instead of the adjacent checkbox).
- Efficiency: Currently, the agent can be slow and take many steps to complete a task. Future work will focus on "shortest-path" planning to make the agent faster and more cost-effective.
The researchers have open-sourced the code, inviting the community to help refine how AI autonomously navigates our desktops.
Summary updated