Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Git Town

$ git-town Community Med Risk
Git Town · Code & DevOps · MIT · macos / linux / windows

Go CLI automating trunk-based, GitHub Flow, and stacked-branch Git workflows via commands like hack, sync, append, propose, and ship. Offers --dry-run command previews and git town undo rollback, though it lacks native JSON output.

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
brew install git-town
CLI vs MCP Decision CLI Only

Orchestrates local git branch graphs and remote pushes directly; CLI --dry-run and undo have no MCP equivalent.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Provides --dry-run and non-interactive branch workflow flags, though lacks --json status output and some subcommands like switch or setup are interactive.

  • Supports --dry-run and --verbose across workflow commands
  • No universal --json output format
Trust & Safety 19 / 25

--dry-run, git-town undo, and runlog reduce branch-mutation risk, though ship and sync perform remote pushes and branch deletions.

  • Built-in --dry-run preview and undo rollback
  • Performs remote branch pushes and merges
Setup & Portability 15 / 15

Single static Go binary available across macOS, Linux, and Windows via Homebrew and GitHub Releases.

  • Static Go binary requiring only git
Utility & Efficiency 11 / 15

Saves multi-command rebase/sync sequences in stacked-branch repos, though simple repos work fine with raw git.

  • Encapsulates multi-step rebase and parent-branch tracking
Maintenance & Lineage 9 / 10

Actively maintained open-source Go project (git-town/git-town) under MIT license.

  • High-cadence MIT-licensed repository
Docs & Verifiability 8 / 10

Well-structured documentation at git-town.com covering every command and configuration option.

  • Comprehensive command reference at git-town.com/commands

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Delegates Git push/pull to local git; optional forge API integration reads tokens from Git Town config or GITHUB_TOKEN/GITLAB_TOKEN.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT open-source Go binary; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Git Town (git-town) Agent Rules
- Run `git-town <subcommand> --dry-run` before executing `sync`, `ship`, or `delete`.
- Never run `git-town ship` without user approval, as it merges and deletes branches on the remote.
- Use `git-town undo` if a multi-step branch operation needs to be reverted.

Agent-Ready Command Recipes

Safe Read-Only Queries

Preview branch sync steps with --dry-run
git-town sync --dry-run

Prints the exact underlying git commands that sync would run without modifying branches or remotes.

Controlled Writes & Previews

Create a new feature branch off updated main
git-town hack feat/new-endpoint

Syncs main and checks out a fresh feature branch non-interactively.

Strengths for Agents

  • + --dry-run prints exact underlying git commands before mutating branches or remotes.
  • + git-town undo and runlog offer clean recovery if a multi-branch sync hits trouble.

Caveats & Pitfalls

  • ! No --json output for branch hierarchy inspection.
  • ! Setup wizards (git-town config setup) and switch open interactive terminal prompts.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI