Adds a new "research phase" that runs before the main agent response,
allowing the agent to proactively gather information using tools.
Features:
- Configurable triggers: Always, Keywords, Length, Question, Never
- Full tool access during research (not just read-only)
- Progress output showing which tools are called
- Prompt-guided fallback for providers without native tool calling (Gemini)
Config example:
```toml
[research]
enabled = true
trigger = "keywords"
keywords = ["find", "search", "check"]
max_iterations = 5
show_progress = true
```
Files changed:
- src/config/schema.rs: ResearchPhaseConfig + ResearchTrigger
- src/agent/research.rs: NEW — research phase logic
- src/agent/agent.rs: Integration in turn() method
- tests/agent_e2e.rs: 4 new tests including prompt-guided provider
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>