# Devin's 80% Moment: Background Agents, 7x PRs, & End of Hand-Held Coding — Walden Yan & Cole Murray
<!--
ref: @content/youtube/latent-space/2026-05-28-devin-80-percent-background-agents-7x-prs
version: 3
updated_at: 2026-10-31T20:10:29.195Z
-->
Walden Yan & Cole Murray (Latent Space, 2026-05-28): Yan dates the shift to background agents to roughly December 2025, when Opus 4.5 and GPT-5.2 crossed a capability line: you could go from a specification to a finished pull request without hand-holding, which made moving the agent out of the IDE and into the cloud a serious…
*Synthesized from Walden Yan and Cole Murray on Latent Space, 2026-05-28.*
Walden Yan is co-founder and CPO of Cognition (maker of Devin and Windsurf) and popularized the term "context engineering" along with the "Don't Build Multi-Agents" post; Cole Murray is a consultant who built and open-sourced Open Inspect, a cloud background-agent system.
## Core Thesis
Yan dates the shift to background agents to roughly December 2025, when Opus 4.5 and GPT-5.2 crossed a capability line: you could go from a specification to a finished pull request without hand-holding, which made moving the agent out of the IDE and into the cloud a serious operational question rather than a demo. Both speakers argue the hard part is no longer the model — it is the surrounding system: where the agent process runs relative to the sandbox, how the repo gets set up and credentialed, how the agent runs and tests the application it changed, and how the whole thing wires into Slack, GitHub, logs and on-call. Murray's counterpoint is that this layer is thin enough to commoditize, which is why he open-sourced rather than monetized it.
## Key Insights
- The adoption numbers are the headline. Cognition's merged PRs grew 7x over roughly two to three months while engineering headcount grew about 10%. Devin's share of commits across all Devin repos went from 16% in January to 80% in March — a figure Yan says they were afraid to publish.
- The prior jump was Sonnet 3.7, and Cognition's response was subtractive: a lot of the work was stripping out parts of Devin that were no longer needed as the model got smarter. The pattern repeats — capability jumps delete scaffolding rather than requiring more of it.
- The central architectural fork is "harness in the box" versus "harness out of the box." In-box is simpler because all agent state is local to the sandbox, but every secret the agent needs also lives in that box, and an unpredictable agent can exfiltrate them. Out-of-box keeps the brain in a worker/control plane and treats the sandbox as hands making tool calls — more complex state management, but Murray calls it the better architecture and says he expects to migrate Open Inspect there; some newer tools already call back into the control plane so secrets stay out of the sandbox. Cognition built Devin this way from the start, calling it "separate the brain from the machine."
- Separation solves a concrete permissions problem: with one GitHub App serving users with different real permissions, an in-box design has no boundary between what decides and what holds credentials. Devin's rule is that whatever sits on the machine defines the scope of what the user (and the agent) may do, so only least-scoped secrets go there and the brain stays inaccessible from the box.
- Docker is the wrong isolation layer for the agent but the right one for the app. It isn't a true security boundary, and real applications often use Docker themselves, forcing Docker-in-Docker. Murray's guidance: run your infrastructure in Docker Compose because that's what your engineers already use, and note that a good local developer setup essentially *is* the agent sandbox setup. Open Inspect supports a `setup.sh` hook, pre-snapshotting the built image so sandboxes start instantly, and a second restore hook to bring microservices back up on resume.
- "Repo setup" has been a perennial problem at Cognition since founding, and Murray sees it constantly in consulting: many teams have no real dev environment, and the actual procedure is "go talk to Bob and get the secrets," which an agent cannot do.
- Devin runs on full Firecracker VMs, not containers, because running and clicking through the real application matters. Android development support (in beta) required nested virtualization — an Android emulator inside a virtualized Firecracker instance — with performance quirks still being worked out.
- Two infrastructure details Cognition had to discover the hard way. First, grep being slow on agent VMs is usually not a grep problem: many VMs run network file systems backed by S3-style caching, so every grep issues network calls — Cognition swapped the network file system out rather than building a custom grep index, which is what Yan says several friends building their own agents did instead. Second, they built a block-diff file storage format so saving and restoring a machine costs work proportional to the file system diff, not to the terabyte of disk — if the agent wrote 100 lines, you shouldn't pay a terabyte of save/restore. (Yan notes Devin now uses a newer system.)
- Yan reframes testing away from computer use. Computer use is emitting the right coordinates to click a button; testing is orchestration and problem solving — running the front end and back end together at the right code version, then figuring out how to trigger the feature at all, which may require admin rights, a feature flag toggled on, or two sessions exchanging a specific keyword. That work needs deep codebase context, and in some cases no single frontier model could complete it end to end, so Cognition orchestrates multiple frontier models together. The delivered artifact is a test video with on-screen annotations labeling what is being tested — small details like those annotations measurably changed how fast reviewers merge.
- GitHub-surface tuning is underrated. Devin reads and responds to PR comments, and Devin Review posts comments on Devin's own PRs, so the system needed guards against infinite loops — both by keeping comments high-signal and by teaching the agent to push back when it thinks a comment is wrong.
- Memory is unsolved by both speakers' accounts. Murray hasn't shipped it in Open Inspect and sees clients approximating it with skills and CLAUDE.md updates. Cognition's system, called Knowledge, learns by asking for approval in the moment ("do you want me to remember this?"), and about 95% of stored memories are auto-generated — almost nobody sits down to write the docs. Both generation and retrieval are hard: a one-off request ("open this as a draft PR") must not become a global rule, and thousands of memories must surface at the right moment without flooding context. It takes constant eval work to keep memory reliable as models change. Memories can now be edited; Cognition is exploring rebuilding memory as something file-system-shaped, since modern agents navigate anything resembling a file system natively.
- On multi-agent, Yan hasn't reversed the thesis but has softened the timeline. Cognition gave Devin an MCP to message and spawn other Devins; the result was chaotic, and day-to-day practice still lands on manager-plus-subagents with isolated boxes per agent and no shared machines, minimizing conflict. Much of what is called multi-agent is really a tool call — spawning a subagent to find a file collapses all its tokens back into a single answer, which is good context management (Cognition does this with DeepWiki). What makes Yan bullish is behavioral: agents that push back and say you're wrong could actually reconcile disagreements, which yes-man models could not. He expects to revise the post. He also notes Cursor's Wilson Lynn went through a whole single-to-multi-agent exploration and arrived at essentially Devin's structure.
- The counter-datapoint on swarms: Cognition got a Devin to rebuild a Windows-like OS system with no swarm at all — one agent, its own context conventions, just left running long enough.
- Cognition ran an internal experiment on pure vibe coding — real products, automerge, no code review — measuring how many weeks until the codebase must be thrown away. State of the art in December was about two weeks; failure looked like one button implemented in ten places with one variant slightly off-color. Adding code review back in was the fix.
- Murray's rule of thumb for AI-heavy teams: your codebase regresses to your worst engineer, because the un-audited patterns of the most gung-ho engineer cement into the code and then become the AI's reference pattern. Countermeasures: scheduled cleanup passes and duplication detection (you will end up with twelve date-formatting helpers), and hard, human-signed-off contracts between modules while leaving the inside of each black box to whoever owns it.
- Specific AI code smells worth linting: Python `getattr`/`hasattr` defensiveness (Murray makes it a lint rule that fails the PR — he reads it as reward hacking, the model avoiding failure even when it knows the attribute exists); untyped tuples and `Dict[str, Any]`; and backwards-compatibility-at-all-costs import/export shims to avoid renaming modules, common in GPT models and now appearing in Claude 4.6, catchable with Semgrep. Opus 4.7 writes paragraph-length comments above functions — but Yan notes they now explain the reasoning and rejected alternatives rather than restating the code, which might be directionally right for self-maintaining systems. Related idea both flag: Git AI, storing the prompts that produced a change in git metadata so future agents and review bots can read the decision context.
- Codebases need a local-testable path. Yan recommends a local DB, Docker Compose and Postgres so the agent never needs production credentials to run and test its own code; Cognition did an internal push to make core components testable purely locally. Older companies — especially pre-Docker, microservice-heavy ones — face a real migration, though AI can help perform it.
- Open Inspect's stack: control plane on Cloudflare; Modal as the sandbox provider (most of Murray's clients use it, and snapshots plus GPU availability are why), Daytona added by a contributor, E2B on the roadmap behind a provider abstraction. Murray's origin story: clients using Claude web through Slack hit a hard wall because a session launched by a PM was invisible to engineering, so nothing could be handed off; he rebuilt the architecture from Ramp's blog post, which he praises for showing *how* to build rather than just announcing.
- Murray's reason for not commercializing: the layer is easy to copy, you don't own the stack, money accrues at the sandbox layer (Daytona, E2B) and the model layer, and what's left to sell is infrastructure and integrations.
- MCP hits a ceiling on the integrations that matter. Yan wants something more expressive and bidirectional — Slack as a real coworker experience needs inbound webhooks, natural threaded responses, and tuning against spamming channels, which a Slack MCP's post-a-message tool doesn't provide. He notes MCP sampling exists in the spec and nobody uses it, and that once you support all the variations, you have effectively built a first-party integration. Murray's heuristic: own the integration if nearly every session flows through it.
- Deployment use cases, ranked by how often they come up: SRE/on-call first responder (Open Inspect triggers on Sentry or a generic webhook; Cognition calls it auto triage and wants Devin on every incoming alert and bug report before anything else, often producing a PR straight from the error), non-engineers shipping code (PMs prompting through Slack for small bug fixes instead of filing issues), customer support context-gathering with full codebase access via chat rather than a CLI, and continual security scanning/review.
- Reported spend: commonly $1,000 to $5,000 per engineer, with Murray noting he has not heard anything near $50,000 per engineer. Yan expects the coming year to split between very expensive frontier models and a growing set of work where sub-frontier is good enough, and is interested in hybrid systems — his "Smart Friend" idea — where a fast sub-frontier component calls out to the frontier only when needed.
- Windsurf 2.0 is aimed at the local/cloud handoff: a command center where you pull a background agent's work down to test locally, push other agents to the background, approve, and kick off a new background run. Yan says local and cloud agents want genuinely different behavior — local should be fast and defer decisions to the user, background should run to completion and assume its next message contains everything the user needs — but Cognition shares as much logic as possible for git-provider, OS and VM compatibility.
## Actionable Takeaways
1. Choose out-of-box (brain in a control plane, sandbox as hands) if you can absorb the state-management complexity — it is the only architecture that keeps secrets out of a machine the agent controls, and it makes per-user permission scoping tractable.
2. Before building a custom index because grep is slow in your agent VMs, check whether the VM uses a network-backed file system — every grep may be issuing network calls, and swapping the file system is the actual fix.
3. Make save/restore cost proportional to the diff, not to disk size, if you want fast sandbox pause/resume; a terabyte disk with 100 changed lines should not cost a terabyte of I/O.
4. Give your agent a real local test path: local DB, Docker Compose, Postgres, and mock servers, so testing never requires production credentials. Treat the quality of your human dev-environment setup as the ceiling on your agent's setup.
5. Ship test evidence, not just PRs — a screen recording with annotations labeling what is being tested is what moves merge speed.
6. If you automerge agent output with no review, expect roughly two weeks before the codebase needs to be thrown out. Add an AI reviewer, scheduled duplication cleanup, and strict human-approved contracts between modules.
7. Encode AI-specific code smells as lint/Semgrep rules that fail the PR: `getattr`/`hasattr` defensiveness, `Dict[str, Any]` and untyped tuples, and backwards-compat import shims that exist only to avoid renaming.
8. Wire the agent to systems before adding more agents: read-only production database credentials, logs, Sentry or a generic webhook trigger, and internal knowledge bases. Murray identifies integration into the company — not the agent itself — as where the remaining leap sits.
9. For memory, favor auto-capture with a one-tap approve/reject over asking people to write docs (~95% of Devin's memories are auto-generated), and budget ongoing eval work to keep retrieval honest as models change.
10. Isolate parallel agents in their own boxes with segregated work rather than letting them message each other freely; free-form agent-to-agent messaging produced chaos in Cognition's own testing.
## Notable Quotes
> "We could pretty much go from a specification to a completed pull request assuming the spec was good enough with very little friction." — Walden Yan
> "I think testing is actually a really interesting problem solving challenge for these AIs." — Walden Yan
> "Your codebase regresses to your worst engineer." — Cole Murray
> "The thing that gives me the most bullishness that multi-agents might be possible is Devin will sometimes tell me I'm wrong and push back." — Walden Yan
> "I don't want to compete for like $20 a seat. I think that that is just a really difficult business." — Cole Murray
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*