/definition
Find where a symbol is defined in the codebase
> /plugin marketplace add Helweg/open-codebase-index> /plugin install codebase-index@helweg-plugins
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.
More commands from other plugins.
build
CommandImplement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

