Getting more out of frontier Claude models: prompt audits, caching, evals and hill climbing: analysis

Transcript · Report with the audio

Lance Martin of Anthropic argues that many applications sit inside the cost/quality Pareto frontier because of small misconfigurations, not model limits (Lance Martin 0:00; Lance Martin 0:46). He covers five fixes: audit prompts for outdated anti-patterns, use the prompt cache properly, design evals Claude can climb, hill climb without overfitting (including to cut cost), and build harnesses for long-running agents with Claude Managed Agents (Lance Martin 1:32; Lance Martin 5:28; Lance Martin 8:45; Lance Martin 11:50; Lance Martin 19:02). Each fix has a Claude Code skill command. The audience Q&A covers how much of eval design can be automated, grading open-ended outputs, effort levels, convergence and context engineering (Lance Martin 24:02; Lance Martin 29:40; Lance Martin 38:32; Lance Martin 57:47). He closes by saying careful eval design up front is what lets frontier models succeed (Lance Martin 59:26; Lance Martin 1:00:26).

People

  • Lance Martin (100.0% of talking time, 12,386 words): Member of technical staff at Anthropic, formerly at LangChain, and the only labeled speaker. He gives the talk and then answers audience questions, which reach the transcript only through his paraphrases (Lance Martin 0:00; Lance Martin 24:02; Lance Martin 35:17). He holds that simple fixes (prompt audits, caching, a stronger model at low effort) often cut cost and raise quality together, and that eval design is where humans add the most value (Lance Martin 40:05; Lance Martin 42:42). He is open about limits: he says hill climbing may not converge, admits he is confused by effort, and declines to recommend one observability vendor over another (Lance Martin 36:03; Lance Martin 38:32; Lance Martin 35:17).

