Skip to content

Supported languages and file types

What the indexer can process, per extension, and, just as important, what it cannot. A field report noted this page didn't exist and that its absence turned a 30-second lookup into an afternoon of forensics; here it is.

Three layers decide whether a file enters the index:

  1. INCLUDE_EXTENSIONS (data/settings.json, merged additively with the built-in defaults), which files the scan discovers.
  2. The security scanner's allowlist: the hard ingestion gate. An extension you add to INCLUDE_EXTENSIONS that the scanner doesn't support is skipped and the server warns at startup and reindex (validate_extension_config).
  3. The chunker routing: decides how a file is split: AST, a dedicated chunker, or the line-based fallback.

Everything the scan skips is counted in the skip ledger, see the Skipped: line in the reindex output and the skipped-by-reason table in index_stats. A zero-result search cannot prove code absent in a file type listed as skipped there; use grep_search (live filesystem) for those.

AST-chunked (tree-sitter: functions/classes/methods as units)

Language Extensions Notes
PHP .php
JavaScript .js .jsx .mjs .cjs .jsx parses via the stock JS grammar
TypeScript .ts .mts .cts .tsx .tsx uses a dedicated TSX grammar; HOC-wrapped components (forwardRef/memo) extract as named units
Python .py
Bash .sh
Go .go
Java .java
Ruby .rb
Rust .rs
C# .cs .NET views, layouts and project files: see .NET below
Fortran .f90 .f95 .f03 .f08 .f .for
Perl/CGI .pl .pm .t .psgi .cgi tree-sitter first (vendored wheel), regex + brace-balanced chunker as fallback; call graph since CN-178, subs named Package::sub
Swift .swift
Kotlin .kt .kts
Scala .scala .sc
Dart .dart Flutter; grammar vendored as a wheel built from source

Dedicated non-AST chunkers

Type Extensions Chunking
Smarty templates .tpl section boundaries
HTML / Razor .html .htm .razor .cshtml landmark boundaries, <form> <script> <table> <section> <nav> <header> <footer>, <div> with an id/class, and <!-- SECTION -->-style comments; shares the Smarty chunker
SQL .sql statement boundaries
Markdown / MDX .md .mdx header sections (MDX's JSX blocks ride along as text)
Plain text / reST .txt .rst paragraph blocks
External documents .pdf .docx via DOCS_DIR ingestion (reindex_docs), not the code scan

How HTML is scanned. .html/.htm (and Razor .razor/.cshtml) carry the html language, which the scanner already treats as prose, so the secret, PII and doc-scoped prompt-injection rules all apply to markup. The handful of code-scoped rules (the PHP/JS dangerous-function checks) deliberately do not run inside an inline <script>; put executable code in a .js file if you want those.

Line-based fallback (indexed and searchable, no structural units)

.css .json .ini .properties .conf .yml .yaml .tmpl (Template Toolkit) .ps1 .psm1 .psd1 (PowerShell) .sol (Solidity) .vy (Vyper) .tf (Terraform) .hcl .toml .proto (Protobuf) .graphql .gql .prisma .groovy .gradle .c .h (C) .cpp .hpp .cc .cxx .hh .hxx (C++) Build files known by name: Dockerfile, Containerfile and Dockerfile.* (language dockerfile), Makefile/GNUmakefile and .mk (makefile), Jenkinsfile (groovy), go.mod/go.work (gomod), Procfile and crontab (conf), and the Ruby DSL files Gemfile Rakefile Podfile Vagrantfile Guardfile Brewfile Fastfile, which are AST-chunked as Ruby .xml .plist (Android resources and manifests, iOS property lists, Maven/Spring/MSBuild XML) .xaml .csproj .props .targets .slnx .config .resx (.NET, language xml) and .sln (language conf)

PowerShell (CN-639). Indexed since 1.3.30, with the line-based chunker no PowerShell grammar is vendored, so scripts split on line blocks rather than into function units, the same treatment SQL and YAML get. Content search, file_search by name and the secret/PII rules all work; find_callers and the other call-graph tools do not (see below). Existing installs need a full reindex to pick up .ps1 files that were skipped before.

Ethereum smart contracts (CN-940). .sol and .vy are indexed with the line-based chunker, the same treatment as PowerShell: content search, file_search by name and the secret/PII rules work; symbol_search, find_callers and impact_analysis do not see contract/function/modifier units. The rest of a Hardhat or Foundry repo (TypeScript/JavaScript tests and deploy scripts, JSON ABIs, Markdown) was already AST- or dedicated-chunked. Existing installs need a full reindex to pick up contract files that were skipped before.

Infrastructure, schema and build files (CN-1052, CN-1053). Terraform, TOML manifests (pyproject.toml, Cargo.toml), Protobuf, GraphQL and Prisma schemas, Gradle/Groovy, Dockerfiles, Makefiles and go.mod are indexed with the line-based chunker: content search, file_search by name and the secret/PII rules work; the call-graph tools do not see them. Files known by name are matched case-insensitively on the whole file name, so Makefile.am and go.sum stay unindexed. .tfvars is deliberately not indexed: like .env, it usually holds real credentials. Existing installs need a full reindex to pick up these files.

C and C++ (CN-1051). Indexed since 1.3.71 with the line-based chunker: content search, file_search by name and the secret/PII rules work; symbol_search and the call-graph tools do not see functions, structs or classes yet. .h headers are language c, the other C++ extensions cpp. Existing installs need a full reindex to pick up these files.

Mobile apps (CN-741). What each stack gets:

Stack Indexed as
Android Kotlin and Java (AST), AndroidManifest.xml, layouts and strings.xml (line-based)
iOS Swift (AST), Info.plist (line-based)
Flutter Dart (AST)
React Native TypeScript/TSX and JavaScript/JSX (AST)
.NET MAUI C# (AST), .xaml (line-based)

.xml and .plist carry their own languages, which the scanner treats as prose: the secret, PII and doc-scoped prompt-injection rules all apply, so an API key in strings.xml or Info.plist is caught. Binary plists are skipped. Not indexed: Objective-C, .storyboard/.xib (Gradle build files are, since CN-1052). Existing installs need a full reindex to pick up .dart, .xml and .plist files that were skipped before.

.NET (CN-881). C# is AST-chunked with a call graph. Blazor and MVC views (.razor, .cshtml) use the HTML landmark chunker, so an @code block is searchable but not split into methods. XAML, MSBuild, .resx resources and web.config/app.config carry the xml language and are scanned as prose. Secrets are caught there, including connection-string passwords (Server=…;Password=…;, ODBC Pwd=) and appSettings secrets (<add key="…Password" value="…"/>), here and in appsettings.json (CN-882). obj/ is excluded by default; bin/ is excluded by your .gitignore. Not indexed: VB.NET and F#. Existing installs need a full reindex to pick up these files.

Not indexed

  • Anything not listed above, e.g. .vue, .svelte, .stub, .svg, images/fonts/binaries, and extensionless files without a shebang that are not in the known-name list above (LICENSE, CODEOWNERS), the indexer is extension-gated. The skip ledger names these per repo so the gap is visible, not silent. Exception (CN-551): an extensionless file whose first line is a recognized shebang (sh/bash/zsh/dash/ksh, python, perl, php, node, ruby) is indexed as that language, bin/deploy with #!/usr/bin/env bash flows through the same pipeline as a .sh file. .svg is a deliberate omission, not an oversight: it is generated coordinate data (d="M12 2L2 7..."), a typical icon set is hundreds of files with almost nothing to embed, and indexing it dilutes vector results. The files stay visible to list_directory, which reads the live filesystem.
  • Always blocked (secret-bearing types, never indexed regardless of config): .env .pem .key .p12 .pfx .htpasswd .ovpn .ppk.
  • Oversized files: over MAX_FILE_SIZE (default 250 KB) are skipped and counted in the ledger.

Call-graph coverage is narrower than index coverage

find_callers / impact_analysis / diff_impact walk a symbol graph that covers the AST languages above, Perl included since CN-178. Files that are indexed but have no extractor (SQL, templates, docs, YAML) are invisible to the graph, the impact tools state this per response ("Graph coverage" line) and refuse to assess targets whose file type isn't indexed at all.

Coverage also varies within a supported language. A call site is only attributed to a caller when the graph can name the function containing it, and two different things leave it unattributed:

  • Top-level code. A call in a legacy PHP script, a Perl .cgi, a shell script, or an anonymous describe(...) / it(...) test callback has no enclosing named function. Nothing is missing: there is no name to attribute it to.
  • A definition shape the extractor doesn't name. Declarations, class methods and assignment-shaped definitions (const f = () => {}, exports.f = function () {}, how most modern TypeScript and every React component is written) are all named; a shape no extractor recognises loses every call in its body. Functions declared as properties of an object literal (const api = { save: () => {} }) are one such shape today.

Both leave the graph thinner than it looks, so the "Graph coverage" line reports callers unnamed for N% of <lang> call sites once a language passes 60% of its call sites, and a reindex logs the same as a warning. Healthy values are single digits to low tens; a large repository sitting far above that is telling you impact_analysis walks a fraction of the real graph.

An upgrade that changes extraction reparses the call graph once, by itself, on the next reindex. Only the call graph is rebuilt, the index and the embeddings are untouched, so this costs seconds, not a reindex.