WhoBuilt

The Unreasonable Effectiveness of Prompt Learning

Dec 23, 2025· 11 min· 16K views·Watch on YouTube

Speaker

Aparna Dhinakaran of Arize explains how prompt learning and evaluation can improve coding agents, using Claude Code and Kline benchmarks as examples.

System prompts shape coding agents

Dhinakaran says coding agents depend on system prompts that teams repeatedly revise, alongside their underlying models. She describes system prompt learning as using feedback from past attempts to improve those instructions over time.

Prompt learning uses explanations

She contrasts prompt learning with reinforcement learning, where a system may get a score but little guidance on how to improve. Prompt learning adds written explanations of errors, which can help teams update agent instructions without fine-tuning the model.

Benchmarking Claude Code and Kline

The team tested Claude Code and Kline on SWE-bench, starting with no added repository rules. With Claude Sonnet 4.5, Kline resolved about 30% of issues and Claude Code about 40%. They ran the agents, checked patches with unit tests, and used an LLM judge to explain failures.

Evaluation feedback improves rules

The judge received the problem, the agent’s solution, the tests, and the actual solution, then identified whether the patch passed and why it failed. Those explanations fed a meta-prompt that generated rules to append to the agents’ system prompts. Across 150 SWE-bench Lite examples, the team reported a 5% improvement for Kline and 15% for Claude Code.

Evaluation quality matters

Dhinakaran compares the approach with GEPA, a DSPy prompt optimizer that also uses English feedback. She says GEPA required more loops and rollouts in their side-by-side benchmark, and emphasizes that carefully designed evaluations were central to getting useful explanations.

Takeaways

  • Use failure explanations, not just pass rates, to decide how agent instructions should change.
  • Run unit tests and use an evaluator that explains what went wrong on each task.
  • Append learned repository rules to the system prompt before considering model fine-tuning.
  • Track baseline and updated performance on the same benchmark set.
  • Invest in evaluation prompts: their explanations shape the quality of prompt improvements.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks