AI Infrastructure
Training reinforcement learning agents to navigate real command-line environments represents one of the most challenging frontiers in AI automation. These terminal agents must interpret text-based observations, execute shell commands, and operate across multi-step workflows, learning from sparse task-level rewards, denser partial-progress rewards, or process-level feedback depending on how the environment is designed. For teams building CLI agents, whether for code generation, system administration, or automated DevOps, environment design and execution infrastructure can materially affect training throughput, reproducibility, and learning-signal quality.

A note on scope: this guide uses "environment" as an umbrella term. It compares environment-generation systems, evaluation harnesses, environment libraries, and RL training frameworks used to build and train terminal agents, since teams typically assemble a stack from more than one of these categories. We start with Modal's AI infrastructure platform, which provides the serverless execution, secure sandboxing, and compute across CPUs and GPUs that RL rollout collection and policy training both demand.
Modal provides the serverless compute infrastructure for running terminal agent workloads at scale. The company built a custom file system, container runtime, scheduler, and image builder rather than assembling general-purpose cloud primitives, and its optimized filesystem is tuned so containers come online quickly. The result is fast cold starts across inference, training, batch processing, and Sandboxes, with a container stack that brings GPUs online for Functions quickly.
block_network=True. Resource boundaries are equally configurable: you can pin CPU, memory, and other resource ceilings for misbehaving or adversarial workloads, tune the requested amounts, and allow bursting above them where headroom helps.Terminal agent RL is an infrastructure problem before it is an algorithms problem: rollout collection needs thousands of short-lived, isolated shell environments launched on demand, and policy updates need GPUs immediately afterward. Modal addresses both halves natively. Its Sandboxes product explicitly positions itself for RL rollouts, and Modal's own engineering writing on reinforcement learning as an infrastructure problem works through the scaling behavior that RL training loops demand. Modal also supports both of the architecture patterns agent teams actually use. Running the agent inside the Sandbox is the easier place to start and is common for internal coding agents, while running the agent outside the Sandbox gives cleaner separation of concerns and is the pattern that platforms with proprietary agent logic tend to prefer, and which looks like the long-term direction for the category. Teams can begin with whichever fits today and move between the two as their product matures, without leaving the platform. The production track record covers precisely the latency-sensitive and agentic workloads that terminal RL teams graduate into. Physical Intelligence runs real-time remote inference for robotic control on Modal with roughly 10 to 15 ms of cloud-network overhead, and Ramp built a full-context background coding agent on Modal Sandboxes, generating code changes and writing them back into commits and pull requests. For terminal agent RL specifically, the combination of strong sandbox isolation, fast cold starts, multi-cloud CPU and GPU capacity, and per-second billing creates a foundation that carries a project from research experimentation through production deployment. Best For: Teams requiring production-grade infrastructure for terminal agent training and deployment, particularly those needing secure sandbox execution for untrusted code at high concurrency.
Harbor Framework is the official evaluation harness for Terminal-Bench 2.0 and a widely integrated framework for terminal-agent evaluation and RL workflows. Created by the Terminal-Bench team, it enables reproducible evaluation across the 89 Terminal-Bench 2.0 tasks listed on Harbor Hub. Terminal-Bench 2.1 describes itself as a more verified iteration of 2.0, modifying 26 tasks to address bugs, resource and timeout issues, and reward-hacking robustness.
Harbor's roughly 4,000 GitHub stars as of August 2026 and Apache-2.0 license have driven wide adoption. SETA explicitly uses Harbor as its unified task format, Endless Terminals converted a large portion of its generated tasks to Harbor format, and verifiers ships a built-in Harbor taskset, so Harbor functions in practice as a shared interchange format across several current projects. Best For: Research teams and enterprises requiring standardized, reproducible evaluation of terminal agents across many benchmarks.
The verifiers library from Prime Intellect provides a composable architecture for creating RL environments and evaluations, with roughly 4,500 GitHub stars as of August 2026. Prime Intellect reports thousands of hosted training runs across its broader RL stack, and says the new verifiers abstractions have been used for Prime's production training and evaluation needs.
On July 10, 2026, Prime Intellect announced verifiers 0.2.0, which previews the rewritten v1 core under the verifiers.v1 namespace and includes a "Towards 1.0.0" section outlining the remaining roadmap. The repository is MIT-licensed.
Best For: Production teams building end-to-end training pipelines that need flexible environment composition, and that separately need scalable execution infrastructure for rollout collection; Modal's batch processing supports queues of up to one million inputs.
Endless Terminals provides a fully autonomous pipeline for generating terminal RL tasks at scale. The Stanford and Microsoft Research collaboration produced 3,255 tasks covering file operations, log management, data processing, scripting, and database operations, with an open-source codebase.
Training used vanilla PPO with binary episode rewards and a deliberately minimal scaffold, which is the most interesting part of the result: substantial gains were possible in this setup without retrieval, multi-agent scaffolding, or specialized agent tools. That provides evidence that scaling automatically generated environments can drive agent capability even when the RL setup stays simple, rather than proving a general causal law about environment diversity versus algorithmic sophistication. Best For: Research teams investigating environment scaling hypotheses and teams needing large-scale synthetic training data for terminal agents.
SETA from CAMEL-AI is a synthetic terminal environment generation framework paired with an opinionated agent harness. It debuted in January 2026 and was substantially extended by a July 12, 2026 paper, which should be treated as the current reference: SETA-Env now contains 4,567 tasks across 14 tech-stack categories, well beyond the initial snapshot.
shell_exec, shell_view, shell_wait, shell_write_to_process, shell_kill_process, shell_write_content_to_file, and shell_ask_user_for_help. The last is disabled during headless training, leaving six operational methods in that setting.One point of context on a figure that circulates widely: the January CAMEL harness result of 46.5% on Terminal-Bench 2.0 with Claude Sonnet 4.5 was ranked first at the time of publication, and leaderboard standings have since moved as the field has advanced. That harness score is also a different experiment from SETA's RL-trained model results above. The codebase is Apache-2.0 licensed. Best For: Teams focused on agent harness and toolkit design, and those wanting a large, verified synthetic task pool with denser reward shaping.
SkyRL describes itself as a modular full-stack RL library for LLMs, and it is the framework used in the Endless Terminals research. It spans more than a training loop: the repository contains skyrl-train for the training stack, skyrl-agent for long-horizon agents, and skyrl-gym, a Gymnasium-based environment library that supplies tool-use environments. For a terminal-agent stack, skyrl-gym is the component that maps most directly onto the "environment" category.
skyrl-gym provides Gymnasium-style tool-use environments for agentic trainingOne clarification on figures that are often attributed to SkyRL itself: the specific clipping bounds, sequence-level loss averaging, five-minute environment timeout, 16-turn training limit, 64-turn evaluation limit, and 4× A100 or 8× B200 hardware configurations come from the Endless Terminals experiment implemented using SkyRL. They are study-specific settings, not SkyRL defaults or architectural constraints. Best For: Research teams conducting RL algorithm experiments who need a modular, proven full-stack library with a first-party environment layer.
OpenClaw-RL is a fully asynchronous RL framework, announced in v1 form on February 26, 2026, that continuously converts eligible live interaction turns and subsequent feedback into training samples. This agent-native approach differs from traditional offline batch RL collection.
The continuous learning approach reduces dependence on a fixed offline train-then-deploy cycle by allowing policy updates from live interaction data. It does not eliminate training, and the published evidence supports asynchronous continual optimization from live next-state feedback rather than a general guarantee that agents adapt to arbitrary new environments without further training. The repository is Apache-2.0 licensed. Best For: Teams building production agents that must keep adapting during use, and those exploring online RL paradigms.
Modal's custom file system, container runtime, scheduler, and image builder are engineered specifically for AI workloads, and its optimized filesystem helps containers come online quickly without letting large images slow startup down. Modal is tuned for the rapid container spin-up and the CPU and GPU access patterns that terminal agent RL demands, delivering fast cold starts and fast Sandbox scheduling. For curriculum learning and failure recovery, filesystem and directory snapshots can capture and restore Sandbox state, and because directory snapshots can be mounted after a Sandbox has started, project-specific state can be attached to pre-warmed capacity at the moment a rollout begins.
Terminal agents generate and execute arbitrary shell commands, which makes the execution boundary central to the design. Modal Sandboxes are built on gVisor, providing strong isolation properties and custom logic against malicious system calls, with the blast radius of malicious code limited to the Sandbox container. Teams that want a full Linux kernel underneath their workloads can also use Modal's VM Sandboxes runtime.
Two design levers are worth knowing. First, network posture is configurable: Sandboxes reject unsolicited incoming connections by default, and outbound traffic can be closed off with block_network=True where preventing data movement is a requirement. When a Sandbox does need to serve traffic, a server inside it can be exposed through a Modal tunnel, with connection tokens authenticating access, and tunnel traffic connects directly to the Sandbox rather than routing through Modal's control plane, so for an EU-scheduled Sandbox, data does not leave the EU through that control plane apart from traffic between a client and a server outside the region. Region pinning is a guarantee rather than a preference: a Sandbox is scheduled in the chosen region or not at all. Second, on compliance: Modal has completed a SOC 2 Type 2 audit and supports HIPAA-compliant workloads on Enterprise plans via a BAA.
Modal Environments let the same App be deployed into development and production environments without changing code, and Modal's Hello World guide demonstrates running the same function locally, remotely, and remotely in parallel. Teams can therefore develop locally, test at small scale, and deploy to production without rewriting their execution path, using code-defined infrastructure in Python, TypeScript, or Go. On raw scale, the current Sandboxes product page documents 100k+ concurrent sandboxes. Beyond that, Modal reported on July 16, 2026 that it ran one million Sandboxes concurrently and created all one million in under a minute on its redesigned Sandbox system, described in the V2 Sandbox documentation. That result indicates the ceiling the architecture is being built toward for massively parallel rollout collection.
Modal Notebooks provide collaborative development environments backed by CPU and GPU compute, with the ability to switch to up to eight H100s or B200s and real-time collaboration through multiple cursors, live edits, and shared context. Production deployments benefit from built-in logs, metrics, and resource-utilization visibility, with logs available for inspection in the Modal dashboard and for export to external tooling including Datadog. Governance features scale with the plan: deployment rollbacks and role-based access control are available on Team and Enterprise, and audit logs on Enterprise. Modal's pricing page lays out the tier boundaries.
Dedicated frameworks standardize the task, observation, execution, and verification interfaces, and provide reproducible benchmarks. What they generally do not standardize is the action space itself: a terminal agent's action content is often deliberately open-ended shell text. Endless Terminals, for example, lets the agent emit shell commands in a minimal interaction loop, Harbor standardizes task and trajectory structures, and SETA instead constrains interaction through a finite toolkit. Those are different interface designs with different tradeoffs. What all of them share is that they isolate the infrastructure complexity of running shell commands safely, letting researchers focus on agent architecture and training algorithms rather than container orchestration.
Serverless platforms eliminate capacity planning for RL workloads that have highly variable resource needs. During rollout collection, thousands of environments may run in parallel; during policy updates, GPU clusters process training batches. Modal charges per second with no minimum usage-time increment, billing Sandboxes on CPU and memory consumption, and provides automatic autoscaling, so resources track actual usage patterns. Fast cold starts and fast Sandbox scheduling minimize environment provisioning overhead, which is the dominant tax on short-horizon rollouts, and a warm pool of pre-started Sandboxes can absorb repo cloning and dependency installation before an end user is waiting. Modal's code-first SDKs in Python, TypeScript, and Go let teams define all of this in the language their stack already uses, while code inside a Sandbox can run in any language the task requires.
Yes. Harbor's Agent Trajectory Interchange Format explicitly supports subagent delegation and hierarchical multi-agent architectures, and verifiers models non-linear message graphs with branching for subagent workflows. On the infrastructure side, Modal's batch processing handles job queues of up to one million inputs and instantly launches thousands of containers, which supports complex multi-stage training pipelines. For multi-service setups such as a backend, database, and frontend together, Modal's current recommendation is to run the services together in a single Sandbox, and first-class Docker Compose support is in progress.
Terminal agents execute arbitrary commands, requiring isolation that prevents privilege escalation, data exfiltration, and resource abuse, and these are three separate controls rather than one. Modal's gVisor-based Sandboxes provide strong isolation and malicious-syscall protection for the first; running a Sandbox with block_network=True addresses the second; and configurable CPU and memory ceilings address the third. Sandbox servers can additionally be gated with connection tokens when they are exposed through a tunnel. For governance, RBAC is available on Team and Enterprise and audit logs on Enterprise, and Modal supports HIPAA-compliant workloads on Enterprise plans via a BAA.
Yes. Harbor Framework (Apache-2.0), verifiers (MIT), Endless Terminals, SETA, SkyRL, and OpenClaw-RL all provide open-source codebases supporting local or self-hosted experimentation. Open-source licensing removes software-license barriers rather than infrastructure costs, so compute, storage, model and API, and operational costs still apply wherever these stacks run.