code-tool-router

A decision guide for choosing code-search and code-analysis tools based on the question being asked. It distinguishes exact text search, meaning-based discovery, symbol navigation, and dependency-graph analysis.

In plain words
What is it for?
Use it to find exact strings, discover similar implementations, follow definitions and references, rename symbols, inspect callers and callees, measure complexity, or understand dependencies.
Why use it?
Different code questions need different kinds of search, and using the wrong one can miss results or waste time. The guide also recommends checking important findings against the source code.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/777genius/universal-agent-plugins/code-tool-router
Any agent
npx skills add 777genius/universal-agent-plugins --skill code-tool-router
Clone the repo
git clone --depth 1 https://github.com/777genius/universal-agent-plugins

Made for: Claude Code, Codex.

Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 442 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00442
Opus 5 $0.00021 $0.00221
Sonnet 5 $0.00008 $0.00088
Haiku 4.5 $0.00004 $0.00044

Measured 2d ago against content hash 51c3009dbb63, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-tool-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

compat/openai/plugins/agent-code-navigator/skills/code-tool-router/SKILL.md · 49 lines

What it actually says

Code Tool Router

Classify the question before searching, then use the cheapest reliable tool.

Intent First tool Verification
Exact string, config key, error text, filename, or symbol spelling rg Open matching files
Broad semantic discovery or similar implementations Semble Confirm with rg and source reads
Definitions, references, rename, or type-aware navigation Serena or another LSP tool Check generated and dynamic call sites with rg
Callers, callees, complexity, or dependency graph CodeGraphContext (CGC) Confirm important edges in source
Current library or API behavior Official documentation Compare with local pinned usage

Exact search examples:

rg -n "reset_session\\(" .
rg --files | rg "memory|context"

Semantic discovery examples:

uvx --from semble==0.5.4 semble search "where session context is assembled" .
uvx --from semble==0.5.4 semble find-related src/path/file.ts 42 .

Graph examples:

cgc stats . --context "$(basename "$PWD")"
cgc find name reset_session --context "$(basename "$PWD")"
cgc analyze callers reset_session --context "$(basename "$PWD")"
cgc analyze complexity --limit 20 --context "$(basename "$PWD")"

If a specialized tool is unavailable, continue with rg, direct source reads, and the language's own analysis tools. Do not claim a rename or impact set is complete without type-aware or source-level verification.

Use semantic and graph results as shortlists, not proof. Source code and reproducible tests remain authoritative.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 49 lines · 42 tokens per session scan A 51c3009dbb63

Subscribe to this mod's changes

code-tool-router is a skill published in the GitHub repository 777genius/universal-agent-plugins (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 42 tokens to every session and 442 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

9router-web-fetch

Fetch URL → markdown / text / HTML via 9Router /v1/web/fetch using Firecrawl / Jina Reader / Tavily Extract / Exa Contents. Use when the user wants to scrape a webpage, extract URL content, read article, or convert a URL to markdown.

decolua/9router · 63 tokens

9router-web-search

Web and X search via 9Router /v1/search using Tavily / Exa / Brave / Serper / SearXNG / Google PSE / Linkup / SearchAPI / You.com / Perplexity / Xquik. Use when the user wants to search the web, find articles, or search public X posts.

decolua/9router · 74 tokens

9router-chat

Chat / code generation via 9Router using OpenAI /v1/chat/completions or Anthropic /v1/messages format with streaming + auto-fallback combos. Use when the user wants to ask an LLM, generate code, summarize text, or run prompts through 9Router.

decolua/9router · 63 tokens

9router-embeddings

Generate vector embeddings via 9Router /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia / GitHub embedding models for RAG, semantic search, similarity. Use when the user wants embeddings, vectors, RAG, semantic search, or to embed text.

decolua/9router · 66 tokens

9router-stt

Speech-to-text via 9Router /v1/audio/transcriptions using OpenAI Whisper / Groq / Gemini / Deepgram / AssemblyAI / NVIDIA / HuggingFace models. Use when the user wants to transcribe audio, convert speech to text, or get subtitles from audio files.

decolua/9router · 63 tokens

vindicate

Use when the user wants to write, add, fix, stabilize (flaky), refactor, run, or audit Playwright browser tests, draft requirements/stories from a recording (no tests), find test-coverage gaps, scaffold a Playwright project, or set up Playwright CI. Vindicate's guided workflow for grounded, conformant Playwright test…

OpenEvident/vindicate · 77 tokens