Skip to content

Decision tree routing code searches to the right tool: semantic, structural, text, or literal.

CCM score
43 of 100
skills.sh installs
493
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers four search tiers: LEANN for conceptual queries, AST-grep for structural patterns, Morph for fast text search, and built-in Grep for literal matches
  • Includes a decision tree and comparison table that map each query type to its best tool and its prerequisite
  • Provides query examples for each tier, plus leann search, leann list, and leann build commands for managing LEANN indexes
  • Designed for agents that need to pick the cheapest search method that answers a code question, with a fallback to Grep when Morph has no API key

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill search-tools -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Search Tool Hierarchy

When searching code, use this decision tree:

Decision Tree

Need CONCEPTUAL/SEMANTIC search?
  (how does X work, find patterns, understand architecture)
  → Use LEANN (/leann-search) - embedding-based semantic search
  → PreToolUse hook auto-redirects semantic Grep queries

Need to understand code STRUCTURE?
  (find function calls, class usages, refactor patterns)
  → Use AST-grep (/ast-grep-find)

Need to find TEXT in code?
  → Use Morph (/morph-search) - 20x faster
  → If no Morph API key: fall back to Grep tool

Simple one-off search?
  → Use built-in Grep tool directly

Tool Comparison

ToolBest ForRequires
LEANNSemantic search: "how does caching work", "error handling patterns", conceptual queriesIndex built
AST-grepStructural patterns: "find all calls to foo()", refactoring, find usages by typeMCP server
MorphFast text search: "find files mentioning error", grep across codebaseAPI key
GrepLiteral patterns, class/function names, regexNothing (built-in)

Examples

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
Agent Workflow & Planning, Code Review & Quality
First seen
Jun 3, 2026

More from parcadei/continuous-claude-v3

All 108

Similar to Search Tools

More Agent Workflow & Planning