Unreal Agent
TL;DR Highlight
An async tool-call harness cut agent costs up to 40% versus Codex with similar pass rates
Who Should Read
A backend developer worried about token costs and tool-call waiting in coding agents
Core Mechanics
- Tool calls run fully asynchronously
- The model no longer manages waits, polls, or heartbeats for tools.
- Users can steer the agent anytime without waiting for tool calls to finish.
- An in-progress record is logged right away
- On a tool call, an in-progress record is appended to the event log while the tool keeps running in the background.
- When the tool finishes, the result is appended to the session log and the LLM is called.
- Savings come from a light harness and tuned tool output
- It uses simple prompts, token-optimized tool results, and no sub-agents or workflows.
- It packs more heavy tool calls per model turn without spending tokens on polling.
- Up to 40% cheaper than Codex, 20% than Pi
- Compared with Codex and Pi using GPT-6 Astra xhigh.
- The authors attribute small pass-rate differences to benchmark variance.
- Terminal-Bench 4.0: same pass rate, lower cost
- Pass rate is 57.9% for both unreal-agent and the Codex leaderboard.
- Total cost is 1428 for unreal-agent, 2350 for Codex, 1827 for Pi (55.0%).
- Cheaper on SWE-Atlas, DeepSWE, and ALE-CLI too
- SWE-Atlas QnA: 65.8% at 936 versus Codex 63.3% at 1303.
- DeepSWE 1.1: 72.4% at 1367 versus Codex 69.0% at 1633; ALE-CLI: 30.0% at 217 versus Codex 29.0% at 292.
- Existing SDKs motivated the design
- CLI-oriented SDKs assume local sessions and subprocesses, so you build completion, cancellation, and background-task handling yourself.
- The authors find sandbox constraints like allowed hosts, granular tokens, and approval proxies sturdier than harness hooks.
Community Reactions
- Codex wastes tokens on polling, one commenter says
- A commenter says Codex hot-loops on polling tasks it started, a big source of token use.
- They patched their Codex fork and saw savings of similar scale to Unreal's.
- Doubts about the headline chart and the savings
- A commenter noted Unreal ran on Astra xhigh while Codex seemed to run on Astra max.
- Another asked how async tool calls translate into token savings.
- Async already exists, some argue
- A commenter said Crush and Claude Code have async tools, but agents often call wait() with a long timeout and slow down.
- Another noted nohup, parallel tool calls, and sub-agents already work and questioned real speed gains versus appearance.
- PTC comparison and naming concerns
- One commenter said this resembles programmatic tool calling, which is not good across all tasks.
- Several comments worried about trademark trouble with Unreal Engine.
How to Apply
- Measure polling waste in your agent logs
- Count sleep, wait, and status-check tool calls in one session log today.
- Compute their share of input tokens to judge the value of going async.
- Turn long tools into in-progress records
- Make tools that take minutes, such as builds or env setup, return an in-progress result immediately.
- Append the final result to the session log and call the LLM at that point.
- Test the two-result format per provider
- Try the pattern of an in-progress and a final result in one context on each model and provider you use.
- The source reports rejections on some providers, so verify before shipping.
- Move approvals outside the harness
- Consider replacing hook-based approvals with allowed hosts, granular access tokens, and approval-gate proxies.
- Pick one constraint you can enforce in the sandbox and apply it first.
Try It
# Paste into Claude Code or ChatGPT (simplified version of the article's method: diagnose polling waste in agent logs)
Below is a session log from my coding agent. Analyze turns and tokens wasted waiting on tool calls.
{{agent session log}}
Summarize in a table:
1. Count of polling, wait, sleep, and status-check tool calls and their share of all turns
2. Estimated input tokens for those turns (use only values present in the log)
3. Turns that could be saved by returning an in-progress record immediately for long tools and attaching the result on completion
Next step: rerun the same task with an async-style prompt and compare turns and input tokens.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls