All notable changes to the Gas Town project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Directives and overlays — New
gt primedirective loader and overlay system with CLI commands (gt directive,gt overlay), formula overlay support, and doctor health check for overlay integrity. - Gate bead instruction template — Gate beads now carry structured instruction templates with GitHub API client support.
- Merge queue step dependencies —
gt mq submitenforces molecule step dependency ordering before submission. - Convoy watch/unwatch —
gt convoy watchandgt convoy unwatchfor opt-in completion notifications on convoy progress. - Convoy merge queue panel — Feed view now shows merge queue status in convoy panels.
- Patrol scan CLI —
gt patrol scandetects zombie and stalled polecats from the command line. - Checkpoint dog — New
checkpoint_dogauto-commits WIP changes in polecat worktrees periodically. - Crash recovery on startup —
gt updetects and recovers orphaned hooked beads left by crashed sessions. - Post-squash gate phase — Refinery adds a pre-push validation gate after squash merging.
- Refinery auto_push config — New
auto_pushrig setting controls whether refinery pushes after merge. - PR feedback patrol formula —
mol-pr-feedback-patrolformula for automated PR review triage. - Configurable tmux theming — Window tint and
window-styletheming with resolver; Mayor gets terminal-default theme. gt changelogcommand — Generate changelogs from the CLI with tests.- Wasteland stamps and pilot cohorts —
gt wl stamp,gt wl stampscommands andpilot_cohortcolumn for HOP pilot program. - Wasteland scorekeeper — Charsheet, scorekeeper, and stamp loop integration tests.
gt wl show <work-id>— Structured work-item detail view with auto-fetch.gt default-agent list— New subcommand to list available agent presets.- Disabled patrols setting —
disabled_patrolstown config to suppress patrols without editing daemon.json. - Dolt failover/failback — Multi-host Dolt setups can failover and failback between primary and replica.
.no-syncmarker files — Drop a.no-syncfile in a database directory to exclude it from sync./doneslash command — Polecats can invoke/donewith a Stop hook safety net for clean lifecycle exit.- Sling
--review-onlyflag — Prevent assignee from merging; report back only. - Copilot agent support — GitHub Copilot CLI documented and preset updated for GA release (Feb 2026).
- Unique polecat namepool — Polecat names are now globally unique across rigs via shared namepool with auto-assigned themes.
- Handoff restart prompt —
gt handoffnow prompts the user before restarting the session. - Patrol effort tuning — Idle patrol cycles now run at reduced reasoning
effort; configurable per-formula with
effort_idleandeffort_active. - Longer patrol backoff — Max backoff increased from 5m to 15m for idle patrols, reducing cost by ~66% for dormant rigs.
- Formula/path discoverability — Reference docs for formulas, beads CLI, and Dolt injected into agent context to eliminate discovery tax.
- Beads dependency upgraded to v0.62.0.
- Compactor-dog threshold — Default compaction threshold raised from 500 to 2000 to reduce unnecessary compactions.
- Dolt startup timeout — Scales dynamically by database count (5s per DB) instead of fixed timeout.
- Dolt SIGTERM→SIGKILL timeout — Increased from 5s to 30s for graceful shutdown of large databases.
- Polecat CLAUDE.md provisioning — Lifecycle instructions provisioned on
all spawn paths including worktree reuse, with
gt donereminders injected at startup and after compaction. - Boot and dog cost tiers — Boot and dog roles now tracked in the cost tier system.
- Plugin database discovery — Plugins auto-discover databases instead of
using hardcoded lists; reaper uses
DiscoverDatabaseswith proper error handling. - Dolt
dolt_transaction_commitdisabled — Prevents read-only commit storms on busy servers.
- Daemon beads compatibility guard —
gt daemon runnow fail-fast checks workspace beads schema compatibility before Convoy polling starts, andgt daemon startsurfaces the startup mismatch directly instead of only telling operators to inspect logs. - Dolt server stability — Fixed thundering herd in
doltserver.Start(), port-squatter detection and kill on startup,cmd.Dirset on all CLI/SQL invocations to prevent stray.doltcfgdirectories, and timing race in startup sequence. - Security hardening — Bead ID suffix validation enforced, formula
variables use bead IDs instead of user-supplied titles, and
--subject/--argssanitized before tmux pane injection. - Tmux reliability — Replaced timing-based Enter delivery with verification-based retry, detect and dismiss Claude Code Rewind menu during nudge delivery, restored per-town socket isolation, and added flock-based cross-process nudge lock to prevent interleaved delivery.
- Windows fixes — Atomic counter in
generateStampIDfor timer resolution, pipe deadlock prevention inprime_test, process group test skips, and multiple CI test stabilizations. - Polecat lifecycle — Skip crash/zombie alerts for done/nuked polecats,
use
IsIdleinstead ofIsAtPromptfor startup nudge verify, clean dirty worktree before reuse, kill session unconditionally when reusing idle polecats, and wire operational config into startup nudge loop. - Refinery fixes — Use commit SHA instead of branch name for MR dedup,
supersede MR on same-branch re-submission, check
no_mergeflag before merging, close task beads after successful merge, wait for CI in PR mode, and filter MR listings by rig to prevent cross-rig contamination. - Convoy fixes — Use Unix epoch instead of zero time for initial event poll, stranded scan checks completion status, create legs in target rig beads, and cross-rig dependency routing uses town root.
- Cross-town safety — Prevent orphan cleanup from killing agents on other towns' sockets, distinguish sibling Gas Town instances from test zombies.
- Dog and daemon — Clear agent identity env vars at startup, prevent
duplicate Mayor spawns during
gt up, auto-clear hung dogs and orphan sessions, include dogs in startup retry loop, prevent daemon restart duringgt down, and respect global default agent for dog spawns. - Doctor improvements — Avoid slow
filepath.Walkon Docker bind mounts, stalesql-server.infodetection, hooks-sync check detects stale Gemini settings, route misclassified wisp fixes by workdir, and repair relocated worktree gitdir paths. - Mail and communication — Drain crashed polecat notifications, prefer
GT_TOWN_ROOTenv var for town root detection, fall back to explicit agent workspaces for mail delivery. - Dolt plugins —
dolt-archiveuseswhile-readloops for bash 3.2 compatibility (macOS),dolt-backupuses$HOME/gtasGT_ROOTfallback, named Docker volume prevents journal corruption on macOS, andgrep -vexit code handled underpipefail. - Formula and molecule — Cap backoff before overflow in
await-eventandawait-signal, injectmerge_strategyfrom rig settings into formula vars, propagatebase_branchto MR target ingt doneandgt mq submit. - Sling — Serialize concurrent hook writes with per-assignee flock,
--dry-rundetects tmux session collision before spawn, guardsha[:8]slice against short hashes. - Config and identity — Dog sessions inherit env vars from base agent, custom
agents inherit Session/Tmux from preset,
CLAUDE_CONFIG_DIRrespected ingt costs, rig prefix pattern refresh when stale, propagateBEADS_DOLT_SERVER_HOSTto subprocesses, and repair PROJECT IDENTITY MISMATCH after crash. - Guard and compliance — Block polecats from pushing directly to main.
- Misc —
formatPeriodreturns "Week of" on Mondays instead of "Today", syncagent_statebetween column and description on transitions, validate git URL before crew clone,--flatflag on allbd list --jsoncalls to guarantee JSON output,gt upgraderepairs missing identity beads, andCLAUDE.local.mdadded to gitignore patterns.
- Session-hygiene plugin — Removed entirely after causing repeated crew session kills.
--no-historyflag — Removed from identity bead creation in favor of proper ephemeral bead support.- Hardcoded database lists — Reaper and plugin database discovery replaced
with dynamic
DiscoverDatabases. - Legacy
gtdatabase — Removed from reaper fallback list.
- Agent Client Protocol (ACP) — New protocol for structured agent communication with propulsion trigger detection and output suppression.
- gt mountain — Stage, label, and launch epic work in one command.
- gt assign — One-shot bead creation + hook for direct agent assignment.
- Convoy --from-epic —
gt convoy create --from-epicstages epic children into convoy waves with automatic validation bead. - Typed memories —
gt remember --type feedback/project/user/referencefor categorized agent memory storage. - Repo-sourced rig settings —
.gastown/settings.jsonin repos auto-configures rig behavior (test gates, merge strategy). - exec-wrapper plugin type — Plugins can now wrap agent execution.
- Prior attempt context — Polecats receive context from previous failed attempts when re-dispatched.
- Spider Protocol — Fraud detection for Wasteland stamp system.
- Reaper plugin receipt cleanup — Plugin run receipts now fast-tracked for closure (1h) instead of waiting for 7-day stale issue AutoClose.
- Dog dispatch handler — Daemon lifecycle defaults include handler for direct dog dispatch.
- Formula v2 — mol-idea-to-plan with iterative review rounds and inline eval/smoke-test bead creation.
- Idle patrol CPU burn — Patrol agents no longer burn CPU/tokens in handoff restart loops.
- Compactor-dog false positives — Fixed concurrent write detection and hash validation for Dolt base32 format.
- Dolt server stability — Fixed stale socket cleanup, server ownership
detection, rogue process race on restart, idle-monitor orphans on
gt down. - Cross-rig wisp contamination — MQ list filtered by rig to prevent leaks.
- Polecat lifecycle — Fixed idle reuse with live sessions, CRASHED_POLECAT alerts for closed beads, spawn storm dedup.
- Session prefix parsing — Fixed hq- prefix collision and rig-level fallback.
- Unicode handling — Fixed parse errors in
gt compact. - Non-Claude agent support — Liveness env vars, idle-wait instructions, and nudge startup prompts for Gemini/Codex runtimes.
- Test isolation — 5 tests isolated from live Dolt server; sleep sessions used in cleanup tests to avoid .zshrc interference.
- Witness completion notifications — Mayor now notified on polecat completion.
- Shell quoting — Agent args properly quoted, model flags respected.
- Exponential backoff — Convoy event poller backs off on Dolt errors.
- Docker — Added tini for zombie process reaping in containers.
- Event-driven polecat lifecycle — Polecats now use FIX_NEEDED feedback loop with awaiting_verdict state, replacing polling-based lifecycle (gt-k0h).
- Cross-database convoy resolution — CLI-side dep resolution for multi-rig towns where bd SQL JOINs fail across databases (GH#2624, GH#2625).
- Plugin sync —
gt plugin syncauto-deploys plugins after build (hq-o9gna). - Compactor dog — Executable
run.shfor Dolt database compaction with DoltHub remote sync, validation, and dry-run support. - GitHub sheriff v2 — Single API call PR categorization with structured output.
- Mail reply reminders — Deferred nudge delivery for unanswered mail.
- Git hygiene dog — Automated repo cleanup plugin (gt-cdm).
- Crew agent assignment — Town-level
crew_agentsconfig for per-crew agent runtime selection. - Partial clones —
gt rig addsupports--referencefor submodule init and sparse checkout. - Formula composition —
extendsandcompose/expandsupport for formulas. - Background nudge poller — Queue-based nudge delivery for non-Claude agents.
- Review command —
/reviewwith A-F grading and refinery integration (#2636). - Escalation channels — Email, Slack, SMS, and log notification channels.
- Pressure checks — Opt-in CPU/memory pressure gating before agent spawns.
- MVGT integration guide — Comprehensive Wasteland federation guide for non-Gas-Town systems.
- Crew specialization design — Capability-based dispatch design doc.
- Refinery merge strategy — Configurable direct vs PR mode (gt-fln).
- Polecat lifecycle patrol — Redesigned formula for event-driven model.
- Session hygiene — Converted from plugin.md to deterministic
run.sh. - DND auto-reset — Muted mode auto-resets on
gt up. - Nudge degradation — Wait-idle gracefully degrades to queue for agents without prompt detection.
- Install bootstrap —
gt installnow waits for MySQL readiness and always passes--server-porttobd init(GH#2572, GH#2573). - Rig add database creation —
InitRigruns CREATE DATABASE on live server before schema migration. - Boot triage loop — Removed ZFC-violating decision engine that consumed unbounded tokens on failed installs.
- Polecat spawn storm — Two-layer circuit breaker caps respawns and total active polecats (clown show #22).
- Standing-order beads — Protected from AutoClose reaper and polecat removal status reset.
- Tmux socket split-brain — Prevented nudge failures from socket mismatch (GH#2442).
- Reaper Sprintf bugs — Fixed format string issues and missing schema guard (GH#2469).
- bd JSON corruption — Strip bd stdout warnings before JSON parsing.
- Remote branch deletion — Restricted to polecat branches only (GH#2669).
- EnsureAllMetadata — Uses rig name and correct DB prefix (GH#2668).
- Ephemeral beads — Auto-purge closed ephemeral beads on session end.
- MR back-link — Source issue linked to MR bead on creation.
- Convoy routing — Town root and BEADS_DIR properly stripped for bd subprocess calls.
- CI stability — Resolved lint warnings (unparam, misspell) and 5 test failures on main.
- Docker support — docker-compose and Dockerfile for containerized deployment.
- Cursor hooks — Polecat agent integration for Cursor IDE sessions.
- Context-budget guard — External script to prevent context window overflow (#2008).
- Cascade close —
bd close --cascadecloses parent and all children with cycle guard and depth limit (#998). - Schema evolution —
gt wl syncsupports Wasteland schema changes (gp-c7e). - Dashboard enrichment — Convoy panel shows progress %, ready/active counts, and assignees.
- Polecat slot env —
POLECAT_SLOTenvironment variable for test isolation (#954).
- Beads dependency upgraded from v0.57.0 to v0.59.0.
- Hook installers consolidated — Per-agent hook installer packages replaced with generic declarative system (gt-071h).
- Agent preset registry — Hardcoded
isKnownAgentswitch replaced withconfig.IsKnownPreset(gt-7r3c). - Reaper TTLs shortened — Auto-close 7d, purge 3d (previously longer).
CreateOptions.Typedeprecated in favor of Labels.
gt swarmcommand — Deprecated command andinternal/swarmpackage removed (#1170).- Beads Classic legacy code — Remaining SQLite/JSONL/sync code paths removed.
- Vestigial
sync.modeplumbing — Dead config removed.
- Serial killer bug — Removed hung session detection that was killing healthy witnesses and refineries (f3d47a96). Stuck agent detection moved to Dog plugin (5a5deaac).
- Sling race condition — Hook write visibility ensured before polecat startup (GH#2389).
- Refinery — PostMerge now uses
ForceCloseWithReasonfor source issue (GH#2321). - Crew mail prefix — Regression test added for crew mail send prefix mismatch (gt-brip).
- bd JSON guard — Non-JSON output from bd v0.58.0 handled in remaining parsers (gt-ac0i).
- CI release guards — Blocks
go.modreplace directives in releases (gt-qex2). - go vet — Pre-existing failures on main resolved (gt-77xe).
- Branch contamination — Preflight check added to
gt done(#2220). - Polecat nuke — Uses
ClonePathfor best-effort push (hq-9pcb0). - Polecat state — JSON list state reconciled with session liveness.
- Convoy — External tracked IDs resolved during launch collection.
gt done— Correct rig used when Claude Code resets shell cwd. Tolerates Gas Town runtime artifacts in worktrees (#2382).- Dolt server — Server-side timeouts prevent CLOSE_WAIT accumulation (#2287).
- Daemon — 5-minute grace period before auto-closing empty convoys (GH#2303).
- Sling TTL — Prevents permanent scheduling blocks (GH#2279).
- Tmux — Refresh cycle bindings when prefix pattern is stale (#2300).
- Patrol — Cap stale cleanup and break early on active patrol found (#2285).
- Reaper — Correct database name; O(n*m) correlated EXISTS replaced with LEFT JOIN anti-pattern.
- Hook show — Normalized targets; prefer hooked bead over stale agent hook.
- Tmux socket — Derived from town name instead of defaulting to "default".
- Gitignore — Broadened patterns for Cursor runtime artifacts and Gas Town infrastructure directories.
- Rig remove — Shows actionable guidance for orphaned rig directories.
- CI — Lint errors, Windows test failures, proxy log truncation fixed.
- Mayor clone — Reuses bare repo as reference for faster cloning (#1059).
- Prefix registry — Reloaded on heartbeat to prevent ghost sessions (#2338).
- Dog molecule — JSON parsing fix for
bd show --childrenoutput. --allow-stale— Made conditional on bd version support.
Release contained incremental fixes between v0.9.0 and v0.10.0. See git log for details.
- Batch-then-bisect merge queue — Bors-style MQ batches MRs, runs tests on the tip, and binary-bisects on failure. GatesParallel runs test + lint concurrently per MR.
- Persistent polecats — Polecat identity and sandbox survive across work
assignments. Sessions are ephemeral; identity accumulates forever.
gt donetransitions to idle instead of nuking. - Compactor Dog — Daily Dolt commit history flattening via
DOLT_RESET --soft. Runs on live server, no downtime. Configurable threshold. Includes surgical interactive rebase for advanced use. - Doctor Dog — Automated health monitoring patrol for Dolt server. Detects zombies, orphan databases, and stale locks. Reports structured data for agent decision-making (ZFC-compliant).
- JSONL Dog — Spike detection and pollution firewall for JSONL backup exports. Scrubs test artifacts before git commit.
- Wisp Reaper Dog — Automated wisp GC with DELETE of closed wisps >7d, auto-close of stale issues >30d, and mail purge >7d.
- Root-only wisps — Formula steps no longer materialized as individual database rows. Single root wisp per formula. Cuts ~6,000 ephemeral rows/day from Dolt.
- Six-stage data lifecycle — CREATE, LIVE, CLOSE, DECAY, COMPACT, FLATTEN,
all automated via Dogs.
EnsureLifecycleDefaults()auto-populates daemon.json on startup. gt maintain— One-command Dolt maintenance (flatten + gc).gt vitals— Unified health dashboard command.gt upgrade— Post-binary migration command for config propagation.gt convoy stage— Stage convoys with--titleflag and smart defaults.gt mol await-signal— Alias for step-level signal awaiting.gt daemon clear-backoff— Reset exponential backoff on daemon restarts.gt mq post-merge— Branch cleanup after refinery merge.gt mail drain— Drain inbox command.- Sandbox sync — Branch-only polecat reuse with
pool-init. - Per-worker agent selection —
worker_agentsconfig for crew members. - Dangerous-command guard hook — Blocks
cp -i,mv -i,rm -iin agent sessions. - Log rotation — Daemon and Dolt server logs now rotate with gzip compression.
- Did-you-mean suggestions — Unknown subcommands suggest closest match.
gt version --verbose/--short— Version display options.- Town-root CLAUDE.md version check —
gt doctordetects stale CLAUDE.md files. - Lifecycle defaults doctor check — Detects missing daemon.json patrol entries.
- OperationalConfig for config-driven thresholds (ZFC) — Hardcoded thresholds
for hung sessions, stale claims, max retries, GUPP violations, and crash-loop
backoff are now in
operational.json. Go code reads config; agents set values. - Nudge-first communication — Protocol messages (LIFECYCLE, WORK_DONE, merge notifications) changed from permanent mail to ephemeral wisps or nudges. Reduces Dolt commit volume by ~80% for patrol traffic.
- Default Dolt log level changed from debug to info.
- Convoy IDs shortened from 5 chars to 3.
- Mail purge age reduced from 30 days to 7 days.
- Compactor threshold bumped from 500 to 10,000 commits.
- Default max Dolt connections bumped from 200 to 1,000.
- Dolt flatten runs on live server — No maintenance window needed.
- Mail delivery — Fixed
--idflag breaking all mail creation paths. Fixed recipient validation to include pinned and inactive agents. Added auto-nudge on mail delivery to idle agents. - Witness patrol — Stopped nuking idle polecats. Stopped auto-closing permanent issues (ZFC violation). Replaced screen-scraping with structured signals for stalled polecat detection.
- Polecat lifecycle — Prevent sleepwalking completions with zero commits. Normalize CWD to git root before beads resolution. Preserve remote branches when MR pending. Close orphan step wisps before closing root molecule.
- Refinery — Removed dead
findTownRootfilesystem inference (ZFC). Removed hardcoded severity/priority logic. Made stale-claim thresholds config-driven. Extracted typedConvoyFieldsaccessor. - Boot triage — Removed ZFC-violating decision engine from degraded boot triage.
- PID detection — Replaced PID signal probing with heartbeat-based liveness. Replaced ps string matching with nonce-based PID files. Replaced per-PID pgrep with single ps-based process tree scan.
- tmux — Use default socket instead of per-town socket. Set
window-size=lateston detached sessions. Auto-dismiss workspace trust dialog blocking agent sessions. - Convoy — Prevent auto-close of stuck convoys. Recovery sweep after Dolt reconnect. Check parked AND docked rigs in dispatch. Prevent double-spawn from stale feed. Idempotent close handling.
- Doctor — Fixed silent failure for agent-beads and misclassified-wisps checks. Repair beads redirect targets with missing config.yaml. Handle worktree branch conflicts. Skip rig dirs whose .beads symlinks to town root.
- Test isolation — Migrate test infrastructure to testcontainers. Ephemeral Dolt
server per test suite.
BEADS_TEST_MODE=1enforcement. Dropped 45 zombie test servers (7GB RAM). - Rig lifecycle — Enforce dock/park across all startup, patrol, and sling paths. Dogs correctly use plugin lookup. Formula lookup falls back to embedded for non-gastown rigs.
- Handoff — Deterministic git state in handoff context. Fix socket confusion using caller socket. Preserve conversation context on PreCompact cycle.
- Windows — Cross-compilation fixes for
syscall.Flock,syscall.SIGUSR2, bash-dependent tests,GOPATH/bincreation, batch mock caret escaping. - Hardcoded strings — Replaced ~50 hardcoded state/status string comparisons with typed enums across witness, refinery, and beads packages.
- CI — Fixed lint errors (errcheck, misspell) and integration test port collision.
gt queueCLI and dispatch engine — Enqueue work items for daemon-driven dispatchgt queue epic— Bulk enqueue of epic childrengt convoy queue— Bulk enqueue of convoy-tracked issuesgt sling --queue— Enqueue path for asynchronous dispatch- Queue daemon heartbeat step for reliable dispatch processing
- Enqueue-time validation and enhanced metadata on queued items
- Config-driven capacity scheduler with sling context beads
- Full OpenTelemetry instrumentation across gt, bd, and Claude Code
- VictoriaMetrics and VictoriaLogs integration for metrics and log export
- Lifecycle events, duration histograms, and operation traces
- Claude Code tool content and user prompt logging via OTLP
gt.* OTELresource attributes, prime context events, and session metadata- Command usage telemetry and
gt metricsreader
- Handler patrol for Dog lifecycle and plugin dispatch
- Session-hygiene Dog plugin for zombie tmux cleanup
- Idle dog reaping — Kill stale tmux sessions and trim oversized pools
- Stale working dog detection for dogs stuck with idle sessions
- Wisp compaction formula for Dogs
- Shutdown dance molecule — Death warrant execution state machine for Dogs
- Wisps table migration for agent beads (ephemeral SQLite store)
- Agent bead readers updated to query wisps table
- Closed wisp GC added to patrol cycles to prevent accumulation
gt convoy stageandgt convoy launchcommands- Auto-resolve rig from bead prefixes in batch mode
- Reject deferred/post-launch beads at sling time
- Auto-check convoy completion on
bd close - Deacon feed-stranded command for auto-feeding stranded convoys
- Notify deacon of convoy-eligible merges for immediate feeding
- Configurable quality gates before merge in refinery
- MR queue nonempty tracking in witness check-refinery step
- Bead respawn count tracking for spawn storm detection
- Verify MR bead exists before sending MERGE_READY
- Refinery nudges deacon after merge to check stranded convoys
- Auto-close completed convoys after merge
- Pi agent provider with unit tests
- Promptfoo model comparison framework for patrol agents
- Cost-tier presets for model selection
- Ralphcat opt-in loop mode for multi-step workflows
- Rename Workers panel to Polecats in dashboard
- Session terminal preview in dashboard Sessions panel
- Mail threading in dashboard inbox
- Convoy drill-down — Expand rows to show tracked issues
- Date+time timestamps instead of relative ago format
gt handoff --cycle— Full session replacement flaggt handoff --agent— Explicit runtime selectiongt crew start --resume— Resume flag for crew sessionsgt crew at --reset— Branch switch opt-in with reset flaggt deacon pending— AI-based spawn observation commandgt patrol step-driftsubcommandgt up --jsonoutput flaggt migrate-bead-labelscommand- Desire-path fixes for rig settings, crew list, mail directory
- Idle-aware notification in mail router with auto-nudge on send
- WorktreeCreate/WorktreeRemove hook event support
- Remote Dolt server support (
gt dolt) - Dolt server identity verification and restart command
- Orphaned Dolt branch cleanup
- Nix flake and integration with bump-version script
- Boot block scraper VM deployment script
- Beads-redirect-target doctor check
- Unified zombie session detection with 3-level health check
- Emit-event command and nudgeRefinery event wiring
gt mol step await-eventfor channel-based event subscription- Doctor check for in_progress beads with NULL assignee
- PR creation guard blocking direct pushes to steveyegge/gastown
- Orphan scan for polecat worktrees with unmerged branches
- Wasteland CLI command suite (
gt wl) - GitHub Sheriff Deacon plugin for CI failure monitoring
- Removed Dolt branch-per-polecat infrastructure — Dead code from pre-server-mode era
- Removed BD_BRANCH from session manager and polecat spawn — Server mode eliminates branch isolation
- Removed JSONL fallback code — Dolt is now the sole backend
- Removed deprecated role bead TTL layer from compact
- Removed deprecated role bead lookups that blocked witness startup
- Stale JSONL references cleaned from documentation and comments
- Molecule squash
--no-digestflag to skip digest creation - Dog startup honors role_agents config
- Handoff restart honors role_agents config
- Replace dolthub/dolt with nil-check fork to fix SEGVs
- Prevent polecat spawns from creating orphan databases
- Drop orphaned
beads_<prefix>databases afterbd init - Isolate Dolt integration tests from production server
- Dynamic port for test Dolt server to avoid production collision
- Restore BEADS_DIR stripping in
buildRunEnv()lost in merge - Strip BD_BRANCH from wisp creation and cook steps
- LookupEnv for GT_AGENT to prevent tmux env contamination
- KillSession idempotent + ensureMayorInfra on attach
- Detect non-polecat CWD when Claude Code resets shell to mayor/rig
- Filter getCurrentWork by assignee to prevent shared rig beads leaking across sessions
- Clean up stale molecules during polecat nuke to unblock re-sling
- Set GT_PROCESS_NAMES in tmux env for all session types
- Resolve agent config from --agent override for Codex polecat startup
- Tell polecats to close bead explicitly when nothing to commit
- Silent costs-record skip for non-GT sessions
- Flaky TestFindActivePatrol tests caused by bd daemon contamination
- Isolated patrol tests from shared Dolt database
- Convoy/epic test failures and TestValidateRecipient resolved
- Extract requireDoltServer into shared testutil package
- gotestsum + JUnit test failure reporting in CI
- Remove redundant Status.Running field (ZFC compliance)
- Prefer gastown repo over crew rigs in stale binary check
- Session-name-format doctor check for outdated session names
- Handoff warn on uncommitted/unpushed work before session cycling
- Helpful error for
gt mail readwith no args instead of cobra usage
- Convoy ownership model —
--ownedflag forgt convoy createandgt sling - Merge strategy selection —
--mergeflag withdirect,mr, andlocalstrategies gt convoy land— New command for owned convoy cleanup and completion- Skip witness/refinery registration for owned+direct convoys (faster dispatch)
- Ownership and merge strategy display in
gt convoy statusandgt convoy list
gt donecheckpoint-based resilience — Recovery from session death mid-completion- Agent factory — Data-driven preset registry replaces provider switch statements
- Gemini CLI integration — First-class Gemini CLI as runtime adapter
- GitHub Copilot CLI integration — Copilot CLI as runtime adapter
- Non-destructive nudge delivery — Queue and wait-idle modes prevent message loss
- Auto-dismiss stalled polecat permission prompts — Witness detects and clears stuck prompts
- Dead crew agent detection — Detect dead crew agents on startup and restart them
- Remote hook attach —
gt hook attachwith remote target support
- Rich activity timeline — Chronological view with filtering
- Mobile-friendly responsive layout — Dashboard works on small screens
- Toast notifications and escalation actions — Interactive escalation UI
- Escape key closes expanded panels — Keyboard navigation improvement
- JSON patrol receipts for stale/orphan verdicts — Structured patrol output
- Orphaned molecule detection — Detect and close orphaned
mol-polecat-workmolecules - IN_PROGRESS beads assigned to dead polecats — Automatic detection and recovery
- Deterministic stale/orphan receipt ordering — Consistent patrol results
- Submodule support — Worktree and refinery merge queue support for git submodules
- Merge queue
--verifyflag — Detect orphaned/missing merge queue entries - Cost digest aggregate-only payload — Fixes Dolt column overflow
- Rig-specific beads prefix for tmux session names — Better multi-rig session isolation
- Mayor GT_ROLE Task tool guard — Block Task tool for Mayor via GT_ROLE check
- Server-side database creation during
gt rig addwith issue_prefix setup
- Beads Classic dead code removed — -924 lines of SQLite/JSONL/sync code eliminated
- Agent provider consolidated — Data-driven preset registry replaces switch statements
- Session prefix renamed — Registry-based prefixes replace hardcoded
gt-*patterns - Agent config resolution — Moved mutex to package config for thread safety
- Molecule step readiness — Delegated to
bd ready --molinstead of custom logic
- Options cache and command concurrency race conditions in web dashboard
- Feed curator race conditions with RWMutex protection
- TUI convoy concurrent access guarded with RWMutex
- TUI feed concurrent access guarded with RWMutex
- Dolt backoff — Thread-safe jitter using
math/rand/v2 - Concurrent Start() and feed file access protection
- Witness manager race condition fix
- Nudge delivery — Unique claim suffix prevents Windows race in concurrent Drain
- Signal stop hook — Prevent infinite loop with state-based dedup
- Polecat zero-commit completion blocked — Must have at least one commit
- Molecule step instructions — Use
bd mol currentinstead ofbd ready - Role inference — Don't infer RoleMayor from town root cwd
- Boot role bead ID — Add RoleBoot case to buildAgentBeadID and ActorString
- IsAgentRunning replaced with IsAgentAlive — More accurate agent status
- Stale prime help text updated with town root regression tests
- Sling validation — Allow polecat/crew shorthand, validate before dispatch fork
- Convoy lifecycle guards — Extended to batch auto-close and synthesis paths
- Empty convoy handling — Auto-close and flag in stranded detection
- Formalized lifecycle transition guards for convoys
- Rig remove kills tmux sessions — Clean up sessions on rig removal
- Rig adopt — Init
.beads/when no existing database found - Revert shared-DB for untracked-beads rigs — Fixes bead creation breakage
- Install preserves existing configs —
town.jsonandrigs.jsonkept on re-install - Orphaned dolt server detected and stopped during
gt install - Doctor dolt check — Uses platform-appropriate mock binaries, adds dolt binary check
- Doctor dolt-server-reachable reads host/port from metadata instead of hardcoding
- IPv6 safety and accurate rig count in doctor
- Rig remove aborts on kill failures, propagates session check errors
- Spurious
go buildwarning fixed for Homebrew installs
- Deacon scoped zombie/orphan detection to Gas Town workspace only
- Deacon heartbeat surfaced in
gt deacon status - Deacon loop-or-exit step updated with squash/create-wisp/hook cycle
- Dog agent beads — Added description for mail routing
- Overflow polecat names — Remove rig prefix
- Witness per-label
--set-labels=pattern — Improved tests - Feed auto-disable follow when stdout is not a TTY
- Mail inject — Improved output wording and test coverage
- Codex config — Replace invalid
--yolowith--dangerously-bypass-approvals-and-sandbox - Cross-prefix beads routing via
runWithRoutingfor slot ops - Tmux
-uflag added to remaining client-side callsites - JSON output — Return
[]instead ofnullfor empty slices - Windows CI cut from ~13 min to ~4 min
- Dolt server auto-start in
gt start - 50+ additional bug fixes from community contributions
- Complete SQLite-to-Dolt migration - Gas Town is now Dolt-native; all SQLite code removed
gt doltcommand - Server management (start, stop, status, migrate, rollback, sync, init-rig)gt installconsolidation - Folds Dolt identity, HQ database, and server start into single command- Branch-per-polecat write isolation - Each polecat gets its own Dolt branch to prevent write conflicts
- Proactive Dolt health alerting - Daemon monitors server health with dedicated 30s ticker
- Auto-create DoltHub repos and configure remotes -
gt dolt syncpushes to DoltHub - Dolt remotes patrol - Periodic push to git remotes for federation readiness
- Max-connections and admission control - Prevents connection storms on Dolt server
- Comprehensive UX overhaul - 13 interactive data panels with crew notifications
- SSE real-time updates - Replaces 10s polling with server-sent events
- Interactive command palette - Autocomplete, recent history, contextual suggestions
- Interactive convoy management - Create, close, feed convoys from dashboard
- Interactive hook management - View and manage hooks from dashboard
- Issue management actions - Work panel detail view with sling buttons
- Convoy titles alongside IDs - Better convoy identification
- launchd/systemd supervision support - OS-native daemon management
- Exponential backoff for agent restarts - Prevents restart storms
- Mayor daemon supervision - Daemon manages Mayor session lifecycle
- Boot watchdog - Ephemeral dog that triages Deacon state on each daemon tick
- DAG visualization (
gt mol dag) - Visualize molecule dependency graphs - Fan-out/gather pattern - Parallel steps in patrol workflows
- Wisp compaction (
gt compact) - TTL-based wisp lifecycle management - Key Record Chronicle (KRC) - Forensic value decay model for ephemeral data
- Wisp promotion criteria - Helpers for squash-to-persistent decisions
- Formula variable declarations - Proper
[vars]sections in all formulas
- Centralized hook management -
gt hooks sync,gt hooks diff,gt hooks list - Per-matcher merge logic - Fine-grained hook configuration
- Hook registry integration - Hooks wired into
gt rig addandgt doctor
- Persistent polecat identity model - Agent beads survive nuke; identity accumulates forever
- Auto re-dispatch recovered beads - Deacon recovers work from dead polecats
- Witness resets abandoned beads - Dead polecat detection triggers work recovery
- Auto-respawn hooks - Mayor sessions survive tmux detach
- Signal stop handler (
gt signal stop) - Turn-boundary messaging for clean stops - PID tracking for spawned agents - Better process management
- Completion notifications - Push convoy completion to active Mayor session
- Auto-close empty convoys - Empty 0/0 convoys auto-closed on create
--mergeand--ownedflags forgt convoy createandgt sling- Safety checks on
gt convoy closewith--forceoverride - Reactive convoy continuation feeding - Observer auto-feeds convoys
--stdinflag - Shell-quoting-safe message bodies for mail, nudge, handoff, escalate, sling--autoflag for handoff - PreCompact auto-handoff supportgt hook clear- Alias forgt unhookgt dog clearandgt warrant- Dog management commandsgt rig settings- Interactive rig settings management--adoptflag forgt rig add- Register existing directories- Enhanced
--helptext - Long descriptions added to 30+ commands - Dark mode CLI theme support - Configurable terminal themes
- Agent switcher keybinding -
C-b gfor tmux agent switching gt primecompact/resume detection - Lighter post-compaction priming- Command quick-reference in CLAUDE.md - Auto-generated per role
- Containerized E2E tests - Docker-based install and daemon testing
- Integration branch enhancements - End-to-end integration branches across the pipeline
- Stale claim timeout in refinery - Prevents stuck MRs
- Serialize main pushes with merge slot - Prevents push conflicts
- Agent-agnostic zombie detection - Works with any AI agent, not just Claude
- Configurable CLI name (
GT_COMMANDenv var) - For custom installations - Compaction reporting - Daily digest and weekly rollup
- Dolt is the only backend - All SQLite code removed;
--no-daemonflag deprecated - Settings moved to
settings.local.json- Cleaner separation from repo config gt status --fastoptimized - From ~5s to ~2s- Refinery squash merge - Closed MRs excluded from queue output
- Priority-based mail notifications - Prevents agent derailment from low-priority mail
- Compaction reporting - Automated daily digest and weekly rollup
- Formula template rendering - Go text/template for convoy prompts
- Centralized configuration - Hardcoded timeouts and thresholds moved to TownSettings
- flock-based locking across molecule attach, events/feed writes, crew files, and lock acquisition
- TOCTOU guards on Dolt server startup, worktree operations, cleanup actions, and FindRigBeadsDir
- Atomic writes for catalog, routes, settings, and per-bead files
- Thread-safe NotificationManager with mutex protection
- Deadlock elimination in daemon restart backoff tests
- Process group termination using verified member enumeration instead of blind PGID kill
- Input validation for web dashboard handlers, group names, dog names, issue creation
- Path traversal prevention in dog names, rig names, and bead operations
- Shell injection prevention via session name validation and branch name sanitization
- Rejected flag-like titles to prevent garbage bead creation from malformed commands
- Read-only state auto-recovery - Commands detect and recover from Dolt read-only mode
- Split-brain prevention when
bdused before Dolt server starts - Exponential backoff with jitter for Dolt retries (10 attempts)
- Database verification after migration and server start
- Orphaned database detection and cleanup in
.dolt-data/
- Polecat nuke improvements - Close open MRs, verify worktree removal, handle cd'd shells
- Zombie detection - tmux-alive-but-agent-dead detection, cleanup_status handling
- Respawn protection - Prevents destroying unmerged MR work on respawn
- Nudge backoff - Correct cap, reduced timeout, transient error retry
- Session name parsing - Handles hyphenated rig names correctly
- NBSP normalization - Fixes Claude Code readiness detection
- Beads routing fixes - Correct prefix detection, redirect topology verification
- Cross-rig agent bead operations routed to correct database
- Convoy tracking - Proper external issue status refresh and stranded detection
- Doctor checks continue on error in agent/rig bead fix methods
- 200+ bug fixes from community contributions and internal development
- See
git log v0.5.0..v0.6.0for complete details
- Numeric index support for
gt mail read- Read messages by inbox position (e.g.,gt mail read 1) gt mail hookalias - Shortcut forgt hook attachfrom mail context--bodyalias for--message- More intuitive flag ingt mail sendandgt mail reply- Multiple message IDs in delete -
gt mail delete msg1 msg2 msg3 - Positional message arg in reply -
gt mail reply <id> "message"without --message flag --allflag for inbox - Show all messages including read- Parallel inbox queries - ~6x speedup for mail inbox
gt bd- Alias forgt beadgt work- Alias forgt hook--commentalias for--reason- Ingt closereadalias forshow- Ingt bead
- OpenCode as built-in agent preset - Configure with
gt config set agent opencode - Config-based role definition system - Roles defined in config, not beads
- Env field in RuntimeConfig - Custom environment variables for agent presets
- ShellQuote helper - Safe env var escaping for shell commands
- Deacon status line display - Shows deacon icon in mayor status line
- Configurable polecat branch naming - Template-based branch naming
- Hook registry and install command - Manage Claude Code hooks via
gt hooks - Doctor auto-fix capability - SessionHookCheck can auto-repair
gt orphans killcommand - Clean up orphaned Claude processes- Zombie-scan command for deacon - tmux-verified process cleanup
- Initial prompt for autonomous patrol startup - Better agent priming
- Squash merge for cleaner history - Eliminates redundant merge commits
- Redundant observers - Witness and Refinery both watch convoys
- Don't kill pane processes on new sessions - Prevents destroying fresh shells
- Auto-recover from stale tmux pane references - Recreates sessions automatically
- Preserve GT_AGENT across session restarts - Handoff maintains identity
- KillPaneProcesses kills pane process itself - Not just descendants
- Kill pane processes before all RespawnPane calls - Prevents orphan leaks
- Shutdown reliability improvements - Multiple fixes for clean shutdown
- Deacon spawns immediately after killing stuck session
- Pass convoy ID to convoy check command - Correct ID propagation
- Multi-repo routing for custom types - Correct beads routing across repos
- Normalize agent ID trailing slash - Consistent ID handling
- Sling auto-apply mol-polecat-work - Auto-attach on open polecat beads
- Wisp orphan lifecycle bug - Proper cleanup of abandoned wisps
- Misclassified wisp detection - Defense-in-depth filtering
- Cross-account session access in seance - Talk to predecessors across accounts
- Many more bug fixes - See git log for full details
Changelog not documented at release time. See git log v0.3.1..v0.4.0 for changes.
Changelog not documented at release time. See git log v0.3.0..v0.3.1 for changes.
gastown-releasemolecule formula - Workflow for releases with preflight checks, CHANGELOG/info.go updates, local install, and daemon restart
gt show- Inspect bead contents and metadatagt cat- Display bead content directlygt orphans list/kill- Detect and clean up orphaned Claude processesgt convoy close- Manual convoy closure commandgt commit- Wrapper for git commit with bead awarenessgt trail- View commit trail for current workgt mail ack- Alias for mark-read command
- Plugin discovery and management -
gt plugin run,gt plugin history gt dispatch --plugin- Execute plugins via dispatch command
- Queue beads - New bead type for message queues
- Channel beads - Pub/sub messaging with retention
- Group beads - Group management for messaging
- Address resolution - Resolve agent addresses for mail routing
gt mail claim- Claim messages from queues
gt polecat identity show- Display CV summary for agents- Worktree setup hooks - Inject local configurations into worktrees
- Parallel agent startup - Faster boot with concurrency limit
- Event-driven convoy completion - Deacon checks convoy status on events
- Automatic orphan cleanup - Detect and kill orphaned Claude processes
- Namepool auto-theming - Themes selected per rig based on name hash
- MR tracking via beads - Removed mrqueue package, MRs now stored as beads
- Desire-path commands - Added agent ergonomics shortcuts
- Explicit escalation in templates - Polecat templates include escalation instructions
- NamePool state is transient - InUse state no longer persisted to config
- Kill process tree on shutdown - Prevents orphaned Claude processes
- Explicit pane process kill - Prevents setsid orphans in tmux
- Session survival verification - Verify session survives startup before returning
- Batch session queries - Improved performance in
gt down - Prevent tmux server exit -
gt downno longer kills tmux server
- Agent bead prefix alignment - Force multi-hyphen IDs for consistency
- hq- prefix for town-level beads - Groups, channels use correct prefix
- CreatedAt for group/channel beads - Proper timestamps on creation
- Routes.jsonl protection - Doctor check for rig-level routing issues
- Clear BEADS_DIR in auto-convoys - Prevent prefix inheritance issues
- Channel routing in router.Send() - Mail correctly routes to channels
- Filter unread in beads mode - Correct unread message filtering
- Town root detection - Use workspace.Find for consistent detection
- Idle Polecat Heresy warnings - Templates warn against idle waiting
- Direct push prohibition for polecats - Explicit in templates
- Handoff working directory - Use correct witness directory
- Dead polecat handling in sling - Detect and handle dead polecats
- gt done self-cleaning - Kill tmux session on completion
- Zombie session detection - Detect dead Claude processes in tmux
- sqlite3 availability check - Verify sqlite3 is installed
- Clone divergence check - Remove blocking git fetch
- Windows build support - Platform-specific process/signal handling
- macOS codesigning - Sign binary after install
- Idle Polecat Heresy - Document the anti-pattern of waiting for work
- Bead ID vs Issue ID - Clarify terminology in README
- Explicit escalation - Add escalation guidance to polecat templates
- Getting Started placement - Fix README section ordering
- Unified escalation system - Complete escalation implementation with severity levels, routing, and tracking (gt-i9r20)
- Escalation config schema alignment - Configuration now matches design doc specifications
gt polecat identitysubcommand group - Agent bead management commands for polecat lifecycle- AGENTS.md fallback copy - Polecats automatically copy AGENTS.md from mayor/rig for context bootstrapping
--debugflag forgt crew at- Debug mode for crew attachment troubleshooting- Boot role detection in priming - Proper context injection for boot role agents (#370)
- Per-agent-type health tracking - Statusline now shows health status per agent type (#344)
- Visual rig grouping - Rigs sorted by activity with visual grouping in tmux statusline (#337)
gt mail showalias - Alternative command for reading mail (#340)
gt stalecommand - Check for stale binaries and version mismatches
- Refactored statusline - Merged session loops and removed dead code for cleaner implementation
- Refactored sling.go - Split 1560-line file into 7 focused modules for maintainability
- Magic numbers extracted - Suggest package now uses named constants (#353)
- Empty GT_ROOT/BEADS_DIR not exported - AgentEnv no longer exports empty environment variables (#385)
- Inherited BEADS_DIR prefix mismatch - Prevent inherited BEADS_DIR from causing prefix mismatches (#321)
- routes.jsonl corruption prevention - Added protection against routes.jsonl corruption with doctor check for rig-level issues (#377)
- Tracked beads init after clone - Initialize beads database for tracked beads after git clone (#376)
- Rig root from BeadsPath() - Correctly return rig root to respect redirect system
- Feature and issue vars in formula-on-bead mode - Pass both variables correctly (#382)
- Crew member shorthand resolution - Resolve crew members correctly with shorthand paths
- Removed obsolete --naked flag - Cleanup of deprecated sling option
- Role beads check with shared definitions - Doctor now validates role beads using shared role definitions (#378)
- Filter bd "Note:" messages - Custom types check no longer confused by bd informational output (#381)
- gt:role label on role beads - Role beads now properly labeled during creation (#383)
- Fetch origin after refspec config - Bare clones now fetch after configuring refspec (#384)
- Allow --wrappers in existing town - No longer recreates HQ unnecessarily (#366)
- Fallback instructions in start/restart beacons - Session beacons now include fallback instructions
- Handoff recognizes polecat session pattern - Correctly handles gt-- session names (#373)
- gt done resilient to missing agent beads - No longer fails when agent beads don't exist
- MR beads as ephemeral wisps - Create MR beads as ephemeral wisps for proper cleanup
- Auto-detect cleanup status - Prevents premature polecat nuke (#361)
- Delete remote polecat branches after merge - Refinery cleans up remote branches (#369)
- Query all beads locations for session events - Cost tracking finds events across locations (#374)
- errcheck and unparam violations resolved - Fixed linting errors
- NudgeSession for all agent notifications - Mail now uses consistent notification method
- Polecat three-state model - Clarified working/stalled/zombie states
- Name pool vs polecat pool - Clarified misconception about pools
- Plugin and escalation system designs - Added design documentation
- Documentation reorganization - Concepts, design, and examples structure
- gt prime clarification - Clarified that gt prime is context recovery, not session start (GH #308)
- Formula package documentation - Comprehensive package docs
- Various godoc additions - GenerateMRIDWithTime, isAutonomousRole, formatInt, nil sentinel pattern
- Beads issue ID format - Clarified format in README (gt-uzx2c)
- Stale polecat identity description - Fixed outdated documentation
- AGENTS.md worktree tests - Test coverage for AGENTS.md in worktrees
- Comprehensive test coverage - Added tests for 5 packages (#351)
- Sling test for bd empty output - Fixed test for empty output handling
gt polecat add- Added migration warning for deprecated command
Thanks to all contributors for this release:
- @JeremyKalmus - Various contributions (#364)
- @boshu2 - Formula package documentation (#343), PR documentation (#352)
- @sauerdaniel - Polecat mail notification fix (#347)
- @abhijit360 - Assign model to role (#368)
- @julianknutsen - Beads path fix (#334)
gt mail mark-read- Mark messages as read without opening them (desire path)gt down --polecats- Shut down polecats without affecting other components- Self-cleaning polecat model - Polecats self-nuke on completion, witness tracks leases
gt prime --statevalidation - Flag exclusivity checks for cleaner CLI
- Removed
gt stop- Usegt down --polecatsinstead (cleaner semantics) - Policy-neutral templates - crew.md.tmpl checks remote origin for PR policy
- Refactored prime.go - Split 1833-line file into logical modules
- Polecat re-spawn - CreateOrReopenAgentBead handles polecat lifecycle correctly (#333)
- Vim mode compatibility - tmux sends Escape before Enter for vim users
- Worktree default branch - Uses rig's configured default branch (#325)
- Agent bead type - Sets --type=agent when creating agent beads
- Bootstrap priming - Reduced AGENTS.md to bootstrap pointer, fixed CLAUDE.md templates
- Updated witness help text for self-cleaning model
- Updated daemon comments for self-cleaning model
- Policy-aware PR guidance in crew template
Priming subsystem overhaul and Zero Framework Cognition (ZFC) improvements.
- PRIME.md provisioning - Auto-provision PRIME.md at rig level so all workers inherit Gas Town context (GUPP, hooks, propulsion) (#hq-5z76w)
- Post-handoff detection -
gt primedetects handoff marker and outputs "HANDOFF COMPLETE" warning to prevent handoff loop bug (#hq-ukjrr) - Priming health checks -
gt doctorvalidates priming subsystem: SessionStart hook, gt prime command, PRIME.md presence, CLAUDE.md size (#hq-5scnt) gt prime --dry-run- Preview priming without side effectsgt prime --state- Output session state (normal, post-handoff, crash-recovery, autonomous)gt prime --explain- Add [EXPLAIN] tags for debugging priming decisions
- Rig-level default formulas - Configure default formula at rig level (#297)
- Witness --agent/--env overrides - Override agent and environment variables for witness (#293, #294)
- UX system import - Comprehensive UX system from beads (#311)
- Explicit handoff instructions - Clearer nudge message for handoff recipients
- Query tmux directly - Remove marker TTL, query tmux for agent state
- Remove PID-based detection - Agent liveness from tmux, not PIDs
- Agent-controlled thresholds - Stuck detection moved to agent config
- Remove pending.json tracking - Eliminated anti-pattern
- Derive state from files - ZFC state from filesystem, not memory cache
- Remove Go-side computation - No stderr parsing violations
- Cross-level hook visibility - Hooked beads visible to mayor/deacon (#aeb4c0d)
- Warn on closed hooked bead - Alert when hooked bead already closed (#2f50a59)
- Correct agent bead ID format - Fix bd create flags for agent beads (#c4fcdd8)
- rigPath fallback - Set rigPath when falling back to gastown default (#afb944f)
- Full AgentEnv for env-vars check - Use complete environment for validation (#ce231a3)
- Refactored beads/mail modules - Split large files into focused modules for maintainability
Worker safety release - prevents accidental termination of active agents.
Note: The Deacon safety improvements are believed to be correct but have not yet been extensively tested in production. We recommend running with
gt deacon pauseinitially and monitoring behavior before enabling full patrol. Please report any issues. A 0.3.0 release will follow once these changes are battle-tested.
- Kill authority removed from Deacon - Deacon patrol now only detects zombies via
--dry-run, never kills directly. Death warrants are filed for Boot to handle interrogation/execution. This prevents destruction of worker context, mid-task progress, and unsaved state (#gt-vhaej) - Bulletproof pause mechanism - Multi-layer pause for Deacon with file-based state,
gt deacon pause/resumecommands, and guards ingt primeand heartbeat (#265) - Doctor warns instead of killing -
gt doctornow warns about stale town-root settings rather than killing sessions (#243) - Orphan process check informational - Doctor's orphan process detection is now informational only, not actionable (#272)
gt account switchcommand - Switch between Claude Code accounts withgt account switch <handle>. Manages~/.claudesymlinks and updates default accountgt crew list --all- Show all crew members across all rigs (#276)- Rig-level custom agent support - Configure different agents per-rig (#12)
- Rig identity beads check - Doctor validates rig identity beads exist
- GT_ROOT env var - Set for all agent sessions for consistent environment
- New agent presets - Added Cursor, Auggie (Augment Code), and Sourcegraph AMP as built-in agent presets (#247)
- Context Management docs - Added to Witness template for better context handling (gt-jjama)
gt prime --hookrecognized - Doctor now recognizesgt prime --hookas valid session hook config (#14)- Integration test reliability - Improved test stability (#13)
- IsClaudeRunning detection - Now detects 'claude' and version patterns correctly (#273)
- Deacon heartbeat restored -
ensureDeaconRunningrestored to heartbeat using Manager pattern (#271) - Deacon session names - Correct session name references in formulas (#270)
- Hidden directory scanning - Ignore
.claudeand other dot directories when enumerating polecats (#258, #279) - SetupRedirect tracked beads - Works correctly with tracked beads architecture where canonical location is
mayor/rig/.beads - Tmux shell ready - Wait for shell ready before sending keys (#264)
- Gastown prefix derivation - Correctly derive
gt-prefix for gastown compound words (gt-m46bb) - Custom beads types - Register custom beads types during install (#250)
- Refinery Manager pattern - Replaced
ensureRefinerySessionwithrefinery.Manager.Start()for consistency
- Unused formula JSON - Removed unused JSON formula file (cleanup)
Thanks to all contributors for this release:
- @julianknutsen - Doctor fixes (#14, #271, #272, #273), formula fixes (#270), GT_ROOT env (#268)
- @joshuavial - Hidden directory scanning (#258, #279), crew list --all (#276)
Rig operational state management, unified agent startup, and extensive stability fixes.
gt rig park/unparkcommands - Level 1 rig control: pause daemon auto-start while preserving sessionsgt rig dock/undockcommands - Level 2 rig control: stop all sessions and prevent auto-start (gt-9gm9n)gt rig configcommands - Per-rig configuration management (gt-hhmkq)- Rig identity beads - Schema and creation for rig identity tracking (gt-zmznh)
- Property layer lookup - Hierarchical configuration resolution (gt-emh1c)
- Operational state in status -
gt rig statusshows park/dock state
--agentoverrides - Override agent for start/attach/sling commands- Unified agent startup - Manager pattern for consistent agent initialization
- Claude settings installation - Auto-install during rig and HQ creation
- Runtime-aware tmux checks - Detect actual agent state from tmux sessions
gt status --watch- Watch mode with auto-refresh (#231)- Compact status output - One-line-per-worker format as new default
- LED status indicators - Visual indicators for rigs in Mayor tmux status line
- Parked/docked indicators - Pause emoji (⏸) for inactive rigs in statusline
- Minimum beads version check - Validates beads CLI compatibility (gt-im3fl)
- ZFC convoy auto-close -
bd closetriggers convoy completion (gt-3qw5s) - Stale hooked bead cleanup - Deacon clears orphaned hooks (gt-2yls3)
- Doctor prefix mismatch detection - Detect misconfigured rig prefixes (gt-17wdl)
- Unified beads redirect - Single redirect system for tracked and local beads (#222)
- Route from rig to town beads - Cross-level bead routing
- Windows-compatible file locking - Daemon lock works on Windows
--purgeflag for crews - Full crew obliteration option- Debug logging for suppressed errors - Better visibility into startup issues (gt-6d7eh)
- hq- prefix in tmux cycle bindings - Navigate to Mayor/Deacon sessions
- Wisp config storage layer - Transient/local settings for ephemeral workflows
- Sparse checkout - Exclude Claude context files from source repos
- Daemon respects rig operational state - Parked/docked rigs not auto-started
- Agent startup unified - Manager pattern replaces ad-hoc initialization
- Mayor files moved - Reorganized into
mayor/subdirectory - Refinery merges local branches - No longer fetches from origin (gt-cio03)
- Polecats start from origin/default-branch - Consistent recycled state
- Observable states removed - Discover agent state from tmux, don't track (gt-zecmc)
- mol-town-shutdown v3 - Complete cleanup formula (gt-ux23f)
- Witness delays polecat cleanup - Wait until MR merges (gt-12hwb)
- Nudge on divergence - Daemon nudges agents instead of silent accept
- README rewritten - Comprehensive guides and architecture docs (#226)
gt rigs→gt rig list- Command renamed in templates/docs (#217)
--restart-sessionsflag required - Doctor won't cycle sessions without explicit flag (gt-j44ri)- Only cycle patrol roles - Doctor --fix doesn't restart crew/polecats (hq-qthgye)
- Session-ended events auto-closed - Prevent accumulation (gt-8tc1v)
- GUPP propulsion nudge - Added to daemon restartSession
- Sling uses bd native routing - No BEADS_DIR override needed
- Sling parses wisp JSON correctly - Handle
new_epic_idfield - Sling resolves rig path - Cross-rig bead hooking works
- Sling waits for Claude ready - Don't nudge until session responsive (#146)
- Correct beads database for sling - Rig-level beads used (gt-n5gga)
- Close hooked beads before clearing - Proper cleanup order (gt-vwjz6)
- Removed dead sling flags -
--moleculeand--qualitycleaned up
- Witness kills tmux on Stop() - Clean session termination
- Deacon uses session package - Correct hq- session names (gt-r38pj)
- Honor rig agent for witness/refinery - Respect per-rig settings
- Canonical hq role bead IDs - Consistent naming
- hq- prefix in status display - Global agents shown correctly (gt-vcvyd)
- Restart Claude when dead - Recover sessions where tmux exists but Claude died
- Town session cycling - Works from any directory
- Nuke not blocked by stale hooks - Closed beads don't prevent cleanup (gt-jc7bq)
- Crew stop dry-run support - Preview cleanup before executing (gt-kjcx4)
- Crew defaults to --all -
gt crew start <rig>starts all crew (gt-s8mpt) - Polecat cleanup handlers -
gt witness processinvokes handlers (gt-h3gzj)
- Create mayor/daemon.json -
gt startandgt doctor --fixinitialize daemon state (#225) - Initialize git before beads - Enable repo fingerprint (#180)
- Handoff preserves env vars - Claude Code environment not lost (#216)
- Agent settings passed correctly - Witness and daemon respawn use rigPath
- Log rig discovery errors - Don't silently swallow (gt-rsnj9)
- Use rig's default_branch - Not hardcoded 'main'
- MERGE_FAILED sent to Witness - Proper failure notification
- Removed BranchPushedToRemote checks - Local-only workflow support (gt-dymy5)
- BeadsSetupRedirect preserves tracked files - Don't clobber existing files (gt-fj0ol)
- PATH export in hooks - Ensure commands find binaries
- Replace panic with fallback - ID generation gracefully degrades (#213)
- Removed duplicate WorktreeAddFromRef - Code cleanup
- Town root beads for Deacon - Use correct beads location (gt-sstg)
- AgentStateManager pattern - Shared state management extracted (gt-gaw8e)
- CleanupStatus type - Replace raw strings (gt-77gq7)
- ExecWithOutput utility - Common command execution (gt-vurfr)
- runBdCommand helper - DRY mail package (gt-8i6bg)
- Config expansion helper - Generic DRY config (gt-i85sg)
- Property layers guide - Implementation documentation
- Worktree architecture - Clarified beads routing
- Agent config - Onboarding docs mention --agent overrides
- Polecat Operations section - Added to Mayor docs (#140)
Thanks to all contributors for this release:
- @julianknutsen - Claude settings inheritance (#239)
- @joshuavial - Sling wisp JSON parse (#238)
- @michaellady - Unified beads redirect (#222), daemon.json fix (#225)
- @greghughespdx - PATH in hooks fix (#139)
Bug fixes, security hardening, and new gt config command.
gt configcommand - Manage agent settings (model, provider) per-rig or globallyhq-prefix for patrol sessions - Mayor and Deacon sessions use town-prefixed names- Doctor hooks-path check - Verify Git hooks path is configured correctly
- Block internal PRs - Pre-push hook and GitHub Action prevent accidental internal PRs (#117)
- Dispatcher notifications - Notify dispatcher when polecat work completes
- Unit tests - Added tests for
formatTrackBeadIDhelper, done redirect, hook slot E2E
- Command injection prevention - Validate beads prefix to prevent injection (gt-l1xsa)
- Path traversal prevention - Validate crew names to prevent traversal (gt-wzxwm)
- ReDoS prevention - Escape user input in mail search (gt-qysj9)
- Error handling - Handle crypto/rand.Read errors in ID generation
- Hook slot initialization - Set hook slot when creating agent beads during sling (#124)
- Cross-rig bead formatting - Format cross-rig beads as external refs in convoy tracking (#123)
- Reliable bd calls - Add
--no-daemonandBEADS_DIRfor reliable beads operations
gt rig status- Infer rig name from current working directorygt crew start --all- Infer rig from cwd for batch crew startsgt primein crew start - Pass as initial prompt in crew start commands- Town default_agent - Honor default agent setting for Mayor and Deacon
- Hook persistence - Hook persists across session interruption via
in_progresslookup (gt-ttn3h) - Polecat cleanup - Clean up stale worktrees and git tracking
gt doneredirect - Use ResolveBeadsDir for redirect file support
- Embedded formulas - Sync and commit formulas for
go install @latest - CI lint fixes - Resolve lint and build errors
- Flaky test fix - Sync database before beads integration tests
Major release featuring the Convoy Dashboard, two-level beads architecture, and significant multi-agent improvements.
gt dashboardcommand - Launch web-based monitoring UI for Gas Town (#71)- Polecat Workers section - Real-time activity monitoring with tmux session timestamps
- Refinery Merge Queue display - Always-visible MR queue status
- Dynamic work status - Convoy status columns with live updates
- HTMX auto-refresh - 10-second refresh interval for real-time monitoring
- Town-level beads (
~/gt/.beads/) -hq-*prefix for Mayor mail and cross-rig coordination - Rig-level beads - Project-specific issues with rig prefixes (e.g.,
gt-*) gt migrate-agentscommand - Migration tool for two-level architecture (#nnub1)- TownBeadsPrefix constant - Centralized
hq-prefix handling - Prefix-based routing - Commands auto-route to correct rig via
routes.jsonl
- Pluggable agent registry - Multi-agent support with configurable providers (#107)
- Multi-rig management -
gt rig start/stop/restart/statusfor batch operations (#11z8l) gt crew stopcommand - Stop crew sessions cleanlyspawnalias - Alternative tostartfor all role subcommands- Batch slinging -
gt slingsupports multiple beads to a rig in one command (#l9toz)
- Immediate recycling - Polecats recycled after each work unit (#81)
- Updated patrol formula - Witness formula adapted for ephemeral model
mol-polecat-workformula - Updated for ephemeral polecat lifecycle (#si8rq.4)
gt costscommand - Session cost tracking and reporting- Beads-based storage - Costs stored in beads instead of JSONL (#f7jxr)
- Stop hook integration - Auto-record costs on session end
- Tmux session auto-detection - Costs hook finds correct session
- Conflict resolution workflow - Formula-based conflict handling for polecats (#si8rq.5)
- Merge-slot gate - Refinery integration for ordered conflict resolution
gt done --phase-complete- Gate-based phase handoffs (#si8rq.7)
gt mail archivemulti-ID - Archive multiple messages at once (#82)gt mail --allflag - Clear all mail for agent ergonomics (#105q3)- Convoy stranded detection - Detect and feed stranded convoys (#8otmd)
gt convoy --tree- Show convoy + child status treegt convoy check- Cross-rig auto-close for completed convoys (#00qjk)
- Shell completion - Installation instructions for bash/zsh/fish (#pdrh0)
gt prime --hook- LLM runtime session handling flaggt doctorenhancements - Session-hooks check, repo-fingerprint validation (#nrgm5)- Binary age detection -
gt statusshows stale binary warnings (#42whv) - Circuit breaker - Automatic handling for stuck agents (#72cqu)
- SessionStart hooks - Deployed during
gt installfor Mayor role hq-dog-rolebeads - Town-level dog role initialization (#2jjry)- Watchdog chain docs - Boot/Deacon lifecycle documentation (#1847v)
- Integration tests - CI workflow for
gt installandgt rig add(#htlmp) - Local repo reference clones - Save disk space with
--referencecloning
- Handoff migrated to skills -
gt handoffnow uses skills format (#nqtqp) - Crew workers push to main - Documentation clarifies no PR workflow for crew
- Session names include town - Mayor/Deacon sessions use town-prefixed names
- Formula semantics clarified - Formulas are templates, not instructions
- Witness reports stopped - No more routine Mayor reports (saves tokens)
- Thread-safety - Added locks for agent session resume support
- Orphan daemon prevention - File locking prevents duplicate daemons (#108)
- Zombie tmux cleanup - Kill zombie sessions before recreating (#vve6k)
- Tmux exact matching -
HasSessionuses exact match to prevent prefix collisions - Health check fallback - Prevents killing healthy sessions on tmux errors
- Mayor/rig path - Use correct path for beads to prevent prefix mismatch (#38)
- Agent bead creation - Fixed during
gt rig add(#32) - bd daemon startup - Circuit breaker and restart logic (#2f0p3)
- BEADS_DIR environment - Correctly set for polecat hooks and cross-rig work
- Default branch detection -
gt doneno longer hardcodes 'main' (#42) - Enter key retry - Reliable Enter key delivery with retry logic (#53)
- SendKeys debounce - Increased to 500ms for reliability
- MR bead closure - Close beads after successful merge from queue (#52)
- Embedded formulas - Copy formulas to new installations (#86)
- Vestigial cleanup - Remove
rigs/directory andstate.jsonfiles - Symlink preservation - Workspace detection preserves symlink paths (#3, #75)
- Golangci-lint errors - Resolved errcheck and gosec issues (#76)
Thanks to all contributors for this release:
- @kiwiupover - README updates (#109)
- @michaellady - Convoy dashboard (#71), ResolveBeadsDir fix (#54)
- @jsamuel1 - Dependency updates (#83)
- @dannomayernotabot - Witness fixes (#87), daemon race condition (#64)
- @markov-kernel - Mayor session hooks (#93), daemon init recommendation (#95)
- @rawwerks - Multi-agent support (#107)
- @jakehemmerle - Daemon orphan race condition (#108)
- @danshapiro - Install role slots (#106), rig beads dir (#61)
- @vessenes - Town session helpers (#91), install copy formulas (#86)
- @kustrun - Init bugs (#34)
- @austeane - README quickstart fix (#44)
- @Avyukth - Patrol roles per-rig check (#26)
- Tmux keybindings scoped to Gas Town sessions - C-b n/p no longer override default tmux behavior in non-GT sessions (#13)
- OSS project files - CHANGELOG.md, .golangci.yml, RELEASING.md
- Version bump script -
scripts/bump-version.shfor releases - Documentation fixes - Corrected
gt rig addandgt crew addCLI syntax (#6) - Rig prefix routing - Agent beads now use correct rig-specific prefixes (#11)
- Beads init fix - Rig beads initialization targets correct database (#9)
Initial public release of Gas Town - a multi-agent workspace manager for Claude Code.
- Town structure - Hierarchical workspace with rigs, crews, and polecats
- Rig management -
gt rig add/list/removefor project containers - Crew workspaces -
gt crew addfor persistent developer workspaces - Polecat workers - Transient agent workers managed by Witness
- Mayor - Global coordinator for cross-rig work
- Deacon - Town-level lifecycle patrol and heartbeat
- Witness - Per-rig polecat lifecycle manager
- Refinery - Merge queue processor with code review
- Crew - Persistent developer workspaces
- Polecat - Transient worker agents
- Convoy system -
gt convoy create/list/statusfor tracking related work - Sling workflow -
gt sling <bead> <rig>to assign work to agents - Hook mechanism - Work attached to agent hooks for pickup
- Molecule workflows - Formula-based multi-step task execution
- Mail system -
gt mail inbox/send/readfor agent messaging - Escalation protocol -
gt escalatewith severity levels - Handoff mechanism -
gt handofffor context-preserving session cycling
- Beads integration - Issue tracking via beads (
bdcommands) - Tmux sessions - Agent sessions in tmux with theming
- GitHub CLI - PR creation and merge queue via
gh
- Status dashboard -
gt statusfor town overview - Session cycling -
C-b n/pto navigate between agents - Activity feed -
gt feedfor real-time event stream - Nudge system -
gt nudgefor reliable message delivery to sessions
- Daemon mode - Background lifecycle management
- npm package - Cross-platform binary distribution
- GitHub Actions - CI/CD workflows for releases
- GoReleaser - Multi-platform binary builds