Smart Explore
Token-efficient codebase navigation that uses tree-sitter AST parsing to map structure first and only unfold the symbols you actually need.
Dev & CodingIntermediate★ 90,139⑂ 7,846AI score 9/10Last updated: Aug 9, 2026
What it does
- Enforces a 3-layer exploration workflow:
smart_search(find files + ranked symbols across a directory) →smart_outline(structural skeleton of one file) →smart_unfold(full source of one symbol). - Replaces the Glob → Grep → Read discovery loop with a single structural search call.
- Includes a token-economics table so you know when each approach is cheapest (full Read ~12k tokens vs outline+unfold ~3k).
- Explains exactly when to fall back to standard tools: Grep for exact regex, Read for small/non-code files, Explore agent for cross-file architectural synthesis.
- Bundled tree-sitter grammars for JS/TS/TSX, Python, Go, Rust, Ruby, Java, C, C++, plus custom grammar registration via
.claude-mem.jsonand special Markdown heading support.
Who it's for
- Developers working in large repos where context windows fill up fast.
- Teams optimizing token spend without losing code-reading accuracy.
- Users of the claude-mem plugin, which supplies the required MCP tools.
Example uses
- Trace a cross-cutting feature:
smart_search(query="shutdown", path="./src")surfaces 14 symbols in 7 files, then unfold onlyperformGracefulShutdown. - Navigate a 1,400-line service file: outline it (~1.5k tokens), then unfold the one method you need (~1.6k) instead of a 12k-token full read.
- Write docs about a feature: smart_* tools for code discovery, plain Read for small config/markdown/plan files.
Prerequisite:
smart_search/smart_outline/smart_unfoldare MCP tools from claude-mem. Without that server connected, the skill has nothing to call.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/thedotmack/claude-mem/HEAD/plugin/skills/smart-explore/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the plugin/skills/smart-explore folder from the GitHub repo thedotmack/claude-mem into my ~/.claude/skills/smart-explore/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/thedotmack/claude-mem.git && mkdir -p ~/.claude/skills && cp -r claude-mem/plugin/skills/smart-explore ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Clone the repository:
git clone https://github.com/thedotmack/claude-mem.git - Copy the skill into your personal skills folder:
mkdir -p ~/.claude/skills && cp -r claude-mem/plugin/skills/smart-explore ~/.claude/skills/ - Install and register the claude-mem plugin / MCP server following the repo README — this is required, since the skill only contains instructions.
- Restart Claude Code and verify with
/mcp(or the tool list) thatsmart_search,smart_outline, andsmart_unfoldare available. - Test it inside a project: ask "use smart-explore to find shutdown-related code in ./src".
- Optional: for languages outside the bundled list, add a
.claude-mem.jsonat your project root withpackage,extensions, and aqueryfile, then runnpm install tree-sitter-<language>.
View source on GitHub ↗License: Apache-2.0