deep_research
Investigate complex codebase architecture using multi-step reasoning: decompose questions, retrieve code in parallel, and synthesize comprehensive answers. Supports checkpointing for long-running research.
Instructions
Perform deep research on a codebase question using multi-step reasoning. Unlike ask_question (single retrieval), this performs query decomposition, parallel retrieval, gap analysis, and comprehensive synthesis. Best for complex architectural questions. Supports checkpointing for long-running research that can be resumed if interrupted.
Requires: index_repository must be called first.
Example: {"repo_path": "/path/to/repo", "question": "How is the event system architected?"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the indexed repository | |
| question | Yes | Complex architectural question about the codebase | |
| max_chunks | No | Maximum total code chunks to analyze (default: 30) | |
| preset | No | Research mode preset: 'quick' (fast, fewer sub-questions), 'default' (balanced), 'thorough' (comprehensive, more analysis) | |
| resume_research_id | No | Optional checkpoint ID to resume an interrupted research session. Use list_research_checkpoints to see available checkpoints. |