Impact before commit
See every file that breaks.
Perception β Context β Safe action
Loctree scans a live repository and turns it into structured, agent-ready context: files, symbols, surfaces, risks, and next actions.
Perception β Context β Safe action.
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