Ideas from AI Engineer talks Curated by Alex Vidal (@dobleio) and Borja Pérez (@borjaperfra) 76 ideas · 101 talks · 5 events

The Engineering Brief

Cognition made its whole app run on one VM with mocks so agents can test unattended

Walden Yan, co-founder and CPO of Cognition, says the hard part of letting agents take bugs from report to merge was infrastructure. Cognition put every service, with mocked third parties, in one VM per agent, rebuilt from the latest code every hour.

Walden YanCognitionAIE CODE 20262 min read
Watch from 0:40

Recording by AI Engineer.

The idea

The speaker’s argument, in our words.

Cognition wants most engineering work to run without a human: a bug report arrives in Slack, Devin opens a PR and replies with a video showing the fix. Yan's point is that buying an agent does not get a team there. Before the change, testing meant a staging environment, live services and engineers clicking through flows by hand.

The team migrated every service to run locally under Docker Compose, built mock versions of every third-party service, and packed it all into one VM that any agent can use without touching live systems. The VM is rebuilt from the latest code every hour, and when a rebuild fails an agent is the first responder. Agents also write and update their own testing skills as the code changes. With that in place, an agent can exercise fairly complex behaviour inside its VM; his example is creating several accounts that join the same Zoom call to test voice features.

What they found

From the talk. Figures are self-reported unless stated.
  • Cognition moved from testing against staging and live servers with manual click-through to running every service locally in Docker Compose with mocked third-party services inside one VM per agent.

    Internal migration described by Cognition's co-founder and CPO. No timeline or effort figures given.

    Case study

    4:26
  • Agents never touch live services to test; VMs are rebuilt from the latest code every hour, and Devin fixes failed snapshot builds.

    Self-reported practice.

    Case study

    4:58
  • Agents write and keep updating their own skills for how to test the codebase as it changes.

    Recommended as a benefit of cloud agents with persistent environments.

    Technical recommendation

    5:30
  • Cognition's merged PRs grew 40x over about a year while engineering headcount grew 2.7x; Yan judges the PRs as good as or better than before.

    Internal chart shown by Cognition, which sells Devin, the agent behind these PRs. Self-reported. PR count is not a productivity measure on its own, the quality claim is the speaker's judgment, and the growth is not attributed to the VM work specifically.

    Vendor claim

    0:40

Why it matters

Our reading. Not said in the talk.

Yan locates the bottleneck in environment reproducibility rather than in the agent: an agent that cannot run the app cannot show evidence that its change works, so a human has to do it instead.

What one could try

  • List every external dependency your app needs to run end to end and decide which ones need a local mock.
  • Build a single environment image an agent can start from scratch, and rebuild it on a schedule from the main branch.
  • Store test procedures as agent-readable skills and let agents update them when they fail.

Limitations

  • Vendor talk: Cognition sells Devin, the agent used throughout.
  • No data on how long the migration took or how much test coverage the mocks give.
  • The 40x merged-PR figure is self-reported, counts PRs rather than outcomes, and is not tied to any single practice.

Original sources

This is our synthesis of the talk, checked against the transcript at the linked moments.

Related ideas