Skip to content

Routes each search query to the most token-efficient tool: TLDR, AST-grep, semantic search, Grep, or Read.

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

Own this skill? Claim it

What it does

  • Covers a decision tree that maps code exploration, structural patterns, semantic questions, literal text, and full-context reads to a specific tool
  • Makes TLDR search the default for code symbols, call chains, and data flow, with Grep kept as a last resort
  • Includes a token-cost table comparing TLDR, TLDR Semantic, AST-grep, Grep, and Read output sizes per query
  • Designed for agents that need to find code without loading large, irrelevant file output into context

Install

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

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

Files

Search Tool Router

Use the most token-efficient search tool for each query type.

When to Use

  • Searching for code patterns
  • Finding where something is implemented
  • Looking for specific identifiers
  • Understanding how code works

Decision Tree

Query Type?
├── CODE EXPLORATION (symbols, call chains, data flow)
│   → TLDR Search - 95% token savings
│   DEFAULT FOR ALL CODE SEARCH - use instead of Grep
│   Examples: "spawn_agent", "DataPoller", "redis usage"
│   Command: tldr search "query" .
│
├── STRUCTURAL (AST patterns)
│   → AST-grep (/ast-grep-find) - ~50 tokens output
│   Examples: "def foo", "class Bar", "import X", "@decorator"
│
├── SEMANTIC (conceptual questions)
│   → TLDR Semantic - 5-layer embeddings (P6)
│   Examples: "how does auth work", "find error handling patterns"
│   Command: tldr semantic search "query"
│
├── LITERAL (exact text, regex)
│   → Grep tool - LAST RESORT
│   Only when TLDR/AST-grep don't apply
│   Examples: error messages, config values, non-code text
│
└── FULL CONTEXT (need complete understanding)
    → Read tool - 1500+ tokens
    Last resort after finding the right file

Token Efficiency Comparison

Details

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

Questions

What does the search-router skill do?

search-router helps the agent pick the right search tool for each query type. It points code exploration to TLDR Search, structural AST patterns to AST-grep, conceptual questions to TLDR Semantic, and exact text to Grep as a last resort.

How do I install the search-router skill?

Run npx -y skills add parcadei/continuous-claude-v3 --skill search-router -y in your project. Once installed, search-router lets the agent choose the most token-efficient search tool before it reads whole files.

Where does search-router sit in its category on Claude Marketplaces?

search-router is listed under Agent Workflow & Planning alongside grill-me, grill-with-docs, setup-matt-pocock-skills, grilling and prototype. Unlike those skills, search-router focuses on routing code and text queries to the search tool that uses the fewest tokens.

Who is search-router for?

search-router suits developers who run Claude Code on large codebases and want to save tokens during searches. It is marked non-user-invocable, so the agent applies its decision tree on its own when a search is needed.

More from parcadei/continuous-claude-v3

All 108

Similar to Search Router

More Agent Workflow & Planning