Towards Hyper Agents for Long-Horizon Computer Use: Harness Mechanisms in openJiuwen

Tao Yu, Xinyu Zhang, Kwangyang Chia, Zhiwen Huang, Xiaoneng Xiang, Yangkai Ding, Ruifeng Shi, Zheng Wang, Bingzheng Gan, Lan Hu, Tuo Xu, Hongbo Wang, Qi Ye, Xuefeng Jin, Zhangchun ZhaoarXiv 2026

TL;DR

When AI agents operate real desktop computers over dozens of steps, they don’t usually fail because the underlying model isn't smart enough—they fail because they lose track of their context, make false assumptions about the system, or click slightly off-target and let small errors snowball. Instead of training a new model, the openJiuwen team built a clever "harness" around a frozen, off-the-shelf LLM to manage its memory, pre-check its environment, and verify every click. The result? A 10.1 percentage point jump over Anthropic’s own agent using the exact same model, setting a new high-water mark of 93.5% on the OSWorld-Verified benchmark.

What Problem Does This Paper Address?

Most software has no API; it’s built for human eyes and hands. Computer-Use Agents (CUAs) bridge this gap by looking at screenshots and issuing clicks and keystrokes. However, stringing together dozens of actions across multiple apps introduces three recurring traps:

  1. State and Context Drift: Every step adds a high-res screenshot to the prompt. Soon, stale images crowd out the original instructions. Meanwhile, crucial metadata—like how many steps remain in the budget, whether edits were saved, or if the agent is stuck in a loop—never appears on screen at all.
  2. The Knowledge Gap: Agents dive in blind. They assume an app has a feature it lacks, or look for a file that doesn't exist. Giving an agent documentation "on demand" rarely helps, because an agent doesn't look up what it doesn't know it lacks.
  3. Error Accumulation: Downscaled screenshots cause coordinate rounding errors. Background pop-ups steal window focus. Because GUI outcomes are only partly observable, a silent misclick becomes the corrupted starting state for every step that follows.

Methods

Rather than fine-tuning weights or chaining multiple specialist agents together, the authors keep a single general model (Claude Opus 5) fixed in one unified loop—freely mixing GUI clicks and bash/file commands—and wrap it in three harness mechanisms ("rails") that intercept inputs and outputs at zero extra LLM call cost during execution:

Figure 1: Architecture of our agent. Inside the agent loop, rails around the LLM manage knowledge, context, state, feasibility and validation. Every tool call passes the rails before it reaches the tools.
  • Probing Before Acting (The Gate): Before step one, a read-only pass snapshots the OS, checks named files/apps, loads relevant app guides, and judges whether the task is even possible. It can only abort a task as "infeasible" if it provides concrete probe evidence. Crucially, if the gate quotes a rule from a guide, the harness automatically expands that quote back to its full source paragraph so conditional nuances aren't lost.
  • State and Context Management: To stop context drift, task-wide facts stay pinned at the top (preserving prompt caching), while only the last $w=3$ screenshots are kept in full—older ones become lightweight text placeholders. Before every turn, the harness injects transient notices at the very end of the prompt ("recitation"): remaining step budget, reminders to save after 6 unsaved edits, nudges if it looks 8 times without acting, and an outright refusal to execute an identical desktop action that has already failed 6 times.
Figure 2: Context construction and harness state. The context sent to the model at two consecutive steps of a task, with illustrative values. Task-wide facts sit in the system and first user messages and never change. In the history only the last w = 3 screenshots stay in full: at step t+1 the new step is appended and the oldest full screenshot becomes the placeholder ρ. Notices are built from the harness state zt and the briefing, sent with one call and removed when it returns. The same state lets admission χt refuse a call that keeps failing the same way. Badges: 1 persistent facts and recitation, 2 bounded perception, 3 progress state, 4 repeated failures.
  • Verifying After Acting: Instead of aiming at resized full-screen shots, actions target native-resolution captures of specific windows. The harness ensures the target window is brought to focus (or explicitly fails without clicking), waits 0.8 seconds after acting, and returns a fresh window capture alongside an explicit ✓ or × mark. For saved files, a structured inspector reads disk attributes (fonts, cell formats, sizes) directly rather than trusting how they render on screen.

Datasets

The system requires no training data. It is evaluated on OSWorld-Verified, a benchmark of 361 real-world Ubuntu desktop tasks spanning ten domains: Chrome, GIMP, LibreOffice (Calc, Impress, Writer), Thunderbird, VLC, VS Code, OS tasks, and multi-app workflows (the largest subset, with 93 tasks). No new benchmarks are introduced.

Key Insights and Ideas

  • Systems engineering rivals model scaling: Running the exact same Claude Opus 5 model under the same 100-step budget, openJiuwen beats Anthropic’s reference agent by +10.1 percentage points. How you manage what the model sees matters just as much as the model itself.
  • The "Goldilocks" screenshot window ($w=3$): In multi-app ablations, keeping only the latest screenshot ($w=1$) drops accuracy by 6.6 percentage points because switching windows erases the source window from memory. Keeping all screenshots ($w=\infty$) drops accuracy by 5.5 points because dozens of stale frames confuse the model. Three frames neatly hold both sides of a two-window workflow.
  • Bundled verification saves money, not just steps: Removing post-action window captures didn't tank accuracy in ablations—the model was smart enough to manually request screenshots after clicking. However, doing so burned extra LLM turns, driving up input tokens by 48% and API costs by 57% on GIMP.
  • Pre-probing shines via conventions, not just feasibility: Even without the pre-task gate, the base model caught all 14 infeasible tasks in the OS/GIMP ablation. Where the gate actually saved tasks was by injecting subtle app/OS conventions before the agent committed to a flawed plan.

Key Results

  • 93.5% overall success rate (337.71 / 361) on OSWorld-Verified, outperforming the #1 official leaderboard entry (Intelligence-Indeed Agent at 90.2%) by 3.3 percentage points and Anthropic's Claude Opus 5 agent (83.4%) by 10.1 percentage points.
  • Achieved 100% accuracy on GIMP, LibreOffice Writer, and OS tasks, and led or tied in 9 of 10 domains.
  • Massive domain gains over Anthropic's baseline where hidden file/app state matters most: +20.8 points in OS, +20.0 in Thunderbird, and +17.0 in Impress.

Limitations and Future Work

The authors are candid about their boundaries: all experiments use a single frontier model (Claude Opus 5) and single runs per configuration, meaning 1–2 task swings sit within normal run-to-run variance. Ablations were run on targeted domain subsets rather than all 361 tasks, and the context ablation bundled state notices with window size changes. Furthermore, several harness rules rely on brittle heuristics—for instance, "unsaved edits" only reset on keyboard shortcuts (missing menu-bar saves), repeated failures only trigger on exact argument matches, and the read-only gate shell is enforced by prompt instruction rather than OS-level sandboxing. Future work is not explicitly discussed in the paper.

Summary updated

BibTeX
@misc{yu2026towards,
  author = {Tao Yu and Xinyu Zhang and Kwangyang Chia and Zhiwen Huang and Xiaoneng Xiang and Yangkai Ding and Ruifeng Shi and Zheng Wang and Bingzheng Gan and Lan Hu and Tuo Xu and Hongbo Wang and Qi Ye and Xuefeng Jin and Zhangchun Zhao},
  title = {{Towards Hyper Agents for Long-Horizon Computer Use: Harness Mechanisms in openJiuwen}},
  year = {2026},
  eprint = {2611.36988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36988},
}
Figure