Loctree

•
8
•

Scans project code once to provide instant structural insights and static analysis, empowering AI agents and developers to query codebase dependencies and issues efficiently.

Loctree is an AI-oriented static analysis tool that captures a project's full dependency graph in a single scan, enabling instant answers to complex structural questions. It's specifically designed to provide focused context for AI agents without the need to process every file individually. Loctree supports multiple programming languages and offers core capabilities such as detecting dead exports, identifying circular imports, performing cross-match searches, and conducting transitive impact analysis. By transforming a codebase into a queryable snapshot, it streamlines code intelligence and supports better decision-making for both human developers and artificial intelligence systems.

Características Principales

01Holographic context slicing (file + dependencies + consumers)
02Multi-language dead export and circular import detection
03jq query support for direct snapshot data interrogation
04Cross-match search for co-occurring terms and symbols
057 GitHub stars
06Transitive impact analysis for code changes and refactoring

Casos de Uso

01Integrating with AI agents to provide focused, structural code context for various tasks.
02Assessing the potential impact of code changes or deletions before refactoring.
03Performing comprehensive codebase health audits to identify dead code, circular dependencies, and duplicate logic.