From 6e2923109407de424c11ce8bb922aca4875d938a Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Thu, 18 Dec 2025 00:31:19 -0800 Subject: [PATCH] feat: add command aliases for PGT parity (may, sess, ref, sp, cat, stat) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Cobra aliases to match PGT abbreviation support: - mayor → may (gt may at now works) - session → sess - refinery → ref - spawn → sp - polecat → cat - status → stat This enables the same abbreviated commands that worked in PGT, like "gt may at" to attach to the Mayor session. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/cmd/polecat.go | 5 +++-- internal/cmd/refinery.go | 5 +++-- internal/cmd/session.go | 5 +++-- internal/cmd/spawn.go | 5 +++-- internal/cmd/status.go | 5 +++-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/internal/cmd/polecat.go b/internal/cmd/polecat.go index 69031718..dc60252e 100644 --- a/internal/cmd/polecat.go +++ b/internal/cmd/polecat.go @@ -26,8 +26,9 @@ var ( ) var polecatCmd = &cobra.Command{ - Use: "polecat", - Short: "Manage polecats in rigs", + Use: "polecat", + Aliases: []string{"cat"}, + Short: "Manage polecats in rigs", Long: `Manage polecat lifecycle in rigs. Polecats are worker agents that operate in their own git clones. diff --git a/internal/cmd/refinery.go b/internal/cmd/refinery.go index 1a1157d3..8efa8963 100644 --- a/internal/cmd/refinery.go +++ b/internal/cmd/refinery.go @@ -23,8 +23,9 @@ var ( ) var refineryCmd = &cobra.Command{ - Use: "refinery", - Short: "Manage the merge queue processor", + Use: "refinery", + Aliases: []string{"ref"}, + Short: "Manage the merge queue processor", Long: `Manage the Refinery merge queue processor for a rig. The Refinery processes merge requests from polecats, merging their work diff --git a/internal/cmd/session.go b/internal/cmd/session.go index aa0af1f1..5b272bfd 100644 --- a/internal/cmd/session.go +++ b/internal/cmd/session.go @@ -29,8 +29,9 @@ var ( ) var sessionCmd = &cobra.Command{ - Use: "session", - Short: "Manage polecat sessions", + Use: "session", + Aliases: []string{"sess"}, + Short: "Manage polecat sessions", Long: `Manage tmux sessions for polecats. Sessions are tmux sessions running Claude for each polecat. diff --git a/internal/cmd/spawn.go b/internal/cmd/spawn.go index 608922a0..acfa1e84 100644 --- a/internal/cmd/spawn.go +++ b/internal/cmd/spawn.go @@ -29,8 +29,9 @@ var ( ) var spawnCmd = &cobra.Command{ - Use: "spawn | ", - Short: "Spawn a polecat with work assignment", + Use: "spawn | ", + Aliases: []string{"sp"}, + Short: "Spawn a polecat with work assignment", Long: `Spawn a polecat with a work assignment. Assigns an issue or task to a polecat and starts a session. If no polecat diff --git a/internal/cmd/status.go b/internal/cmd/status.go index bbb0c754..1ed69e58 100644 --- a/internal/cmd/status.go +++ b/internal/cmd/status.go @@ -17,8 +17,9 @@ import ( var statusJSON bool var statusCmd = &cobra.Command{ - Use: "status", - Short: "Show overall town status", + Use: "status", + Aliases: []string{"stat"}, + Short: "Show overall town status", Long: `Display the current status of the Gas Town workspace. Shows town name, registered rigs, active polecats, and witness status.`,