@@ -38,8 +38,8 @@ Do NOT retry the failed script until setup completes successfully.
3838| Tool | Script | Speed | Cost | Best For |
3939| ------| --------| -------| ------| ----------|
4040| ** List Data Sources** | ` datasources.py ` | Instant | Free | Discovering indexed repos and workspaces |
41- | ** Semantic Search** | ` search.py ` | Fast | Low | Finding relevant artifacts by meaning |
42- | ** Grep Search** | ` grep.py ` | Fast | Low | Exact text and regex matches with line previews |
41+ | ** Semantic Search** | ` search.py ` | Fast | Low | Default discovery — finds code by meaning (concepts, behavior, architecture) |
42+ | ** Grep Search** | ` grep.py ` | Fast | Low | Finds code containing a specific string or regex (identifiers, literals, patterns) |
4343| ** Fetch Artifacts** | ` fetch.py ` | Fast | Low | Retrieving full content for search results |
4444| ** Artifact Relationships** | ` relationships.py ` | Fast | Low | Drilling into call graph, inheritance, references for one artifact |
4545| ** Chat with Codebase** | ` chat.py ` | Slow | High | Synthesized answers, architectural explanations |
@@ -64,12 +64,18 @@ or references.
6464
6565## When to Use
6666
67- ** Use this skill for semantic understanding :**
67+ ** Semantic search (default) — you describe behavior or concept :**
6868- "How is authentication implemented?"
6969- "Show me error handling patterns across services"
7070- "How does this library work internally?"
7171- "Find similar features to guide my implementation"
7272
73+ ** Grep search — you know the exact text:**
74+ - "Find all usages of ` RepositoryDeleted ` "
75+ - "Where is ` ConnectionString ` configured?"
76+ - "Search for ` TODO: fix ` across the codebase"
77+ - Error messages, URLs, config keys, import paths, regex patterns
78+
7379** Use local file tools instead for:**
7480- Finding specific files by name or pattern
7581- Exact keyword search in the current directory
@@ -129,9 +135,11 @@ python scripts/datasources.py --all # All (including processing)
129135python scripts/datasources.py --json # JSON output
130136```
131137
132- ### ` search.py ` — Semantic Code Search
138+ ### ` search.py ` — Semantic Code Search (default discovery tool)
133139
134- Returns file paths, line numbers, descriptions, identifiers, and content sizes. Fast and cheap.
140+ The default starting point. Finds code by WHAT it does — concepts, behavior,
141+ architecture — not by exact text. Use when you can describe what you're
142+ looking for but don't know the exact names in the codebase.
135143
136144``` bash
137145python scripts/search.py < query> < data_sources...> [options]
@@ -150,10 +158,11 @@ source: use `fetch.py <identifier>` for external repos, or your editor's
150158file-read tool on the path for repos in the current working directory. Treat
151159only that real ` content ` as ground truth.
152160
153- ### ` grep.py ` — Exact / Regex Search
161+ ### ` grep.py ` — Exact Text / Regex Search
154162
155- Returns artifact-level matches with line previews. Use this when the pattern
156- itself matters more than semantic similarity.
163+ Finds code containing a specific string or regex pattern. Use when you know
164+ the exact text to look for: identifiers, error messages, config keys, URLs,
165+ domain events, import paths, TODO comments.
157166
158167``` bash
159168python scripts/grep.py < query> < data_sources...> [--regex] [--max-results N] [--path PATH] [--ext EXT]
0 commit comments