Agents, Tool Use & MCP·Question 71 of 90Advanced

A new model generation ships. Which parts of your agent harness, such as planning prompts, step caps, tool restrictions, context resets and retry wrappers, do you expect to delete or loosen, and how do you prove on real customer workloads that removing them does not regress anything? How do you tell a harness change from a model change in your evals?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Most harness code is compensation for a model weakness at a point in time. Teams that build agent platforms say this openly: harness assumptions get revisited with each model generation, and evals measure harness quality against real customer workloads. The skill being tested is removing scaffolding with evidence instead of accumulating it forever.

Full worked answer

Most harness code is compensation for a model weakness at a point in time. Teams that build agent platforms say this openly: harness assumptions get revisited with each model generation, and evals measure harness quality against real customer workloads. The skill being tested is removing scaffolding with evidence instead of accumulating it forever.

Inventory first. Every scaffold should have a recorded reason: which failure it compensates for, which model it was added for, and which eval showed it helped. Without that list you cannot decide what to remove, and you will be afraid to touch anything.

Likely candidates to loosen:

  • Planning prompts and forced "think step by step" turns, now that adaptive thinking does this inside the call.
  • Retry wrappers that repair malformed JSON, now that strict schemas and structured outputs guarantee shape.
  • Aggressive context resets and tight compaction thresholds, with 1M-token windows and better long-context use.
  • Low step caps, if pass^k on long tasks has improved.
  • Tool restrictions added because the old model misused a tool.

Things that break regardless. New generations also remove API knobs. Anthropic's newest models reject temperature and top_p overrides, forced tool choice and assistant prefill, so a harness relying on prefill to force JSON fails outright. Tokenizer changes move your numbers: the tokenizer introduced with Claude Opus 4.7 produces about 30% more tokens for the same text, which shifts budgets, truncation thresholds and cost alerts. Find these in a compatibility pass before any quality work.

Do not remove policy. Approval gates, permission boundaries, sandboxing and spend caps are not compensations for weakness. A more capable model is a reason to keep them, not loosen them.

Proving it on real workloads.

  1. Build the eval set from replayed customer traces, stratified by task type and tenant, with verifiable end states where possible.
  2. Ablate one scaffold at a time, then in plausible groups, measuring success rate, pass^k over several runs, cost, latency and safety evals, with confidence intervals.
  3. Remove only what is neutral or better on every slice, not just on average.
  4. Canary to a traffic slice with production outcome metrics before full rollout.

Separating harness from model. Run a 2x2: old model with old harness, old model with new harness, new model with old harness, new model with new harness, on the same eval set and fixed seeds. The new model with old harness isolates the model effect; the difference to new with new is the harness effect; and the interaction tells you which scaffolds only mattered for the old model. Version harness and model independently in every trace, and never ship both changes in one deploy, so a production regression can be attributed.

What a good answer covers

  • Most harness code is compensation for a model weakness at a point in time
  • Teams that build agent platforms say this openly
  • The skill being tested is removing scaffolding with evidence instead of accumulating it forever
  • Every scaffold should have a recorded reason
  • Without that list you cannot decide what to remove, and you will be afraid to touch anything

Key terms: Inventory first · Likely candidates to loosen · Things that break regardless · Do not remove policy · Proving it on real workloads · Separating harness from model

Interviewer follow-ups to expect

  1. How do you keep the scaffold inventory honest as engineers add workarounds under deadline?

  2. What would you do if removing a scaffold helps most tenants and hurts one large customer?

  3. How many eval runs do you need before trusting a 2-point change in success rate?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep