Come funziona

Prima capire. Poi correggere con precisione.

Codna separa la comprensione del codebase dal ragionamento del modello. Il layer deterministico mappa il repository. L'agente agisce con evidenze mirate.

Come funziona

1

Analizzare il repo.

Codna scansiona file, simboli, import, test e archi di dipendenza in 110 linguaggi. Gira senza un LLM, quindi costa zero token e non fa trapelare codice a un modello.

codna triage . --json
2

Costruire il grafo di blast radius.

Il grafo identifica cosa può rompersi se una funzione, file, pacchetto o API cambia. Questo permette a Codna di restringere lo spazio di ricerca prima che l'agente inizi.

3

Preparare il bundle di evidenze.

Codna consegna all'agente esattamente i file, i test falliti, i percorsi di chiamata e il contesto storico necessari — non un enorme dump di contesto.

4

Generare e verificare la correzione.

L'agente scrive una patch, Codna simula il rischio e i tuoi test verificano. Con la GitHub App, il risultato diventa una pull request.

codna fix . --issue "checkout race condition" --pr

Under the hood

What Codna hands the agent.

Architettura

Model-agnostic by design.

Usa la tua chiave, il tuo provider di modelli o l'opzione LLM gestito. La mappa deterministica rimane la stessa.

Porta la tua chiave

La tua chiave del modello. I tuoi limiti. Il tuo audit trail.

Server MCP

Dai a Cursor e Claude la comprensione del codebase come strumento locale.

CLI-first

Esegui Codna in qualsiasi repo, job CI o container.

GitHub App

Trasforma issue e check falliti in PR di correzione.

Frequently asked

A deterministic engine builds a dependency and blast-radius graph of your repository in roughly 60ms, using zero LLM tokens. That graph captures which code affects which — no AI guesswork involved in the analysis step.

An evidence bundle is the minimal slice of context Codna assembles before calling the AI agent — about 600 tokens, measured at 162x less than reading the whole repo. The agent sees only what is relevant to the bug, so fixes are faster and cheaper.

Every fix is verified by your own tests before it is surfaced. If the tests do not pass, the fix is not delivered.

Benchmarked head-to-head against Cursor across 87 tasks, Codna used 5× fewer tokens and ran 1.7× faster — roughly $0.02 per verified fix.

No — Codna supports 250+ languages. It mapped 130 repositories in 9.2 seconds for zero tokens, and the deterministic engine is language-agnostic by design.

Codna ships as a CLI, an MCP server for Cursor and Claude, and a native GitHub App that opens verified fix pull requests. You can self-host, bring your own API key, and egress is fail-closed — your code is never used for training.