Skip to content

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

Shopify Engineering 10 min read Case study mediumAdept

Under the River

Shopify's Slack-native agent River co-authors one in eight merged PRs, and it rests on two 2024 bets: a single monorepo (World) and Nix-built reproducible environments across dev, CI and production. Underneath sits Aquifer, an internal agent platform built so the session outlives any process. A Postgres-backed append-only event log holds the conversation, the agent harness runs outside a disposable sandbox, and ephemeral session cells are recreated on demand. Agents are shipped as Nix-built profile bundles across interactive, automation and job modes. Lessons for agent infrastructure: decouple the brain from the hands, make agents public and multiplayer so transcripts compound into shared skills, and treat each new agent as a profile rather than a new platform.

Related posts

  • Open SWE: An Open-Source Framework for Internal Coding Agents

    LangChain mediumAdept

    Open SWE is an MIT-licensed framework for internal coding agents, built on Deep Agents and LangGraph. It packages the patterns that Stripe's Minions, Ramp's Inspect and Coinbase's Cloudbot converged on: per-task isolated cloud sandboxes, a small curated toolset, context drawn from AGENTS.md plus the source Linear issue or Slack thread, subagents for delegated subtasks, and deterministic middleware around the agent loop. Two middleware examples are injecting follow-up messages mid-run and opening a PR if the agent didn't. It is invoked from Slack, Linear and GitHub, and the sandbox provider, model, tools, triggers, prompt and middleware are all pluggable.

  • 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.

  • Harness engineering: leveraging Codex in an agent-first world

    OpenAI mediumAdept

    A small OpenAI team built and shipped an internal product of roughly a million lines over five months with zero manually written code, merging about 1,500 Codex-authored PRs at around 3.5 PRs per engineer per day, an estimated 10x faster than writing it by hand. The engineers' job shifted to building the environment agents work in. Each git worktree boots its own app instance, the Chrome DevTools Protocol lets agents drive the UI, and a per-worktree ephemeral observability stack can be queried with LogQL, PromQL and TraceQL. A short AGENTS.md acts as a map into a structured, CI-validated docs/ directory instead of one giant instruction file. A rigid layered domain architecture is enforced by custom linters whose error messages carry remediation instructions for the agent.

  • How to Build a Full-Stack AI Agent

    Neon mediumAdept

    Aileen is an open-source codegen agent that generates full-stack web apps, combining Next.js on Vercel, Mastra for the agent loop, Assistant UI for persisted chat, Freestyle.sh for Git repos and dev sandboxes, and Neon for both the control-plane database and per-app Postgres with Neon Auth. A control plane provisions an isolated database, repo, auth config and dev server per project. The agent then iterates for up to 50 steps using custom filesystem and exec tools, Neon and Context7 MCP servers, and Drizzle migrations. Each version pairs a Git commit hash with a Neon snapshot ID plus versioned secrets, so code and data can be rolled back together, and long-running setup runs through Vercel Workflows.

  • 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: