Deva Annamaraju
← All notes

Mar 2026 · 10 min read

the model is not the product

on princeton's hal leaderboard, claude opus 4.5 scores 42.22% on core-bench hard with one scaffold and 77.78% with another. same weights, same benchmark. most of what you build when you build an agent is the scaffold.

  • AI Agents
  • LLMs
  • Engineering

on princeton's hal leaderboard, claude opus 4.5 scores 42.22% on core-bench hard with one scaffold and 77.78% with another. same weights, same benchmark. the only thing that changed is the code wrapped around the model.

i keep coming back to that gap. if swapping the scaffold is worth that much, then most of what you're building when you build an agent is the scaffold.

most ai discussion fixates on models. every week brings a new release or a leaderboard reshuffle, and people read each capability bump as the main lever for making agents work. i don't think it is. the teams shipping agents in production (cursor, manus, cognition with devin, anthropic with claude code) seem to have landed somewhere else. they treat the harness as the product and the model as one component of it.

by harness i mean everything around the model that makes it useful: the execution loop, the tool definitions, how errors get handled, how state gets managed, and most of all, what information reaches the model and when. once you strip away the marketing, most production agents share the same core structure:

while (model returns tool calls):
  execute tool → capture result → append to context → call model again

cursor's architecture fits in that loop, and so do claude code and manus. the interesting engineering happens around it.

diagram 01: the agent execution loop
HARNESS MODEL decides what to do TOOLS bash · read · write · search CONTEXT what the model can see loop repeats until text output STATE · MEMORY · ERROR RECOVERY
fig 01: claude code, cursor and manus all run this same loop. the engineering lives in the harness around it.

context is most of the product

the design decision i see separating working agents from demos comes from 1980s ui/ux research. john carroll at ibm, and later jakob nielsen, called it progressive disclosure: show only what is needed now and reveal complexity on demand. collapsible menus exist because dumping every possible option on a user at once makes them worse at deciding. language models run into something similar, though for them the problem is attention fragmentation rather than cognitive load.

liu et al. documented this in a 2024 tacl paper. llm performance follows a u-shaped curve depending on where the relevant information sits in the input: accuracy is highest when it's at the beginning or end, and it drops, measurably and consistently, when it's buried in the middle. that held for the long-context versions they tested too (claude 1.3 with a 100k window, gpt-3.5-turbo and longchat with 16k), and the extended-context models were not necessarily better at using their input than their shorter-context siblings. a bigger window didn't fix how attention behaves. it mostly made a badly filled window more expensive.

diagram 02: the u-shaped accuracy curve
position of relevant info in context window accuracy start end middle high accuracy high accuracy "lost in the middle" liu et al., TACL 2024 progressive disclosure keeps fresh info here ↑
fig 02: the u-shaped accuracy curve from liu et al., stylized. performance peaks when relevant info is at the start or end of the context, and harnesses that load context progressively take advantage of that.

cursor ran an a/b test on this. their mcp servers include tools with long definitions, and most of those go unused in any given session. they tried giving the agent only the tool names as static context and fetching full definitions on demand, and in runs that called an mcp tool, total agent tokens dropped 46.9%. that's nearly half the tokens, saved just by not frontloading information the agent probably wasn't going to use.

vercel's case study goes further. they removed 80% of their text-to-sql agent's tools and replaced them with a file system agent that mostly just runs bash commands. across their five test queries, average token usage fell 37%, the agent got 3.5x faster, and it went from solving 4 of 5 to 5 of 5. on the worst-case query, the old agent spent 145,463 tokens, 100 steps and 724 seconds and still failed. the new one finished it in 141 seconds, 19 steps and 67,483 tokens. it had fewer tools and did better work, which i read as the information overload being the bug.

cloudflare got to the same place from another direction. their code mode has the agent write code against a typed sdk instead of invoking individual mcp tools. in a demo cloudflare's rita kozlov gave at a workos event, code mode used 32% fewer tokens than direct tool calls for a simple one-event calendar task and 81% fewer for a 31-event one. for their full api surface, cloudflare estimates the naïve mcp approach would consume 1.17 million tokens before the agent does anything, and code mode brings that to roughly 1,000 with the same api coverage. that's 99.9% fewer input tokens. the model's fluency in code ends up working like a compression algorithm.

diagram 03: token cost before vs. after harness optimization
Vercel agent 145K 67K Cursor lazy load 100% 53.1% Cloudflare code mode 100% 19% before after
fig 03: token reduction from harness-level context discipline. vercel worst-case query −53.6%, cursor lazy tool loading −46.9% (runs that called an mcp tool), cloudflare code mode −81% (31-event demo task).

two architectures that both work

