{"id":47239718,"url":"https://github.com/ghillb/swarmux","last_synced_at":"2026-04-01T23:52:24.990Z","repository":{"id":342584662,"uuid":"1174373603","full_name":"ghillb/swarmux","owner":"ghillb","description":"Agent-first tmux async task orchestration CLI","archived":false,"fork":false,"pushed_at":"2026-03-29T21:44:30.000Z","size":1174,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T00:09:23.310Z","etag":null,"topics":["agent-skills","automation","claude","claude-code","cli","codex","codex-cli","coding-agents","developer-tools","git-worktree","multi-agent","orchestration","rust","task-runner","terminal","tmux"],"latest_commit_sha":null,"homepage":"https://ghillb.github.io/swarmux/","language":"Rust","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/ghillb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-06T11:17:58.000Z","updated_at":"2026-03-29T21:43:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ghillb/swarmux","commit_stats":null,"previous_names":["ghillb/swarmux"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ghillb/swarmux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghillb%2Fswarmux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghillb%2Fswarmux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghillb%2Fswarmux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghillb%2Fswarmux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghillb","download_url":"https://codeload.github.com/ghillb/swarmux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghillb%2Fswarmux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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-skills","automation","claude","claude-code","cli","codex","codex-cli","coding-agents","developer-tools","git-worktree","multi-agent","orchestration","rust","task-runner","terminal","tmux"],"created_at":"2026-03-14T01:12:10.273Z","updated_at":"2026-04-01T23:52:24.967Z","avatar_url":"https://github.com/ghillb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swarmux\n\nAgent-native Rust CLI for tmux-based orchestration of local coding tasks.\n\n`swarmux` gives coding agents a narrow control plane for submitting, starting, inspecting, steering, reconciling, and pruning local work. Humans keep direct access and inspectability. Agents get machine-readable commands and strict input validation.\n\n## Requirements\n\n- `tmux`\n- `tmux` 3.7 or newer\n- `git`\n- a POSIX shell at `/bin/sh`\n- optional: `bd` when `SWARMUX_BACKEND=beads`\n\n## Getting started\n\nInstall, tmux setup, and first-task flow live in [Get Started](docs/getting-started.md).\n\n## Quick start\n\n```bash\nswarmux doctor\nswarmux init\nswarmux schema\nswarmux submit --json '{\n  \"title\": \"hello\",\n  \"repo_ref\": \"demo\",\n  \"repo_root\": \"/path/to/repo\",\n  \"mode\": \"manual\",\n  \"worktree\": \"/path/to/repo\",\n  \"session\": \"swarmux-demo\",\n  \"command\": [\"codex\",\"exec\",\"-m\",\"gpt-5.3-codex\",\"echo hi from task\"]\n}'\nswarmux list\nswarmux panes\nswarmux panes jump --index 1\nswarmux overview --once\nswarmux overview --once --scope all\nswarmux overview --tui\n```\n\nStructured commands emit JSON by default. Use `--output text` when you want the pretty-printed human view. TUI commands ignore `--output`.\n\nThe tmux plugin at [`swarmux.tmux`](./swarmux.tmux) is bindings-only. Install the `swarmux` binary first, then let TPM source the bindings from this repo.\n\nTPM is the canonical tmux setup path. The plugin exposes tmux-managed bindings through:\n\n- `@swarmux-dispatch-key`\n- `@swarmux-pane-switch-key`\n- `@swarmux-sidebar-key`\n- `@swarmux-overview-key`\n- `@swarmux-index-keys`\n\n`overview --tui` opens a two-tab dashboard: `Tasks` and `Stats`.\nInside `Tasks`, press `f` to cycle `active -\u003e terminal -\u003e all`.\n\n## Screenshots\n\n![swarmux overview tasks](docs/assets/screenshots/overview.gif)\n\ntmux-friendly dispatch without JSON quoting:\n\n```bash\nswarmux dispatch \\\n  --title \"hello\" \\\n  --repo-ref demo \\\n  --repo-root /path/to/repo \\\n  -- codex exec -m gpt-5.3-codex \"echo hi from task\"\n```\n\nConnected dispatch from the current tmux pane:\n\n```bash\nswarmux dispatch \\\n  --connected \\\n  --mirrored \\\n  --prompt \"fix tests\" \\\n  -- codex exec\n```\n\nConfigured default connected command:\n\n```toml\n# ~/.config/swarmux/config.toml\n[connected]\nruntime = \"mirrored\"\ncommand = [\"codex\", \"exec\"]\n```\n\n```bash\nswarmux dispatch --connected --human --prompt \"fix tests\"\n```\n\nAdd `--human` when you want a compact task summary instead of the JSON response.\n\nActual TUI runtime in a task session:\n\n```bash\nswarmux submit --json '{\n  \"title\": \"tui task\",\n  \"repo_ref\": \"demo\",\n  \"repo_root\": \"/path/to/repo\",\n  \"mode\": \"manual\",\n  \"runtime\": \"tui\",\n  \"worktree\": \"/path/to/repo\",\n  \"session\": \"swarmux-demo-tui\",\n  \"command\": [\"my-tui-agent\", \"fix tests\"]\n}'\nswarmux start \u003cid\u003e\nswarmux attach \u003cid\u003e\n```\n\nConfigured named agent runners:\n\n```toml\n# ~/.config/swarmux/config.toml\n[connected]\nagent = \"codex\"\nruntime = \"mirrored\"\n\n[agents.codex]\ncommand = [\"codex\", \"exec\"]\n\n[agents.claude]\ncommand = [\"claude\", \"-p\"]\n```\n\n```bash\nswarmux dispatch --connected --agent claude --prompt \"summarize diff\"\n```\n\n`headless` remains the default runtime when no override is configured.\n`mirrored` keeps a non-TUI CLI runner visible in the task session and mirrors pane output into logs.\n`tui` runs a full-screen interactive program in its own tmux session, still detached from `start`/`delegate` so agents get a clean JSON response and operators choose when to `attach`.\n\nConnected dispatch still appends `--prompt` as the trailing command argument for every runtime. Use `tui` there only with commands that naturally accept that trailing prompt input.\n\nSetup details, tmux binds, and pane-switcher configuration live in [Get Started](docs/getting-started.md).\n\n## How it works\n\n`swarmux` stores task state in either `files` (default) or `beads` (`SWARMUX_BACKEND=beads`), but runtime execution is always tmux-driven and command-agnostic. The `command` array from `submit` is executed as-is inside a tmux session.\n\n```mermaid\nflowchart TD\n    A[Agent or user] --\u003e B[swarmux CLI]\n    B --\u003e C[Validate payload and command]\n    C --\u003e D{State backend}\n    D --\u003e|files| E[Local files store]\n    D --\u003e|beads| F[bd adapter]\n\n    C --\u003e G[start or delegate]\n    G --\u003e H[runtime::start_task]\n    H --\u003e I[\"tmux new-session + command\"]\n    I --\u003e L[timestamped logs + exit marker]\n    L --\u003e M[reconcile updates task state]\n    M --\u003e D\n```\n\nFor task-scoped waiting, use `swarmux wait \u003cid...\u003e` to block until one watched task reaches a target state. Use `swarmux watch \u003cid...\u003e` for a foreground task-scoped poll stream with log previews. Keep `swarmux notify --tmux` for global terminal notifications via `tmux display-message`.\n\nTask-scoped waiting:\n\n```bash\nswarmux wait \u003cid\u003e --states succeeded,failed --timeout-ms 600000\nswarmux watch \u003cid\u003e --states waiting_input,succeeded,failed,canceled --lines 40\n```\n\nPR or external linkage can be updated after creation:\n\n```bash\nswarmux set-ref \u003cid\u003e \"https://github.com/owner/repo/pull/123\"\n```\n\n`watch`/`notify` include compact task output excerpts:\n\n```text\nswarmux 4rh succeeded what is the time currently ...current time is 23:14:05\n```\n\n```text\n2026-03-14T10:22:31Z spawned swx-swarmux-4rh\n2026-03-14T10:22:35Z current time is 23:14:05\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghillb%2Fswarmux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghillb%2Fswarmux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghillb%2Fswarmux/lists"}