NeoDevEx case studies

Chat agent · October 2026

Our chat agent now matches Devin on code questions and tests, for 45% less.

We gave our chat agent and Devin the same six tasks on three open-source codebases: explain how some code works, or write tests for it. We checked every answer against the code, because developers only trust an assistant that does not guess.

What we found

Where we still fall short

Bottom line: We now match Devin on quality and cost less today. Speed and the coming price rise are the gaps to close.

Full technical write-up, for engineers

Module 03 · Chat agent · 2026-10-12 to 2026-10-13

We asked both chat agents the same questions about real code, then checked every answer against the source.

Six tasks on three open-source repositories (flask, hono, ky) at pinned commits: three "explain how this works" questions and three "write tests for this behaviour" requests. Answers were scored against fact checklists written from the source before any answer was read. Tests counted only if they passed on the real code and failed when we planted a bug. At the start, NeoDevEx answered from memory and wrote tests that missed planted bugs (27% and 56%). We fixed the instructions every conversation starts with, moved the default model to Gemini 4 Argon, and turned on Layman's output compression for it. NeoDevEx now scores 98% on explanations (Devin 94%), and all 18 of its test runs catch every planted bug (Devin 2 of 2). It costs $0.21 a task to Devin's $0.38. Devin is still faster: 78 s of its own "worked" time against our 129 s median wall-clock.

98%NeoDevEx explain accuracy, up from 27% (Devin 94%)
18 / 18NeoDevEx test runs catching every planted bug (Devin 2 / 2)
$0.21NeoDevEx cost per task (Devin $0.38, 45% more)
−59%tokens per task from Layman and lean reading, same model, same accuracy

Task by task

Explain score = facts stated correctly minus wrong claims, over the checklist size (floored at 0). Test score = planted bugs caught out of 3, or 0 if the test fails on the real code. "At start" is NeoDevEx with no working rules on Gemini 2.5 Flash, 2 runs per task. "Now" is the shipped setup, Gemini 4 Argon with the working rules and Layman output style, 3 runs per task, with mean cost and time. Devin ran each task once on its own model.

TaskDevinNeoDevEx at startNeoDevEx nowCall
F1 · Flask: an unhandled view exception, WSGI call to responseMethods and order, the got_request_exception signal, after_request, teardown. 100%Every fact with line ranges; ran a script to confirm the order. $0.40, 87 s. 9%Answered from memory in 2–3 calls: a separate RequestContext, the signal in the wrong method, after_request "skipped". All wrong for this version. 94%Every step in order with path:line. Each run left out part of the teardown detail (reverse order, errors collected). $0.25, 132 s. Devin slightly ahead
H1 · Hono: how the default router picks a routerAdding routes, first request, fallback, after choosing, late adds. 100%Complete, with the exact fallback conditions and the late-add error text. $0.35, 58 s. 39%One run said routes go to every router as they are added and fallback happens on a missed match. Both wrong. 100%All three runs complete, with the exact error text. $0.15, 76 s. Tie
K1 · ky: when to retry and how long to waitRetry-After formats and fallback headers, maxRetryAfter, backoffLimit, jitter, special status codes. 83%Complete, including the timestamp threshold. The judge marked one fallback detail wrong; our hand grade gave 100%. $0.38, 52 s. 33%One run did not open the code ("tool limitations") and invented an X-Retry-After header. 100%All five headers in order, every format, the clamp, the 413 rule. $0.17, 90 s. NeoDevEx ahead
F2 · Flask: tests for teardown order and error collectionReverse order, each teardown gets the exception, a failing teardown does not stop the rest. 3 / 3Caught every planted bug. $0.38, 104 s. 2 / 3Missed "teardown receives None". One run deleted uv.lock. 3 / 3All three runs, including the Python 3.11 ExceptionGroup path. $0.25, 160 s. Tie
H2 · Hono: tests for router fallbackRegExpRouter by default, TrieRouter fallback, late add throws. Not runDevin credit ran out (about $0.26 left, below one test session). 1.5 / 3Missed the fallback and the name change. 3 / 3All three runs. $0.30, 212 s. No comparison
K2 · ky: tests for Retry-AfterPast HTTP date, clamp to maxRetryAfter, RateLimit-Reset fallback. 3 / 3Caught every planted bug. $0.37, 91 s. 1.5 / 3One run edited ky's own source (source/core/Ky.ts) and its test failed on the real code. 3 / 3All three runs. $0.13, 120 s. Tie, NeoDevEx cheaper

Round by round

Each round changed one thing and re-ran all six tasks. "Passes real code" and "In scope" (nothing changed except the requested file) count test runs. Cost and time are means per task.

VariantExplainTestsPasses real codeIn scopeCostTimeRuns
Devinits own model94%100%2 / 22 / 2$0.3878 s*5
At start2.5 Flash, no rules27%56%5 / 64 / 6$0.13177 s12
Rules 12.5 Flash; read the code, cite, prove the test74%44%3 / 63 / 6$0.11146 s12
Rules 22.5 Flash; + use the project's own environment61%67%2 / 33 / 3$0.0455 s6
Rules 32.5 Flash; + always write the file, clean up, re-run83%81%8 / 99 / 9$0.0688 s18
Rules 1 and 2 on 2.5 Proa bigger model of the same generation25–49%0–22%2 / 95 / 9$0.29–0.41113–160 s18
Rules 3 on Gemini 4 Argonnew default model96%100%9 / 99 / 9$0.44342 s18
Rules 4Argon; + read only the lines you need96%100%9 / 99 / 9$0.32209 s18
+ Layman output styleArgon; terse narration, full answers99%100%9 / 99 / 9$0.26176 s18
+ medium thinking (shipped)Argon; SDK default is high98%100%9 / 99 / 9$0.21132 s18

* Devin's own "worked for" time; NeoDevEx times are wall-clock for the whole run. One Argon "Rules 3" run took 48 minutes over 24 model calls, which drags that row's mean (median 183 s). Before the switch we also probed Gemini 3.8 Flash, 3.1 Pro and pro-latest on F1 and K2: all scored 88–100% and 3 / 3, at similar cost to Argon.

Where the tokens went

Same model (Gemini 4 Argon), same tasks, same accuracy. Means per task over 18 runs. Layman's input compression (skills index, delivery contract, runtime block) was already on; on Argon that fixed prefix is cached and costs $0.10 per million tokens, so the savings had to come from what changes on every call: what the agent reads, writes and thinks.

VariantInputUncached inputOutputThinkingCallsCostvs start
Rules 3reads whole files859k108k14.5k6.8k14.8$0.44–
+ read only needed linesRules 4555k71k12.8k5.9k14.1$0.32−27%
+ Layman output stylecaveman narration454k61k9.6k3.3k13.1$0.26−41%
+ medium thinkingshipped349k53k7.1k1.6k11.2$0.21−52%

Why it works

  • Reading. Every file the agent prints is resent on every later call. Printing flask's 1,625-line app.py once added about 70k tokens to each call after it. Locating with grep -n and viewing line ranges cut input 35%.
  • Writing. Layman's caveman style drops preamble, plan narration and restated tool output between calls, but never code, tests, commands or the final answer's facts. Output fell 25%, and the shorter history shrank later inputs too.
  • Thinking. With terse narration, medium thinking was enough: thinking tokens fell another 52% with no accuracy change.

Where Layman does not help

  • On Gemini 2.5 Flash an output-brevity directive lowered task success (token study, rounds 1–2). The app only sends the output style to frontier-tier models, and medium thinking only to Gemini frontier models, where it was measured.
  • Compressing the fixed prompt further saves little on Argon: it is cached after the first call.

Where we lagged, and what we changed

Gaps the study found

  • fixedAnswering from memory. On the Flask question the base agent made 2–3 calls and described an older Flask: a RequestContext that no longer exists, the signal in the wrong method, after_request "typically skipped". Devin opened every function and ran a script.
  • fixedNot opening the code at all. One ky answer said it could not inspect the files "due to tool limitations" and invented a header.
  • fixedTests that don't catch bugs. Base tests passed, but missed 1–2 of 3 planted bugs: they checked that something ran, not the order or the arguments.
  • fixedWrong environment. Rules 1 runs created new virtualenvs, ran tox with a newer pytest, or ran npm install, then "fixed" the resulting failures by editing conftest.py or package.json.
  • fixedTests that only pass on the agent's own edits. The test passed in the agent's tree but failed on a clean checkout, because it relied on a changed package.json, conftest, deleted helpers or even ky's source.
  • fixedNo file at the end. One run spent its budget and never wrote the requested test file.
  • fixedModel generation. Gemini 2.5 Flash still made version mistakes with every rule in place (a RequestContext that no longer exists). The default is now Gemini 4 Argon.
  • fixedCost on the stronger model. Argon cost $0.44 a task, more than Devin. Lean reading, Layman output style and medium thinking brought it to $0.21.
  • fixedBlank model in Settings. A model missing from the agent-server's model list (Gemini 4 Argon is) showed as an empty field, and saving dropped it. The picker now keeps the current model.

