Impact before commit
See every file that breaks.
Perception โ Precision โ Results
Loctree is perception for code agents. It gives them a live structural map of the codebase:
files, symbols, definitions, risks, and task-aware guidance.
Agents move faster because they guess less.
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://loct.io/install.sh | sh