askill
gastown

gastownSafety 100Repository

Multi-agent orchestration system for coordinating Claude Code instances across projects. Use when working in a Gas Town environment, managing polecats/crew, using gt/bd commands, understanding convoys, molecules, or the propulsion principle.

0 stars
1.2k downloads
Updated 2/6/2026

Package Files

Loading files...
SKILL.md

Gas Town - Multi-Agent Orchestration for Claude Code

Gas Town coordinates multiple Claude Code instances across projects using gt (agent operations) and bd (beads/data operations).

Core Principles

PrincipleMeaning
GUPP"If there is work on your Hook, YOU MUST RUN IT." No waiting for confirmation.
MEOWBreak large goals into atomic, trackable units (beads/molecules).
NDIEventual completion despite unreliable individual operations.

The Hook Contract: When you find work on your hook, EXECUTE IMMEDIATELY. The hook IS your assignment.

Quick Orientation

gt hook              # What's on my hook?
bd mol current       # Where am I in the molecule?
bd ready             # What step is next?
bd show <step-id>    # What does this step require?

The Propulsion Loop

1. gt hook                    # What's hooked?
2. bd mol current             # Where am I?
3. Execute step
4. bd close <step> --continue # Close and auto-advance
5. GOTO 2

Role Quick Reference

RolePurposeLifecycle
MayorTown coordinator, initiates convoysPersistent, town-level
DeaconBackground supervisor, health checksPersistent, daemon
WitnessMonitors polecats per rigPersistent, per-rig
RefineryMerge queue processorPersistent, per-rig
PolecatEphemeral worker with worktreeTransient, Witness-managed
CrewPersistent human workspaceLong-lived, user-managed

See references/roles.md for detailed role documentation.

Essential Commands

Agent Operations (gt)

gt hook                      # What's on my hook
gt convoy list               # Active work batches
gt convoy create "name" <ids> # Create work batch
gt sling <bead> <rig>        # Assign work to agent
gt handoff                   # Session cycling
gt mail inbox                # Check messages
gt escalate "topic"          # Escalate issue

Beads Operations (bd)

bd ready                     # Unblocked work
bd show <id>                 # Issue details
bd create --title="..."      # Create issue
bd update <id> --status=...  # Update status
bd close <id> --continue     # Close and advance
bd sync                      # Push/pull to git

See references/commands.md for full CLI reference.

Work Units

TypePersistencePurpose
BeadGit-backedAtomic work unit (issue/task)
FormulaTOML sourceReusable workflow template
MoleculePersistentMulti-step workflow instance
WispEphemeralLightweight transient work
HookPinnedAgent's primary work queue
ConvoyTrackingBatch of related beads

See references/molecules.md for workflow details.

⚠️ Terminology: "Convoy" Has Two Meanings

IMPORTANT: The word "convoy" refers to TWO completely different concepts:

ContextWhat It IsCommandFile/Bead Type
Formula convoyParallel execution pattern in Beads formulasbd mol pour <formula>.formula.toml with type = "convoy"
Work convoyIssue tracking unit in Gastowngt convoy createhq-cv-* bead

Formula Convoy (Beads Concept)

  • Purpose: Execute multiple tasks in parallel, then synthesize results
  • Structure: Multiple [[legs]] + one [synthesis] step
  • Example: code-review.formula.toml - 10 reviewers analyze code in parallel, synthesis combines findings
  • Used in: Multi-perspective analysis (design exploration, code review, architecture options)

Work Convoy (Gastown Concept)

  • Purpose: Track batch of related issues across rigs for visibility
  • Structure: Single hq-cv-* bead that tracks multiple issue IDs
  • Example: gt convoy create "Feature X" gt-abc gt-def - dashboard shows progress
  • Used in: Monitoring work completion, cross-rig coordination, notifications

How They Can Work Together

A formula convoy can create issues that get tracked by a work convoy:

# 1. Pour a convoy formula (parallel design exploration)
bd mol pour design-convoy --var feature="auth"
# Creates: design.explore-1, design.explore-2, design.arch, design.synthesis

# 2. Create work convoy to track all those issues
gt convoy create "Design: Auth feature" design.explore-1 design.explore-2 design.arch design.synthesis

# 3. Sling each leg to spawn polecats
gt sling design.explore-1 gastown
gt sling design.explore-2 gastown
# etc.

# 4. gt convoy status shows progress across all legs

Bottom line: They're separate layers. Formula convoy = execution pattern. Work convoy = tracking mechanism.

Directory Structure

~/gt/                           Town root
├── .beads/                     Town-level beads (hq-* prefix)
├── mayor/                      Mayor agent home
├── deacon/                     Deacon daemon home
└── <rig>/                      Project container (NOT a clone)
    ├── .repo.git/              Bare repo (shared by worktrees)
    ├── mayor/rig/              Canonical clone (beads live here)
    ├── refinery/rig/           Worktree on main
    ├── witness/                Monitor (no clone)
    ├── crew/<name>/rig/        Human workspaces
    └── polecats/<name>/rig/    Worker worktrees

Startup Behavior

  1. Check hook (gt hook)
  2. Work hooked -> EXECUTE immediately
  3. Hook empty -> Check mail for attached work
  4. Nothing anywhere -> ERROR: escalate to Witness

Session Cycling

When context fills or you finish a chunk:

/handoff                    # Or gt handoff

What persists: Hooked molecule, beads state, git state What resets: Conversation context, TodoWrite items, in-memory state

Environment Variables

VariablePurpose
GT_ROLEAgent role (mayor, witness, polecat, crew)
GT_ROOTTown root directory
GT_RIGCurrent rig name
BD_ACTORAgent identity for attribution

Resources

ResourceContent
roles.mdDetailed role documentation
convoys.mdWork tracking and assignment
formulas.mdFormula types and patterns
molecules.mdFormulas and workflow lifecycle
propulsion.mdThe propulsion principle deep dive
commands.mdFull CLI reference

Full Documentation

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

96/100Analyzed 2/11/2026

An exceptionally thorough and well-structured skill document for the Gas Town orchestration system. It provides clear mental models, specific command references, and actionable workflow loops.

100
98
85
100
95

Metadata

Licenseunknown
Version-
Updated2/6/2026
Publisherkyletabor

Tags

githubgithub-actionsllmobservabilitysecurity