The fix: working rules on every conversation

A short <WORKING_RULES> block now starts every NeoDevEx conversation's system prompt (src/lib/agent/working-rules.ts). It asks for what Devin did: read the checked-out code, cite path:line, confirm behaviour by running it, use the project's own environment, prove each test fails when the behaviour breaks, and clean up before finishing. It is about 470 tokens. Frontier models also get Layman's output style (about 115 tokens). Both sit in the cached prefix.

Questions: answer from the checked-out files, not memory. Open every function you describe, cite path:line, confirm order by running it. Read efficiently: grep -n, then view only the line ranges you need. Find how the project runs (ls -a); use its own env. No new virtualenv, tox or npm install; never install this project from a registry. Always create the requested file. Never edit other files to make it pass. Tests must fail when the behaviour breaks: break the source, see it fail, restore, see it pass. Report real output. Before finishing: git status --short, undo anything not asked for, re-run the test on the clean tree.

A paraphrase. The exact text is in the source file.

Where Devin is still ahead

  • Speed. Devin reports 52–104 s of work per task. Our median is 129 s wall-clock (76–212 s by task), including environment discovery and each test's prove-it-fails run.
  • Flask teardown detail. F1 is the one explain task where Devin scored higher (100% vs 94%): our answers name the teardown order but not that errors are collected.
  • Hosted and always on. Devin runs in its cloud; NeoDevEx runs where it is installed.

Where we are ahead now: explanation accuracy (98% vs 94%), every test run proven against planted bugs (18 / 18), and 45% cheaper per task ($0.21 vs $0.38).

How we tested

  • Repositories at pinned commits: pallets/flask 258d68b6, honojs/hono 24547a6e, sindresorhus/ky e0fcf78, the same three used in the KT docs study. Each run got a fresh copy with dependencies installed.
  • Same prompt on both products. Devin's prompts added the repository and commit to check out, and "do not push or open a pull request" on test tasks.
  • NeoDevEx ran on OpenHands SDK 1.42.1 (the version the app ships). The agent was built from the exact settings the app sends when it starts a conversation, dumped by a test that calls the app's own request builder. Browser tools were off. Gemini 2.5 Flash and 2.5 Pro for the early rounds, Gemini 4 Argon after the default switch.
  • Explain answers were scored by a blind judge (Gemini 2.5 Pro, not told which agent wrote the answer) against fact checklists written from the source before any answer was read. We hand-graded 10 answers first; the judge's scores differed from ours by 0.05 on average.
  • Tests were mutation-graded: run on the real code (must pass), then once against each of 3 planted bugs per task (should fail). A test that fails on the real code scores 0.
  • Costs: Devin from its usage history; NeoDevEx from the SDK's own token and cost metrics, which match Google's list prices on 2026-10-13 (Argon: $2 / $10 / $0.10 per million input / output / cached tokens). Argon's price doubles on 2026-12-01, which would put our cost near $0.42 a task, about Devin's.

What could skew this

  • Small samples: Devin ran each task once, and NeoDevEx 1–3 times per variant. A single run can swing a task's score a lot.
  • Devin's H2 was not run (out of credit), so its test score covers two tasks.
  • The rules were written in response to these six tasks and re-measured on them. They are general (read the code, use the project's environment, prove the test), but a fresh task set would be a stronger test.
  • The judge is a model (Gemini 2.5 Pro). Its K1 score for Devin (83%) is lower than our hand grade (100%). With our hand grade, Devin's explain average is 100%, ahead of our 98%.
  • Devin chose its own model; we compared our model choice against it. The rules, Layman and model changes are what we measured; we cannot separate Devin's model from its agent.
  • NeoDevEx time is wall-clock; Devin's is its own "worked for" figure, which may exclude setup.

Raw data