Note (2026-05-23) — Consolidated into LibreSessionFlow
This standalone has been folded into the umbrella repo LibreSessionFlow-Claude-Code, alongside 9 sibling session-lifecycle plugins. The current version of this functionality lives at
plugins/explore/in the umbrella.This repo remains live as a landing page. New work happens in the umbrella.
Token-optimized AST-based code search for Claude Code. 4-8x cheaper than reading full files.
Token-optimized structural code search for Claude Code. Stop reading whole files — get the map first.
A Claude Code skill that swaps the default Read → Grep → Glob exploration cycle for AST-based structural search powered by tree-sitter MCP. Save 4-8x tokens on file understanding and 11-18x on codebase-wide exploration.
The default Claude Code workflow for understanding code is read-and-narrow: glob to find files, grep to find matches, read full files to see context. For a 1000-line file you might need to know about one function, that's 12k+ tokens spent to surface 50 lines of relevance. Across a session, those costs compound.
smart-explore flips it: index the codebase as an AST first, then fetch only the symbols you need. A function takes 400-2000 tokens to unfold instead of 12000 to Read.
This skill depends on the tree-sitter MCP server for AST parsing. Install both:
# One-time setup — installs Claude Code's tree-sitter MCP
claude mcp add tree-sitter(Or the equivalent invocation for your tree-sitter MCP package — check the tree-sitter MCP docs for the canonical install command at the time you read this.)
The MCP must expose three tools: smart_search, smart_outline, smart_unfold. Without those tools available, this skill has nothing to call.
git clone https://github.com/HermeticOrmus/ormus-explore ~/.claude/skills/smart-exploreOr as a Claude Code plugin:
claude plugin marketplace add HermeticOrmus/ormus-exploreRestart Claude Code so the skill registry picks it up. Verify with claude mcp list — tree-sitter should be present.
The skill activates automatically when relevant. To invoke explicitly:
/smart-explore
Then your next tool call should be one of:
smart_search(query="shutdown", path="./src") — find symbols across a directory
smart_outline(file_path="path/to/file.ts") — structural skeleton of one file
smart_unfold(file_path="path/to/file.ts", symbol_name="myFunction") — full source of one symbol
1. smart_search(query="auth", path="./src")
→ ranked symbols + folded file views, ~2-6k tokens
2. Pick the relevant ones from the results
3. smart_unfold on the symbols you actually need
→ ~400-2k tokens per symbol, AST-precise boundaries
That's it. No globbing, no full-file reads, no scanning hundreds of lines to find one function.
| Approach | Tokens | Use case |
|---|---|---|
smart_outline |
1,000-2,000 | "What's in this file?" |
smart_unfold |
400-2,100 | "Show me this function" |
smart_search |
2,000-6,000 | "Find all X across the codebase" |
search + unfold |
3,000-8,000 | End-to-end: find and read (primary workflow) |
Read (full file) |
12,000+ | Only when you truly need everything |
| Explore agent | 39,000-59,000 | Cross-file narrative synthesis |
11-18x savings on codebase exploration vs the Explore agent. 4-8x savings on file understanding vs Read. The narrower your query, the wider the gap.
smart-explore is a scalpel. Use the regular tools for:
- Grep — exact string/regex search ("all TODO comments", "where is
EXACT_NAMEwritten") - Read — files under ~100 lines, JSON/markdown/configs
- Glob — file path patterns ("all test files")
- Explore agent — cross-file synthesis with narrative ("how does the entire auth flow work end-to-end?")
- ormus-handoff — capture session state before context limits.
- ormus-pickup — restore context from a HANDOFF file.
- ormus-absorb — distill conversation knowledge into persistent memory.
- ormus-vibe-proof — security hardening for vibe-coded full-stack apps.
- ormus-meta-prompting — categorical foundations for AI prompt engineering.
Together they form the ormus session lifecycle — composable Claude Code skills for doing serious work across days, machines, and context resets.
MIT. See LICENSE.
Distilled from real Claude Code sessions on large polyrepo codebases. Built around the tree-sitter MCP because AST-precise symbol boundaries beat regex-precise text matches every time.
This repository is part of a growing family of open-source toolkits for Claude Code.
- LibreUIUX-Claude-Code — UI/UX development (152 agents, 70 plugins, 76 commands, 74 skills)
- LibreArch-Claude-Code — Software architecture and system design
- LibreCopy-Claude-Code — Technical writing and documentation engineering
- LibreDevOps-Claude-Code — DevOps engineering and infrastructure automation
- LibreEmbed-Claude-Code — Embedded systems, firmware, and IoT development
- LibreFinTech-Claude-Code — Financial technology development
- LibreGEO-Claude-Code — AI-search optimization (ChatGPT, Perplexity, Gemini, Google AI Overviews)
- LibreGameDev-Claude-Code — Game development across Godot, Unity, Unreal
- LibreMLOps-Claude-Code — ML engineering and AI operations
- LibreMobileDev-Claude-Code — Mobile app development (Flutter, React Native, native iOS, native Android)
- LibreSecOps-Claude-Code — Security operations
- vibe-engineer-skills — Direct AI codegen well (hypothesis → scope → validate → reject working-but-wrong)
- markdown-discipline-skills — Strip AI-slop from markdown (no em dashes, no marketing fluff)
- shell-safety-skills —
set -euo pipefaildiscipline + 15 failure-mode examples - commit-standard-skills — Ormus Commit Standard v1.0 + commit-msg hook + commitlint
- unwoke-skills — Strip AI theater (ten sins to eliminate, symmetric engagement)
- python-conventions-skills — Modern Python 3.11+ (types, pathlib, async, ruff, mypy, uv)
- typescript-conventions-skills — TypeScript strict mode, discriminated unions, Result types
- hermetic-laws-skills — Seven Hermetic Principles applied to engineering
- riper-workflow-skills — Research / Innovate / Plan / Execute / Review systematic dev
- six-day-cycle-skills — Sustainable shipping cadence with mandatory rest
- token-optimization-skills — Claude Code token + context optimization
- osint-skills — OSINT research methodology (multi-wave investigative spiral)
- calcinate-skills — Stage 1 of the Magnum Opus (burn project bloat)
- claude-md-overhaul-skills — Audit CLAUDE.md and MEMORY.md against caps
- session-handoff-skills — Session handoff + pickup discipline
- naming-skills — Product naming methodology (mine the brand's vocabulary)
- magnum-opus-skills — Seven-stage alchemy applied to project transformation
- andrej-karpathy-skills — the canonical single-file CLAUDE.md pattern (fork of jiayuan_jy's original)
Star the family, not just one — that's how the suite stays coherent.