Modern AI agents are typically scaffolded with a runtime sandbox, and these Computer-Use Agents (CUA) autonomously run code, use the terminal, take notes, and access the Internet and MCPs – exactly like humans do when interacting with the digital world.
Yet the underlying reasoning and practices remain unclear to most, so let’s dive into popular agent scaffolds like Claude Code and MiniMax Agent, demystifying the design principles and discovering how agents benefit from using a computer.
Why Sandbox?
In short, Context Delegation and Runtime Isolation.
Context Delegation. Even with memory-efficient tricks like KV caching and Linear Attention architectures, long-context reasoning is still a nontrivial challenge to AI agents. Production AI agents are usually packed with bloated tool descriptions and system prompts to cover more case handling and example following. Context length can easily grow to 100k or over 1M in multi-turn agentic trajectories – especially when tool responses contain extraneous data. Growing contexts dilute attention and cause huge memory burden to both training and inference.
Intuitively, you’d want to move episodic context out of the main agent loop using:
- Subagent: Spin up subtasks to invoke another agent. Without sharing a full context, subagents can easily duplicate work, wasting excessive tokens, while over-engineered orchestration introduces inductive bias.
- Filesystem: Use the filesystem to keep todo lists, agent memory, and conditional instructions (aka Agent Skill) that the agent chooses to load into the context when necessary. Sandbox Filesystem is an agent’s extended context through computer-use.
Runtime Isolation. Sandboxing keeps all agent actions in a tightly controlled environment, protecting the host system by isolating potential errors and de-risking real user data or resources.
That isolation is especially critical when executing popular <python> and <browser> tools.

Cursor (Agent mode) running commands in a secure sandbox
Claude Code – More than just Code
Claude Code has gained huge traction in 2025. It was originally built for coding assistance, but Anthropic is clearly steering it toward more general agent use cases. As highlighted in recent podcasts, Claude Code already excels at, or can be extended to, deep research and vertical specialist agents. Andrej has also been tweeting mini projects like agentic home control in the physical world.

