---
title: "How Ramp built a full context background coding agent on Modal"
description: "Ramp Inspect, an internal background coding agent, runs each session in a Modal Sandbox containing a full dev environment (Postgres, Redis, Temporal, RabbitMQ, OpenCode, VS Code server, VNC with Chromium) and now starts roughly half of merged pull requests at Ramp."
url: "https://swe.quest/articles/how-ramp-built-a-full-context-background-coding-agent-on-modal-8c26a10f9ce0801d"
canonical: "https://modal.com/blog/how-ramp-built-a-full-context-background-coding-agent-on-modal"
source: "Modal"
published: "2026-02-19"
difficulty: "easy"
kind: "Case study"
reading_minutes: 6
tags: ["ai-agents","ai-coding","sandboxing","developer-productivity"]
---

# How Ramp built a full context background coding agent on Modal

A post on [Modal](https://swe.quest/sources/modal.md), published 2026-02-19, 6 min read, Case study. Original: [https://modal.com/blog/how-ramp-built-a-full-context-background-coding-agent-on-modal](https://modal.com/blog/how-ramp-built-a-full-context-background-coding-agent-on-modal)

## Summary

Ramp Inspect, an internal background coding agent, runs each session in a Modal Sandbox containing a full dev environment (Postgres, Redis, Temporal, RabbitMQ, OpenCode, VS Code server, VNC with Chromium) and now starts roughly half of merged pull requests at Ramp. Fast startup comes from a cron job that clones repos, installs dependencies and builds every 30 minutes, saving diff-based filesystem snapshots so sessions begin from a near-current state in seconds. Modal Dicts handle session locks and image metadata, and Queues route prompts from Slack, web and Chrome extension clients into shared multiplayer sessions, letting the system scale to hundreds of concurrent isolated sessions.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Keywords

Modal, Ramp Inspect, Modal Sandboxes, OpenCode, Temporal, filesystem snapshots

## Related posts

- [Building with Modal and the OpenAI Agents SDK](https://swe.quest/articles/building-with-modal-and-the-openai-agents-sdk-c24777075f600dcf.md): Modal · 2026-04-15 · Medium · 12 min read · AI agents, Sandboxing & isolation, LLMs, Python, Cloud platforms
  A custom agent harness built on the OpenAI Agents SDK runs coding agents inside Modal Sandboxes, optionally with GPUs, rather than on the host, where an unsandboxed exec tool can be abused by malicious prompts.
- [Agents in the Sandbox](https://swe.quest/articles/agents-in-the-sandbox-6c4d7e3dae7cde47.md): Railway · 2026-06-24 · Medium · 9 min read · AI agents, Sandboxing & isolation, Developer tools, TypeScript
  Railway sandboxes now ship Claude Code, Codex, OpenCode and Pi in the default image and can join an environment's private network, which lets agents test against real Postgres, Redis and internal services.
- [How Legora runs 2,000 parallel agent evals on Modal Sandboxes](https://swe.quest/articles/how-legora-runs-2-000-parallel-agent-evals-on-modal-sandboxes-18a61f0150fc40b8.md): Modal · 2026-10-19 · Medium · 4 min read · Evaluation, AI agents, Sandboxing & isolation, Virtualization, Containers
  Legora tests its long-running legal agent by booting the full application, pinned to a specific commit, inside a separate Modal Sandbox for each eval run.
- [Claude Code in the cloud: a field guide to cloud sessions](https://swe.quest/articles/claude-code-in-the-cloud-a-field-guide-to-cloud-sessions-77547c26ca9824eb.md): claude.dev · 2026-10-06 · Medium · 22 min read · AI for coding, AI agents, Developer tools, Sandboxing & isolation
  Claude Code cloud sessions run each task in a fresh VM with the repository cloned onto its own branch, so several agents can work on one repo in parallel without sharing files, ports, or the developer's credentials.
- [Container Use for Locally Sandboxed, Background Agents in Zed](https://swe.quest/articles/container-use-for-locally-sandboxed-background-agents-in-zed-256d62989b0aa880.md): Zed · 2025-07-30 · Medium · 3 min read · AI agents, AI for coding, Sandboxing & isolation, Containers, Developer tools
  Container Use, an open source MCP tool, gives coding agents isolated sandboxes by pairing Dagger containers with Git worktrees, so background agents can work in parallel on the same repo without touching local files.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
