WhoBuilt

Agents Building Agents

Jun 28, 2026· 30 min· 4.5K views·Watch on YouTube

Speaker

Alfonso Graziano, a tech lead at Nearform, explains how his teams use coding agents and spec-driven development to build and improve reliable AI agents at AI Engineer.

Why agents need a repeatable improvement process

Graziano notes that agents can be costly, slow, unreliable, and prone to hallucinations. He describes an agent as an LLM in a loop with tools and context, and frames the challenge as improving performance on both evaluations and real user data.

Measure agent quality with evaluations

A golden dataset records example inputs and expected outcomes, which can include answers, tool calls, parameters, or sequences of actions. Scorers use these cases to estimate accuracy and reveal regressions. A simple agent without tools achieved an 18% pass rate, mainly answering questions it could handle from its training data.

Use a coding agent to improve another agent

Graziano’s AutoAgent runs evaluations, proposes a hypothesis, changes the target agent’s code or prompts, and checks the results. In one simple example, accuracy rose from 18% to 83% in about 10 iterations; on an already optimized production agent, it improved some internal benchmarks by 10%. Each iteration uses a branch, and changes that regress or fail to improve can be rolled back, with humans guiding the process and protecting the evaluation data from being altered to inflate results.

Turn live feedback into fixes and regression tests

The team collects user feedback and traces, including tool usage, response time, and token counts; subject matter experts can also annotate traces. A coding agent clusters failure patterns and investigates their causes, then experts validate and prioritize proposed fixes. Accepted failure cases become part of the golden dataset so later changes can be checked against them.

Build a harness for reliable changes

Graziano attributes these workflows to harness engineering: setting up constraints, tasks, feedback, and governance so a coding agent can make and validate changes. The harness includes behavioral specs for failure cases, quality gates such as linting, unit tests, and evaluations, along with context engineering and production observability.

Takeaways

  • Create a golden dataset with subject matter experts, and include expected tool use as well as final answers.
  • Track a baseline and evaluate each proposed change; keep the data and scorers independent from the agent making the changes.
  • Use separate branches for optimization attempts so regressions can be rolled back and successful changes preserved.
  • Collect traces and feedback from real use, validate failure clusters with domain experts, and turn accepted cases into regression tests.
  • Give coding agents a clear harness: behavioral specs, relevant context, quality gates, and production observability.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • built
    “I built something called AutoAgent”
    YouTube
    Verified2 sources· Talk, Web· archived
  • works at
    AI Tech Lead / AI Lead
    “I'm a tech lead at Nearform”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    AutoAgent: Runs evals and iteratively updates an AI agent’s code, prompts, and tools, retaining improvements and rolling back regressions.
    “Update the system code, try new system prompts, create new tools”
    YouTube
    Unverified1 source· Talk
  • metric
    AutoAgent: Improved a simple agent’s baseline accuracy from 18% to 83% in around 10 iterations.
    “the baseline accuracy was 18%, and we managed to reach 83% in around 10 iterations”
    YouTube
    Unverified1 source· Talk
  • metric
    AutoAgent: Improved some evaluations by 10% on an internally benchmarked production agent.
    “we got a 10% gain on some of our internal benchmarks”
    YouTube
    Unverified1 source· Talk
  • metric
    AutoAgent: Improved a production agent’s evaluation accuracy from 67% to 86% in around 10 iterations.
    “The baseline accuracy was 67%, but in around 10 iterations, we managed to reach 86%”
    YouTube
    Unverified1 source· Talk
  • feature
    live feedback improvement pipeline: Clusters failure modes from user and expert feedback on agent traces, supports root cause analysis, and proposes fixes.
    “we analyze the traces and cluster the failure modes”
    YouTube
    Unverified1 source· Talk
  • feature
    live feedback improvement pipeline: Adds investigated failure modes to the golden dataset and eval suite as regression tests.
    “all the failure modes we find ... become part of the golden dataset”
    YouTube
    Unverified1 source· Talk
Show all 9 facts

Related talks