Purpose: CodeLattice is aimed at developers and AI programming assistants, statically organizing codebases into queryable engineering graphs, for taking over unfamiliar projects, maintaining large legacy code, planning refactoring, and pre-commit review. It can be used standalone via CLI, and can also provide project understanding and change review context for clients such as Codex, Claude Desktop, and OpenCode via MCP.
Main capabilities: supports static analysis of Rust, Cangjie, ArkTS, TS/JS, C/C++, Python, and Shell; generates call graphs and dependency relationships; preserves source locations, confidence levels, and parsing reasons; graph quality checks cover dangling edges, duplicate nodes, etc.; supports change impact analysis and cleanup candidate identification; provides a visualization workbench and WebUI.
Usage: requires Git, Rust/Cargo, Bash; the self-check script requires Python 3. The default build enables all current language adapters; use --root to specify the project directory, and --language auto is an optional automatic determination. The MCP startup script can be installed via the installer, or after building from source, copied to a stable directory and the client configuration snippet printed. The WebUI starts in the repository root directory; the desktop Workbench and static analysis results are displayed separately, model explanations must be explicitly triggered, and are not written back to the fact graph.
Applicable scenarios: sorting out unfamiliar projects, maintaining legacy code, assessing refactoring impact, pre-commit review, and providing structured project context for AI assistants.
Limitations: a static graph is not equivalent to runtime proof, and cleanup candidates cannot be directly used as a basis for deleting code; it does not perform complete type inference, Rust trait solving, macro expansion, or complete C/C++ preprocessing, and dynamic behavior may not be resolvable; results need to be reviewed in combination with confidence levels and diagnostics. The analysis engine runs locally, does not rely on cloud indexing, does not upload source code, and does not execute the target project's code; model explanations are an optional capability, and when using an external MCP client, data processing also depends on that client and model configuration. The current version is v0.17.0-beta.2, and the maturity of each language and entry point varies.