> For the complete documentation index, see [llms.txt](https://docs.codna.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codna.ai/concepts/languages.md). Agents can also search and read this documentation through its [MCP server](https://docs.codna.ai/~gitbook/mcp).

# Language support

Repository understanding is language-agnostic. On-device code memory uses a fixed set of tree-sitter grammars. Which one applies depends on the feature.

Codna has two language surfaces. Which one applies depends on the feature.

## Repository understanding: language-agnostic

Understanding a repository, localizing an issue, and computing blast radius run on a dependency graph built from the import, require, include and use references in your files. There is no per-language grammar in this step, so it applies to the languages your repository is written in without configuration. This drives `codna triage`, the localization step in `codna fix`, and `codna impact`.

It runs on your machine. Your code is not uploaded to analyze it, and there is no service to operate.

## On-device memory: the local extractor

Local code memory (`codna_recall` and the `.codna-memory` index; see [Code Memory](https://docs.codna.ai/concepts/memory.md)) uses its own extractor, which runs on your machine and supports a fixed set of languages:

* **Python** via the standard-library `ast`.
* **Everything below** via one generic tree-sitter walk:

| Language   | Extensions                       |
| ---------- | -------------------------------- |
| JavaScript | `.js` `.jsx` `.mjs` `.cjs`       |
| TypeScript | `.ts`                            |
| TSX        | `.tsx`                           |
| Go         | `.go`                            |
| Rust       | `.rs`                            |
| Java       | `.java`                          |
| C          | `.c` `.h`                        |
| C++        | `.cc` `.cpp` `.cxx` `.hpp` `.hh` |
| C#         | `.cs`                            |
| PHP        | `.php`                           |
| Ruby       | `.rb`                            |

The grammars ship with base `codna`, so local memory works across all of these with no extra install. A missing grammar skips that language rather than erroring.

{% hint style="info" %}
Working on a repo with `triage`, `fix`, or `impact`? That is the language-agnostic graph. Building or querying `.codna-memory` (e.g. `codna_recall`)? That is the extractor above.
{% endhint %}

## See also

* [Code Memory](https://docs.codna.ai/concepts/memory.md) — how the local index is built and queried.
* [How It Works](https://docs.codna.ai/concepts/concepts.md) — the understand → localize → bundle → act flow.
