Impact before commit
See every file that breaks.
Perception β Precision β Results
Loctree gives AI agents one-shot structural perception of a live codebase, then keeps it fresh as the repository changes. It surfaces file responsibilities, symbol occurrences, definitions, risks, and intent-aware guidance through AST-powered understanding, so agents can predict impact, choose the next move, and act without losing the shape of the system.
Loctree is perception, which gives precision, safety, velocity and results.
OUTPUT SURFACES
One real `loct auto` scan emits seven artifacts. Pick a surface β the panel swaps to the actual output, copy-ready.
{
"agent_context": {
"target": "loctree_rs/src/analyzer/env_truth/mod.rs",
"role": "target",
"authority": "repo_verified",
"health": {
"scope": "DirtyWorktree",
"snapshot": "fresh",
"stale": false
},
"structure": {
"dependencies": 13,
"direct_consumers": [
"loctree_rs/src/analyzer/mod.rs",
"loctree_rs/src/cli/dispatch/handlers/env_truth.rs"
],
"transitive_consumers": 5
},
"risk": {
"hotspot": true,
"importers": 2,
"runtime_surfaces": {
"tauri_commands": 0,
"env_contracts": 0
}
},
"next_safe_actions": [
"loct slice loctree_rs/src/analyzer/env_truth/mod.rs",
"loct impact loctree_rs/src/analyzer/env_truth/mod.rs",
"loct context --file loctree_rs/src/analyzer/env_truth/mod.rs"
],
"verify": [
"cargo check --workspace",
"cargo clippy --workspace --all-targets -- -D warnings",
"cargo test --workspace"
]
}
}Actual scan output, copy-ready.
CONTEXT FIRST
See every file that breaks.
Exports that nothing imports.
Core + deps + consumers.
Circular imports mapped.
WORKS WHERE YOU WORK
No special project shape required. Loctree follows the stack already in front of it.
Zellij Β· Rust + shell Β· fix/skip-render-when-detached
WORKFLOW
The same loop for humans and agents: read the repo, understand the blast radius, make a bounded change, verify the result.
AGENT SURFACES
INSTALL
Install the scanner, generate context, and let your agent stop guessing.
curl -fsSL https://loctree.com/install.sh | sh