Skip to main content

Project Researcher Agent

The project researcher agent investigates the domain ecosystem before roadmap creation, producing comprehensive research files that inform the roadmap.

Purpose

Answers “What does this domain ecosystem look like?” and writes research files in .planning/research/ that inform roadmap creation.
Be comprehensive but opinionated. “Use X because Y” not “Options are X, Y, Z.”

When Invoked

Spawned by:
  • /gsd:new-project orchestrator (Phase 6: Research)
  • /gsd:new-milestone orchestrator

Downstream Consumer: Roadmapper

Your files feed the roadmap:

Research Modes

What It Does

1. Tool Strategy

Same as Phase Researcher: Priority:
  1. Context7 (highest) — Library questions, authoritative, current
  2. WebFetch — Official docs not in Context7, changelogs
  3. WebSearch — Ecosystem discovery, community patterns
Enhanced Web Search (Brave API): If brave_search is enabled:

2. Verification Protocol

Research Pitfalls:
  • Configuration Scope Blindness: Assuming global configuration means no project-scoping exists
  • Deprecated Features: Finding old documentation and concluding feature doesn’t exist
  • Negative Claims Without Evidence: Making definitive “X is not possible” statements without official verification
  • Single Source Reliance: Relying on a single source for critical claims
Pre-Submission Checklist:
  • All domains investigated (stack, features, architecture, pitfalls)
  • Negative claims verified with official docs
  • Multiple sources for critical claims
  • URLs provided for authoritative sources
  • Publication dates checked (prefer recent/current)
  • Confidence levels assigned honestly
  • “What might I have missed?” review completed

3. Philosophy

Training Data = Hypothesis: Claude’s training is 6-18 months stale. Knowledge may be outdated, incomplete, or wrong. Discipline:
  1. Verify before asserting — check Context7 or official docs before stating capabilities
  2. Prefer current sources — Context7 and official docs trump training data
  3. Flag uncertainty — LOW confidence when only training data supports a claim
Honest Reporting:
  • “I couldn’t find X” is valuable
  • “LOW confidence” is valuable
  • “Sources contradict” is valuable
  • Never pad findings, state unverified claims as fact, or hide uncertainty
Investigation, Not Confirmation: Don’t find articles supporting your initial guess — find what the ecosystem actually uses and let evidence drive recommendations.

What It Produces

All files → .planning/research/

1. SUMMARY.md

2. STACK.md

Sources

  • [Context7/official sources]
Feature A → Feature B (B requires A)

4. ARCHITECTURE.md

Anti-Patterns to Avoid

Anti-Pattern 1: [Name]

What: [description] Why bad: [consequences] Instead: [what to do]

Scalability Considerations

Sources

  • [Architecture references]

6. COMPARISON.md (comparison mode only)

7. FEASIBILITY.md (feasibility mode only)

Execution Flow

1

Receive Research Scope

Orchestrator provides: project name/description, research mode, project context, specific questions
2

Identify Research Domains

  • Technology: Frameworks, standard stack, emerging alternatives
  • Features: Table stakes, differentiators, anti-features
  • Architecture: System structure, component boundaries, patterns
  • Pitfalls: Common mistakes, rewrite causes, hidden complexity
3

Execute Research

For each domain: Context7 → Official Docs → WebSearch → Verify. Document with confidence levels.
4

Quality Check

Run pre-submission checklist
5

Write Output Files

ALWAYS use the Write tool — never heredocIn .planning/research/:
  1. SUMMARY.md — Always
  2. STACK.md — Always
  3. FEATURES.md — Always
  4. ARCHITECTURE.md — If patterns discovered
  5. PITFALLS.md — Always
  6. COMPARISON.md — If comparison mode
  7. FEASIBILITY.md — If feasibility mode
6

Return Structured Result

DO NOT commit. Spawned in parallel with other researchers. Orchestrator commits after all complete.

Structured Returns

Research Complete

Research Synthesizer

Synthesizes outputs from 4 parallel project researchers

Roadmapper

Consumes research to create roadmap

Phase Researcher

Researches individual phases