基准测试

更快。更省。已验证。

Measured across 87 bug-fix tasks on identical checkouts: Codna verified 87/87 (100%) at ~$0.02 per fix — 5× fewer tokens and 1.7× faster than Cursor, and 6.6× cheaper than Cline (which verified only 73.6%).

MetricCodnaCursorCline
Fixes verified87/8787/8764/87
Accuracy100%100%73.6%
Avg wall time13.4s22.6s72.9s
Avg tokens / fix16.2K81.0K64.8K
Avg cost / fix$0.021n/a$0.139
Repo understanding0 tokensLLM contextLLM context
fewer tokens than Cursor, 1.7× faster.
$0.02per verified fix — 6.6× cheaper than Cline.
100%verified (87/87) vs Cline's 73.6%.

方法论

真实 Bug。真实代码库。测试通过。

基准测试集涵盖单个 Bug、同一代码库多个 Bug,以及智能体从未见过的代码库。每个场景仅在测试通过后计入统计。

8

Bug 修复场景

每次运行从可复现的失败测试开始,以验证通过结束。

130

扫描代码库数

Codna 在 9.2 秒内理解了 130 个代码库,覆盖 110 种语言。

162×

更少上下文

Codna 向智能体发送证据包,而非整个代码库。

$0.02

Per verified fix

Measured spend to ship one verified fix — about 28× cheaper than a typical agentic edit.

Measured 2026-06-15 on identical isolated checkouts. Every scenario counts only when your own test passes. Download the raw dataset (JSON) →

Frequently asked

Codna ran head-to-head against OpenAI Codex CLI and Google Gemini CLI across 8 real bug-fix scenarios. Every fix was verified by the project's own tests. No synthetic tasks, no self-reported numbers.

A fix counts only when the test suite passes. Codna went 8 for 8. A fix that compiles but breaks tests is not counted.

Codna sends the AI agent an evidence bundle measured at roughly 600 tokens — 162x less context than reading the full repository. That translates directly to lower API costs, typically pennies per fix.

The deterministic engine maps the dependency and blast-radius graph in about 60 ms using zero LLM tokens. The agent receives only the relevant evidence, so there is far less to process before a fix is produced.

Yes. In measured testing, Codna mapped 130 repositories in 9.2 seconds, using zero tokens for the mapping step.

The benchmark compared Codna against the default configurations of OpenAI Codex CLI and Google Gemini CLI as available at time of testing. Codna is bring-your-own-key, so you choose the underlying model.

在你的代码库中验证。

codna fix . --issue "the failing test"