A publication for engineering teams on delegating real software work to cloud-based AI agents, at scale, across existing workflows.

Why OpenCode and Codex Belong on a Managed Agent Platform Not a CI Runner

Agents need persistent VMs and approval gates, with CI left to verify branches.

· 9 min read
Cover illustration for “Why OpenCode and Codex Belong on a Managed Agent Platform Not a CI Runner”
Cloud Coding Agents · November 10, 2026 · 9 min read · 1,932 words

To run Claude Code in the cloud, or host OpenCode and Codex for an engineering team, a managed agent platform supplies the required runtime without infrastructure management. These agents need isolated VMs, durable sessions, and human approval gates for iterative work. CI should verify their finished branches.

What OpenCode and Codex are actually built to do

OpenCode is an MIT-licensed, model-agnostic harness built on a client/server architecture. Its terminal, desktop app, and IDE extensions connect to the same server engine, separating the runtime from the surface a developer uses to reach it. The agent reads files, edits them, runs shell commands, consumes LSP diagnostics, and corrects its work. The agent uses each result in its next attempt. The runtime therefore needs to preserve a working environment.

OpenCode’s Plan and Build modes bring the developer into that feedback cycle. The agent drafts its intent, the developer reviews it, and Build executes, so human participation happens across turns. With multi-session support, each piece of work has its own context window, history, and model configuration. Separate conversations can use the same tool installation. They do, however, require a runtime that can keep their state distinct.

Codex meets the same need by running work on its own in the cloud. It takes a task description, clones a repository into a sandbox, changes files, runs tests, and opens a pull request. Its unified App Server powers the CLI, VS Code extension, web app, macOS desktop app, and third-party IDE integrations including JetBrains and Xcode. Sessions extend beyond a single client interaction. The architecture must keep sessions going so that long-running work and approval requests stay consistent across those surfaces.

Why the edit-test-inspect-retry loop cannot run inside a CI pipeline

A normal repair task can involve editing code, running a test, inspecting a failure, updating a migration, regenerating a client, and retesting one package. The agent may then inspect logs and revise an earlier edit before running the broader suite. A linear sequence of install, lint, and test does not describe that process, because each result can change what the agent must do next.

A CI job can run commands and retries until it ends. The mismatch appears when that job ends. The next job does not inherit the same warm workspace, including programming language context, a local database, generated files, terminal scrollback, and shell history. Starting cold interrupts the environment in which the agent was diagnosing the problem. Preserving a finished artifact is different from preserving the live conditions needed to continue an investigation.

OpenCode’s LSP integration makes that distinction concrete, because live diagnostics feed directly into its corrections during a session. That feedback continuity disappears when one job ends and another begins fresh. Codex’s App Server makes a similar assumption through its handling of long-running sessions and approval requests across clients. The appropriate division of responsibility is therefore to keep the repair loop in a persistent workspace and use CI to verify the resulting branch.

What a managed platform provides that CI structurally cannot

A persistent, isolated VM gives the repair loop a durable home. Its file system, shell history, generated artifacts, and diagnostic context remain available between turns and across job boundaries. Session ownership must also stay in place when a developer closes the interface. OpenCode 2.x moved that ownership from the terminal to a local background service. The managed equivalent is a cloud-hosted daemon that can continue reviews, test suites, and refactors without a local machine running.

Each agent needs its own workspace so that a feature branch, test update, and dependency audit do not overwrite one another’s state. VM-level isolation provides a stronger boundary than containers, while scoped tools, credentials, and network egress limit what each session can reach. Least privilege belongs inside that boundary. It needs more than instructions that ask an agent to stay away from resources its credentials still let it access.

Durability must also extend to the execution record. An immutable audit trail preserves what the agent tried and why, while Gartner’s 2026 assessment of Codex identifies auditable workspace governance as an enterprise control. The opencode-cloud project documents complementary gaps in local installation, including per-machine setup, local compute, linear execution, and absent session sharing or branching. Those are hosting requirements. A managed platform must supply them without confusing an agent’s separate conversational contexts with independently isolated execution environments.

Parallelism is the compounding return, but it creates a new bottleneck

Isolated execution changes how much work can finish in a given interval. If a feature branch, test suite update, and dependency audit each take the same amount of time, three parallel agents can complete them in the time a single agent finishes one. That comparison holds when the tasks can run independently. Their workspaces must therefore be separate, and concurrent execution must not require one agent to wait for another’s changes before it can begin.

More completed branches create more work for the people responsible for deciding whether those changes should ship, and larger pull requests deepen that constraint. The useful unit of agent output is consequently a reviewable pull request that a human can merge, comment on, or send back.

Agents should investigate and propose changes, but not merge them, with draft pull requests, required human review, and protected main remaining firm boundaries. Coinbase’s Forge reflects that division of responsibility. It is built on Linear’s Agent SDK and works across Slack, GitHub, and Linear, using context already in those systems before it starts work and sending its output for human review. Bringing in that context at the start helps people judge work done in parallel.

How integrating agents with Slack, Linear, and GitHub changes where work starts

