Guide · Open source
How to use Gas Town: install gt, run the Mayor and track agent work
Updated · written with AI from the project's own documentation and checked against our catalogue data
Gas Town is an open-source workspace manager written in Go that lets you run several AI coding agents, such as Claude Code, GitHub Copilot, Codex and Gemini, on different tasks at once. It keeps work state in git-backed hooks and a Beads issue ledger so agents can resume after a restart. This guide covers what you need installed, how to set up the gt command, and how to give work to the Mayor.
Quick start
- 1Install the prerequisites. Install Git 2.20+, tmux 3.0+ and Dolt, plus Go 1.26.2+ if you build from source. Install Beads (bd) 0.57.0+ for native installs.
- 2Install gt for your platform. On macOS run brew install gastown. On Linux or Windows, install Dolt first, then run go install for gt and bd.
- 3Add the Go binary directory to PATH. Make sure the directory containing freshly installed gt and bd comes before any older copies on your PATH, then open a new shell.
- 4Create or enter your Town. Use a workspace directory such as ~/gt/ to hold your projects, agents and configuration.
- 5Start the workspace with gt up. Run gt up, which requires tmux 3.0+, to start the tmux-backed roles such as the Mayor.
- 6Give instructions to the Mayor. Tell the Mayor what you want to accomplish. Use gt sling and gt convoy with bead IDs to reference specific work items.
What Gas Town is and who it is for
Gas Town coordinates multiple AI coding agents working on different tasks. Instead of losing context when an agent restarts, it persists work state in git-backed hooks, which the project describes as enabling reliable multi-agent workflows.
It fits developers who already use Claude Code or similar agents on several tasks at once, and teams who want agent work tracked as git-backed issues. If you only use one agent occasionally, the coordination layer adds setup overhead you may not need.
Check the prerequisites before installing
Native installs need several host tools. The README lists Git 2.20+, Go 1.26.2+ for Linux, Windows and macOS source builds, Beads (bd) 0.57.0+ for native installs, and tmux 3.0+ for gt up. Dolt is required on Linux and Windows.
Docker is an alternative path: the README says Docker installs only need Docker Compose on the host, because the image supplies Go, Dolt, bd, tmux and CLI utilities.
- Git 2.20+ (worktree support)
- Go 1.26.2+ for Linux, Windows and macOS source builds (not needed for brew install gastown)
- Beads (bd) 0.57.0+ for native installs
- tmux 3.0+ for gt up
- Dolt, required on Linux and Windows
- Claude Code CLI is the default runtime; alternatives include Codex, Copilot, Gemini and Cursor
Install gt on macOS
On macOS, Homebrew installs gt, bd and dolt together. The README advises against go install on macOS because the unsigned binary it produces gets killed by Gatekeeper.
brew install gastownInstall gt on Linux or Windows
On Linux, install Dolt first using the Dolt installation guide, then install gt and bd with go install. On Windows, install Dolt first too, since go install does not install it. Both binaries land in %USERPROFILE%\go\bin\ on Windows, so put that directory ahead of older installs on PATH and open a new shell.
On Linux, if your Go binary directory is not on PATH, the README suggests prepending it so fresh binaries take precedence. Use ~/.zshrc instead if you use zsh.
go install github.com/steveyegge/gastown/cmd/gt@latest
go install github.com/steveyegge/beads/cmd/bd@latestLearn the core concepts: Town, Rigs and the Mayor
A Town is your workspace directory, for example ~/gt/, containing projects, agents and configuration. Each Rig wraps a git repository and manages its agents. The Mayor is your primary AI coordinator and the README says to start there: just tell the Mayor what you want to accomplish.
Crew Members are your personal workspace within a rig for hands-on work. Polecats are worker agents with persistent identity but ephemeral sessions, spawned for tasks.
- Town: workspace directory (e.g. ~/gt/)
- Rig: project container around a git repository
- Mayor: AI coordinator with context about your workspace
- Crew Member: your hands-on workspace inside a rig
- Polecat: worker agent spawned for a task
Understand how work is tracked
Work state lives in Beads, a git-backed issue tracker. Bead IDs use a prefix plus a 5-character alphanumeric format, such as gt-abc12. Commands like gt sling and gt convoy accept these IDs. Convoys bundle multiple beads for agents to work on.
Hooks are git worktree-based persistent storage that survives crashes and restarts. The watchdog layer is made of the Witness (per-rig lifecycle), the Deacon (background patrol) and Dogs (maintenance workers).
Ask about past agent sessions with seance
Seance discovers previous agent sessions through .events.jsonl logs, so an agent can query its predecessors for context and decisions from earlier work. The README gives these two example commands.
gt seance
gt seance --talk <id> -p "What did you find?"What people use it for
- Running Claude Code and Codex agents on separate tasks in the same project at once
- Tracking agent work as git-backed issues with IDs that persist across restarts
- Resuming interrupted agent work after a crash using hooks
- Querying a predecessor agent session for decisions made earlier with gt seance
Frequently asked questions
Is Gas Town free to use?
Gas Town is licensed under the MIT licence, as listed for the gastownhall/gastown repository. Check the repository's licence file for the full terms.
What do I need to install Gas Town?
Native installs need Git 2.20+, Go 1.26.2+ for source builds on Linux, Windows and macOS, Beads (bd) 0.57.0+, and tmux 3.0+ for gt up. Dolt is required on Linux and Windows.
How do I install gt on macOS?
Run brew install gastown. Homebrew installs gt, bd and dolt together. The README advises against go install on macOS because the binary it produces gets killed by Gatekeeper.
Can I use Gas Town with agents other than Claude Code?
Yes. The README says Gas Town coordinates Claude Code, GitHub Copilot, Codex, Gemini and others. The default runtime is Claude Code, and the README lists Codex, Copilot, Gemini and Cursor as alternatives.
Is Gas Town a graphical app?
No. The README describes a CLI and tmux-based workflow, so you work through the terminal rather than a polished graphical interface.
Why do I need tmux?
tmux 3.0+ is required for gt up and for tmux-backed roles such as the Mayor, Witnesses, Refineries and polecats. It is optional only for minimal-mode workflows where you run runtime instances manually.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Gas Town suits developers already running several AI coding agents in parallel who need restart-safe, git-tracked state and are comfortable with a terminal and a Go toolchain. If you use one agent occasionally, or do not want to install git, tmux and Dolt, a simpler single-agent tool will likely be less work.
Install options & downloads