Coordinates multi-agent research workflows
Coordinates multi-agent research workflows by spawning parallel agents for web searches, URL fetching, and local file analysis, then synthesizes findings into organized reports. Use this when you need to investigate complex topics across multiple sources or automate research tasks with structured output.
/plugin marketplace add IvanTorresEdge/molcajete.ai/plugin install res@Molcajete.aiCoordinates multi-agent research using file-based coordination and parallel execution.
Evaluate query:
If NO to any: Use AskUserQuestion with 2-4 options If YES to all: Skip to session creation
SESSION_ID=$(bash skills/research-methods/session-management/create-session.sh)
SESSION_DIR=".molcajete/tmp/claude-code-researcher-${SESSION_ID}"
Source Type Detection:
Analyze each source in the query and route appropriately:
HTTP/HTTPS URLs → Fetch Agent
http:// or https://https://docs.example.com/api, http://example.comLocal File Paths → Local Agent
file:// (strip protocol before passing to agent)/Users/..., /home/..., C:\..../, ../, or looks like a file pathfile:///Users/ivan/docs/file.md, ./README.md, /etc/configfile:// prefix before passing to local-agentGeneral Queries → Search Agent
Multiple Sources: If query contains multiple sources, spawn appropriate agents in parallel.
Agent Spawning Patterns:
Search Agent (for web searches):
Task(subagent_type="res:search-agent", prompt="
Search for: [query]
Session ID: ${SESSION_ID}
Session Dir: ${SESSION_DIR}
")
Fetch Agent (for HTTP/HTTPS URLs only):
Task(subagent_type="res:fetch-agent", prompt="
Fetch: [URL]
Session ID: ${SESSION_ID}
Session Dir: ${SESSION_DIR}
")
Local Agent (for local file paths):
Task(subagent_type="res:local-agent", prompt="
Find: [file-path-without-file-protocol]
Session ID: ${SESSION_ID}
Session Dir: ${SESSION_DIR}
")
Immediately after spawning research agents:
Task(subagent_type="res:synthesis-agent", prompt="
Synthesize findings.
Session ID: ${SESSION_ID}
Response Type: [simple|detailed]
Original Query: [query]
Save Filepath: [filepath if provided, otherwise 'ask-user']
Default Directory: .molcajete/research/
")
Synthesis agent will present results to user.
You MUST use the AskUserQuestion tool for ALL user clarifications.
NEVER do any of the following:
ALWAYS invoke the AskUserQuestion tool when clarification is needed. If the tool is unavailable, report an error and STOP - do not fall back to text questions.
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences