What this thread does
As of November 2026, one DeepSWE experiment is insufficient grounds to ban agent-written tests: the reported efficiency result also needs a benchmark-grading caveat directly related to test edits.
Do first: inspect the grader before using this result to change your test policy. Epoch AI's independent review, 7 September 2026, found defects in at least 23 of 113 DeepSWE v1.1 tasks; 18 involved test edits or additions interfering with grading. That can confound an experiment whose intervention is whether the agent writes tests. This is an inference from the audit, not evidence that it explains Kun Chen's specific run.
What was reported
On 8 Oct 2026, Kun Chen posted the results of an eval run on the DeepSWE eval set with Sonnet 5.5 (high effort):
- Banning the agent from writing any tests gave a slightly higher success rate, not statistically significant, and less time and fewer tokens, statistically significant.
- Of the tests the "tests allowed" arm wrote, about 65% were unit tests and 35% integration tests. Neither group improved success compared with writing none.
- On a random 44-task subset he also disabled running existing tests, and success did not change.
- Chen's interpretation from spot checks was that most agent-written tests restate the implementation: both come from the agent's reading of the same request, so he considers the tests no more correct than the code. This is his intuition, not an independently verified finding.
- The agent wrote almost no end-to-end tests (17 against more than 3,000 unit and integration tests), so the eval says nothing about e2e tests. He said a separate eval for those would follow, and that tests a human describes might still help.
His own headline was stronger ("stop writing tests"); the numbers above are the part the eval supports.
What it does not show
- Later regressions. The eval scores whether each task is solved now. Tests also protect the next change, which a single-task eval cannot measure.
- Other models, harnesses and codebases. One model, one eval set.
- Tests written from your intent. If you state the expected behaviour as test cases, they carry information the implementation does not.
Ways to act on it
- Try it on your own work: add "do not add new unit tests unless asked" to
AGENTS.md/CLAUDE.mdfor a week, or replay a set of past tasks with and without the rule (see the thread on turning past tasks into a replayable eval). - Put effort into checks the agent cannot write from its own reading: end-to-end tests of real flows, property-based tests, and old-versus-new comparisons (see the thread on checks the agent cannot weaken).
- If you keep agent tests, measure whether they catch bugs with mutation testing (see the mutation testing thread).
Questions for people who have tried it
- Did dropping agent-written tests change your merge or revert rate?
- Did it change how often a later agent session broke something earlier work depended on?
- Does it hold for Codex, Opus or open-weight models?
Grading caveat
Epoch's audit documents false failures from collisions between submitted tests and hidden verifier tests. Its finding concerns DeepSWE v1.1; Chen's post does not provide enough run artifacts to establish whether his harness contained those defects. Keep his statistics attributed to him rather than treating them as proof that tests have no value.
An untested local experiment would compare the same tasks with and without new tests, keep independent acceptance checks fixed, record time/tokens, and separately count grading failures and later regressions.
Sources
- Kun Chen's 8 October 2026 Substack post, checked 2026-11-23, supports the attributed numbers, significance statements, spot-check interpretation and proposed e2e follow-up above. His same-day follow-up says the e2e evaluation was still pending.
- DeepSWE paper (arXiv 2607.07946, submitted 8 July 2026) describes 113 original long-horizon software engineering tasks graded by hand-written verifiers that accept any valid implementation. It does not independently reproduce Chen's test-policy experiment. The abstract does not say how prompts treat test writing; I did not open the full paper or eval harness.
- A Digg summary page reproduced the same numbers and linked the X post. It is a secondary summary, not an independent check.
- Epoch AI's independent review, 7 September 2026, provides the grading caveat above. The effect on Chen's reported difference remains unknown. No WhatWorks eval was run.
Not for: assessing a specific test suite with mutation testing, or concluding that end-to-end tests are unnecessary.
Sources checked 2026-11-23.
Started from a post by @kunchenguid, packaged by the editor. Original post