Structured intake reduces the gap between noticing a problem and giving an agent enough information to address it. Slack provides the conversational entry point, GitHub the repository-native workbench, and Linear the structured backlog, while alerts and CI systems can trigger unattended work. A task need not begin with a fresh prompt. Assigning a Linear issue to an agent brings in its details, history, customer requests, related work, and prior discussions, giving the resulting change a shared frame for review.

Ramp built Inspect on Linear’s API to connect specifications, customer feedback, and code. Inspect now writes the large majority of pull requests Ramp merges, so structured intake helps with the volume of work to review as well as making tasks easier to create. Linear uses this workflow internally to resolve roughly a third of incoming bug reports, mostly on the first pass. Evidence gathering comes before the proposed fix. Agents use MCP to gather information from tools such as Sentry or Datadog, inspect the codebase, trace the root cause, and produce a change.

Codex brings together Slack integration, cloud delegation, and automatic pull request review, so a conversation can lead to work in the cloud and a result that people can review. Its production-alert triage can draw on Sentry alerts, Linear and GitHub issues, PR checks, deploy logs, support tickets, and Slack threads. That breadth also requires a controlled rollout. The recommended approach is to begin with one manual sweep, tune the report, and then schedule it. The purpose is to establish useful task context before increasing the frequency of unattended execution.

Security and governance requirements that the platform must enforce structurally

Connecting those systems brings credentials and outside content into the environment where the agent works. Each integration should have its own identity, independent of a human account’s token. Fine-grained PATs or GitHub App installations should be scoped to specific repositories, with narrow permissions including contents read and pull requests read/write, but no admin or secrets write. Access must follow the task’s actual needs. A token with broad access breaks least privilege even when the workflow calls for human review.

External content creates a separate trust boundary. An issue or alert may contain text written outside the organization, including instructions intended to redirect the agent. The platform must treat that material as data rather than authority, run agents in sandboxes without production credentials, and redact secrets from logs. Approval gates govern proposed actions, while isolation and credential scoping restrict what the runtime can reach in the first place.

OpenCode’s MIT license makes its tool-calling logic, system prompt, and session management inspectable, modifiable, and self-hostable, which is relevant to strict data-residency requirements. Codex supports HIPAA-compliant use, scoped programmatic access tokens and hooks, and deployment through Amazon Bedrock. Gartner’s assessment also names approval gates, RBAC, customizable policies, OS-level sandboxing, and auditable workspace governance. These are controls in the execution environment.

Why model-agnosticism and open architecture are prerequisites at team scale

Runtime governance should not force a permanent choice of harness or model. OpenCode keeps the two separate, so teams can connect different providers, send tasks to different models, and swap a model while keeping the session in the same tool. At team scale, that separation protects the workflow from becoming dependent on one provider’s access terms or one harness’s position in a changing market.

Anthropic’s policy change, which began in January 2026 and was fully enforced in April 2026, shows how access can change. It blocked third-party tools from using consumer Claude subscriptions through unofficial channels, so teams that relied on those routes had to change how they worked. Access can change regardless of how good the code is. Meanwhile, competitive pressure from Claude Code led OpenAI to redirect resources toward Codex and enterprise tools as part of a broader strategic refocus. When infrastructure is tied tightly to one agent, teams have a harder time adapting to such shifts.

Model economics strengthen the case for separation. As costs fall, teams that own their model subscriptions and keys retain the ability to benefit without a platform markup absorbing the change. OpenCode’s license extends that control from the model connection to the harness itself. A managed platform should treat the harness as a replaceable component, allowing teams to choose among Claude Code, Codex, Cursor, and OpenCode without redesigning task intake, workspace isolation, or human review.

How do teams run OpenCode and Codex in the cloud without managing infrastructure?

In the managed model, each agent session runs in its own isolated Linux VM, with warm workspace state preserved for the duration of the task. The developer does not supply local compute or repeat setup on each machine. Work begins through an existing team surface. A Slack message, Linear issue, GitHub event, or scheduled trigger starts the session, and the agent works in a cloud environment rather than depending on a developer’s terminal staying open.

Separate VMs allow a feature branch, dependency audit, and test suite update to proceed concurrently without sharing mutable workspace state. Credentials, access, and network egress are scoped to each workspace, with fine-grained tokens, no production write access, and secrets excluded from logs. The team does not engineer isolation task by task. The platform provides that boundary as part of execution, while the completed work returns as a pull request that a human can approve, comment on, or send back.

The same operating model can accommodate different harnesses without changing where work starts or how it is reviewed. Gartner recognizes Codex’s flexible deployment options and the many ways developers can use it, including cloud-based orchestration, which supports treating the agent and the environment that hosts it as separate parts. The harness is not the durable infrastructure layer. The operational test is whether a session can preserve its working state, continue without a local machine, remain within its access boundaries, and produce a reviewable change with an auditable execution record. CI then performs its proper role by checking the branch that emerges from that work.

Sources

  1. GitHub - opencolin/opencode-cloud · GitHub
  2. OpenAI named a leader in enterprise coding agents by Gartner

More in Cloud Coding Agents