Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overview

Codna understands a repository before it acts. It maps the code for about zero model tokens, then fixes, reviews and secures from the evidence. Runs on your machine or your cloud.

Codna

Agents read your code. Codna understands it.

Codna maps your repository deterministically before it spends a model token. It hands the agent the evidence for this issue, not the whole tree, and reports the bundle size on every run. Point it at a local checkout or a git URL.

New to Codna? Start with the Quickstart: install, add a model key, triage a repository, and open your first fix PR.

Start here

Choose an outcome

Connect Codna

Understand and explore

What Codna does

You run one command, codna. Everything it needs ships inside the package. There is no server to start.

Capability
Command
What it does
Model tokens

Understand

codna triage

Maps the repository and locates the code relevant to an issue. Deterministic.

0

Fix

codna fix

Finds the root cause and plans a patch. With --apply it writes a local branch; with --open-pr it opens a pull request. Every fix reports root cause, impacted symbols, confidence and blast radius.

On the patch

Review

codna review

Reviews a pull request read-only. Posts findings with severity, category and confidence. Approves a clean diff.

On the review

Secure

codna secure

Reads SARIF from CodeQL, Semgrep, Snyk or Trivy and proves which findings are reachable.

0 to classify

Test selection

codna impact

Prints the tests a diff can affect. Offline.

0

Code memory

codna_recall (MCP), codna memory export

On-device recall of the symbols relevant to a query.

0

Report

codna report

Files a bug, request or question to thyn-ai/feedback.

0

The GitHub App and the GitHub Action run the same codna commands you run on your machine. A review posted by the App, by the Action, or by codna review --post reads the same way.

Install

For pipx, uv, optional extras and offline use, see Installation. For keys and model selection, see Models & BYOK.

A first look

Point Codna at a directory to understand it. Triage spends no model tokens.

The values below show the format. Codna prints the measured values for your repository.

Then fix a bug. Without --apply or --open-pr, fix reports its analysis and a patch reference and changes nothing.

Next: the Quickstart walks install, triage, fix and PR end to end. The CLI Reference documents every command.

Community

Questions or feedback? File them with codna report, or join us on Discord. Security reports go to [email protected] and are acknowledged within two business days.

Last updated

Was this helpful?