autonomous software factory at scale

Cognition hits 40x PR throughput with 2.7x headcount using AI-agent engineering pods AI Engineer
TL;DW
  • Cognition achieved 40x PR throughput growth with only 2.7x engineering headcount increase by implementing a self-driving software factory where Devon handles tasks end-to-end without human involvement.
  • Restructured engineering into small pods (2-3 engineers) with vertical responsibility: each engineer manages customers, QA, PMing, and their own linear board, sending work to agents rather than implementing directly.
  • Migrated entire codebase to run locally via Docker Compose with mocked third-party services; rebuild VMs hourly with latest code so agents test on fresh environments without touching live services.
  • Agents self-maintain their testing skills: as codebase changes, Devon updates its own test procedures, eliminating need for engineers to open laptops or IDEs to verify code changes.
  • Shift from task-based to job-based agent workflows: give agents high-level goals (e.g., improve P99 latency) and let them autonomously set up monitoring, alerts, and weekly reports over long durations.
  • Measure everything numerically and assign agents to optimize those metrics 24/7: onboarding retention, latency, layout shifts, TPM throughput—any KPI should have an agent continuously improving it.
  • Built custom inference stack on Nvidia's new Vera Rubin GPUs by giving agent the goal of maximizing throughput; agent discovered 8-9 optimization strategies in one week, surpassing previous GPU class performance.
  • One engineer directed Devon to maintain Android/iOS feature parity by monitoring iOS codebase, listening to Slack feedback, and recursively improving—resulted in 44-day working Android app with minimal human intervention (mostly via Slack recording reviews).
  • Developers can now work from iPads entirely; all code execution happens in controlled cloud VMs, improving security by preventing secrets and keys from lingering on personal developer machines.
  • Set up recursive self-improvement loops analyzing all PRs, token usage, and decisions across codebase; agents post daily optimization ideas (CI improvements, lint bug detection) automatically.

Cognition restructured around autonomous pods where Devin agents own the full pipeline—bug triage through deployment—while engineers manage goals via Slack. Infrastructure changes include hourly VM snapshots, Docker Compose local mocks, and long-horizon job assignments like "improve P99 latency" rather than discrete tickets.