wgm documentation

August 29, 2026 · View on GitHub

wgm turns a rough request into working software: a relentless requirements interview, a persistent plan, and a build loop steered by deterministic pass/fail checks.

New here? Start with Get started.

Local development first

If you are changing wgm itself, start with the local-development SOP. It lists the contributor prerequisites and the canonical repository gate:

make validate

This index covers wgm's public engine and contributor workflow. Challenge-specific material belongs in the separate project repository that uses wgm, not in this repository's documentation set.

Find your path

I want to…Go to
Install wgm and run my first buildGet started
See a complete worked exampleYour first build
Check what I need installedRequirements
Drive the loop myself, autonomouslyRun the loop
Understand a repository wgm built meCompanion skills
Look up an exact flag or file pathReference
Fix something that went wrongTroubleshooting
Understand why wgm works this wayConcepts
Track wgm's maturity and growthStage 8+ growth record
Contribute to wgm itselfContributing · Style guide

Documentation sections

SectionTypeFor
Get startedJourneyFirst-time setup, end to end
Operator guideTasksRunning, validating, and troubleshooting wgm
Companion skillsTasksteach-me, quiz-me, and rugged
ConceptsConceptsHow the protocol thinks — written for the agent, readable by you
ReferenceReferenceExact flags, defaults, paths, exit codes
Stage 10 offline orchestrationReferenceEvidence-first memory, qualification, routing, comparison, local PR handoff, and authority boundaries

The authoritative protocol is SKILL.md. These docs explain the why and the how behind it. The terse, load-every-iteration rules live in references/; the pages here link to them rather than duplicating them.

The lifecycle at a glance

flowchart TD
  T[Triage] --> G[Grill]
  G --> P[Plan: specs + scenarios]
  P --> F{Preflight ready >= 80?}
  F -- no --> G
  F -- yes --> L
  subgraph L [Build loop — one task per iteration]
    direction TB
    A[Analyze] --> I[Implement]
    I --> V[Validate + judge]
    V --> R[Review]
    R --> Rec[Record]
  end
  V -- stall --> WR[Wonder / Reflect / escalate]
  WR --> A
  Rec -->|tasks done AND satisfaction >= threshold| S[Ship / Handoff]
  Rec -->|more work| A

Every phase ends at a gate that prints PASS or FAIL per item. Gates are not advisory — a FAIL stops the lifecycle rather than degrading it.

Get started

PageCovers
Get startedThe eight-step journey from nothing installed to a shipped build
RequirementsRequired, optional, and per-platform prerequisites
Your first buildA complete worked example with every gate shown

Operator guide

PageCovers
OverviewThe operator journey and where to start
PlaybookThe per-build SOP, a per-gate PASS/FAIL cheat sheet, reading a docs-audit report
InstallationLinux, macOS, Windows, WSL; user versus project scope
Run the looploop.sh and the worktree swarm, limits, retries, thresholds, escalation
ContainersPodman and OCI validation for scenarios needing a live service
DevcontainersSandboxing the loop itself, disk-consciously
TroubleshootingSymptom, cause, and resolution by stage

Concepts: how wgm thinks

PageCovers
LifecycleThe phase and gate state machine
Attractor loopConvergence: generate, test, score, feed back
Scenarios and scoringHoldout scenarios, judging, satisfaction, tiers
Stall recoveryWonder and reflect, then model escalation
Gene transfusionSeeding a build from an exemplar codebase

Deeper mechanics live in references/, written for the agent: subagents (the twelve role-specialized roles and dissent-preserving review) · telemetry (three clocks, and why parked lane time is never "agent-hours") · docs-audit (four personas plus a consolidating writer) · self-improvement (the Hive Growth Loop and its consent gate) · issue-intake (backlog discovery and tracker traceability) · heuristics (the curated ledger of landed lessons) · trigger-eval and evals (wgm's own self-tests).

Reference

PageCovers
Reference indexQuick answers and the full lookup map
loop.shModes, every flag, environment variables, exit codes
swarm.shParallel streams, partitioning rules, telemetry output
Installersinstall.sh and install.ps1, targets, verification
GatesEvery check and harness, and what each proves
ArtifactsEvery file wgm reads and writes

Contributing to the docs

Style guide — page types, the executive-overview block, admonitions, and the rules scripts/check-docs.sh enforces automatically.

Plans and roadmap

Design records, kept for provenance rather than as current instructions:

Post-merge audit reports live in audit/.

Provenance

wgm fuses grill-me, the Ralph loop, and holdout-scenario judging after octopusgarden.