
On this page
- How do teams use the term agent runtime?
- What layers can an agent runtime include?
- Is agent infrastructure the same as an agent runtime?
- How is an agent runtime different from an agent harness?
- What is the difference between a sandbox and an agent runtime?
- What runtime does a coding agent need for each job?
- Why should a coding agent check its change on the running application?
- How do you connect a coding agent to Revyl’s runtimes?
- Beyond the agent runtime: where does Revyl fit?
- What else does Revyl do?
An agent runtime is the infrastructure that runs an AI agent’s execution loop, with optional capabilities such as streaming, state persistence and session isolation. For a coding agent, one design choice is to give the agent access to the running application, so it can check its own change while it still has the code open. Revyl, verification infrastructure for cloud agents, provides that layer: web browsers, iOS simulators, Android emulators and macOS computers that an agent starts through the CLI, MCP or skills (Revyl concepts).
How do teams use the term agent runtime?
Which layer the term agent runtime means depends on who uses it. Harrison Chase of LangChain splits the stack three ways. He calls LangChain an agent framework, LangGraph an agent runtime and DeepAgents an agent harness, and he describes the runtime as the infrastructure layer for running agents in production: durable execution, streaming, human-in-the-loop support and persistence (LangChain). He adds that “the lines are blurry.”
Cloud providers use the word for hosting. Amazon Bedrock AgentCore Runtime is “a secure, serverless and purpose-built hosting environment for deploying and running AI agents or tools,” with two compute types. In its serverless microVM mode, AgentCore runs each user session in its own microVM, and its Instances mode runs agents on AWS-managed EC2 instances in your own account, with sessions of up to 14 days (AWS docs, Instances, read December 2, 2026).
OpenAI’s harness engineering post shows the runtime reaching the app itself. The team “wired the Chrome DevTools Protocol into the agent runtime” so that Codex could “reproduce bugs, validate fixes, and reason about UI behavior directly” (OpenAI).
What layers can an agent runtime include?
Persistence is the layer you notice when a session stops partway. AgentCore Runtime can keep a session’s filesystem across a stop and a resume, so “the agent’s files, installed packages, and build artifacts can survive session stops without external storage” (AWS docs). An agent that resumes there picks up its half-built workspace instead of reinstalling dependencies and rebuilding from the start.
Is agent infrastructure the same as an agent runtime?
Agent infrastructure is the wider term: the runtime plus the supporting services for state, tools, identity and observability. LangChain places agent infrastructure between the agent’s logic and raw compute, handling durable execution, state, human-in-the-loop pauses and streaming. AgentCore Runtime comes with identity built in and emits session metrics by default (AWS); a team adds services such as Memory or Gateway, and turns on tracing, when its agent needs them (AWS observability).
How is an agent runtime different from an agent harness?
The harness is everything around the model: prompts, tools, MCP servers, hooks and orchestration. LangChain defines it as “every piece of code, configuration, and execution logic that isn’t the model itself” (LangChain), and Anthropic calls the Claude Agent SDK “a powerful, general-purpose agent harness” (Anthropic).
The harness decides which runtimes the agent can reach. In LangChain’s words, “Deciding where the agent runs, what tools are available, what it can access, and how it verifies its work are all harness-level design decisions.”
What is the difference between a sandbox and an agent runtime?
A sandbox is the isolation boundary around what an agent runs: it limits which files, processes and network the agent’s commands can reach. LangChain calls sandboxes “safe operating environments” for that work. The boundary can be a hosted container or microVM that holds the repository, a shell and the toolchain, or it can be enforced by the operating system around commands on your own machine, the way Claude Code’s Bash sandbox restricts shell commands on macOS, Linux and WSL2 (Anthropic).
The app runtime is where the software under review runs and gets checked. That can be inside the same environment, such as a web app and a browser in one container, or on a second machine, such as an iOS simulator. Unit tests can pass while a changed screen renders wrong, and a run of the application is what shows it. Some apps also need a runtime a Linux sandbox can’t host: iOS apps build with Xcode, and Xcode runs only on macOS. Some writers use agent sandbox and agent runtime as one term, and what an agent sandbox is covers the sandbox side in depth.
What runtime does a coding agent need for each job?
Why should a coding agent check its change on the running application?
Anthropic and OpenAI each reported a reason to put the running application inside a coding agent’s loop. In Anthropic’s long-running agent experiments, Claude “tended to make code changes, and even do testing with unit tests or curl commands against a development server,” yet missed that the feature “didn’t work end-to-end.” Once it was told to use browser automation and test “as a human user would,” the agent “was able to identify and fix bugs that weren’t obvious from the code alone” (Anthropic). OpenAI’s Codex team reported a different limit: as the agent’s output grew, “our bottleneck became human QA capacity,” so they made the app bootable per git worktree “so Codex could launch and drive one instance per change” (OpenAI).
In both, the agent builds, runs and checks the software inside its own loop, while it can still change the code, and a person reviews the result afterwards. That is shift left applied to verification: the check moves out of CI and review and into active development, and the agent works against a live runtime while the change is still being written. On Revyl that loop has four parts:
- Build and run.
revyl devruns your local app on a cloud iOS simulator or Android emulator while the agent keeps editing code in its own workspace. Revyl provisions the device, installs the development build and opens a live viewer. For Expo and React Native, most JavaScript and TypeScript changes hot reload through Metro, and other stacks rebuild. When a change needs a new binary, such as a native change, the agent triggers a rebuild and reinstall withrevyl dev rebuild(dev loop). A web app runs in a Chrome session (web). - Drive and check. The agent taps, types and reads the screen from the CLI or MCP (drive a device), and
revyl device validationchecks one expected outcome in the session (Revyl concepts). - Keep the evidence. App sessions leave reports, which can include video, screenshots, step results and logs, and Atlas adds the screens, states and transitions observed in supported web, iOS and Android sessions.
- Prove the pull request. Once proof of changes is enabled, each pull request with a build gets a proof status on the pull request by default, carrying a verdict per build target. A proof that exercised the change adds a confidence score from 1/5 to 5/5, what the run covered and screenshots, plus, for web, iOS and Android, a session recording link that opens without a login, so the reviewer can see what ran before reading the diff.
The same loop works for software without a screen. For a change to a command-line tool, the agent can start a Revyl computer, a macOS workspace with Xcode, the iOS Simulator, Chrome and Safari installed, build the tool there and run it with revyl computer exec, which returns the command’s output to the agent while it edits (Revyl computers). A Mac proof on the pull request reports screenshots and command transcripts (proof on macOS).
How do you connect a coding agent to Revyl’s runtimes?
Revyl’s MCP setup gives the one-line command that registers Revyl’s MCP server in Codex CLI, after the Revyl CLI install, and covers signing in, including REVYL_API_KEY for machines where nobody is present to sign in. We ran that registration on December 1, 2026 in a clean node:24 container (Debian 12, Node 24.23.0) with Codex CLI 0.172.0 and Revyl CLI 0.2.116. codex mcp get revyl listed the server as enabled over stdio, and an MCP tools/list request to it answered as revyl v0.2.116 with 11 tools, including device_session, device_validation, screenshot and interact.
Once signed in, the agent can run one check from start to report with the CLI. It assumes the Revyl CLI is installed and signed in (revyl auth login), jq is installed, and you have a Revyl Web app ID, which revyl app create --name "My Web App" --platform web creates (web). Replace YOUR_WEB_APP_ID with that ID, set PAGE_URL to a public HTTPS address, such as your preview deployment, and EXPECTED to the result you expect. The script exits nonzero when the start returns no session ID, when any command fails or when the validation result isn’t true. It saves the screenshot first, so you have it whatever the verdict. The exit trap stops the session it started, by ID, and writes report.json only once the stop returns "stopped": true. When the stop isn’t confirmed, the script prints the session ID with the retry command and exits nonzero:
set -euo pipefail
APP_ID="YOUR_WEB_APP_ID"
PAGE_URL="https://revyl.com/"
EXPECTED="The page heading reads 'Verification infrastructure for cloud agents'."
SESSION_ID="$(revyl device start --platform web --app "$APP_ID" \
--url "$PAGE_URL" --no-open --timeout 300 --json \
| jq -er '.session_id | select(type == "string" and length > 0)')"
finish() {
local rc=$?
if revyl device stop --session-id "$SESSION_ID" --json | jq -e '.stopped == true' >/dev/null; then
revyl device report --session-id "$SESSION_ID" --json > report.json || { [ "$rc" -ne 0 ] || rc=1; }
else
echo "Session $SESSION_ID has not confirmed it stopped. Retry: revyl device stop --session-id $SESSION_ID --json" >&2
[ "$rc" -ne 0 ] || rc=1
fi
exit "$rc"
}
trap finish EXIT
revyl device screenshot --session-id "$SESSION_ID" --out after.png
revyl device validation --session-id "$SESSION_ID" "$EXPECTED" --json \
| jq -e '.success == true and .step_output.validation_result == true'We ran this exact script on December 2, 2026 with Revyl CLI 0.2.128 on an Ubuntu 24.04 cloud machine, against revyl.com, with a Web app’s ID filled in. It finished in 46 seconds with exit status 0. The CLI reported Screenshot saved: after.png, the jq -e check then printed true, and the stop came back with "stopped": true. The report.json written after that showed a completed session with one validation step, "status": "success" and "validation_result": true.
You can start building your agent’s development loop on Revyl for free: up to 1,200 free device minutes a month on iOS, Android and web, with no card (pricing, checked December 1, 2026).
Beyond the agent runtime: where does Revyl fit?
Revyl, verification infrastructure for cloud agents, sits in the app-runtime layer. Its docs define a runtime as “a cloud environment where an agent or a person runs software” and list two kinds (Revyl concepts):
- Sessions: a build of the app running in a web browser, on an iOS simulator or on an Android emulator. Agents use sessions from the CLI, MCP or a proof run.
- Revyl computers: a macOS workspace where an agent builds, runs and tests software during its session. The agent runs commands, works with files and runs web and iOS app sessions inside it (Revyl computers). That makes any software that runs on macOS checkable there: a command-line tool, a desktop or Electron app, a web app’s local dev stack in Safari, an iOS Simulator build, or a build or test command (proof on macOS).
App sessions leave reports, which can include video, screenshots, step results and logs (Revyl concepts). The app’s Atlas adds the screens, states and transitions a session observed, each tied to the screenshots and report it came from, and agents query it with revyl atlas before they change a flow. Atlas is a system of record for the system of action: agents act on the product, and product teams read the behavior those sessions verified in the dashboard before deciding what to change.
Agents reach these runtimes through the Revyl CLI, a local MCP server (revyl mcp serve), a hosted MCP server, agent skills, and one plugin for Codex and Claude Code (MCP setup). Capy gives its agents phones through Revyl. On Capy’s Pro, Max and Enterprise plans, with Mobile builds and devices turned on, the first request for a phone or a build sets up a Revyl organization for the Capy organization; if the person asking already has a Revyl account, a Revyl admin approves the link. Builds run on Revyl’s build runners, and the phone opens live in the thread (Revyl partners, Capy cloud phones).
For the check this layer supports, see our definition of agent verification. If your agent runs in the cloud, what each cloud coding agent can verify compares what the hosted agents can reach.
Revyl’s Free plan includes up to 1,200 free device minutes a month on iOS, Android and web, with no card. Revyl computers, macOS workspaces where agents build and test apps, come with Pro: add a card to unlock them, and the 1,200 free device minutes a month still cover their sessions (pricing, checked December 1, 2026).
What else does Revyl do?
Revyl is verification infrastructure for cloud agents. Coding agents can check a change on the running application in Revyl’s web browsers, iOS simulators, Android emulators and macOS computers through the CLI, MCP and skills. When a team turns on proof of changes, its pull requests with a build carry a proof status by default, and app sessions leave reports with recorded evidence. Atlas keeps a shared record of the web, iOS and Android app behavior Revyl’s sessions observe, for people and agents to query. The Free plan has up to 1,200 free device minutes a month on iOS, Android and web, with no card, and runs 2 devices at once; Pro is pay as you go with no monthly fee and runs 10 at once, and every plan includes unlimited developers and agents, with no seat fees (pricing). If you build agents for your own customers, a partner integration “lets your platform give each of your customers a Revyl workspace and run Revyl for them” (partner docs); see Revyl for partners. For the bigger picture, read why verified product behavior is becoming the unit of agent work.