{"id":50681404,"url":"https://github.com/binaryphile/tmux-claude","last_synced_at":"2026-06-08T19:04:57.885Z","repository":{"id":361989606,"uuid":"1256732897","full_name":"binaryphile/tmux-claude","owner":"binaryphile","description":"A TPM-installable tmux plugin: session manager + coordinator for multiple Claude Code panes (single host, multi-tmux-session, optional cross-host via era inbox streams)","archived":false,"fork":false,"pushed_at":"2026-06-02T04:50:32.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T06:23:09.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/binaryphile.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":null,"dco":null,"cla":null}},"created_at":"2026-06-02T03:33:03.000Z","updated_at":"2026-06-02T04:50:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/binaryphile/tmux-claude","commit_stats":null,"previous_names":["binaryphile/tmux-claude"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/binaryphile/tmux-claude","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Ftmux-claude","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Ftmux-claude/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Ftmux-claude/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Ftmux-claude/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binaryphile","download_url":"https://codeload.github.com/binaryphile/tmux-claude/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Ftmux-claude/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34076052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-08T19:04:57.786Z","updated_at":"2026-06-08T19:04:57.870Z","avatar_url":"https://github.com/binaryphile.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tmux-claude\n\nA tmux plugin that turns tmux into a session manager and coordinator for\nmultiple Claude Code panes.\n\n## Why\n\ntmux is great at managing panes. Claude Code is great at being in a pane.\nBut the seams aren't quite right:\n\n- A claude pane crashes, you reboot, you restart tmux — your sessions are\n  gone. tmux-resurrect can bring back the *pane* but not the *Claude\n  session attached to it*.\n- You have 6 claude panes running across 3 projects. Which one is waiting\n  for you? Which is mid-flow? You alt-tab through them all to find out.\n- You want claude-A in pane 0 to send a status ping to claude-B in pane\n  3, both working on the same epic. There's no in-tmux primitive for\n  that.\n\ntmux-claude is the in-tmux glue for these jobs. It does:\n\n- **Session restore with the right `--resume \u003cuuid\u003e`** for each pane,\n  derived from `~/.claude/projects/\u003csanitized-cwd\u003e/\u003clatest\u003e.jsonl`.\n- **Status indicators** — pane border / status-bar color reflects whether\n  Claude is idle, working, or waiting for operator input.\n- **Labeled spawn** — `tmux-claude spawn \u003cproject\u003e [label]` creates a new\n  claude pane in a project with an optional role label (auto-generated A..Z\n  if omitted; collision-rejected against currently-active labels).\n- **Cross-pane messaging** (when `era`/`evtctl` are installed) — one\n  claude can send another a message via the inbox-stream pattern.\n\n## Status\n\n**UC1 (View Pane Topology) + UC3 (Spawn Labeled Pane) + UC4 (Identify\nWaiting Pane) + UC5 (Switch Focus to Next Waiting Pane) shipped.** See\n`docs/use-cases.md` for behavioral contracts and `docs/design.md` for\nmechanisms. Remaining UCs (restore, messaging, snapshot, label rename/\nremove, ambient state indicators) are queued; see `CLAUDE.md` for scope\ntiers.\n\n## Usage\n\n```bash\n# from anywhere inside a tmux session with tmux-claude on PATH:\ntmux-claude topology                          # render the topology\ntmux-claude next-waiting                      # jump focus to the next pane in `waiting` state\ntmux-claude spawn \u003cproject\u003e [label]           # create a new claude pane in \u003cproject\u003e, with optional label\n```\n\nTopology output (state and AGE driven by UC4's projection over Claude Code hook events):\n\n```\nPANE  PROJECT          SESSION                               LABEL  STATE           AGE\n%3    sofdevsim-2026   04828084-ca16-4400-af2d-86392a1efeab  —      working         12s\n%4    tmux-claude      b9c81921-26ac-448b-8be3-2204cb4d15bc  —      waiting         3m\n%5    era              1beae198-5024-47bb-9065-c4aa5c6c7898  —      \u003cundetermined\u003e  n/a\n```\n\nState vocabulary: `working` (claude mid-turn), `waiting` (turn ended /\npermission needed → operator action expected), `\u003cundetermined\u003e` (no recent\nstate event observed for this session_id, or state knowledge is stale).\n\n`—` (em-dash) in the LABEL column means no label is bound to that\nsession_id; running `tmux-claude spawn \u003cproject\u003e [label]` is the way\nto bind one.\n\n### Spawning labeled panes (UC3)\n\n```bash\ntmux-claude spawn ~/projects/era era-A     # explicit label\ntmux-claude spawn ~/projects/jeeves        # auto-label (first unused letter A..Z)\n```\n\nThe spawn flow: validate the project directory, check `claude` is on\nPATH, allocate the label (collision-rejected; auto-generated if not\nsupplied), `tmux new-window` in the project, poll for the new claude\nsession's `.jsonl` (up to `TMUX_CLAUDE_SPAWN_TIMEOUT`), publish a\n`label-assigned` event that UC1's topology view consumes. Any\npost-spawn failure (timeout, ambiguous attribution under concurrent\n.jsonl creation, era publish error) kills the newly-spawned window so\nno partially-labeled pane is left behind (UC3 Minimum Guarantee).\n\n### Configuration knobs\n\n| Env var | Default | Meaning |\n|---|---|---|\n| `TMUX_CLAUDE_STALE_SECONDS` | `3600` | After this many seconds without a state-changing hook event, the state collapses to `\u003cundetermined\u003e`. Set to `0` to disable (states persist indefinitely). |\n| `TMUX_CLAUDE_SPAWN_TIMEOUT` | `10` | Seconds the spawn command polls for the new claude session's `.jsonl` before timing out. Non-integer or negative treated as default; `0` disables (immediate timeout — useful for debugging). |\n\n## Keybinding\n\nWhen loaded via TPM (or `tmux run-shell ~/path/to/tmux-claude.tmux`), the\nplugin binds:\n\n| Key | Action |\n|---|---|\n| `prefix + ?` | Show topology in a `display-popup` (tmux ≥ 3.0; falls back to `display-message` on older tmux) |\n| `prefix + N` | Jump focus to the next claude pane in `waiting` state. Round-robins through waiting panes in numeric pane-id order (`%2` before `%10`), starting after the currently-focused pane with wrap-around. `display-message` reports edge cases (no waiting panes; only the current pane is waiting; target pane vanished). |\n\n## Install\n\nVia [TPM](https://github.com/tmux-plugins/tpm):\n\n```tmux\nset -g @plugin 'binaryphile/tmux-claude'\n```\n\nThen `prefix + I` to install. TPM clones the plugin into\n`~/.tmux/plugins/tmux-claude/` and runs `tmux-claude.tmux` via\n`tmux run-shell`.\n\nManual install:\n\n```bash\ngit clone https://github.com/binaryphile/tmux-claude ~/.tmux/plugins/tmux-claude\necho 'run-shell ~/.tmux/plugins/tmux-claude/tmux-claude.tmux' \u003e\u003e ~/.tmux.conf\ntmux source-file ~/.tmux.conf\n```\n\n(The `.tmux` file is a bash script — TPM and tmux's `run-shell` execute\nit; `source-file` would attempt to parse it as a tmux config and fail.)\n\n## License\n\nTBD.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryphile%2Ftmux-claude","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinaryphile%2Ftmux-claude","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryphile%2Ftmux-claude/lists"}