Agent Harness Outside the Sandbox: Durable Execution & Cold Starts

Mendral's blog argues that the agent harness — the loop that drives an LLM by sending prompts, executing tool calls, and feeding results back — should run outside the sandbox, especially for multi-user agents. They contrast two architectures and detail the three challenges they solved when adopting the outside model.
Two Architectures
- Harness inside the sandbox: The loop lives in the same container as the code it works on. Tool calls (bash, read, write) execute locally. Skills and memories are files on the container's filesystem. This is what Claude Code does locally. Simple execution model, but credentials are inside the sandbox, the sandbox is the session (losing it loses progress), and multi-user becomes a distributed filesystem problem.
- Harness outside the sandbox: The loop runs on the backend and calls into a sandbox over an API to execute tools. Credentials stay out of the sandbox (no permission model needed). Sandboxes can be suspended when idle, become cattle (survive failures), and multi-user sharing is a shared database problem, not a distributed filesystem one.
Three Challenges Solved
- Durable execution: Agent sessions can run hours and must survive deploys and failures. Mendral uses Inngest for checkpointing — each turn is a step, and the loop picks up where it left off if the server restarts.
- Sandbox lifecycle with low cold starts: The loop is suspended most of the time (e.g., during LLM calls). They use Blaxel to resume sandboxes from standby in ~25ms, avoiding seconds-long cold starts during interactive turns.
- Filesystem abstraction: With harness and sandbox on different machines, a shared filesystem is no longer available. Mendral notes they had to handle this, but the post focuses on the first two as the key solved problems.
The post concludes that the outside model is superior for multi-user setups despite the complexity of durable execution and cold start handling.
📖 Read the full source: HN AI Agents
👀 See Also

AI Models Lack Self-Knowledge of Their Own Tools and UI
AI models like ChatGPT and Claude often provide incorrect or outdated information about their own features and interfaces, such as denying new slash commands exist or describing old UI versions, because they're trained on past snapshots while products evolve constantly.

Synthetic announces major pricing restructuring with significant rate limit changes
Synthetic is replacing its Standard and Pro tiers with subscription packs at $30/month, offering 135 messages per 5 hours per pack. Existing Pro users will see their 1,250 messages per 5 hours reduced to 335 messages for the same $60/month price.

Federal Agencies Ordered to Cease Using Anthropic AI Technology
President Donald Trump has ordered U.S. government agencies to immediately stop using technology from AI company Anthropic. The order comes as Anthropic faces pressure from the Defense Department regarding usage restrictions on its AI models.

Claude Code v2.1.98 adds Vertex AI wizard, security fixes, and subprocess sandboxing
Claude Code v2.1.98 introduces an interactive Google Vertex AI setup wizard, adds subprocess sandboxing with PID namespace isolation on Linux, and fixes multiple security vulnerabilities including Bash permission bypasses and arbitrary code execution risks.