Building and Optimizing AI Programming Agents with MLOps Infrastructure at Scale

weights_&_biases · Tech · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Programming-agent optimization

Weights & Biases needed to show how MLOps infrastructure can systematically improve programming agents, moving from a small Tiny Agent harness to top SWEBench performance and toward reinforcement-learning-driven researcher agents.

Constraints:

Architecture

The presenter built Tiny Agent as a simple command-line harness with read, write, and run tools around an LLM, then optimized the harness through experiments tracked in Weave. W&B Launch runs hundreds of parallel eval examples, Weave stores traces/results and leaderboards, and later reinforcement-learning tooling is proposed for directly improving agents and researcher-agent workflows.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  llm[LLM] --> agent-harness[Agent Harness]
  agent-harness --> tool-set[Tool Set]
  agent-harness --> weave[Weave]
  launch[Launch] --> swebench[SWEBench]
  launch --> weave[Weave]
  swebench --> leaderboard[Leaderboard]
  weave --> leaderboard[Leaderboard]
  rl-trainer[RL Trainer] --> agent-harness[Agent Harness]
  weave --> rl-trainer[RL Trainer]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
LLM Reasoning model used by the programming agent. Agent Harness
Agent Harness Implements the agent loop, tools, memory, and prompt formatting. LLM, Tool Set, Weave
Tool Set Read-file, write-file, and run-command actions for software tasks. Agent Harness
Weave Experiment database and trace UI for agent runs and results. Agent Harness, Launch
Launch Distributed infrastructure for running many eval examples. Weave, SWEBench
SWEBench Benchmark for real-world software-engineering task performance. Launch, Leaderboard
Leaderboard Compares model and harness results across evals. Weave, SWEBench
RL Trainer Proposed reinforcement-learning layer for directly optimizing agents. Weave, Agent Harness

Data flow

An agent harness formats memory, tools, and instructions for the LLM, executes read/write/run-command actions, records traces and results in Weave, launches many eval examples through W&B Launch, compares results on leaderboards, and uses identified failures for further harness or RL improvements.

“The harness records the sequence of prior steps as memory and it formats the memory available tools and instructions into prompts to send to the LLM.”transcript, stated
“producing a new result in our experiment database, which is WBWeave that we can use for further research. So, those three activities, research, implement, and run, make up the experiment loop. Just do that 977 times and you'll get great results.”transcript, stated

Why this architecture

The talk separates the model from the harness so teams can improve prompts, tools, memory, and model choices independently. Weave and Launch provide the experiment and scale infrastructure needed to iterate across many SWEBench examples rather than judge agent changes anecdotally.

“harness. The harness is code that an application developer writes to give the LLM real world capabilities. The harness has a few responsibilities.”transcript, stated
“experiments that I did. I I used OpenAI one as 01 as the model and ran lots of experiments to improve my harness. So for example, I did experiments changing prompts to give the agent different instructions. I added a memory compression system so the agent could”transcript, stated

Models used: OpenAI 01 · O1 reasoning model · R1 · Tiny Agent · LLMs

Scale

Alternatives considered (roads not taken)

Only change the model.

Rejected because: The presenter held OpenAI 01 fixed and improved the harness through experiments.

“experiment is to keep the model fixed and improve the harness. This is all the experiments that I did. I I used OpenAI one as 01 as the model and ran lots of experiments to improve my harness. So for example, I did experiments changing”transcript, stated

Manual local evaluation.

Rejected because: SWEBench optimization needed hundreds of parallel examples and shared experiment tracking.

“So with this I could happily run hundreds of parallel uh examples. And this is how I did it for all of my experiments. But there are some problems with this. This is the first problem. Uh running longunning processes on your”transcript, stated

Stop at maxing out SWEBench.

Rejected because: The talk argues real-world researcher agents require broader tasks and RL beyond benchmark maximization.

“can never do any better than maxing out SWEBench. And while maxing out SWEBench would be awesome in the real world”transcript, stated

Patterns

eval-driven-development (agent optimization)

W&B used SWEBench, Weave traces, Launch, and leaderboards to drive agent improvements.

“Launch great for running EVLs. To that end, we've created two powerful”transcript, stated

tool-use-orchestration (programming harness)

Tiny Agent's harness gives the LLM read, write, and run-command tools.

“Tiny agent provides their read file, write file, and run command tools. That's all it takes to build a programming agent.”transcript, stated

observability-tracing (MLOps)

Weave stores traces and results so failures can be analyzed and compared.

“I use WBWeave as my experiment database, and I spent tons of time in the Weave UI pouring through traces and results.”transcript, stated

batch-offline-processing (evaluation scale)

Launch runs hundreds of benchmark examples in parallel.

“run hundreds of parallel uh examples.”transcript, stated

fine-tuning-adaptation (reinforcement learning)

The talk proposes reinforcement learning to directly optimize agent behavior from eval signals.

“ART it stands for agent reinforcement trainer. Uh it's basically a way to use reinforcement learning to directly optimize your”transcript, stated

Tradeoffs

Optimization target

Chose Harness experiments with a fixed model over Only swapping models.

Rationale: Holding the model fixed isolated harness improvements and made progress measurable.

“keep the model fixed and improve the harness.”transcript, stated

Agent simplicity

Chose Tiny Agent with three tools over A complex initial framework.

Rationale: Read/write/run-command was enough to build a working programming agent and expose the key optimization loop.

“read file, write file, and run command tools. That's all it takes to build a programming agent.”transcript, stated

Improvement mechanism

Chose Reinforcement learning as a future optimization path over Manual harness changes only.

Rationale: RL can directly train models from eval signals when outcome correctness can be measured.

“All you need is an eval like SWEBench and you can directly train your model”transcript, stated

Gotchas (what bit them)

Programming agents fail from reasoning mistakes, not just missing tools.

Root cause: Earlier agents made logical errors in how they processed data.

Resolution: Use reasoning models and systematic evals to identify and reduce those errors.

“the top issue I saw with my programming agents was that they make what I call reasoning mistakes”transcript, stated

Agent harness improvements need experiment infrastructure.

Root cause: Prompt, memory, and tool changes create many variants that must be tracked.

Resolution: Use Weave as the experiment database and Launch for distributed evals.

“I ran lots and lots of experiments all tracked with Weave”transcript, stated

Benchmark maximization is not enough for real researcher agents.

Root cause: SWEBench is useful but narrower than open-ended research work.

Resolution: Extend tooling toward researcher agents, richer evals, and RL workflows.

“researcher agents use our APIs, we'll have the same visualizations”transcript, stated

Evaluation

The case evaluates programming agents on SWEBench using Weave for traces/results, Launch for distributed execution, and leaderboards for comparing models and harnesses.

Metrics: SWEBench leaderboard position · Parallel eval examples · Trace-level failures · Harness variants · Model comparisons

“And we automatically create a weave leaderboard so you can compare models across all the evals you've tried.”transcript, stated
“From the leaderboard, you can drill into specific evals to see example level”transcript, stated

Outcomes

The source reports a 400-line Tiny Agent, a January 17, 2025 top SWEBench result, two months at the top, and hundreds of parallel eval examples.

“My submission used OpenAI's 01 model and held the top position on the public leaderboard for two months.”transcript, stated