Skip to content

feat(rig): add manifest support for rig configuration#592

Closed
easel wants to merge 0 commit intogastownhall:mainfrom
easel:main
Closed

feat(rig): add manifest support for rig configuration#592
easel wants to merge 0 commit intogastownhall:mainfrom
easel:main

Conversation

@easel
Copy link
Copy Markdown
Contributor

@easel easel commented Jan 16, 2026

This PR introduces the ability for a rig to describe what resources it wants from a town. The intent is to get it down to a oneliner to, for instance, add rigs for gastown and beads and start a crew so you can build from main and contribute fixes.

Summary

  • Add .gt/rig.toml manifest file support for standardizing rig setup
  • Implement fork detection and upstream/origin remote configuration
  • Add crew presets with agent, model, and account support
  • Add gt rig update command for checking/pulling updates
  • Support setup command execution from manifest

Details

The manifest enables one-liner rig installation with automatic crew workspace creation and proper remote configuration. Key features:

  • Manifest parsing: .gt/rig.toml defines rig defaults (name, prefix, branch), git settings (upstream, fork policy), setup commands, and crew configurations
  • Fork workflow: Detects existing forks, prompts to create/use fork, configures remotes correctly
  • Crew presets: Supports agent type, model, account, branch, args, and env configuration per crew member
  • Update command: gt rig update --check reports ahead/behind status, --pull updates and runs setup

Test plan

  • go build ./... passes
  • go test ./... passes
  • gofmt clean
  • go vet clean
  • Manual testing of gt rig add with manifest
  • Manual testing of fork detection flow
  • Manual testing of gt rig update

🤖 Generated with Claude Code

@easel easel marked this pull request as ready for review January 16, 2026 12:55
@easel easel closed this Jan 17, 2026
@easel
Copy link
Copy Markdown
Contributor Author

easel commented Jan 17, 2026

Resubmitted as #727 (head branch was main; new branch pr/rig-manifest rebased onto upstream/main).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant