WhoBuilt

Automating Large Scale Refactors with Parallel Agents

Jan 8, 2026· 1 h 16 min· 6.8K views·Watch on YouTube

Speaker

Robert Brennan, co-founder and CEO of OpenHands, explains how teams can coordinate coding agents to tackle large-scale refactors and maintenance work, including a live workshop on CVE remediation.

From code suggestions to agent orchestration

Brennan traces coding tools from context-free snippets to IDE autocomplete and autonomous agents that can run code and respond to errors. He describes parallel agents as an emerging next step, especially for work too large for one agent to finish reliably.

Where orchestration pays off

Brennan points to repeatable maintenance and migration work, including dependency updates, documentation, and framework changes. One client used OpenHands to remediate CVEs across thousands of repositories and reported a 30x improvement in time to resolution.

Break large changes into reviewable batches

Long tasks run into context limits, repeated mistakes, and gaps in agents' knowledge of a codebase. Brennan recommends decomposing work into parallel, verifiable tasks with clear dependencies, intermediate human reviews, and a definition of done. He suggests starting with three to five concurrent agents.

Refactor SDK demo: verify, fix, review

Calvin and Brennan demonstrate dividing OpenHands code into batches based on directory structure, then mapping dependencies between those batches. A verifier flags code smells, and a fixer uses the OpenHands Agent SDK to create focused pull requests for human review. Teams can work through dependency order until every batch passes verification.

Share context and coordinate the work

Brennan recommends tasks that fit in one commit and pull request, can run in parallel, and are easy to verify. He describes sharing lessons through human updates or reviewed AGENTS.md files, while direct agent-to-agent messaging can introduce unpredictable behavior. The workshop applies this approach to scanning a repository for vulnerabilities and launching a separate agent for each CVE.

Takeaways

  • Choose refactor tasks that can be split into small, independently verifiable pull requests.
  • Use dependency order to work through connected code without blocking every agent.
  • Keep human review at intermediate steps; Brennan describes a target of roughly 90% automation.
  • Start with a few concurrent agents, then scale after the review and coordination process works.
  • Share useful discoveries selectively; unrestricted agent-to-agent messaging can create loops and unpredictability.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks