Forge is our internal agent platform, running on Modal. It’s Owner’s most-used AI platform, even though everyone also has access to Claude and ChatGPT.
We built Forge to let teams run many agents in parallel and have them test their own changes, without maxing out laptops or making every team rebuild the same tool integrations. Each task gets its own cloud environment, wired into our shared tools and access controls.
We thought about using an off-the-shelf tool like Claude Code instead. The problem is that off-the-shelf harnesses have to make generic security and UX trade-offs. For our setup, they end up too permissive in some places and too strict in others, and you can’t wire them deeply into your own infrastructure. Owning the software stack also keeps us independent of any single model provider. Over the summer, model leadership shifted from Anthropic to OpenAI and open-weight models and back to Anthropic again. When we wanted to switch models or manage spend, we could move right away without waiting on one model provider.
Because every task connects to the same company context and tools, Forge quickly grew past engineering. Today, 94% of engineering uses Forge weekly, and departments outside of engineering, product, and design are at 75%. Forge is our most-used AI platform, even though everyone also has access to Claude and ChatGPT.
This post covers how we built it and the key decisions we made.
1 - Running and testing in the cloud
If you want engineers to stop defaulting to their laptops, you need a cloud environment that’s preferable to the laptop. In Forge, you go from a prompt to a working agent in a fresh repo workspace in under 5 seconds, with local databases, migrations, auth, app services, and test accounts ready to boot inside the same sandbox. You can run 20 of those tasks in parallel.
That matters even more because Owner isn’t a web app. It also includes POS, Kiosk, and handheld software that depends on Android emulators and payment hardware emulation, including card readers. Setting up that stack locally used to cost engineers hours before they could test anything. In Forge, starting Chrome or an Android POS emulator with an emulated card reader takes one click or a single agent tool call, largely thanks to Modal’s nested virtualization and resource support.
We tell agents how to check their work. For a bug fix, that means starting the app, reproducing the bug, fixing it, and verifying the fix in a browser or emulator. The agent then records a narrated walkthrough and shares it through Theatron, our internal video tool.
Every app booted inside Forge also gets an isolated preview link scoped to that sandbox. Teammates can click through a feature themselves and share the URL, all self-contained without maintaining brittle hybrid staging setups. We use the same machinery to test Forge itself: a scheduled set of benchmark tasks runs inside Forge and tracks cost and failed tool calls so model or harness regressions show up early.
Inside the stack
Behind every task is a control plane (PostgreSQL for task state, Temporal for sandbox lifecycle, and S3 for conversation and file backups) paired with an isolated Modal sandbox and three shared services: Poros for model inference, Charon for company tools, and Cantrip for reusable skills.
>1M-file node_modules mount, and RAM bursting up to 96 GiB.
All model traffic leaves through Poros on Cloudflare Workers — the same gateway serving production and local dev — with per-sandbox keys, spend caps, provider failover, and centralized A/B evals.
Charon keeps third-party keys off the sandbox via Code Mode (global + personal MCPs, bearer-token prod tools, write approvals, and audit logs), while Cantrip loads and publishes team skills without GitHub.
Tasks, ownership, routing metadata, and warm pool state.
Orchestrates boot, warm claim, idle stop, and clean resume.
Transcripts, SQLite DB, outputs, and offline bulk evals.
Client-server split decouples the runtime from Desktop, Web, iOS, and Slack UIs.
Reuses localdev & CI startup code, local Postgres/Mongo DBs, and scoped preview links.
Headless Chrome, Android POS emulator + emulated card reader, and Theatron clips.
Separate >1M-file node_modules mount keeps snapshots fast; low baseline RAM bursts on demand.
One API across providers with outage failover, centralized A/B evals, and per-sandbox keys & spend caps.
Global + personal MCPs and bearer-token prod tools with human write approvals and full audit logs. Also used locally & in Minos.
Personal & shared workflows loaded at claim time and published directly from Forge without GitHub.
Inside each sandbox, we run OpenCode, an open-source agent harness, for two practical reasons. First, it’s model-agnostic: so we can easily switch providers, or point a specific department at a different model. Second, its client-server architecture separates the agent runtime from the UI. Early on, we bootstrapped on OpenCode’s own interface to get moving fast. Once we knew what our teams needed, we built our own interfaces on top without rebuilding the harness underneath.
All model requests leave the sandbox through Poros, our inference gateway on Cloudflare Workers. The same gateway serves our production restaurant workloads, local dev, and Forge. We used to run separate gateways because sharing infrastructure between production and internal tools felt risky, and that turned out to be a mistake. If Poros breaks, production breaks too. So Forge runs on infrastructure we already have to keep reliable, and improvements help all three environments.
Poros gives us one API across model providers and handles streaming. It’s where we keep the model catalog, with capabilities, context limits, and pricing. It also enforces spend caps per sandbox and lets us compare usage, latency, and cost across prod, local dev, and Forge. Because every request goes through it, we can transparently reroute inference when a provider goes down, and run controlled A/B comparisons for evals by splitting traffic across models centrally without asking employees to change their preferences or adjusting sandbox configuration. It also keeps raw upstream provider API keys off the sandbox: when a task starts, Forge mints a dedicated Poros key scoped to that sandbox and its owner, and revokes it as needed.
2 - Managing task environments
We needed to start environments for new tasks, stop them when they’re idle, and let people come back to them later. We wanted Forge to feel seamless, while also avoiding paying for idle time or adding latency.
To make tasks start and restart quickly, we do as much as we can before a task exists. About twice an hour, we start a sandbox on the latest code, install dependencies, and save the result as a fresh image with Modal’s filesystem snapshots. Modal doesn’t charge us to store snapshots, so keeping fresh images is extremely cheap: we only pay for the sandbox that builds them. A small pool of sandboxes booted from the newest image stays warm, so a new task can claim one that’s already running.
Startup has two parts: boot and claim.
- Boot: we start Docker and prepare the tools every task will need. The sandbox doesn’t have anyone’s task credentials yet.
- Claim: when a new task claims a ready sandbox, we add that task’s credentials and configuration, load its skills, and start OpenCode. We immediately start another sandbox to refill the pool.
There is one catch with filesystem snapshots. Restoring a snapshot stays fast as an image grows in bytes, but it slows down as the number of files grows, and our node_modules holds more than a million files. Rather than baking node_modules into the base image or every task’s saved disk, we keep it in a separate snapshot that a sandbox mounts after it boots.
When we stop a task cleanly, we save its filesystem, including code changes, conversation history, and local databases. On resume, we restore the disk and restart the processes. We also back up conversation transcripts and selected output files to S3. Keeping that data outside the snapshot means people can read past conversations without booting a sandbox, and our internal evals can scan transcripts en masse for user friction and token inefficiencies without spinning up a single box.
main: builds a lean base image and a separate node_modules directory snapshot (>1M files), verified with a smoke boot before promotion.
Sandboxes pre-boot from the newest base image with Docker, shared tools, and node_modules mounted at boot for EPD pools — with zero task credentials inside.
A new task claims a warm box in under 5s, injects its scoped Poros key, credentials, and Cantrip skills via tmpfs, starts OpenCode, and immediately boots a pool replacement.
Clean stop revokes keys, snapshots the task disk (skipping mounted node_modules), and exports transcripts & outputs to S3; resume restores disk and re-mounts matching deps.
main checkout, Docker, CLI tools, OpenCode, and Caddy — with node_modules unmounted.node_modules attached at boot for EPD pools (skipped for non-EPD).
/root/Owner edits, OpenCode SQLite DB, local DB state, task context.- Code changes
- Session history
- Local databases
- Transcripts (.gz)
- SQLite DB (.zst)
- Output artifacts
Why Modal?
Running that lifecycle at scale meant starting lots of environments without worrying about capacity restrictions, reservations, or performance degradation. In an early test, we started 500 Modal sandboxes in about 5 seconds. Modal’s v2 sandboxes also gave us everything we needed in one place: Docker, local databases, filesystem snapshots for pausing and resuming work, and the nested virtualization behind our Android emulators. Because they run Docker, they aren’t a bespoke environment. Our local dev, CI, and Forge startup scripts share almost all of the same code.
We’d also been running into out-of-memory failures with some providers. When a session starts, there often isn’t enough context from the prompt, or even from metadata like the Slack channel or the requester’s role, to know what the sandbox will need. Someone in finance doesn’t need the 12 GiB it takes to run an Android emulator, while an engineer’s task might need a lot more memory to build or typecheck the app. Almost all of a sandbox’s lifetime is just an agent sitting there waiting on a model call or waiting to hear back from the person prompting it.
Modal’s CPU and memory bursting is huge here, and it rarely comes up in discussions around sandbox pricing. Because Modal operates at large scale, we can request a bare minimum of CPU and memory up front and let any sandbox burst up to 96 GiB when it needs to, without micro-tuning box sizes. The chances of running out of memory are tiny. Our friends at Modal even recommended we lower our baseline requests. When we did, nobody noticed, and we saved a lot of money. We still pay for what a sandbox uses while bursting, so making the tools inside it efficient still pays off directly. That’s part of why we ported the TypeScript compiler to Rust in tsrs, which cut monolith typechecks from 19 GiB and 80 seconds down to 5 GiB and 7 seconds.
3 - Leverage across the whole company
Forge gets heavy use well beyond EPD. Teammates across sales, support, operations, and finance use it to query Snowflake, Guru, Slack, and Braze, and to build and update their own internal Zeus apps. Making a coding-agent platform work for the rest of the company meant keeping company credentials out of sandboxes, hiding engineering setup when it isn’t needed, and meeting people in the apps they already use.
Charon
We didn’t want every employee injecting MCP credentials or API keys into sandboxes for their own needs, or every team inventing a different way to bootstrap tools. So we built Charon as one central layer for every integration. No third-party API keys live on disk in a task sandbox: Charon holds credentials for Salesforce, Snowflake, Slack, and other internal systems, and agents never have direct access to them. Employees can request new MCPs. Some integrations are shared globally, like read-only Datadog access, while teammates can attach personal connections for their own more sensitive credentials. On every call, Charon checks the user’s access, pauses write operations by default to show what the agent wants to do before it runs, and keeps an audit log of every tool call, who ran it, and what went in and out.
Charon is also built for context efficiency. It uses the Code Mode approach popularized by Cloudflare, so we can configure hundreds of MCPs across business functions without bloating the context window, and agents can efficiently chain calls and aggregate data across multiple third-party tools. Because we own this layer, we aren’t limited to off-the-shelf MCPs either. For an API without a documented schema or an MCP server, we can wrap it in a generic tool where Charon attaches a bearer token and calls the endpoint, while we teach the agent how to use it without ever exposing the token. We’ve used this to let sandboxes poke tightly controlled holes into our production infrastructure in ways an off-the-shelf MCP offering wouldn’t allow.
From the agent’s side, the interface for calling every tool is identical. It doesn’t have to switch between CLIs, MCPs, and raw curl commands. And because Charon is centralized, we use it outside Forge task sandboxes too, including locally and in our internal PR review tool, Minos. There, Charon lets Minos query feature flag state and database planner statistics so it can flag a PR whose query could take down production. As we build more internal systems, they all plug into the same tool layer.
Adapting Forge for every team
For non-EPD teammates, we hide the technical setup controls, skip app dependency installation unless the task needs to run code, and tell the agent to write in plain language and cite its sources.
They shouldn’t have to pick a model either. On non-EPD tasks, Forge chooses both the model and reasoning level automatically by reading the request and any surrounding Slack thread, unless someone overrides it. We size the sandbox separately, since giving a model more reasoning effort doesn’t give an emulator more CPU. We caught a routing gap when a customer-facing teammate asked Forge to record a short walkthrough of our POS loyalty-redemption flow. The first run got stuck navigating setup screens, and rerunning it with a higher-capability model worked on the first try. We updated routing so walkthrough requests automatically get more reasoning effort.
Once someone has a repeatable workflow, they can save it as a skill and share it through Cantrip, our skill library. Forge writes and publishes the skill files directly, so nobody needs GitHub access to publish one. Personal skills load automatically, and shared skills can be turned on by each teammate.
Different roles also work in different apps. Alongside Slack and the web app, we built a native Mac desktop app and a Forge iOS mobile app. Because OpenCode separates the runtime from the UI, the exact same task and sandbox persist across all of them: someone can kick off a bug investigation in Slack, review the walkthrough and preview link right in the thread, and continue the live sandbox in Forge Desktop or on their phone. Forge replies wherever you messaged it last.
Not long ago, it would have been unthinkable for an EPD org our size to build an internal Mac app competitive with Claude Code Desktop, plus a full-featured iOS app. With cloud sandboxes like these and frontier models, that’s what a small team can build for itself now.
Scoped loyalty redemptions to base items so attached modifiers are skipped. Verified checkout on the emulated S710 reader and opened PR #4812.
Opened PR #4812 with the walkthrough and preview attached. Ready to notify #pos-support?
shell
14/14 tests · tsrs 7.1s
✓
Posted summary and 0:42 walkthrough clip to #pos-support.
4 - From product to platform
Everything above is Forge used interactively. But we also put a clean API underneath it to start tasks, pass context and read back results. Teams in finance, ops, and engineering soon started wiring Forge into their own internal tools and review loops.
The biggest example built on that API is Autoforge. Autoforge runs research tasks looking for bugs and regressions, then starts separate Forge tasks to implement and review fixes. It tracks findings in Linear as engineers review code or ask for changes, and after a fix ships, a follow-up task checks whether it helped. Our next post will cover what we’ve built and learned with Autoforge.
We think Forge is a big step in unleashing the full power of AI. If you want to build a whole company within a company as a team of like 5 people, we’re hiring.