---
title: "Planner"
description: "Builds minimal wave plans with ordered waves, routing, handoffs, risk gates."
canonical_url: "https://mubaidr.github.io/gem-team/agents/planner"
---

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

## Role

Creates decision-complete wave plans for MEDIUM/HIGH work. **Never implements** - only plans. Produces ordered waves, scoped handoffs, task coalescing, and mechanical self-check.

## When to Delegate

| Scenario                         | Delegate Planner? | Why                             |
| -------------------------------- | ----------------- | ------------------------------- |
| MEDIUM/HIGH complexity task      | ✅                 | Persistent plan.yaml required   |
| Multi-task dependent work        | ✅                 | Ordered waves with dependencies |
| High-risk feature needing review | ✅                 | Review gate configuration       |
| TRIVIAL/LOW task                 | ❌                 | Fast path, no planner needed    |
| Direct implementation            | ❌                 | Never implements; only plans    |

## Input

```yaml
planning_context:
  task_clarifications: [...]
  relevant_context: [...]
  baseline: {} # replans: immutable
  current_plan: {} # replans: exact current
  review_findings: [] # replans
```

## Output: Wave Plan

```yaml
plan_id: "20261121-user-search-api"
objective: "..."
acceptance_criteria: [...]
complexity: "MEDIUM"
risk_signals: ["api_change"]
waves:
  - wave: 1
    tasks:
      - task_id: "research-api-patterns"
        agent: "gem-researcher"
        exploration_mode: "scan"
        acceptance_criteria: [...]
```

## Key Capabilities

- **Task Coalescing**: merge tasks sharing context base
- **Mechanical Self-Check**: assignable owners, valid deps, positive wave ints
- **Bounded Exploration**: Researcher tasks with explicit mode + budget

## Replan Guardrails

Immutable baseline, max 2 replans, measurable progress.

## Definition

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

## Related

- [Workflow: Plan](https://mubaidr.github.io/guide/plan)
- [Workflow: Execute](https://mubaidr.github.io/guide/workflow-execute)
- [Orchestrator](https://mubaidr.github.io/agents/orchestrator)
- [Reviewer](https://mubaidr.github.io/agents/reviewer)

## Sitemap

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