All three configurations fixed the same Node.js discount bug. Codex with GPT-6.2 Sol and GPT-6.2 Astra, and OpenCode with DeepSeek Flash, each restored the same one-character comparison and passed both tests. The fastest observed run took 9.07 seconds. This was one trial per configuration on a small exercise, with separate repositories and the same acceptance test.
The bug and the expected result
A shop gives a 10% discount to orders of 5,000 cents or more. The broken function used > where the rule required >=. It returned no discount for an order of exactly 5,000 cents, even though the correct discount was 500 cents. The test at 4,999 cents already passed. The task was to fix the boundary while preserving behavior below it.
Use Pristren’s downloadable Git diff exercise to get both files. The exercise creates a disposable directory and prints its path. Copy discount.mjs and discount.test.mjs from the printed directory into a new directory for each trial. The exercise puts the original correct version in its own Git history. Copying just those two files keeps that answer out of the trial repository.
Reproduce the benchmark
On the test machine, we used Node.js 24.21.0, macOS 26.5.1 on Apple Silicon, and fresh Git repositories with the broken version as their only commit. In each trial repository, use these commands to commit the starting state and confirm the failure:
git init --template=
git config core.hooksPath /dev/null
git add -- discount.mjs discount.test.mjs
git -c user.name='Pristren Example' -c user.email=example@pristren.com \
-c commit.gpgsign=false commit -m 'Start from broken discount implementation'
node --test --test-reporter=tap discount.test.mjsExpect one pass and one failure. Give each tool this same prompt. Set a 95-second timeout and measure wall time from process launch to exit. Run independent copies in fresh sessions to avoid reusing a prior answer.
A store applies a 10% discount to orders from 5,000 cents inclusive. The current Node.js implementation has a regression. Inspect discount.mjs and discount.test.mjs, apply the smallest fix to discount.mjs, and run node --test --test-reporter=tap discount.test.mjs. Do not change tests, install packages, read outside this directory, inspect Git history, use the network from the project, commit, or edit other files.
We ran codex exec --ignore-user-config --sandbox workspace-write --json -m MODEL -c 'model_reasoning_effort="low"' with the prompt as the final argument. For OpenCode we ran opencode run --dir "$PWD" --pure --format json --model deepseek/deepseek-flash with the same prompt. OpenCode could read and edit the trial files, search the trial directory, and run the specified test command. An additional shell request for ls -la was denied, and the agent continued on its own. Codex non-interactive documentation · Node.js test runner documentation
After each tool exited, we independently reran the test command, checked git status --porcelain, and inspected git diff. A pass required both tests to pass and only the single source file to change. All three tools changed > to >=. Each configuration ran once, and the trials ran in parallel.
Results from December 2, 2026
| Tool and model | Tests | Wall time | Human intervention after launch | Reported input and output tokens | Reported cost |
|---|---|---|---|---|---|
Codex CLI 0.173.0-alpha.4.1, gpt-6.2-sol | 2/2 | 15.00 s | None | 90,819 input (81,152 cached), 257 output | Unavailable |
Codex CLI 0.173.0-alpha.4.1, gpt-6.2-astra | 2/2 | 30.28 s | None | 87,099 input (70,784 cached), 254 output | Unavailable |
OpenCode 1.15.10, deepseek/deepseek-flash | 2/2 | 9.07 s | None | 4,814 uncached input, 25,216 cache reads, 385 output | $0.00106 |
The table uses the counters emitted by each CLI. Codex includes cached input in its input total. OpenCode reports uncached input and cache reads separately. The cost shown is OpenCode’s estimate. Codex’s account did not expose a charge for either run. Startup, provider response time, tool context, and cache behavior all contribute to these numbers.
During setup, OpenCode’s Copilot provider rejected the models we tried. Those attempts returned no patch or model usage. The measured OpenCode run used DeepSeek directly. We kept configuration failures outside the timed comparison so they would be visible without being mistaken for incorrect code changes.
What to try on your own project
Start with one regression you can reproduce and a test that fails for the right reason. Give the agent the rule, the affected files, and the check. Save the patch and rerun the check independently. If two setups meet the same acceptance criteria, compare their recorded cost, time, and the amount of review you had to do. Repeat on different task sizes before choosing a default for your team.
Use Pristren’s bug-fix workflow to build a brief for your own task, or use the AGENTS.md guide to give your agent a smaller, more useful project map.




Comments
Have a question or something to add? Sign in to join the discussion.