Case Study

How Martian Scales RL-Based Agentic Research With Daytona

95%

faster execution of SWE-Bench Verified

20K+

sandboxes provisioned in one week with Daytona

3

months of engineering time saved

Martian is an AI lab applying interpretability to build safer and more effective agentic LLM systems. Backed by leading VC firms such as NEA and General Catalyst, its research has advanced the understanding and performance of these systems.

Headquarters

San Francisco, CA

Industry

AI Research Reinforcement Learning

Department

Research & Development

Key Features

Sandbox Creation Speed Long‑Running Sandboxes Infrastructure Scale

Learn how this frontier AI research team partnered with Daytona to unlock large-scale agent training with secure, parallel sandboxes that compress evaluation times from hours to minutes.

Daytona has hugely simplified and sped up our agentic training and evaluation stack with their sandbox infrastructure. It sits quietly in the background, ensuring every environment and every agent runs exactly as ARES requires.

Josh Greaves

ML Tech Lead at Martian

01 -- CHALLENGE

Powering Scalable Agent Research Required Elastic Sandbox Provisioning

To advance agent autonomy, Martian launched ARES, one of the first open-source frameworks to enable online Reinforcement Learning (RL) for LLM coding agents. Rather than sticking to labeled solutions, ARES powers agentic advancement by enabling agents to run real coding tasks and receive real-time evaluations. 

However, ensuring task execution was both trustworthy and scalable came with strict runtime demands. “Agents are trained on a range of unique tasks, from SWE-Bench Verified to custom Harbor-packaged tasks,” shares Josh Greaves, ML Tech Lead at Martian. “As they work through each one, they edit files and run test suites in unpredictable ways.” To protect surrounding systems and keep experiments reliable, runs must be executed in tailored, isolated sandboxes.

But sandbox integrity was only half of the equation. With even routine tasks encompassing dozens of steps, attempting them one by one would take countless hours. Josh needed a way to provision hundreds of parallel sandboxes so agents could work through problems simultaneously and collect feedback for rapid, meaningful progress. Once a task was complete, each sandbox also had to be torn down to avoid resource waste and operational instability.

Josh knew from experience that standing up sandbox infrastructure at this scale required sophisticated container orchestration, resource scheduling, and lifecycle management. Rather than pulling engineers from research, he began looking for a managed runtime solution that could deliver the scalable infrastructure he needed out of the box.

It wasn’t long before his research network pointed him to Daytona. After seeing firsthand how their runtime platform handled hundreds of concurrent tasks for Terminal Bench, an industry-leading performance benchmark, Josh knew that he’d found the ideal partner.

If you want to create agents that can tackle complex tasks, you need the ability to evaluate them at scale. That means parallel sandboxes and a platform that can handle them. We piloted a few options, and Daytona was the only one that fit our use case out of the box.

Josh Greaves

ML Tech Lead at Martian

02 -- SOLUTION

An Agent-Native Runtime Platform That Dynamically Provisions Parallel Sandboxes at Scale

Josh embedded Daytona’s sandbox infrastructure directly into ARES’ architecture through a lightweight SDK and REST API. With this setup, researchers using ARES have an intuitive RL interface for running evaluations, while Daytona abstracts the complexity of every run.

With Daytona, ARES now provisions hundreds of concurrent sandboxes on demand, each hosting an agent working through a distinct coding task. This isolated parallelization enables agents to complete demanding benchmarks like Terminal-Bench 2.0 in 20 minutes, compressing feedback loops and supporting faster, iterative research cycles.

Each sandbox is dynamically created to match the exact dependencies and environment a task demands, from debugging a Python module to scaffolding new API endpoints. As a result, the team introduces new task types without rebuild cycles, and researchers trust that their results reflect agent performance.

Because each sandbox is provisioned fresh and torn down immediately after use, the system operates efficiently without accumulating idle resource overhead. Costs stay lean, and compute stays available for the next experiment.

While the infrastructure runs reliably in the background, Daytona's SSH access adds a layer of observability that the team hadn't initially prioritized. With a direct line to any running sandbox, Josh feels confident he can inspect agent behavior and refine configurations without disrupting the broader workflow.

As Martian’s priorities evolve, the Daytona team moves in lockstep. When Josh needed higher sandbox limits, Daytona's team quickly adjusted capacity, ensuring the infrastructure kept pace with large-scale research.

With Daytona, we offer the best of both worlds. ARES gives a simple, clean interface for RL research. And in the background, Daytona provisions the containers to power agentic training and evaluation.

Josh Greaves

ML Tech Lead at Martian

03 -- RESULT

Martian Provisions 20K+ Sandboxes in One Week With Daytona

With Daytona, Martian solidified the scalable sandbox infrastructure that transformed ARES into a production-ready framework that runs at the speed of real research. Researchers now receive fast, sharp learnings to better train LLM agents, while Martian's team stays focused on advancing RL and mechanistic interpretability innovation.

  • 95% faster execution of SWE-Bench Verified

  • 20K+ sandboxes provisioned in one week with Daytona

  • 3 months of engineering time saved

Looking ahead, Josh sees Daytona opening doors beyond ARES’ original scope. He’s eager to explore the platform’s ability to snapshot and restore a sandbox to a precise state, resetting agents to specific checkpoints. With this granular control, researchers will repeatedly explore the most challenging aspects of a task, generating richer training signals without the need to start new experiments.

It’s hard to put a number on the value of tight feedback loops and tangible agent learnings. With Daytona, we make it easier for researchers to run more experiments, learn more from each one, and advance agentic research.

Josh Greaves

ML Tech Lead at Martian

NEWSLETTER
Subscribe to DotFiles Insider, a fortnightly newsletter for developers covering stories, techniques, guides and the latest product innovations.
NEWSLETTER
Subscribe to DotFiles Insider, a fortnightly newsletter for developers covering stories, techniques, guides and the latest product innovations.
NEWSLETTER
Subscribe to DotFiles Insider, a fortnightly newsletter for developers covering stories, techniques, guides and the latest product innovations.