Chapters

  1. Intro: most applications sit inside the cost/quality frontier [0:00]. Lance frames cost and quality as a Pareto frontier across Fable, Opus, Sonnet and Haiku (Lance Martin 0:00; Lance Martin 0:46). He argues most applications sit inside that frontier because of minor misconfigurations, and says he will cover five themes before taking questions (Lance Martin 0:46).
  2. Audit your prompts [1:32]. Older habits such as “think step by step”, verification rituals, thoroughness boosters and scratchpads are no longer needed and add cost. Earlier models ignored one of two contradictory rules; frontier models get confused by them (Lance Martin 1:32; Lance Martin 2:18). The checkup prompt audit and claude-api prompt audit skills in Claude Code remove these patterns (Lance Martin 2:18; Lance Martin 3:06). On a synthetic customer-support benchmark, migrating from Opus 4.8 to Opus 5.5 helped somewhat, and running the audit afterwards improved both cost and performance further (Lance Martin 3:54; Lance Martin 4:40).
  3. Use the prompt cache [5:28]. Cached tokens cost about a tenth of base tokens and are faster, but the cache is a strict prefix match, so a change of one byte breaks it (Lance Martin 5:28; Lance Martin 6:15). Claude Console shows the cache hit rate, which the Claude Code team tracks closely (Lance Martin 6:15). Prompts should be layered from global (system, tools) to per-project memory, per-session state, then per-turn messages (Lance Martin 7:00). Running the skill on internal benchmark harnesses found cost cuts of up to 72% with no meaningful change in performance (Lance Martin 7:54).
  4. Designing an eval Claude can climb [8:45]. A good eval scores higher with a bigger model and with more thinking, leaves headroom at the frontier, and has low run-to-run variance (Lance Martin 9:33; Lance Martin 10:18). Many popular evals contain ambiguous tasks that no model can solve, so the apparent headroom is not real and hill climbing on them wastes tokens (Lance Martin 10:18). The claude-api build_eval skill works with any data source and walks the user through the data, the grader and the criteria (Lance Martin 10:18; Lance Martin 11:04).
  5. Hill climbing without overfitting [11:50]. Claude can improve against an eval on its own. The main risk is overfitting, for example adding an OCR tool only the eval needs, or using phrasing specific to the eval set (Lance Martin 11:50; Lance Martin 12:39). The claude-api hill climb skill splits the eval into train and test sets, reflects only on train failures, and tracks both each round. Train improving while test stays flat signals overfitting (Lance Martin 13:27; Lance Martin 14:18).
  6. Hill climbing examples: improving the Claude API skill and cutting cost [15:05]. Lance hill climbed the Claude API skill against an eval built from the documentation. It started at 68%, and Claude improved it by editing the skill text (Lance Martin 15:05; Lance Martin 15:51). In cost mode the hill climber searches model, effort and prompt. On the customer-support benchmark it moved from Opus 4.8 at high effort through Opus 5 at low effort, then tuned the prompt, for a 90% cost cut with better performance (Lance Martin 16:39; Lance Martin 17:27). Cost mode also works on saturated evals. It encodes the observation that a stronger model at low effort often beats a weaker model at high effort on both cost and quality (Lance Martin 17:27; Lance Martin 18:16).
  7. Harnesses for days-long agents: Claude Managed Agents [19:02]. Using METR charts, Lance traces autonomous task length from about four minutes with Claude 3 Opus to hours in 2025 and toward days now (Lance Martin 19:02; Lance Martin 19:51). Claude Managed Agents separates the brain (the harness) from the hands (the sandbox). An append-only session log lets the system recover when either one dies (Lance Martin 19:51; Lance Martin 20:37). Secrets stay in vaults that Claude can reference but never see (Lance Martin 21:25). A blog post with CJ, plus the onboard command, sets up an example scheduled agent that posts updates to Slack (Lance Martin 21:25; Lance Martin 22:26).
  8. Recap [23:14]. Lance restates the themes: audit prompts, use the cache, design harnesses for long runs, and invest in evals and hill climbing (Lance Martin 23:14). He says colleagues increasingly spend their time designing evals and let Claude hill climb on them overnight (Lance Martin 23:14).
  9. Q&A: automating eval design and choosing what to edit [24:02]. After feedback from Hamel, Lance is changing build_eval so it shows the user the raw data before building the eval, and he has a PR up (Lance Martin 24:02; Lance Martin 25:40). Human feedback can drive hill climbing once it is turned into an eval signal (Lance Martin 26:29). Prompts and skills are good starting points to edit because they are closely tied to behavior, though they overfit easily. Changes to harness code are harder to interpret (Lance Martin 26:29; Lance Martin 27:17; Lance Martin 28:07). He usually starts hill climbing from a rough boilerplate skill (Lance Martin 28:53; Lance Martin 29:40).
  10. Q&A: grading open-ended tasks [29:40]. Use deterministic checks where possible. Otherwise use a rubric a human could apply, binary or crisp categories rather than 0-10 scales, agreement across Sonnet, Opus and Fable, and replicate runs (Lance Martin 29:40; Lance Martin 30:36; Lance Martin 31:23). Pairwise comparisons are easier to judge than absolute scores (Lance Martin 31:23; Lance Martin 32:10). Eval cases should reflect production rather than one model’s failures, because a case one model fails may be easy for another (Lance Martin 32:10; Lance Martin 32:58). Graded scales are fine if they pass those tests, and graders should usually be cheaper models (Lance Martin 33:44).
  11. Q&A: personal evals, observability tools, convergence, DSPy [34:31]. Build evals for personal workflows when quality matters, such as finance deliverables that go to outside readers (Lance Martin 34:31; Lance Martin 35:17). Lance declines to pick an observability vendor and says small teams can build their own, with a data viewer coming to the skill (Lance Martin 35:17; Lance Martin 36:03). Hill climbing often gets stuck. A fallback clusters the remaining failures and finds ambiguous cases to rewrite (Lance Martin 36:03; Lance Martin 36:57; Lance Martin 37:44). The skill is open source and might work with DSPy, which he has not used (Lance Martin 37:44; Lance Martin 38:32).
  12. Q&A: choosing effort level [38:32]. With an eval, the hill climber searches model and effort combinations, starting at low effort and stopping when performance falls below the baseline. Haiku 4.5 at low effort regressed (Lance Martin 39:18). Without an eval, Lance advises starting with a strong model at low effort, such as Opus 5.5 low, rather than max effort (Lance Martin 40:05; Lance Martin 40:56). Effort tells Claude how hard to think, so a smarter model at low effort can use fewer tokens than Sonnet 5 at high effort (Lance Martin 40:56).
  13. Q&A: budgets, the human role, who builds evals, auto research [41:51]. The skill asks for a token budget and tracks it. Impossible eval cases are the main way budgets get wasted (Lance Martin 41:51). Humans set goals and judge what matters, Claude flags problem traces, and humans approve what becomes an eval case (Lance Martin 42:42; Lance Martin 43:27). At Anthropic anyone can build evals, and ownership follows the product (Lance Martin 43:27; Lance Martin 44:13). He gives a generative-UI eval with a pairwise judge and Elo scoring as an example (Lance Martin 44:59), and links the approach to Karpathy’s auto research and the nanoGPT repo (Lance Martin 45:45; Lance Martin 47:22; Lance Martin 48:07).
  14. Q&A: multi-objective climbing, prompt audit scope, what effort means [48:07]. Cost, performance and speed together are a reasonable set to optimize. More objectives make the problem harder, and optimizing them one after another is an option (Lance Martin 48:07; Lance Martin 48:55). The prompt-audit anti-patterns stop helping somewhere around Opus 4.5, but the exact model is unclear. The skill has model-specific caveats, for example for Haiku (Lance Martin 49:41; Lance Martin 50:27). Effort is guidance, not a hard cap. Its effect on token spend matters most on frontier-level problems (Lance Martin 51:13; Lance Martin 52:05).
  15. Q&A: link to training, eval awareness, dataset size [52:05]. Hill climbing borrows training ideas such as train/test splits but applies them at runtime to prompts and skills (Lance Martin 52:05). Lance sees overfitting as a more practical concern than Claude knowing it is being evaluated (Lance Martin 53:02; Lance Martin 53:49). On eval set size he defers to Claude and the skill’s guidance, and warns that very small sets are noisy, easy to overfit and unrepresentative (Lance Martin 54:38; Lance Martin 55:30).
  16. Q&A: long tasks, multi-turn evals, context engineering [55:30]. Hill climbing on very long tasks is possible, but it needs reliable long-running infrastructure such as Managed Agents and takes longer to show a signal (Lance Martin 55:30; Lance Martin 56:16). Multi-turn agent evals can grade the full trajectory or only the final outcome, and build_eval can turn traces into eval cases (Lance Martin 56:16; Lance Martin 57:01). For context engineering he endorses the recursive language model (RLM) idea: keep the context object separate from the harness so that compacted context can be recovered (Lance Martin 57:01; Lance Martin 57:47; Lance Martin 58:37).
  17. Q&A: why eval design matters, keeping evals current [58:37]. Non-deterministic, judgment-based tasks need well-designed objectives. Hill climbing on a poorly built eval goes nowhere, and “it’s not the model’s fault” (Lance Martin 59:26; Lance Martin 1:00:26). Scores on an eval should rise as models improve. If they do not, the eval is suspect, and building evals hard enough for the best models is still difficult (Lance Martin 1:00:26; Lance Martin 1:01:15; Lance Martin 1:02:01). He endorses the outer loop that tracing vendors offer: online evaluators flag bad production traces, those traces become offline eval cases, and passing cases turn into regression tests (Lance Martin 1:02:01; Lance Martin 1:02:48; Lance Martin 1:03:37).