Claude Code scaffolding. The agent controls a virtual sandbox with Bash and coding. Context delegated to filesystem (Skills). Tools executed outside the sandbox are implemented as MCP.
Agentic Computer Use
What’s the magic here? Metaphorically, an AI Agent equipped with a Filesystem and Runtime Environment is just a human using a computer – the primary, if not only interface connecting humans to the Digital World. Imagine the action space. ¯_(ツ)_/¯ With that lens, scaffolding an agent turns into OS design:
- Configuring a Linux Docker / VM, or even creating a completely native OS from scratch (yes, there are a few working on it).
- Designing the Filesystem within the sandbox.
- Pre-install some “Apps” for the agents – a Terminal, a Browser, a writing pad … and place some instructions for the agent to refer to before use (Anthropic names it
SKILL.md). - Meanwhile, give agents a “shortcut” to invoke outside endpoints – like credential-related database querying. These fit into the bucket of traditional function-calling or MCP.
- Pre-install some “Apps” for the agents – a Terminal, a Browser, a writing pad … and place some instructions for the agent to refer to before use (Anthropic names it
Claude Code System Prompt
Anthropic still doesn’t publicly share Claude Code’s system prompt and tool implementations in its Claude Agent SDK. However, there’s an interesting thread where people trace and hack Claude Code’s request & response, and reverse engineer the system prompt and its commit diff across versions. From that prompt, we can clearly find some sparks and lessons in agent tool implementations.
For example, Claude Code doesn’t use an interactive browser like browser-use does by default. Instead it splits capabilities into separate WebSearch and WebFetch tools, likely due to speed & efficiency concerns.

Summary of Claude Code’s tools from the hacked system prompt.
Claude Code Filesystem
When locally deployed, Claude Code uses ~/.claude/ for its own sandbox workspace, and it mounts your work project under ~/.claude/projects/.
The scaffold keeps plugins (MCP integrations) and skills in different directories, and also tracks TODO, personalization configs, and metadata like command history and debug logs.

Claude Code’s working filesystem.
MiniMax Agent
MiniMax has been the most surprising AI lab for me this year. It ships the #1 (as of Dec 2025) OSS model on LMArena WebDev at 229B weights, which is considered “small” among parallel flagship models. Meanwhile, the agent scaffold, MiniMax Agent creates surprisingly good apps and reports with prolonged reasoning and autonomous execution. Here’s my favorite trajectory replay.

MiniMax Agent using browser for autonomous app creation (Netflix Clone)
MiniMax Agent has a UI component that lets you navigate the agent’s sandbox filesystem in realtime, and you can prompt the agent to summarize its initial filesystem state. The workspace is a Python-based development environment designed for AI agents with integrated external API access capabilities. Rich modular data sources connect to various third-party APIs including Twitter, Yahoo Finance, TripAdvisor, Pinterest, Patents, Scholar, Commodities, Metals, and Booking.com. None of these live inside the system prompt, which lets the agent fully leverage context delegation in the sandbox.

MiniMax Agent’s working filesystem.
Other Computer-use Agents
Major AI labs have all been building Computer-use Agents, each guided by its own product philosophy. OpenAI seems to have made great progress on Operator and ChatGPT Atlas. I really enjoy the visual presentation and dynamics of the agent sandbox at runtime.

OpenAI Agent using Terminal
When you prompt Operator to describe its filesystem, you’ll observe a complete Linux VM with two working directories – /home/oai containing session data and /openai storing internal “Skills”.
From ChatGPT’s self manifest, the only skill installed is a Browser.

OpenAI Agent filesystem
Beyond OpenAI, numerous teams are pushing here as well. For example, Google AI Studio (Build) can build and test apps from ideas with advanced multimodal capabilities from Gemini, and Manus orchestrates a huge number of subagents and services like browser-use to max out agent action space. I’ll leave the rest of the exploration to readers due to limited time.
Agentic RL
Agent, Action (tools) and Environment (scaffold) are three tightly bound concepts in the traditional literature. Consistency between training (rollout) Gym and inference scaffold is critical to maintain agent performance. However, this consistency has become a luxury since model providers won’t expose training infra, usually resulting in tedious engineering efforts guessing the “right” scaffolding and orchestrations among downstream agent builders.
Most LLMs are trained with vanilla sandbox scaffolds to support evaluation like Terminal-Bench, yet a language model doesn’t natively “know” how to use your sandbox – especially when you want to customize the tools and “Skills”. In this case, RL becomes an effective data-efficient method for your last mile.
Rollout Infra
One key challenge in Agentic RL is to build stable and efficient rollout infra. The additional factor of sandbox and tools like browser impose difficulty in asynchronous runtime efficiency, state management, and security. These rollouts are usually magnitudes more expensive (time and effort) than non-agentic RL like Math CoT. A nice starting point is OpenHands V1 released lately. The architecture of decoupled modules (abstraction, tools, sandbox, and server) provides solid coordination with reusable modules across scaffolding and rollout serving. Besides, Pytorch OpenEnv provides a nice Gymnasium-style endpoint over commonly used agent docker environments.

OpenHands V1 with decoupled modules reusable across rollout and scaffolding.
Reward Design and Training Recipe
Another challenge in Agentic RL is defining the reward function. Computer-use agents usually tackle open-ended tasks like research and app building, which lack unbiased and verifiable scoring mechanisms as in Math and Coding. Meanwhile, vanilla use of LLM-as-judge to generate rewards can easily trap the policy into adversarial distribution from the teacher (Reward Hacking). This is also confirmed in Andrej’s recent interview “RL is terrible”. An interesting approach to mitigate reward hacking in open-ended research is brought by AI2 DR Tulu, where rubrics are buffered and generated on the fly together with policy. The algorithm setups used for Agentic RL generally follow the lessons from long-context RL in LLMs, such as broadening exploration in prolonged steps.

Reinforcement Learning with Evolving Rubrics (RLER)
Conclusion
This post showcases the state of Computer-use Agents – from product to design principles. It elaborates the reasoning and importance of runtime sandbox in AI Agents and briefly introduces the engineering and training challenges. 2026 will be the year of Computer-use Agents – with focus shifting from Prompt Engineering to Sandbox Engineering and RL on custom scaffolds ;)
Citation
Xu, Binfeng. "Demystifying Agent Sandbox". B'Log (Dec 2025). https://billxbf.github.io/posts/demystify-agent-sandbox/