Single Task — /quest

Run /quest for any non-trivial task. It walks through six phases with hard gates between each.

0

Phase 0: Onboard

Creates an isolated git worktree. Loads task-relevant context via /council. Checks for lembas checkpoints from previous sessions.

/council
GATE — requires approval
1

Phase 1: Research

Explores the codebase with subagents. Studies reference implementations. Extracts conventions via /gather-lore.

/gather-lore
GATE — requires approval
2

Phase 2: Plan

Enters plan mode. Creates implementation plan with file:line references. Presents plan for your approval.

plan mode
GATE — requires approval
3

Phase 3: Implement

TDD red-green-refactor. Writes failing test, implements, verifies. If stuck: commits partial work, documents blocker, returns to Plan.

test-driven-development
GATE — requires approval
4

Phase 4: Review

Convention review via /warden. Code quality verification. Runs full test suite.

/warden, verification-before-completion
GATE — requires approval
5

Phase 5: Complete

Creates PR. Cleans up worktree. Reports completion.

finishing-a-development-branch

Multiple Tasks — /fellowship

Run /fellowship for multiple independent tasks. Gandalf coordinates parallel agents.

1

Describe

You describe multiple tasks (quests and scouts)

2

Analyze

Gandalf analyzes them, creates task list

3

Spawn

Spawns quest-runner agents in isolated worktrees

4

Scout

Spawns scout agents for research questions

5

Monitor

Palantir monitors progress (at 2+ quests)

6

Gate

Gates surface to you for approval

7

Status

Say "status" anytime for a progress table

8

Deliver

Each quest produces a PR; scouts produce reports

Gandalf coordinator
Quest 1
worktree → phases 0-5 → PR
Quest 2
worktree → phases 0-5 → PR
Scout
investigate → validate → report
Palantir
monitors all active quests

Research — /scout

For questions that need investigation but not code changes.

1

Investigate

Explores codebase, reads docs, runs searches

2

Validate optional

Spawns fresh adversarial subagent to challenge findings

3

Deliver

Structured report with confidence levels

Gate Enforcement

Gates aren't just prompts — they're structurally enforced.

Hook-Blocked Tools

Plugin hooks block tool access (Edit, Write, Bash, etc.) after gate submission.

Lead Approval Required

Tools stay blocked until the lead agent approves by writing to the quest state file.

Verified Prerequisites

Running /lembas and updating task metadata are verified before gate submission.

No Self-Approval

Self-approval is structurally impossible. The agent that submits the gate cannot approve it.

Prompt-only compliance ~33%
Hook-enforced compliance ~95%+