Erik Schluntz's Anthropic post (listed 30 October 2024) describes the minimal agent with which the upgraded Claude 3.5 Sonnet scored 49% on SWE-bench Verified, 500 human-reviewed GitHub issues: one prompt, a bash tool and an exact-string file editor, sampling until the model stops or fills its 200k-token context. In the same scaffold the original Claude 3.5 Sonnet scored 33% and Claude 3 Opus 22%. The previous best, 45%, came from another developer's agent, so that margin changes both model and agent. The model card addendum gives the 49% as pass@1. No repeated runs, variance or ablations are reported, and the post credits carefully revised tool descriptions for part of the performance without measuring their effect.
SWE-bench measures whether an AI system can resolve real GitHub issues from popular open-source Python repositories. The system is given the repository as it stood just before the issue was fixed, must change the code, and is graded by running the unit tests from the pull request that originally closed the issue. Because the score "can vary significantly" with the software around the model, "even when using the same underlying AI model", a SWE-bench score measures an agent: in the post's definition, a model plus the "scaffolding" that builds its prompts, parses its outputs into actions, and feeds results back in a loop. This post, written by Erik Schluntz, explains the agent Anthropic built for the upgraded Claude 3.5 Sonnet, which scored 49% on SWE-bench Verified, and is meant to help developers get similar performance (introduction). Anthropic's research listing dates the post 30 October 2024, and this note uses that date; the page itself, now in Anthropic's Engineering section, shows a published date of 6 January 2025.
Terms used in this note
- SWE-bench Verified. A 500-problem subset of SWE-bench that humans reviewed to make sure each problem is solvable from the issue text, since some original tasks need context outside the issue (introduction).
- Scaffold. The code around a model that turns it into an agent: prompt construction, tool execution, and the interaction loop.
- Tool description. The natural-language text, together with a schema of parameters, that tells a model what a tool does and how to call it.
- Hidden tests. The grading tests, which the agent cannot see while it works.
The agent
The design goal was to "give as much control as possible to the language model itself, and keep the scaffolding minimal" (section "Tool Using Agent"). The agent has a prompt and two tools, and keeps sampling until the model decides it is finished or reaches its 200k-token context limit. The model chooses its own path through the task rather than following a fixed workflow. For running the benchmark, the agent code was built on the SWE-Agent framework (section "Examples of agent behavior").
The prompts and tool descriptions
The post prints the full prompt and most of the tool specifications, and is direct about the role their wording played.
The task prompt. The prompt tells the model where the repository is, gives the pull request description, says the tests have already been handled and should not be modified, and asks for "minimal changes to non-tests files". It then suggests five steps: explore the repository, write a script that reproduces the error, edit the source, rerun the script, and consider edge cases. It ends: "Your thinking should be thorough and so it's fine if it's very long." The post describes this prompt as a suggested approach that is "not overly long or too detailed", and advises developers who are not sensitive to token costs that explicitly encouraging a long response can help.
The bash tool. Its schema takes only the command, but the description "carries more weight": it tells the model that input need not be XML-escaped, that there is no internet access but there is a package mirror, that state persists between calls, how to view a range of lines, to avoid commands with very large output, and to run long-lived commands in the background.
The edit tool. A tool called str_replace_editor can view, create, replace text in, insert into, and undo edits to files. Its description explains, for example, that the text to replace must match exactly one place in the file, including whitespace, or the replacement is refused.
Revising tool text to prevent errors. The post says the team "put a lot of effort into the descriptions and specs" of these tools across many agentic tasks, tested them for ways the model might misunderstand them, and "edited the descriptions to preempt these problems". It argues that "much more attention should go into designing tool interfaces for models", comparable to the attention given to interfaces for humans. The post gives two examples of this "error-proofing": requiring absolute file paths, after the model made mistakes with relative paths once it had moved out of the root directory, and using exact string replacement for edits, which had "the highest reliability" of several editing formats tried, with an error message returned when the target text matches zero or several places. The post presents error-proofing as "one way we improved performance" but gives no measurement for either change.
What it finds
Scores. With this scaffold, the upgraded Claude 3.5 Sonnet scored 49% on SWE-bench Verified, against 33% for the original Claude 3.5 Sonnet and 22% for Claude 3 Opus in the same scaffold, and against 45% for the previous state of the art (section "Results"). The table's caption says the scores were "all using this agent scaffold", but the 45% belongs to another developer's system, which the post links to solverai.com and does not describe, so the caption holds for the three Claude models only. The post notes that no model had yet passed 50% on the benchmark at the time of writing.
Conditions. The post does not say how many attempts each problem received or whether the score is from one run. The model card addendum reports the same result as a "pass@1" score of 49.0% (Section 2.2, Table 2), that is, one submitted solution per problem, and gives the previous best as 45.2% on SWE-bench's leaderboard as of 22 October 2024 (footnote 2). Neither document reports variance across runs. Pass@k and Repeated Sampling defines pass@k in general and derives its unbiased estimate and variance when several attempts per problem are sampled. In the leaderboard's public submission repository (SWE-bench/experiments), this note finds Anthropic's submission at 245 of 500 problems resolved; among submissions dated before 22 October 2024 the highest were Solver at 227 (45.4%) and Gru at 226 (45.2%), both commercial agents whose models are listed as undisclosed. The post's 45% and the addendum's 45.2% may therefore refer to different systems. The comparison across Claude models holds the scaffold fixed, while the comparison with the previous best changes both model and agent.
A worked example. In a scikit-learn issue, RidgeClassifierCV rejected a store_cv_values argument. The model viewed the repository, wrote a reproduction script, confirmed the error, found that the class did not pass the parameter through to its base class, edited the constructor, and submitted after 12 steps; the tests passed (section "Examples of agent behavior").
Behavior. Some tasks took more than 100 turns, and on others the model kept trying until it ran out of context. From "reviewing attempts" against older models, the authors report that the upgraded model self-corrected more often and tried several different solutions instead of repeating the same mistake; no counts are given.
Challenges in running the benchmark
The post lists four (section "Challenges"):
- Duration and cost. Many successful runs took hundreds of turns and more than 100k tokens.
- Grading. Some apparent failures were environment problems, such as installation patches applied twice, rather than model errors.
- Hidden tests. The model often believed it had succeeded when it had not. Some failures solved the problem at the wrong level of abstraction ("applying a bandaid instead of a deeper refactor"), and others solved the problem but did not match the original tests, which the post calls "a little less fair".
- No image viewing. The agent could not look at image files or URLs, which made some tasks, especially Matplotlib ones, hard and prone to hallucination.
Limitations and open questions
The post reports one score per model with no repeated runs or uncertainty, compares with a previous best from another developer's system without describing it, and does not ablate the prompt or tool descriptions, so the contribution of each wording change is described qualitatively. The score is Anthropic's own run, submitted to the public leaderboard with its logs.
Later work bears on both the margin and the benchmark. Within a week of the model's release another agent, OpenHands CodeAct v2.1, resolved 265 of 500 (53.0%) with the same upgraded model (leaderboard submission dated 29 October 2024), consistent with the addendum's expectation that "dedicated scaffolding and prompting can further improve the results". In February 2026 OpenAI, which built SWE-bench Verified, stopped reporting it. Its audit of 138 problems that its o3 model did not consistently solve over 64 runs found that 59.4% had material issues in test design or problem description, including tests that "reject functionally correct submissions", and its probes found that GPT-5.2, Claude Opus 4.5 and Gemini 3 Flash could reproduce some gold patches or task text from memory. This note connects the first finding to the post's "Hidden tests" challenge, where some failures solved the problem but did not match the original tests; the contamination probes concern models released in late 2025, not the October 2024 Claude 3.5 Sonnet, and OpenAI is a competing developer.
Research questions
- How much do the tool descriptions contribute? The post credits careful tool text but gives no ablation. Running the agent with minimal descriptions, then adding each instruction back, would measure the effect of each.
- Does encouraging long thinking change the score? The prompt asks for thorough, long reasoning. Comparing scores and token costs with and without that sentence would test the post's advice.
- How often are failures unfair? The post separates wrong-abstraction failures from correct solutions that fail the original tests. Manually classifying a sample of failures would give the share of each.
- How large is the uncertainty on 49% versus 45%? With 500 problems, a standard error (Standard Errors for Benchmark Scores) and a paired comparison against the previous system (Paired Comparisons of Models) would show whether the difference is statistically reliable; per-problem results for the submissions are public in the leaderboard's repository, and repeated runs of the agent would add the run-to-run variance.
- What does image access add? The post flags missing vision as low-hanging fruit. Adding a file-viewing tool and rerunning the Matplotlib tasks would measure the gain.
How it connects
- Same model. The model card addendum for the upgraded Claude 3.5 Sonnet reports the same benchmark result, 49.0% pass@1, with 33.4% for the original Claude 3.5 Sonnet and 40.6% for Claude 3.5 Haiku; neither document cites the other.
- Later advice on agents. Building effective agents (December 2024) links this post three times, including for the observation that the team spent more time optimizing tools than the overall prompt and for the switch to absolute file paths.
References
- Schluntz, E. (2024). Raising the bar on SWE-bench Verified with Claude 3.5 Sonnet. Anthropic. Listed 30 October 2024; page dated 6 January 2025. https://www.anthropic.com/research/swe-bench-sonnet record · 2 pages
- Anthropic. (2024). Model Card Addendum: Claude 3.5 Haiku and Upgraded Claude 3.5 Sonnet, Section 2.2, Table 2 and footnote 2. https://www-cdn.anthropic.com/c7822cdc35ad788ec87e14b3a9d45010f1f86c38.pdf record · 4 pages
- SWE-bench. Experiments repository,
evaluation/verified/(submissions 20241022_tools_claude-3-5-sonnet-updated, 20240924_solver, 20240824_gru, 20241029_OpenHands-CodeAct-2.1-sonnet-20241022). https://github.com/SWE-bench/experiments record - OpenAI. (2026, February 23). Why SWE-bench Verified no longer measures frontier coding capabilities. https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/ record
- Schluntz, E., and Zhang, B. (2024, December 19). Building effective agents. Anthropic. https://www.anthropic.com/research/building-effective-agents record · 2 pages
Reviewed: checked against sources, 12 Nov 2026 · editorial review, 23 Nov 2026 · 5 revisions