From Codebase Index
Searches the indexed codebase for code locations matching a query using codebase_peek. Returns file paths and line numbers without full code. Supports optional filters for limit, type, directory, file extension, and blame metadata.
How this command is triggered — by the user, by Claude, or both
Slash command
/codebase-index:peekFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
Search the codebase using `codebase_peek`. 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 Call `codebase_peek` with the parsed arguments. Ex...
Search the codebase using codebase_peek.
User input: $ARGUMENTS
The first part is the search query. Look for optional parameters:
limit=N or "top N" or "first N" → set limittype=X or mentions "functions"/"classes"/"methods" → set chunkTypedir=X or "in folder X" → set directory filterauthor=X or blameAuthor=X → set blameAuthor filtersha=X or blameSha=X → set blameSha filtersince=YYYY-MM-DD or blameSince=YYYY-MM-DD → set blameSince filterCall codebase_peek with the parsed arguments.
Examples:
/peek authentication logic → query="authentication logic"/peek error handling limit=5 → query="error handling", limit=5/peek validation functions → query="validation", chunkType="function"/peek auth logic [email protected] since=2025-01-01 → query="auth logic", blameAuthor="[email protected]", blameSince="2025-01-01"If the index doesn't exist, run index_codebase first.
Return results as concise locations with file paths and line numbers. Suggest reading the returned files or using codebase_search when the user needs full code context.
npx claudepluginhub helweg/opencode-codebase-index --plugin codebase-index/search-codeSearches the codebase using hybrid semantic + keyword matching (Beacon), returning ranked file matches with previews. Supports multi-query batch and result scoping by path.
/searchSearches the codebase using grepika's ranked search combining FTS5, ripgrep regex, and sparse n-gram prefiltering. Returns relevance-ranked results in a table.
/exploreExplores codebase structure through iterative keyword-based search, refining results automatically or interactively. Supports depth, scope, and dependency tracking.
/coderlmExplore a codebase using tree-sitter-backed indexing to trace execution paths, find callers and implementations, and understand code structure.