Follow-ups

  • Lance is changing the build_eval skill to show the user the raw data before building the eval, and says he has a PR up. (Lance Martin 24:02, Lance Martin 25:40)
  • A simple data viewer is being added to the eval skill. (Lance Martin 36:03)
  • Lance said he should get back to the asker with a clearer answer on how effort works. (Lance Martin 50:27)
  • Commands Lance suggests running in Claude Code:
  • checkup prompt audit, or claude-api prompt audit
  • the prompt-cache diagnostics
  • claude-api build_eval
  • claude-api hill climb
  • claude-api managed agents onboard, given the link to the blog post (Lance Martin 2:18, Lance Martin 7:00, Lance Martin 10:18, Lance Martin 13:27, Lance Martin 22:26)
  • Lance points to blog posts on eval design, the skill hill-climbing run, Managed Agents (an engineering post from April), and the Slack automation example written with CJ. (Lance Martin 11:04, Lance Martin 15:51, Lance Martin 19:51, Lance Martin 21:25)
  • Lance invites attendees to contact him on social media. (Lance Martin 24:02, Lance Martin 1:03:37)

Open threads

  • It is unclear at which model generation the prompt anti-patterns stop helping. Lance guesses around Opus 4.5 and suggests running the audit on any migration to Opus 5.5. (Lance Martin 49:41, Lance Martin 50:27)
  • Lance admits effort is confusing and says he should follow up with a clearer explanation. (Lance Martin 38:32, Lance Martin 50:27, Lance Martin 51:13)
  • Lance has not studied minimum eval set size or the best train/test split, and defers to Claude’s heuristics. (Lance Martin 54:38, Lance Martin 55:30)
  • Hill climbing is not guaranteed to converge, and prompts overfit easily even with a train/test split in place. (Lance Martin 28:07, Lance Martin 36:03)
  • Designing evals hard enough to challenge the best current models is still difficult. (Lance Martin 1:01:15)
  • Choosing online evaluators and deciding which production traces to promote to offline eval sets are hard, and vendors are actively building products for both. (Lance Martin 1:02:48, Lance Martin 1:03:37)
  • Nobody has tested whether the skill works with DSPy. (Lance Martin 37:44, Lance Martin 38:32)

