/definition
Find where a symbol is defined in the codebase
> /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
/definition
Context preview
What this command does when you run it.
Find where a symbol is defined in the codebase
Command definition
definition.mddescription: Find where a symbol is defined in the codebase
Find the authoritative definition of a symbol in the codebase.
User input: $ARGUMENTS
The input is a symbol name or description of what to find the definition of.
Look for optional parameters:
- `limit=N` or "top N" → set limit
- `dir=X` or "in folder X" → set directory filter
- File extensions like ".ts", ".py" → set fileType
Call `implementation_lookup` with the parsed arguments.
Examples:
- `/definition validateToken` → query="validateToken"
- `/definition payment handler` → query="payment handler"
- `/definition createSystem dir=packages/react` → query="createSystem", directory="packages/react"
This prioritizes real implementation files over tests, docs, and examples. If no definition is found, suggest using `codebase_search` for broader discovery.
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

