WhoBuilt

Self Coding Agents

Apr 21, 2025· 17 min· 45K views·Watch on YouTube

Speaker

Colin Flaherty, an AI researcher at Augment Code, discusses how his team built an AI coding agent that helped develop its own codebase at an AI Engineer event.

An agent helps build itself

Flaherty describes Augment Code’s move from autocomplete and chat tools toward AI agents. The team’s agent helped build integrations, write tests, and profile its own performance; more than 90% of its roughly 20,000 lines of code were written by the agent with human supervision.

Context and tools make agents useful

The agent can search a codebase, edit files, run subprocesses, and use integrations such as Google Search. When asked to add logs to its Google Search tool, it found the relevant file, ran a copy of itself, and used user feedback to remember where credentials were stored. Flaherty says the work depended on a context engine, a capable foundation model, and a safe code execution environment.

Set realistic expectations and onboard agents

Flaherty cautions that agents are not yet senior engineers who can handle messy projects from start to finish. He recommends thinking about task complexity rather than separate agents for each engineering specialty, and recognizing that agents have different strengths from people. Augment used a searchable knowledge base with Graphite commands, testing instructions, and style guidance to fill gaps in the model’s knowledge.

Cheap code shifts product priorities

Because agents helped build several integrations at once, Flaherty says engineering time may be less of a constraint, while product insight and design become more important. Strong codebase awareness let the agent act on broad natural-language requests, and combining context from sources such as code and Slack supported tasks like drafting release announcements and plotting code growth.

Tests improve reliability and autonomy

An agent-written cache function had a concurrency bug: multiple agents could overwrite each other’s cache because the save function did not read before writing. Flaherty says the team missed the issue because it lacked a test for that case. On an internal bug-fixing benchmark, adding a four-round test and feedback loop improved the score by 20%, compared with a 4% gain from upgrading the foundation model.

Takeaways

  • Give agents access to relevant code, organizational knowledge, and tools; broad instructions work better when they can find the right context.
  • Onboard agents with searchable guidance about your tools, tests, and coding conventions.
  • Assess agents by task complexity and their specific strengths, rather than assuming they work like human engineers.
  • Build tests for concurrency and other weakly covered cases; test feedback can improve agent bug fixing substantially.
  • As code becomes cheaper to produce, invest more in customer feedback, product insight, and design.

Mentioned in this talk

Search inside this talk

What was claimed 5

Related talks