~/cxo.dev/ai-engineering-acceleration/background-agents

Background agents that pick up work and ship PRs

Background agents run in the cloud, take a ticket or a Slack thread, and come back with a pull request. They make it easy to do the work nobody takes the time to do. We help engineering teams pick a platform, give agents an environment where they can check their own work, and route what they produce to the right reviewer.

For engineering leaders and platform teams moving agent work off laptops and into the cloud.

intake tickets verified PRs

From intake to a routed PR

Work arrives from the tools your team already uses, runs in its own sandbox, and reaches the owner with evidence attached.

intake

  • #eng-bugs thread
  • ENG-2210
  • PR comment
  • error alert

sandboxes

  • vm-01repro test added
  • vm-02seeding test org
  • vm-03e2e ✓ preview ✓
  • vm-04api up, running
  • vm-05verify subagent ✓
  • vm-06flaky test fixed

review

  • PR → payments ownertests · trace
  • PR → designpreview · visual diff
  • PR → platformtests · CI ✓

Where background agents stall

Most teams we work with have tried at least one cloud agent. These are the problems that keep the rollout from sticking.

Area
What we see
What we install
Environment

Agents can’t run the backend, so they ship code nobody ran.

A sandbox per run with the full stack, seeded data, and credentials scoped to a test org.

Intake

Engineers babysit agents from their laptop, one at a time.

Agents started from where work already lives: the issue tracker, Slack, PR comments, and alerts. Assign a ticket to a person and an agent.

Verification

The agent checks its own work and grades itself well.

An independent check by a separate subagent or reviewer, plus tests, previews, and browser checks it can’t skip.

Work selection

Agents get the vaguest tickets, fail, and the team decides agents don’t work.

A clear starting list: bug repros, flaky tests, small front-end fixes, dependency updates, and migrations with good tests.

Tool sprawl

Every team trials a different agent, so nothing compounds.

One default background agent, skills and config shared across harnesses, and a short trial process for new tools.

Ready when you are

Rolling out background agents?

We help you choose a platform, set up environments and intake, and pick the first work to hand off. Then we measure what it gives back.

Talk to us →

What we set up

The environment, the intake, and the checks around the agent decide whether its PRs get merged.

agent-run.trace
#eng-bugs  @agent fix ENG-2210

[sandbox]  fresh VM, repo at main, seeded test org
[context]  AGENTS.md, skills: repro-bug, write-test
[repro]    failing test added: retry_after_timeout
[fix]      2 files changed
[verify]   tests ✓  preview ✓  verify subagent ✓
[pr]       ready for review, routed to the payments owner

thread updated · anyone can steer from Slack
  • Build, buy, or both

    We usually advise buying the agent runtime and building the parts that are specific to you: environments, skills, intake, and review routing. Build runtime infrastructure only when no platform supports a workflow you need.

  • Sandboxes that can run your product

    Each run gets its own short-lived environment with the backend running and seeded test data, so the agent can reproduce bugs and test real flows before it opens a PR.

    agent-env.yaml
    image: ghcr.io/acme/dev@sha256:…   # pinned
    setup:
      - pnpm install --frozen-lockfile
      - docker compose up -d --wait db api
      - pnpm db:seed --fixture=test-org
    secrets: [TEST_ORG_TOKEN]
    ttl: 2h
    network: allowlist
  • Start from where work already lives

    Start agents from the issue tracker, Slack, PR comments, and alerts. When the run happens in a shared thread, teammates can see what the agent did, steer it, and pick up what works.

  • Verification it can’t skip

    Run validation in a separate subagent so the agent isn’t grading its own work. Enforce it in the runner or CI, so a PR can’t be marked ready until tests, a preview, and a browser check for UI changes pass. Then route the PR to the owner of that code with the evidence attached.

    ci/agent-pr-gate.yaml
    required before ready-for-review:
      - tests: changed paths
      - preview: deployed
      - browser-check: required for UI changes
      - verify-subagent: report attached
    on-fail: keep draft, post results to thread
  • Fund the work agents do well

    Give agents work that is scoped, has context and tests, and has a merge owner. Hold work that lacks a contract or will create review debt. Widen the list as the evidence comes in.

  • Clear the backlog you usually skip

    Background agents pay off most on maintenance, flaky tests, and small fixes that never reach the top of a sprint. Track the backlog items they merge so the team can see the capacity it gets back.

How we measure background agents

We track whether agent work lands, what it costs, and how much human help it needs.

Signal
What it tells you
Where it comes from
Agent share of merged PRs

How much of your shipped work starts with a background agent.

Git host

Human interventions per fix

How often a person has to step in before a change can merge.

PR history, agent sessions

Ticket to PR time

How fast routine work moves once an agent picks it up.

Issue tracker, git host

Abandoned runs by task type

Which kinds of work aren’t ready for agents yet, and why.

Agent platform

Cost per merged PR

Whether the spend is turning into shipped work.

Agent platform, gateway

Questions we get

Should we build our own background agent?

Usually not the runtime. Buy that, and build what is specific to you: environments, skills, intake, and routing. Build more only when you have a team that wants to maintain it and a workflow the platforms can’t support.

What work should go to background agents first?

Work with a clear definition of done and a fast way to check it: bug repros, flaky tests, small front-end fixes, dependency updates, and well-tested migrations.

How do we keep agent PRs from flooding review?

Make every PR arrive with evidence that it works, put an agent reviewer on every change, and route human review by risk. We cover this on our AI code review page.

Talk to us about background agents.

Tell us which agents you’ve tried, where they get stuck, and what you want them to own.