manus has rewritten their framework five times since launching in march 2025, and by their account the biggest gains came from removing things. they keep tool definitions fixed in the context instead of adding and removing them mid-task. the reason is the kv-cache: removing a tool near the front of the context invalidates the cache for every token after it. so instead of toggling tool availability through the definitions, they control it with logit masking, which constrains which output tokens the model can generate during decoding. they get the same effect and keep the cache. i suspect you only arrive at an optimization like that after watching your infra bill in real time.

cursor went the other way and lazy loads tool definitions. both approaches work. which one is right probably depends on your token economics, and that alone is a decent argument for treating harness design as its own engineering discipline with its own benchmarks. right now it mostly gets treated as a footnote to model selection.

diagram 04: two valid answers to tool overload
MANUS all tools always in context browser_* · shell_* · file_* · ··· availability controlled by logit masking at decode time kv-cache stays valid ✓ CURSOR only tool names loaded statically name_1 · name_2 · name_3 · ··· full definition fetched on-demand, when needed −46.9% token usage ✓ vs
fig 04: opposite approaches to tool overload. manus uses logit masking (all tools loaded, outputs constrained) and cursor uses lazy loading (definitions fetched on demand). which one fits depends on your token economics.

claude code is worth a closer look because so much of its harness can be read from the outside. piebald ai extracts its prompts from the published npm package and keeps them in a public repo, and as of march 2026 they counted 110+ strings that get assembled into the system prompt, with large parts added conditionally depending on environment and config. the harness also injects system reminders into the conversation as it works (piebald lists about 40 of them), so key instructions show up again close to where the model is working instead of only once at session start. my guess is that's a big part of why they stick. the todowrite tool doesn't touch the environment at all. it writes the agent's plan into a checklist that shows up in the terminal and stays in context, so the model keeps seeing its own plan. langchain's deep agents post calls it a no-op for that reason, and it's a good example of a harness-level trick for keeping a model coherent over long trajectories.

skill loading is just as deliberate. skills live in .claude/skills/ folders, and only each skill's name and description go into context up front. claude.md loads in full every session, but a skill's body only loads when claude decides it's relevant, so a project with dozens of skills pays for a short list of descriptions instead of every file. it's progressive disclosure, done at the filesystem level.

anthropic's published work on long-running agents has another example. they gave claude opus 4.5 a high-level prompt to build a clone of claude.ai, and on its own it failed in two ways: it tried to build everything at once, and later sessions would see that some progress had been made and declare the job done. they fixed it by changing the harness and keeping the same model. an initializer agent wrote out over 200 feature requirements before any coding started, with every feature marked "failing," so each later coding session had a concrete checklist to work from. that checklist gave the model a memory it didn't have before.

diagram 05: progressive disclosure in context loading
naive: dump everything every tool definition (full text) all skill files (every one) full session history complete repo map all previous tool results … more context … loaded whether needed or not most of it unused on any given step progressive: load on demand tool names only (not definitions) relevant skill file (this task only) recent history (last N turns) older history → 1-line summaries tool definitions → fetched if needed loaded when the task needs it the rest stays one lookup away
fig 05: an illustrative sketch, not a measured run. the same kinds of information staged two ways: everything up front, or names and summaries first with details fetched on demand. the measured token numbers are in fig 03.

the benchmark evidence

for me, the hal numbers are what make the scaffold-over-model argument hardest to dismiss. the opus 4.5 gap at the top of this post isn't a one-off. on the same core-bench hard leaderboard, sonnet 4 scored 28.89% with hal's own core-agent scaffold and 46.67% inside claude code, and sonnet 4.5 went from 37.78% to 62.22% across the same two scaffolds. langchain found the same thing on terminal bench 2.0: their deepagents-cli went from 52.8% to 66.5% by changing only the harness, a 13.7 point gain with the model fixed at gpt-5.2-codex.

swe-bench pro shows the other half of the problem, which is that benchmark scores overstate how agents do on real work. in the first version of scale ai's paper (september 2025), models that scored above 70% on swe-bench verified scored below 25% on swe-bench pro, which has longer tasks that often need changes across several files. every model ran in the same scaffold (swe-agent), so the drop comes from the tasks themselves. gpt-5 resolved 23.3% of the public set and claude opus 4.1 resolved 22.7%. on the commercial set, drawn from startups' private codebases, the best models stayed under 20% (opus 4.1 at 17.8%, gpt-5 at 14.9%), and they were still under 20% in the revised version of the paper. my read is that a good share of the benchmark gains from 2024 to 2025 came from better scaffolding and from tasks that are cleaner than real codebases, more than from models getting radically smarter. if that's right, the harness matters even more once the tasks get messy, since it's the part you control.

openai documented the scaffold effect too, in the post introducing swe-bench verified. gpt-4's score on swe-bench lite ranged from 2.7% with an early rag-based scaffold to 28.3% with coder, about a ten-fold gap on one model. sometimes the harness even beats a model generation: on the hal leaderboard, sonnet 4 inside claude code (46.67%) outscores opus 4.5 in core-agent (42.22%).

