/codebase-index:peekfrom Codebase Index
Searches the codebase for code locations matching a query, returning file paths and line numbers without full code. Supports filtering by type, directory, file extension, and blame metadata.
Ships in Codebase Index. Installing the plugin adds it to Claude Code.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
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 filteruntil=YYYY-MM-DD or blameUntil=YYYY-MM-DD → set blameUntil 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 until=2025-01-31 → query="auth logic", blameAuthor="[email protected]", blameSince="2025-01-01", blameUntil="2025-01-31"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.
7-day visitors to each command page
10 commands in this plugin
/call-graphCall GraphTrace callers, callees, or paths using the call graph/definitionFind where a symbol is defined in the codebase/findFind code using hybrid approach (semantic + grep)/indexIndex the codebase for semantic search/pr-impactPr ImpactAnalyze PR or branch impact using the call graph/reindexFully rebuild the codebase index from scratchnpx claudepluginhub helweg/open-codebase-index --plugin codebase-indexOther plugins' commands for the same job