searching

Search codebases, external repos, and fleet history using semantic and exact text search.

Updated Aug 5, 2026
One-click install
npx skills add https://github.com/harivansh-afk/loom-index-e2e --skill searching-harivansh-afk
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: searching
Source: https://github.com/harivansh-afk/loom-index-e2e/tree/main/skills/searching
Command: npx skills add https://github.com/harivansh-afk/loom-index-e2e --skill searching-harivansh-afk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Finding the right code, API pattern, or prior decision across a local codebase, upstream repositories, and shared agent history is slow and error-prone when done ad hoc. This Skill provides a disciplined routing strategy so every question is answered from the most authoritative source with the right search tool. ## Core Features & Use Cases - Semantic vs exact search routing: Use mgrep search -c for conceptual questions and rg/fd for exact strings, symbols, and file paths. - Upstream source inspection: Clone external repos into /tmp with git clone --depth=1 (or --filter=blob:none when history matters) to read real call sites instead of guessing from web results. - Fleet history priors: Query the shared semantic store (search.semantic with sources like claude_history, github, shell) to learn what prior agents already built or decided. - Use Case: Before implementing a new API integration, spawn a subagent to check current ecosystem idioms via web search and /tmp clones, then query fleet history to confirm the feature is not already 90% built on main. ## Quick Start Ask the agent to find where a specific behavior is implemented in this repo and check whether any prior agent has already worked on it.

Frequently Asked Questions about searching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search a codebase semantically instead of by exact text?▼

Use mgrep search -c "<query>" <path> for conceptual or natural-language questions; it returns ranked files with matched snippets. Add -r to recurse, -m N to raise the result cap, or -a to synthesize an answer from the hits.

When should I use ripgrep versus semantic search?▼

Use rg for exact strings and known symbols, and fd or globs for known file-path patterns. Reach for semantic search first on fuzzy, conceptual questions where you do not know the exact identifier.

How do I research an API in an external GitHub repository?▼

Clone the repo once into /tmp with git clone --depth=1 and search the clone with rg and fd instead of curling individual files. Use --filter=blob:none when history matters, since git log -S plus git tag --contains answers whether a fix is released.

How can I check what prior agents already did on a task?▼

Query the shared store with search.semantic("<task phrasing>", source=["claude_history"], top_k=5). Valid source tags are claude_history, codex, shell, claude_debug, github, and code; a wrong tag returns zero hits silently.

Why does my fleet history search return zero results?▼

An empty result often means a mistyped source tag, since invalid tags like atuin or git_log fail silently instead of erroring. Verify the tag against the canonical list before concluding the corpus is empty.

When should I skip searching fleet history?▼

Skip prior search for trivial local-only edits like renames, typos, or small refactors, where generic phrasings retrieve noise. Use it for infra, deploy, CI, conventions, or debugging tasks another agent has plausibly done before.