Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Loctreev1.0.0MIT
A holographic map of code for AI agents. When Claude searches, loctree adds semantic context: symbol definitions, dependency graphs, impact analysis, and dead code detection.
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Semantic code intelligence for Claude Code. When Claude searches, loctree understands.
Loctree automatically augments Claude Code's search results with semantic context. No manual commands needed — just search normally and receive symbol definitions, dependency graphs, dead code status, and impact analysis alongside your grep results.
Status: v1.0.0 — Production release with Grep, Read, and Edit hooks.
Source of truth: This repository is the published mirror of the canonical plugin, which is developed in-suite at
loctree-suite/loctree-plugin/. Contribute there; releases are published here by the operator.
Claude Code's built-in search tools find text matches. But you need code understanding:
MyComponent defined?| Claude Searches | Claude Receives |
|---|---|
grep "UserService" | 10 text matches |
grep "UserService" + loctree | 10 text matches + symbol definitions + usages + dead code status |
Zero friction. No manual commands. Just search normally.
useAuth|useSession finds both symbols~/.claude/logs/loct-hook.log| Component | Technology | Purpose |
|---|---|---|
| Core CLI | loctree | Code map engine |
| Hook System | Bash + jq | PostToolUse integration |
| Languages | TypeScript, Rust, Python, Go, Vue, Svelte | Supported codebases |
| Caching | .loctree/ snapshot | Fast subsequent queries |
curl -fsSL https://raw.githubusercontent.com/Loctree/loctree-plugin/main/install.sh | bash
curl -fsSL https://loct.io/install.sh | bash
# Clone the plugin
git clone https://github.com/VetCoders/loctree-plugin.git
cd loctree-plugin
# Copy hooks to Claude config
mkdir -p ~/.claude/hooks ~/.claude/logs
cp hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/loct-*.sh
Add to ~/.claude/settings.json:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Grep",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/loct-grep-augment.sh"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/loct-grep-augment.sh --bash-filter"
}
]
},
{
"matcher": "Read",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/loct-read-context.sh"
}
]
},
{
"matcher": "Edit",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/loct-edit-warning.sh"
}
]
}
]
}
}
bash scripts/verify-install.sh
Restart Claude Code (run /clear or restart the app).
# Open Claude Code in your project
cd your-project
# Search for a symbol - loctree augments automatically
# (First search takes ~15s to scan, subsequent searches ~0.3s)
Watch the log to see what's happening:
tail -f ~/.claude/logs/loct-hook.log
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (loctree/loctree-plugin) — no native marketplace selected
npx claudepluginhub p/loctree-loctreePlugins from other owners that cover similar ground