act-lite
act-lite is an open-source code engine for AI agents from act101. It parses
source files with tree-sitter and answers structural questions without reading
whole files: a file's skeleton, its symbols, a repository outline, where a
symbol is defined, and where it is used. It also measures code health:
functions over size, nesting, branching or parameter thresholds, the files
where complexity concentrates, and duplicated code. It maps file
dependencies: the import edges of a scope, file-level cycles, coupling counts
per file, and the files that depend on a given file. It does not edit code. It also sequesters a project's secrets out of the working
tree and runs commands with them injected and redacted (act-lite env); the
only file it writes is the project's .env, and only the value tokens of the
lines it sequesters.
act-lite ships one binary, act-lite, with four commands:
act-lite query runs one query and prints JSON.
act-lite analyze runs one code-health or dependency analysis and prints
JSON.
act-lite mcp serve serves the same queries and analyses as MCP tools over
stdio.
act-lite env sequesters secrets, lists them by name, and runs commands
with them injected and their output redacted.
Languages
act-lite supports 43 languages:
Astro, Bash, C, C#, C++, CMake, CSS, Dart, Dockerfile, Elixir, Go, GraphQL,
HCL/Terraform, HTML, Java, JavaScript, JSX, JSON, JSONC, Julia, Kotlin, Lua,
Make, Markdown, Nix, PHP, Protocol Buffers, Python, R, Ruby, Rust, Scala, SCSS,
SQL, Svelte, Swift, TOML, TSX, TypeScript, Vue, XML, YAML, Zig.
A file in any other language is refused with an error that names its
extension and lists these languages.
A file is recognized by its name first, then by its extension. The names are
exact and case-sensitive. The ten languages added after the first thirty are
recognized as follows; a file with any other name or extension stays in the
language it had, or stays unrecognized (mytsconfig.json is JSON,
Makefile.bak and cmakelists.txt are unrecognized):
| Language | File names | Extensions |
|---|
| JSONC | tsconfig.json, jsconfig.json, tsconfig.*.json, jsconfig.*.json, devcontainer.json, .devcontainer.json, .eslintrc.json | .jsonc, .code-workspace |
| XML | none | .xml, .xsd, .xsl, .xslt, .svg, .plist, .csproj, .fsproj, .vbproj, .props, .targets, .resx, .xaml |
| GraphQL | none | .graphql, .graphqls, .gql |
| Protocol Buffers | none | .proto |
| Make | Makefile, makefile, GNUmakefile | .mk, .mak |
| CMake | CMakeLists.txt | .cmake |
| Zig | none | .zig |
| R | .Rprofile | .R, .r |
| Julia | none | .jl |
| Nix | none | .nix |
In tsconfig.*.json and jsconfig.*.json, * is one or more characters. Any
other .json file, such as .vscode/settings.json, stays JSON.
Vue, Svelte and Astro component files are recognized by their extension only:
.vue, .svelte and .astro. SvelteKit route files (+page.svelte,
+layout.svelte) and Astro pages (src/pages/index.astro) are found by that
extension. Svelte modules (x.svelte.ts, x.svelte.js) stay TypeScript and
JavaScript. Counter.vue.bak, x.vuex and .mdx files are unrecognized.
Capabilities by language