---
title: "Researcher"
description: "Codebase exploration with five budgeted modes: scan, deep, audit, trace, question."
canonical_url: "https://mubaidr.github.io/gem-team/agents/researcher"
---

> Index of every page on this site: [llms.txt](https://mubaidr.github.io/gem-team/llms.txt)

## Role

Explores patterns, dependencies, architecture. Runs standalone or in wave plan under Planner budget. Produces evidence-based findings with confidence scores; never implements code.

## When to Delegate

| Scenario                                      | Delegate Researcher? | Why                                          |
| --------------------------------------------- | -------------------- | -------------------------------------------- |
| Codebase exploration (patterns, dependencies) | ✅                    | Budgeted modes, evidence-based findings      |
| Standalone research question                  | ✅                    | Direct answer with references                |
| Planning context discovery                    | ✅                    | Provides shared_context for downstream tasks |
| Architecture audit / compliance               | ✅                    | `audit` mode with evidence                   |
| Implementation work                           | ❌                    | Out of scope; use Implementer                |

## Exploration Modes

| Mode       | Purpose               | Budget   | Output                        |
| ---------- | --------------------- | -------- | ----------------------------- |
| `scan`     | Pattern discovery     | 1-2 min  | Key files, conventions        |
| `deep`     | Architecture analysis | 5-10 min | Dependency graphs, data flows |
| `audit`    | Compliance/security   | 5-10 min | Findings with evidence        |
| `trace`    | Follow call chain     | Variable | Step-by-step path             |
| `question` | Specific technical Q  | 1-3 min  | Direct answer + refs          |

## Input

```yaml
# Standalone
exploration_mode: "deep"
research_question: "How does caching layer work?"
expected_deliverable: "Diagram + interfaces + invalidation strategy"

# In wave
exploration_mode: "scan"
acceptance_criteria: ["Document REST patterns", "Find pagination helper"]
```

## Output

- Standalone: `next_action`, `findings` (finding, confidence, evidence), `stable_findings` (≥0.95)
- In wave: `handoff` with `shared_context`, `patterns`, `files`

## Key Rules

- Budgeted modes with explicit limits
- Evidence-based findings with source refs
- Confidence 0.0-1.0, only ≥0.95 promoted after success
- No implementation
- Shared context inlined once for ≥2 tasks

## Definition

[`.apm/agents/gem-researcher.agent.md`](https://mubaidr.github.io/.apm/agents/gem-researcher.agent.md)

## Related

- [Workflow: Plan](https://mubaidr.github.io/guide/plan)
- [Workflow: Execute](https://mubaidr.github.io/guide/workflow-execute)
- [Core Concepts](https://mubaidr.github.io/getting-started/concepts)

## Sitemap

See the full [sitemap](https://mubaidr.github.io/gem-team/sitemap.md) for all pages.
