/search
Search codebase by meaning using semantic search
> /plugin marketplace add Helweg/open-codebase-index > /plugin install codebase-index@helweg-plugins
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/search
Context preview
What this command does when you run it.
Search codebase by meaning using semantic search
Command definition
search.mddescription: Search codebase by meaning using semantic search
Search the codebase using semantic search.
User input: $ARGUMENTS
The first part is the search query. Look for optional parameters:
- `limit=N` or "top N" or "first N" → set limit
- `type=X` or mentions "functions"/"classes"/"methods" → set chunkType
- `dir=X` or "in folder X" → set directory filter
- File extensions like ".ts", "typescript", ".py" → set fileType
- `author=X` or `blameAuthor=X` → set blameAuthor filter
- `sha=X` or `blameSha=X` → set blameSha filter
- `since=YYYY-MM-DD` or `blameSince=YYYY-MM-DD` → set blameSince filter
- `until=YYYY-MM-DD` or `blameUntil=YYYY-MM-DD` → set blameUntil filter
Call `codebase_search` with the parsed arguments.
Examples:
- `/search authentication logic` → query="authentication logic"
- `/search error handling limit=5` → query="error handling", limit=5
- `/search validation functions` → query="validation", chunkType="function"
- `/search auth logic author=jane@example.com since=2025-01-01 until=2025-01-31` → query="auth logic", blameAuthor="jane@example.com", blameSince="2025-01-01", blameUntil="2025-01-31"
If the index doesn't exist, run `index_codebase` first.
Return results with file paths and line numbers.
Search a codebase by meaning, then follow the result into definitions, callers, and dependency paths. open-codebase-index is a local semantic code index for OpenCode, Jcode, Pi, Codex, Claude Code, and other MCP clients.
Repo: Helweg/open-codebase-index
Other commands on codebase-index.
- /call-graph
Trace callers, callees, or paths using the call graph
Open command - /definition
Find where a symbol is defined in the codebase
Open command - /find
Find code using hybrid approach (semantic + grep)
Open command - /peek
Quickly find likely code locations without returning full code
Open command - /pr-impact
Analyze PR or branch impact using the call graph
Open command - /reindex
Fully rebuild the codebase index from scratch
Open command