diagram 06: performance variance across scaffolds on the same model
0% 50% 100% Opus 4.5 CORE-Bench 42.22% 77.78% +35.56 pts (scaffold change only) Sonnet 4 CORE-Bench 28.89% 46.67% +17.78 pts LangChain TerminalBench 52.8% 66.5% +13.7 pts GPT-4 SWE-bench lite: 2.7% (early RAG scaffold) → 28.3% (CodeR) | same model, 10× gap
fig 06: each of these swings comes from a scaffold change with the model held fixed. opus 4.5 and sonnet 4: hal core-bench hard leaderboard, core-agent vs. claude code. langchain: deepagents-cli on terminal bench 2.0 with gpt-5.2-codex. gpt-4: openai's swe-bench verified post.

dex horthy, who wrote 12 factor agents, calls this the "dumb zone": the point where a filling context window starts to make the model worse. his team's written advice is to keep the context window 40 to 60% full. to me the mistakes past that point look like reasoning failures, but i think the usual cause is a poorly designed harness drowning the model in irrelevant context.

enterprises have their own version of this. salesforce's 2026 connectivity benchmark, a survey of 1,050 it leaders, found that organizations use an average of 12 ai agents, and that 50% of those agents run in isolated silos instead of as part of a multi-agent system. microsoft's own telemetry says more than 80% of fortune 500 companies have active agents built with its low-code tools, copilot studio and agent builder. i'd guess that for a lot of those companies, building agents has become the easy part, and the hard part is the infrastructure that controls them.


the teams that are ahead

aider's approach to context is probably the most technically novel thing in this space. they built a pagerank-based repository map using tree-sitter. it parses the codebase to extract definitions, builds a graph where files are nodes and dependencies are edges, runs pagerank to rank symbols by importance, and uses binary search to fit the most important content within a token budget. that's a very different answer to the question of how you give an agent the context it needs without giving it everything, but it's still progressive disclosure, with graph theory doing the job lazy loading does elsewhere.

swe-agent's linter-gated edits are simpler and teach the same lesson. when the agent issues an edit command, a linter runs automatically, and syntactically incorrect code gets rejected so the agent has to retry. in the swe-agent paper's ablation, that one guardrail was worth three points on swe-bench lite (15.0% without it, 18.0% with it) without any model change. the harness checks the model's work before accepting it.

my read is that the companies ahead in agents got there through heavy investment in harness engineering, much more than through proprietary model access. that work is harder to copy than it looks, and it's almost completely absent from the benchmarks people use to evaluate model capability. there's no standard benchmark for comparing harness designs, and cursor's 46.9% token reduction is one of the very few published numbers. so most teams are optimizing with little to compare against, which is partly why the ones who've been at it longest are so far ahead.

the teams shipping the best agents keep simplifying. manus did five rewrites and says its biggest gains came from removing things. replit split its single agent into a manager, editors and a verifier, each scoped to the smallest task it could be given. over-engineering seems to be the default failure mode, and since leaderboards can't see it, it sticks around.

i think of the model as the engine and the harness as the rest of the car. most of the conversation in ai is still about horsepower, and very little of it is about whether the thing drives well.


sources: hal leaderboard, core-bench hard (princeton, hal.cs.princeton.edu/corebench_hard) · langchain, improving deep agents with harness engineering (feb 2026) · langchain, deep agents (2025) · liu et al., lost in the middle, tacl 2024 · cursor, dynamic context discovery (jan 2026) · vercel, we removed 80% of our agent's tools (andrew qu, dec 2025) · cloudflare, code mode: give agents an entire api in 1,000 tokens (feb 2026) · workos, cloudflare code mode cuts token usage by 81% (zack proser, dec 2025) · manus, context engineering for ai agents: lessons from building manus (peak ji, jul 2025) · lance martin, notes on the langchain and manus context engineering webinar (oct 2025) · phil schmid, context engineering for ai agents: part 2 · piebald ai, claude-code-system-prompts (github, synced to claude code v2.1.83, mar 2026) · anthropic, claude code docs: skills, tools reference · anthropic, effective harnesses for long-running agents (nov 2025) · scale ai, swe-bench pro (arxiv 2509.16941, v1 sep 2025 and v2 nov 2025) · openai, introducing swe-bench verified (aug 2024) · humanlayer, advanced context engineering for coding agents (dex horthy) · the pragmatic engineer, context engineering with dex horthy · salesforce, 2026 connectivity benchmark report announcement (feb 2026) · microsoft security blog, 80% of fortune 500 use active ai agents (feb 2026) · aider, building a better repository map with tree sitter (2023) and aider/repomap.py · yang et al., swe-agent (neurips 2024) · langchain, breakout agents: replit