# Research Agent - Multi-Agent Configuration
# Uses eunice's built-in search_query tool with Gemini Google Search grounding
# Includes evaluator-optimizer pattern for one revision cycle

[mcpServers.filesystem]
command = "mcpz"
args = ["server", "filesystem"]

[agents.root]
prompt = "agents/lead.md"
tools = []  # Lead only invokes subagents
can_invoke = ["researcher", "report_writer", "evaluator"]

[agents.researcher]
prompt = "agents/researcher.md"
tools = ["filesystem_write_*", "search_query"]  # Fixed: filesystem_write_* matches filesystem_write_file
can_invoke = []

[agents.report_writer]
prompt = "agents/report_writer.md"
tools = ["filesystem_*"]  # read, write, list - all filesystem tools
can_invoke = []

[agents.evaluator]
prompt = "agents/evaluator.md"
tools = ["filesystem_read_*", "filesystem_list_*"]  # Fixed: wildcards for read/list operations
can_invoke = []
