Research the following question thoroughly:
$ARGUMENTS
Instructions
- Use Glob to find relevant files by name patterns
- Use Grep to search for keywords, function names, imports, and references
- Use Read to examine the most relevant files in detail
- Trace the flow end-to-end: entry points, middleware, handlers, data transformations, and side effects
Output Format
Return a structured summary:
Answer
A concise 2-3 sentence answer to the research question.
Key Files
List the most important files with their roles:
path/to/file.ts— what it does
Flow
If applicable, describe the execution flow step-by-step.
Architecture Notes
Any relevant patterns, design decisions, or gotchas discovered.
Related
Other files or areas worth investigating if the user wants to go deeper.
Important
- Be thorough but concise — the summary goes back to the main context
- Include specific file paths and line numbers where relevant
- Don’t dump raw file contents — summarize what matters
- If the codebase doesn’t contain what’s being asked about, say so clearly