Research and discover codebase information by breaking tasks into focused steps. Use when you need to understand existing patterns, find relevant files, locate integration points, or trace how something works before making changes.
Guidance for effective codebase research.
Research when you need to:
Decompose research into small, specific questions:
❌ "How does authentication work?"
✅ "Where are login routes defined?"
✅ "How are passwords hashed?"
✅ "Where are JWT tokens validated?"
Each question should:
Search the codebase with available tools:
If your tools support parallel/background execution:
Example:
Search 1: "Where are user models defined?"
Search 2: "Where is authentication middleware?"
Search 3: "How are session tokens stored?"
"Where are [X] handlers defined?"
"Find files related to [feature]"
"Locate [pattern] implementations"
"How does this codebase handle [X]?"
"Show me error handling patterns"
"Find examples of [technique]"
"Trace: API route → controller → service → database"
"How does a request become a response?"
"Where is [X] transformed to [Y]?"
"Where should [new feature] hook in?"
"What files would [change] affect?"
Capture discoveries concisely:
## Finding: Authentication Flow
- Entry: `src/routes/auth.js:15`
- Validation: `src/middleware/auth.js:42`
- Storage: `src/models/user.js:88`
Skip research when:
For non-trivial changes:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer