Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

claude.dev 22 min read How-to mediumAdept

Claude Code in the cloud: a field guide to cloud sessions

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. In a demo on a small Node API, three sessions finished a flaky-test race fix (verified by 40 clean suite runs), a docs rewrite checked with curl, and a structured-logging change within 87 seconds. The GitHub token stays in a proxy outside the VM, and only repo-level Claude config travels with the session. The guide covers when to stay local (VPN, local data, GPUs, Zero Data Retention), timeout settings, teleporting sessions back to the terminal, and workflows such as parallel backlogs and PR auto-fix.

Assumes: Claude Code CLIGit branches and pull requests

Related posts

  • How we're shipping faster with Claude Code and Git Worktrees

    incident.io mediumAdept

    incident.io engineers run four to seven Claude Code agents in parallel, each isolated in its own Git worktree so concurrent sessions don't clobber a shared working directory. A small open-source bash function, `w`, creates per-user worktrees under ~/projects/worktrees, autocompletes them, and runs commands such as `claude` or `git status` inside a worktree without changing directory. Examples include building a multiline JavaScript editor in about 10 minutes and spending $8 of Claude credit to parallelize Makefile API codegen for an 18% (30 second) speedup. The team also leans on Plan Mode to leave agents running safely, uses voice dictation for long context dumps, and wants per-PR ephemeral environments with their own database and backend.

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

    Modal easyNovice

    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.

  • Agents in the Sandbox

    Railway mediumAdept

    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. The suggested workflow builds a template, configures a sandbox, takes a disk checkpoint, then creates or forks sandboxes from it so parallel agents start from a prepared workspace. Templates are cached builds from shell instructions, checkpoints are server-side disk snapshots that outlive the source sandbox, and forks clone a running sandbox's files but not its processes. TypeScript SDK and CLI examples cover detached agent sessions you can reattach to, port forwarding and a four-agent repo review app.

  • Effective harnesses for long-running agents

    Anthropic Engineering mediumAdept

    Long-running coding agents lose all memory between context windows, and compaction alone doesn't stop them from trying to one-shot an app, leaving half-finished work, or declaring the project done early. The proposed harness for the Claude Agent SDK splits work between an initializer agent and a coding agent. The initializer writes an init.sh script, a claude-progress.txt log, an initial git commit and a JSON feature list (200+ end-to-end features, all marked failing). Each later coding session reads git logs and progress notes, smoke-tests the app, implements one feature, verifies it end-to-end with browser automation via Puppeteer MCP, then commits and updates progress. JSON proved less prone to inappropriate edits than Markdown, and browser-based testing caught bugs that unit tests and curl missed.

  • Scaling Managed Agents with stable interfaces

    Anthropic Engineering mediumAdept

    Claude Managed Agents splits a long-running agent into three virtualized interfaces: an append-only session log, a stateless harness that calls Claude and routes tool calls, and sandboxes reached through a generic `execute(name, input) → string` tool call. Moving off a single coupled container turned sandboxes and harnesses into replaceable cattle. A crashed harness resumes from the durable log via `wake(sessionId)`, and credentials sit in vaults or MCP proxies the sandbox can't reach, which blocks prompt-injection token theft. The session also serves as a queryable context store outside Claude's context window. Provisioning containers lazily, only when a tool needs one, cut p50 time-to-first-token by about 60% and p95 by over 90%.

The quest for software engineering knowledge.

Look:
Layout: