Skip to content

Language support

Language support has separate parts. Outlines describe which source structure can be retained at reduced detail. Local references identify supported imports, links, or symbols. Project metadata supplies roots and visibility for resolving those references within the scanned inputs.

A supported reference form does not guarantee a resolved dependency. The target must be present, and its path or name must be statically understood.

Capability table

The files column lists registered extensions and exact filenames. The outline column describes captured structure, rather than promising compiler-equivalent understanding of every construct.

LanguageRecognized filesOutlinesLocal referencesProject metadata
Bash.sh, .bashrc, .bash_profile, .profileFunctions and shell structureLiteral source and dot commands—
C.c, .hDeclarations and preprocessor structure#includeCMake, compilation database, include roots
C#.cs, .csxTypes, namespaces, and declarationsUsing directives and qualified names.csproj references
C++.cpp, .cc, .cxx, .c++, .C, .hpp, .hh, .hxx, .h++, .H, .ipp, .tpp, .inl, .cppm, .ixx, .mpp, .cxxm, .ccmDeclarations, classes, and modulesIncludes and module importsCMake, compilation database, include roots
CMake.cmake, CMakeLists.txtCommands and target structureIncludes, subdirectories, sources, targetsCMakeLists.txt
CSS.cssRules, declarations, and conditional headers@import, CSS modules, local assetsNode workspace metadata
Dockerfile / Containerfile.dockerfile, .containerfile, Dockerfile, ContainerfileInstructions and stagesLocal COPY and ADD sources—
Elixir.ex, .exsModules and declarationsAliases, imports, require, usemix.exs
Go.goDeclarations and typesImports, directory peers, embedded pathsgo.mod, go.work
GraphQL.graphql, .gql, .graphqlsTypes, operations, and fragmentsFragment spreads and import comments—
HCL / Terraform.hcl, .tf, .tfvars, .terraform.lock.hclBlocks and attributesLocal modules, file/template calls, directory peersTerraform directory roots
HTML.html, .htmElements and embedded syntaxLocal links, scripts, styles, assetsNode workspace metadata
Java.javaClasses, records, and declarationsPackages, imports, qualified namesMaven, Gradle, SBT metadata
JavaScript / JSX.js, .jsx, .mjs, .cjsDeclarations and exportsImports, re-exports, literal module callsNode packages and workspaces
JSON.jsonObject keys and values$ref, $schemaNode metadata, Kustomize roots
Just.just, justfile, .justfile, JustfileRecipes, modules, and assignmentsImports, modules, and recipe dependenciesJustfile source roots
Kotlin.kt, .ktsDeclarations and typesPackages, imports, qualified namesMaven, Gradle, SBT metadata
Lua.luaFunctions and declarationsrequire, dofile, loadfileRockspec metadata
Make.mk, .mak, .make, Makefile, makefile, GNUmakefileTargets, rules, and assignmentsLiteral includes and prerequisitesMakefile source roots
Markdown.md, .markdown, .mdown, .mkdHeadings, blocks, and fenced codeLocal links and images—
PHP.php, .phtml, .php3, .php4, .php5, .phpsClasses, namespaces, and declarationsNamespace imports and literal includesComposer autoload metadata
Protocol Buffers.protoMessages, enums, and servicesImports and qualified namesbuf.yaml roots
Python.py, .pyi, .pywDeclarations and docstringsImports, package initializers, and literal dynamic importspyproject.toml, setup files
R.r, .RFunctions and assignmentsSource calls and package referencesDESCRIPTION
reStructuredText.rst, .restSections and directivesInclude and image directives, Sphinx toctrees—
Ruby.rb, Gemfile, Rakefile, Brewfile, VagrantfileClasses, modules, and declarationsrequire, require_relative, load, autoloadRuby manifests
Rust.rsDeclarations and implementationsuse, mod, include macrosCargo manifests and workspaces
Scala.scala, .scClasses, objects, traits, and declarationsImport/export selectors and qualified namesMaven, Gradle, SBT metadata
SCSS.scssRules, declarations, and mixinsImports, @use, @forward, supported assetsNode workspace metadata
SQL.sql, .pgsqlStatements and schema declarationsSchema-object references—
Svelte.svelteComponent structure and embedded syntaxHost assets and embedded importsNode packages and workspaces
Swift.swiftDeclarations and extensionsImports and local symbolsPackage.swift
TOML.tomlTable headers, keys, and valuesNo extractor—
TSX.tsxDeclarations, types, and JSXImports and module referencesNode packages, TypeScript configuration
TypeScript.ts, .mts, .ctsDeclarations, types, and exportsImports and module referencesNode packages, TypeScript configuration
Vue.vueComponent structure and embedded syntaxHost assets and embedded importsNode packages and workspaces
YAML.yaml, .ymlMappings, sequences, and scalarsSupported literal resource and file pathsKustomize roots
Zig.zigDeclarations@import, @embedFilebuild.zig, build.zig.zon

Detection and fallback

Known filename rules and interpreter shebangs can identify extensionless scripts. The Python SDK's Input.language overrides automatic detection for that input. Markdown's inline grammar is an internal helper, not a separate file language.

Readable unsupported files still have FULL source and TREE available. Binary, invalid UTF-8, oversized, and suppressed sensitive inputs stay path-only. The budget can reduce detail or shorten the path listing. See read the result.

Resolution limits

References are static evidence of a local dependency. ContextCraft does not fetch external packages, execute build scripts, or reproduce runtime loading. Computed imports, unknown build conditions, and generated files can leave references unresolved. The Python SDK exposes resolution outcomes through analysis metadata.

Detection comes from the language registry. Capability descriptions are reviewed against the language handlers.