{"id":47685786,"url":"https://github.com/web3dev1337/gastown-gui","last_synced_at":"2026-04-02T14:49:39.179Z","repository":{"id":333029968,"uuid":"1135997292","full_name":"web3dev1337/gastown-gui","owner":"web3dev1337","description":"Web Graphical User Interface (GUI) for Gas Town multi-agent orchestrator - A companion interface for steveyegge/gastown","archived":false,"fork":false,"pushed_at":"2026-03-27T10:39:45.000Z","size":7668,"stargazers_count":45,"open_issues_count":0,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-27T15:56:24.095Z","etag":null,"topics":["agent","agent-orchestrator","agentic-ai","agentic-workflow","claude-code","developer-tools","gastown","llm","llm-agent-framework"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web3dev1337.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-16T22:32:32.000Z","updated_at":"2026-03-27T10:22:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/web3dev1337/gastown-gui","commit_stats":null,"previous_names":["web3dev1337/gastown-gui"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/web3dev1337/gastown-gui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3dev1337%2Fgastown-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3dev1337%2Fgastown-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3dev1337%2Fgastown-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3dev1337%2Fgastown-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3dev1337","download_url":"https://codeload.github.com/web3dev1337/gastown-gui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3dev1337%2Fgastown-gui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","agent-orchestrator","agentic-ai","agentic-workflow","claude-code","developer-tools","gastown","llm","llm-agent-framework"],"created_at":"2026-04-02T14:49:38.294Z","updated_at":"2026-04-02T14:49:39.173Z","avatar_url":"https://github.com/web3dev1337.png","language":"JavaScript","readme":"# Gas Town GUI\n\n[![Sponsor](https://img.shields.io/badge/Sponsor-GitHub%20Sponsors-ea4aaa?style=for-the-badge\u0026logo=githubsponsors\u0026logoColor=white)](https://github.com/sponsors/web3dev1337)\n\nA standalone web GUI for [Gas Town](https://github.com/steveyegge/gastown) - the multi-agent orchestration system for Claude Code.\n\n![Gas Town GUI Screenshot](assets/screenshot.png)\n\n![Gas Town Loading Screen](assets/loading-background.jpeg)\n\n\u003e **Note:** This is an independent companion project, not part of the official Gas Town repository. Originally submitted as [PR #212](https://github.com/steveyegge/gastown/pull/212), now maintained as a standalone package per Steve's recommendation.\n\nSupport ongoing development: **[github.com/sponsors/web3dev1337](https://github.com/sponsors/web3dev1337)**\n\n\u003e *\"Thank you for the impressive work on this GUI! The effort and thought that went into it is clear - the architecture is clean, the documentation is thorough, and it demonstrates a solid understanding of Gas Town's workflow. [...] If you're interested in continuing this work, I'd encourage publishing it as a standalone companion project.\"*\n\u003e\n\u003e — **Steve Yegge**, creator of Gas Town ([PR #212 comment](https://github.com/steveyegge/gastown/pull/212))\n\n**Status:** 🚧 **Candidate for Testing** - Provides a solid starting point for a Gas Town GUI interface.\n\n---\n\n## Quick Start\n\n### 1. Install Prerequisites\n\n```bash\n# Gas Town CLI (required)\nnpm install -g @gastown/gt\n# Or: go install github.com/steveyegge/gastown/cmd/gt@latest\n\n# GitHub CLI (optional, for PR tracking)\ngh auth login\n```\n\n### 2. Install Gas Town GUI\n\n```bash\n# Via npm (recommended)\nnpm install -g gastown-gui\n\n# Or from source\ngit clone https://github.com/web3dev1337/gastown-gui.git\ncd gastown-gui\nnpm install\nnpm link\n```\n\n### 3. Start the GUI\n\n```bash\ngastown-gui start --open\n```\n\nOpens `http://localhost:7667` in your browser.\n\n### 4. Verify Setup\n\n```bash\ngastown-gui doctor\n```\n\n---\n\n## Nix / NixOS\n\n### Build with Nix flake\n\n```bash\nnix build .#gastown-gui\n./result/bin/gastown-gui start\n```\n\n### Run as a NixOS service\n\nImport the module from this repository's flake and enable it:\n\n```nix\n{\n  inputs.gastown-gui.url = \"github:web3dev1337/gastown-gui\";\n\n  outputs = { self, nixpkgs, gastown-gui, ... }: {\n    nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {\n      system = \"x86_64-linux\";\n      modules = [\n        gastown-gui.nixosModules.deployment\n        ({\n          services.gastown-gui = {\n            enable = true;\n            host = \"127.0.0.1\";\n            port = 7667;\n            openFirewall = false; # keep false when reverse-proxying locally\n\n            # Optional: add runtime tools to PATH for service subprocesses\n            # gtPackage = pkgs.gastown-gt;\n            # beadsPackage = pkgs.beads;\n\n            # Defaults: create and run as system user/group \"gastown\"\n            # user = \"gastown\";\n            # group = \"gastown\";\n            # createUser = true;\n            # createGroup = true;\n\n            # Optional: where your Gas Town rigs live\n            # gtRoot = \"/var/lib/gastown/gt\";\n\n            # Optional: extra env vars\n            # environment = { CORS_ORIGINS = \"http://localhost:3000\"; };\n          };\n        })\n      ];\n    };\n  };\n}\n```\n\nThen rebuild your system:\n\n```bash\nsudo nixos-rebuild switch --flake .#my-host\n```\n\nService hardening defaults are enabled in the module (for example `NoNewPrivileges`, `PrivateTmp`, `ProtectSystem`).\n\n---\n\n## Features\n\n- **Rig Management** - Add, view, and organize project repositories\n- **Work Tracking** - Create and manage work items (beads)\n- **Task Assignment** - Sling work to rigs and agents\n- **Real-Time Updates** - Live WebSocket updates for all operations\n- **PR Tracking** - View GitHub pull requests across projects\n- **Mail Inbox** - Read messages from agents and polecats\n- **Health Monitoring** - Run doctor checks and view system status\n\n---\n\n## CLI Usage\n\n```bash\n# Start server (default port 7667)\ngastown-gui\n\n# Custom port\ngastown-gui start --port 4000\n\n# Open browser automatically\ngastown-gui start --open\n\n# Development mode\ngastown-gui start --dev\n\n# Check prerequisites\ngastown-gui doctor\n\n# Show version\ngastown-gui version\n\n# Show help\ngastown-gui help\n```\n\n### Options\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `--port, -p` | Server port | 7667 |\n| `--host, -h` | Server host | 127.0.0.1 |\n| `--open, -o` | Open browser | false |\n| `--dev` | Development mode | false |\n\n### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `GASTOWN_PORT` | Server port | 7667 |\n| `HOST` | Server host | 127.0.0.1 |\n| `GT_ROOT` | Gas Town root directory | ~/gt |\n| `GT_BIN` | Override `gt` executable path | auto-detect (`PATH`, `/opt/homebrew/bin/gt`, `/usr/local/bin/gt`) |\n| `BD_BIN` | Override `bd` executable path | auto-detect (`PATH`, `/opt/homebrew/bin/bd`, `/usr/local/bin/bd`) |\n\n---\n\n## How It Works\n\nThe GUI acts as a **bridge** between your browser and the Gas Town CLI:\n\n```\n┌─────────────┐\n│   Browser   │\n│   (Client)  │\n└──────┬──────┘\n       │ HTTP API / WebSocket\n       ↓\n┌─────────────┐\n│  gastown-   │\n│  gui server │\n└──────┬──────┘\n       │ subprocess (gt, bd, gh)\n       ↓\n┌─────────────┐\n│   ~/gt/     │\n│  workspace  │\n└─────────────┘\n```\n\nAll operations execute through the official `gt` and `bd` commands - the GUI never directly modifies Gas Town's internal state.\n\n---\n\n## Architecture\n\n### Tech Stack\n\n- **Backend:** Node.js + Express\n- **Frontend:** Vanilla JavaScript (no framework)\n- **Communication:** WebSocket for real-time updates\n- **Testing:** Vitest + Puppeteer E2E tests\n\n### Design Principles\n\n1. **Server-Authoritative** - All operations execute via `gt` and `bd` CLI commands\n2. **Non-Blocking UI** - Modals close immediately, operations run in background\n3. **Real-Time Updates** - WebSocket broadcasts status changes to all clients\n4. **Graceful Degradation** - UI handles missing data and command failures\n5. **Cache \u0026 Refresh** - Background data preloading with stale-while-revalidate\n\n---\n\n## API Endpoints\n\n| Method | Endpoint | Description | CLI Command |\n|--------|----------|-------------|-------------|\n| GET | `/api/status` | System status | `gt status --json` |\n| GET | `/api/rigs` | List rigs | `gt rig list` |\n| POST | `/api/rigs` | Add rig | `gt rig add` |\n| GET | `/api/work` | List work items | `bd list` |\n| POST | `/api/work` | Create work | `bd new` |\n| POST | `/api/sling` | Sling work | `gt sling` |\n| GET | `/api/prs` | GitHub PRs | `gh pr list` |\n| GET | `/api/mail` | Mail inbox | `gt mail inbox` |\n| GET | `/api/doctor` | Health check | `gt doctor` |\n\n---\n\n## Project Structure\n\n```\ngastown-gui/\n├── bin/cli.js           # CLI entry point\n├── server.js            # Express + WebSocket server\n├── index.html           # Main HTML (single page)\n├── css/                 # Stylesheets\n│   ├── variables.css\n│   ├── reset.css\n│   ├── layout.css\n│   ├── components.css\n│   └── animations.css\n├── js/\n│   ├── app.js           # Main app entry\n│   ├── api.js           # API client\n│   ├── state.js         # State management\n│   └── components/      # UI components\n│       ├── dashboard.js\n│       ├── rig-list.js\n│       ├── work-list.js\n│       ├── pr-list.js\n│       ├── mail-list.js\n│       └── ...\n├── test/\n│   ├── unit/            # Unit tests\n│   └── e2e.test.js      # E2E tests\n└── assets/              # Favicons, icons\n```\n\n---\n\n## Testing\n\n```bash\n# All tests\nnpm test\n\n# Unit tests only\nnpm run test:unit\n\n# E2E tests\nnpm run test:e2e\n\n# Watch mode\nnpm run test:watch\n```\n\n---\n\n## Known Limitations\n\n### Remaining Features (Use CLI)\n\n| Feature | Status |\n|---------|--------|\n| Agent configuration UI | ❌ Not implemented |\n\n### Implemented Features\n\n| Feature | Status |\n|---------|--------|\n| Polecat spawn/stop/restart | ✅ UI in Rig list |\n| Rig deletion | ✅ Remove button in Rig list |\n| Crew management | ✅ Create/list/view |\n| Formula operations | ✅ Create/list/use |\n| Test coverage | ✅ 206 tests passing |\n\n**Known Issues:**\n- GT CLI sling may fail with \"mol bond requires direct database access\" (upstream issue)\n\n---\n\n## Compatibility\n\n- **Gas Town:** v0.2.x and later\n- **Node.js:** 18, 20, 22\n- **Browsers:** Chrome, Firefox, Safari (latest)\n\nThe GUI calls CLI commands via subprocess, so it should work with any Gas Town version that has compatible CLI output.\n\n---\n\n## Contributing\n\nContributions welcome!\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. **Update `CLAUDE.md`** if you add, rename, or delete files\n5. Test locally (start server with `npm start`, verify in browser)\n6. Run automated tests: `npm test` (206 tests must pass)\n7. Submit a pull request\n\n### Looking for Maintainers\n\nWe're looking for maintainers to help review and merge PRs. If you're interested in helping maintain this project, please open an issue or reach out!\n\n---\n\n## License\n\nMIT\n\n---\n\n## Credits\n\n- **Gas Town:** [steveyegge/gastown](https://github.com/steveyegge/gastown) by Steve Yegge\n- **GUI Implementation:** Built with Claude Code\n- **Original PR:** [#212](https://github.com/steveyegge/gastown/pull/212)\n\n### Contributors\n\nThanks to these community members who contributed to the original PR through testing, comments, and recommended fixes:\n\n- [@gsxdsm](https://github.com/gsxdsm)\n- [@michaellady](https://github.com/michaellady)\n- [@olivierlefloch](https://github.com/olivierlefloch)\n- [@zalo](https://github.com/zalo)\n- [@irelandpaul](https://github.com/irelandpaul)\n\n---\n\n**Disclaimer:** This is an independent community project, not officially affiliated with Gas Town. Use at your own risk.\n","funding_links":["https://github.com/sponsors/web3dev1337"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3dev1337%2Fgastown-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3dev1337%2Fgastown-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3dev1337%2Fgastown-gui/lists"}