Mentions

  • Anthropic (organisation): Lance’s employer. Its Applied AI team helped run the prompt-cache benchmarks. (Lance Martin 0:00, Lance Martin 7:00)
  • Claude Code (tool): Ships the skills for prompt audit, caching, build_eval and hill climbing. (Lance Martin 2:18, Lance Martin 3:06, Lance Martin 13:27)
  • Claude Console (tool): Shows the prompt cache hit rate. (Lance Martin 6:15)
  • Claude Managed Agents (tool): Anthropic API for long-running agents. It separates the harness from the sandbox and keeps secrets in vaults. (Lance Martin 19:51, Lance Martin 20:37, Lance Martin 21:25)
  • Fable, Opus 5.5, Opus 4.8, Sonnet 5, Haiku 4.5/5.5, Claude 3 Opus (other): Claude models in his frontier examples, migration experiments and effort discussion. (Lance Martin 0:46, Lance Martin 3:54, Lance Martin 19:02, Lance Martin 39:18, Lance Martin 40:56)
  • METR (organisation): Source of the task-duration charts. Transcribed as ‘meter’ and ‘Mater’. (Lance Martin 19:02, Lance Martin 19:51)
  • Hamel Husain (person): Evals practitioner whose feedback on Twitter led Lance to add a look-at-the-data step to build_eval. (Lance Martin 24:02, Lance Martin 42:42)
  • CJ (person): Co-author of the blog post on the Managed Agents Slack automation example. (Lance Martin 21:25)
  • LangChain (organisation): Lance’s previous employer, also named among tracing vendors that offer online-to-offline eval loops. (Lance Martin 35:17, Lance Martin 1:02:48)
  • Arize (organisation): Tracing and observability vendor named as offering the eval outer loop. (Lance Martin 1:02:48)
  • Braintrust (organisation): Tracing and observability vendor named as offering the eval outer loop. (Lance Martin 1:02:48)
  • DSPy (tool): An audience question raised it in relation to hill climbing. Lance has not used it but says the open-source skill might work with it. (Lance Martin 37:44, Lance Martin 38:32)
  • Omar Khattab (person): Named as part of the DSPy team. Transcribed as ‘Omar’. (Lance Martin 37:44)
  • Andrej Karpathy / auto research (work): Lance cites it as motivation for the hill-climbing work. (Lance Martin 45:45, Lance Martin 47:22)
  • nanoGPT (work): Repo Lance suggests could be paired with the hill-climb skill. (Lance Martin 48:07)
  • Recursive language models (RLM) (work): Research that separates the context object from the model. Lance endorses it for context engineering. (Lance Martin 57:01, Lance Martin 57:47)
  • Slack (tool): Where the Managed Agents example posts its updates. (Lance Martin 22:26)

Quotes

This is a kind of important point that prompts accumulate debt just like code.

Lance Martin 1:32. His case for auditing old prompts.

We found opportunities to reduce costs by up to seventy-two percent with no meaningful change in performance

Lance Martin 7:54. Result of fixing prompt caching on internal benchmarks.

So we basically got a ninety percent reduction in cost with notable improvement in performance autonomously using the hill climber.

Lance Martin 17:27. Main result of hill climbing for cost.

Claude’s very good at wiggling the prompt into a shape that does well in your eval that isn’t really representative of what’s in production.

Lance Martin 28:07. Overfitting risk when the edited text is a prompt.

Well, the worst thing is give Claude, like, “From one to ten, rate this.” That’s extremely noisy.

Lance Martin 30:36. Advice against arbitrary grading scales.

It’s not guaranteed to converge at all.

Lance Martin 36:03. A limit of the hill climber.

I’m also confused by effort.

Lance Martin 38:32. Admits effort settings are hard to reason about.

But basically, I like st- very, very smart model not trying too hard.

Lance Martin 40:05. His effort guidance in one line.

I actually worked at LangChain before Anthropic, but I, I, I, I can’t advocate for any one or the other.

Lance Martin 35:17. Declines to recommend an observability vendor.

And it’s not the model’s fault. It’s because you haven’t thought through the eval.

Lance Martin 1:00:26. Closing point on why eval design matters.

Statistics

Computed from the times of the transcript’s words. A turn runs until someone else takes the floor. A backchannel, a reply of at most 3 words and 1.5 s such as “yeah” or “mm-hmm” after which the speaker before it carries on, does not take the floor. The pause before speaking runs from the previous speaker’s last word to this speaker’s first.

Lance Martin
Talking time1:00:17
Share of talking time100.0%
Words12,386
Words per minute205
Turns1
Median turn3836.9 s
Longest turn3836.9 s
Backchannels0
Median pause before speaking

Handovers. Each cell counts how often the row’s speaker was followed directly by the column’s.

Lance Martin
Lance Martin0

The floor changed hands 0 times, 0.0 times a minute on average, and most often at 0:00, 0 times in that minute. The longest silence is 12.8 s, at 0:00.