Optimizing & Tuning Agents
17 questionsDONEUNLOCKEDLOCKED
Optimizing & Tuning Agents Interview Questions
Making an agent cheaper, faster and better in the right order: cutting steps and context, fixing tools, caching and routing, optimising prompts against a metric with DSPy, reinforcement learning with verifiable rewards and GRPO, and distilling routers and small models from production traces, each change proven on held-out tasks.
Worked answers that trace the run, put each decision on the right side of the authority line, and end with the follow-ups and scoring a panel applies.
You have 5 free answers unlocked here.Sign in free for 1 more · 11 are premium.
01–07Foundationsthe mechanisms behind this topic, and the terms a panel uses for them0/7 done
08–13Core questionsthe questions this topic is most often tested on, with full worked answers0/6 done
14–17Field scenariosopen-ended designs, incidents and trade-offs where you must state what is missing0/4 done
The concepts behind Optimizing & Tuning Agents
Lessons behind these answers. The opening lessons are free; deeper ones are Premium.
Foundational
Optimise an Agent in the Right OrderAgent optimisation has an order. The cheapest, most reliable wins come from the harness: removing unnecessary steps, shrinking context, improving tool descriptions and results, caching stable prefixes and routing easy steps to cheaper models. Prompt optimisation with a metric and a training set comes next. Fine-tuning and reinforcement learning on verifiable rewards change the model itself and pay off only when the task is stable, the evaluation is trustworthy and the cheaper levers are exhausted.Core
Prompt Optimisation with a Metric: DSPy, GEPA and MIPROv2Prompt optimisation treats instructions and few-shot examples as parameters to search against a metric. In DSPy you give a program, a scoring function and training examples. MIPROv2 bootstraps candidate demonstrations, proposes instructions with a model and searches combinations with Bayesian optimisation. GEPA (2025, an ICLR 2026 oral) reflects on execution traces and textual feedback from the metric to evolve prompts, keeping a Pareto set of candidates that do best on different validation examples.Sign in
Advanced
Reinforcement Learning with Verifiable Rewards for AgentsRLVR, named in the Tulu 3 work (2024), replaces a learned reward model with a program that checks the outcome: unit tests, an exact answer, an end-state comparison. GRPO, introduced in DeepSeekMath (2024) as a variant of PPO, samples several attempts per task, scores them, and uses each attempt's reward relative to its group as the advantage, without a separate value model. For agents the trajectory spans many tool calls, so the reward is usually the final verified outcome.🔒 Premium
Advanced
Distilling Routers and Small Models from Agent TracesAgent traces from a capable model are a by-product worth keeping. They can train a router that sends each step to a small or large model, or fine-tune a small model to imitate the large one on a narrow step such as classification, extraction or tool selection. The router's threshold is chosen on held-out data to meet a quality target, not to maximise savings; uncertain cases escalate to the large model.🔒 Premium
FROM THE BLOG
AUTONOMY AND LONG-HORIZON AGENTS · 24 NOV 2026Frontier Model Releases for Agents, September to November 2026: What Each Launch Claims, and How to ChoosePERFORMANCE AND COST · 24 NOV 2026Making Agents Cheaper and Faster in Late 2026: Prompt Caching Changes, Compaction APIs, Tool Retrieval and Off-Peak Tiers
Unlock all 17 answers · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal