name: codebase-exploration description: Use when exploring, understanding, or answering questions about a Repowise-indexed codebase, including architecture, where code is implemented, how a module works, or which files are relevant before reading source.
Codebase Exploration With Repowise
This project has a Repowise intelligence layer. Use Repowise MCP tools before broad source browsing so the answer starts from indexed docs, ownership, graph structure, git signals, and decisions.
Starting A New Exploration Task
Call get_overview() first. It returns the architecture summary, module map, entry points, and tech stack.
Answering How Or Where Questions
- Call
search_codebase(query="topic, symbol, or path"). It auto-routes: an identifier returns indexed symbol hits (symbol_id+ line bounds — pipe intoget_symbol), a path returns file pages, and prose runs semantic search. Force a branch withmode=symbol|path|concept|hybrid. - Call
get_context(targets=[...])with all relevant files from the search results in one batch. - Read raw source only after the indexed context is not specific enough for the user’s question.
Understanding Connections Between Modules
Call get_context(targets=["path/or/symbol"], include=["callers", "callees"]) when the user asks how two areas connect, then follow the callers and callees it returns.
Error Handling
- If tools report that no repositories were found, suggest running
repowise init. - If
search_codebasehas no useful results, the repository may be index-only; fall back toget_contextwith specific paths. - If MCP tools are unavailable, proceed with normal source inspection and mention that Repowise context was unavailable.