coordinate-agents
Skill1.1k starsChanged 58 days agoMITView on GitHub
Drive another Sidecar-managed agent from a shell — discover targets, create the layout, start a provider, prompt and wait, read before sending keys, broadcast to every live agent, and stay out of the user's way. Use when you need a second agent to review a diff, run a long task in parallel, tell every live agent something, or when a coordinated agent comes back blocked. Covers sidecar agent list/get/start/prompt/wait/read/send-keys/broadcast and the refusal codes they return.
1 other project uses a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- hogancv/coordinate-agentstheir own version, first seen Aug 20, 2026
Who's talking about marcus/sidecar
- chenrui333/homebrew-tap“sidecar 1.16.0”GitHub · Oct 5, 2026 · 1 reactions
- chenrui333/homebrew-tap“sidecar 1.14.0”GitHub · Sep 23, 2026 · 1 reactions
- chenrui333/homebrew-tap“sidecar 1.13.0”GitHub · Sep 3, 2026 · 1 reactions
- chenrui333/homebrew-tap“sidecar 1.11.2”GitHub · Aug 31, 2026 · 1 reactions
- chenrui333/homebrew-tap“sidecar 1.9.0”GitHub · Aug 27, 2026 · 1 reactions
The biggest 5 of 48 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 48
Talked about on GitHub and Bluesky (48 times).
On GitHub · 47
- Oct 5, 2026sidecar 1.16.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Sep 23, 2026sidecar 1.14.0 — chenrui333/homebrew-tap1 reaction · 2 comments
- Sep 3, 2026sidecar 1.13.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 31, 2026sidecar 1.11.2 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 27, 2026sidecar 1.9.0 — chenrui333/homebrew-tap1 reaction · 1 comment
42 more on GitHub
- Aug 26, 2026sidecar 1.8.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 25, 2026sidecar 1.7.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 25, 2026sidecar 1.6.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 24, 2026sidecar 1.5.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 23, 2026sidecar 1.4.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 21, 2026sidecar 1.3.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 21, 2026sidecar 1.2.2 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 20, 2026sidecar 1.2.1 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 20, 2026sidecar 1.2.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 19, 2026sidecar 1.1.1 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 19, 2026sidecar 1.1.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 18, 2026sidecar 1.0.3 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 17, 2026sidecar 1.0.2 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 17, 2026sidecar 1.0.1 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 17, 2026sidecar 1.0.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Aug 14, 2026sidecar 0.99.1 — chenrui333/homebrew-tap1 reaction
- Aug 14, 2026sidecar 0.99.0 — chenrui333/homebrew-tap1 reaction
- Aug 13, 2026sidecar 0.98.0 — chenrui333/homebrew-tap1 reaction
- Aug 12, 2026sidecar 0.97.0 — chenrui333/homebrew-tap1 reaction
- Aug 11, 2026sidecar 0.96.0 — chenrui333/homebrew-tap1 reaction
- Aug 11, 2026sidecar 0.95.0 — chenrui333/homebrew-tap1 reaction
- Aug 8, 2026sidecar 0.93.0 — chenrui333/homebrew-tap1 reaction
- Aug 7, 2026sidecar 0.92.0 — chenrui333/homebrew-tap1 reaction
- Aug 2, 2026sidecar 0.91.0 — chenrui333/homebrew-tap1 reaction
- Jul 31, 2026sidecar 0.90.0 — chenrui333/homebrew-tap1 reaction
- Jul 30, 2026sidecar 0.89.0 — chenrui333/homebrew-tap1 reaction
- Jul 28, 2026sidecar 0.88.2 — chenrui333/homebrew-tap1 reaction
- Jul 27, 2026sidecar 0.88.1 — chenrui333/homebrew-tap1 reaction
- Jul 25, 2026sidecar 0.87.1 — chenrui333/homebrew-tap1 reaction
- Jun 19, 2026sidecar 0.86.0 — chenrui333/homebrew-tap1 reaction
- Oct 3, 2026agent-skills.github.marcus.sidecar: 1.14.0 → 1.15.1 — sudosubin/agents.nix0 reactions
- Oct 1, 2026sidecar 1.15.1 — chenrui333/homebrew-tap0 reactions · 2 comments
- Sep 29, 2026agent-skills.github.marcus.sidecar: init at 1.14.0 — sudosubin/agents.nix0 reactions
- Sep 7, 2026Add Sidecar — manuelmeurer/agentmgmt0 reactions · 1 comment
- Apr 18, 2026sidecar 0.84.0 — chenrui333/homebrew-tap0 reactions
- Apr 17, 2026Feedback — sidequery/ghostree0 reactions
- Mar 24, 2026sidecar 0.83.0 — chenrui333/homebrew-tap0 reactions
- Mar 21, 2026sidecar 0.80.0 — chenrui333/homebrew-tap0 reactions
- Mar 21, 2026sidecar 0.79.0 — chenrui333/homebrew-tap0 reactions
- Mar 10, 2026sidecar 0.78.0 — chenrui333/homebrew-tap0 reactions
- Feb 10, 2026Research: Deep analysis of Sidecar - alignment check and alternatives — JulianDouma/speckle0 reactions
- Feb 9, 2026[Feature]: Persistent plan/todo tracking and checkpoints between plans — code-yeongyu/oh-my-openagent0 reactions · 6 comments
On Bluesky · 1
- Mar 4, 2026Great write up! The failures are especially valuable, watching this very closely. It might make sense to move merges to a subagent of the… — @faz.ms1 likes and repost
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- hogancv/coordinate-agents★ 99same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- create-adapterSkill
- create-modalSkill
- create-pluginSkill
- create-promptSkill
- create-themeSkill
- drag-paneSkill
- feature-flagsSkill
- inline-editorSkill
- keyboard-shortcutsSkill
- merge-strategySkill
- port-herdr-integrationSkill
- profile-memorySkill
- project-switchingSkill
- release-sidecarSkill
- shell-integrationSkill
- sidecar-websiteSkill
- ui-featuresSkill
- worktree-switchingSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
If that answers {"error":{"code":"feature_disabled",...}}, agent control is off.
- Distinctive: line 21
Do these in order. Each step exists because skipping it is how a coordinated agent ends up wedged, duplicated, or typing into the wrong …
- Very specific: line 84
A prompt that goes nowhere is reported, not hidden: If the lifecycle does not move within 5 seconds of a prompt sent from idle or done, you …
- Very specific: line 97
When a wait comes back blocked, the agent is asking a question.
- Very specific: line 131
Default recipients are the live agents in your project, minus you.
- Very specific: line 139
Every verb takes --json. Success writes one object on stdout.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Coordinating another agent
Sidecar can start and coordinate a second agent in a shell it owns. The commands are headless, target-taking, and --json from birth, so everything here works from an ordinary shell with no TUI attached.
Agent control is behind a default-off feature flag. Check first:
sidecar agent list --jsonIf that answers {"error":{"code":"feature_disabled",...}}, agent control is off. Ask the user to enable it (agent_control under features.flags in ~/.config/sidecar/config.json) rather than turning it on yourself.
The safe sequence
Do these in order. Each step exists because skipping it is how a coordinated agent ends up wedged, duplicated, or typing into the wrong pane.
1. Discover
sidecar shell list --json # what shells exist
sidecar agent list --json # which of them have a live agent, and its statusA target is a Sidecar-managed shell. A bare target first matches an exact tmux session name. An ordinary display name such as rev U3-c or Shell 3 still resolves when unique; ambiguity refuses. A missing sidecar-sh-*, sidecar-ws-* or sidecar-tp-* target never falls back to a display name. name:DISPLAY explicitly selects a unique display name, including a session-shaped one, and session:NAME selects an exact session, including literal names starting with name: or session:. agent start --target SESSION and --exact-target interpret the target as a literal exact identity. Inside a managed shell you may omit the target entirely and the command addresses SIDECAR_SHELL. Outside one, name the target.
agent list reports each live pane once, under the project that owns it, however many registered projects can see its checkout. An explicit target is searched across every project; if the same exact session identity exists in several, the project your own shell belongs to breaks the tie, so a sibling worktree resolves from a managed shell without flags. Outside a managed shell the refusal lists the projects and names the fix: --project NAME (a slug, a path, or a worktree Sidecar created, by path or basename) or --shell NAME. Display-name ambiguity always refuses until --project explicitly narrows the search. Remote commands preserve these selector rules and carry parser guards; older owners refuse before mutation and must be upgraded. The project field of a create shell / create worktree --json result is the value --project accepts.
2. Create the layout separately
agent start never creates or moves a pane. Layout is sidecar create shell's job, and keeping them apart is what makes it safe to start an agent without also rearranging the user's screen.
Use --tab, not the default placement and not --split. Without --tab, create shell opens a beside-the-session terminal split (sidecar-tp-…) — a live terminal, not a managed shell: it has no workspace row, shell list does not show it, and agent start/agent prompt refuse it as agent_not_found since there is nothing there to target. --tab is what actually adds the workspace row a coordinated agent needs.
created=$(sidecar create shell --tab --name reviewer --json)
target=$(printf '%s\n' "$created" | jq -r '.shell.session')To start a catalog family with provider arguments in the same step, both create shell and create worktree take them after --, as agent start does, and still record the family: sidecar create worktree orchestrate --agent claude --json -- --model fable. Usage refusals under --json arrive as {"error":{"code":"usage",...}} on stderr, like every other refusal here.
From inside a worktree shell, create shell --tab --agent KIND inherits your own worktree's directory (the workspace row is placed there, not in the main checkout) — no --worktree/--cwd flag is needed.
When the managed shell should belong to one project but start elsewhere, pass both facts explicitly: sidecar create shell --project sidecar --cwd ~/code/tui --name publisher --json. --cwd never chooses project ownership and always creates a managed workspace row, even inside an existing Sidecar shell. It is refused with --split because a live terminal split has no durable shell record. Relative paths resolve from the caller's directory, ~ and ~/path resolve from the caller's home, and the directory must exist before Sidecar creates tmux or durable state. The resolved path is the shell's live cwd, recorded workDir, provider launch cwd, and cold-restore cwd.
Creating a shell does not steal the user's focus. Do not rearrange panes the user set up, and never close a target you did not create.
3. Start the provider
sidecar agent start "$target" --kind codex --timeout 30s --jsonagent start reserves -- for provider arguments. Use positional TARGET for a session or ordinary display name, name:DISPLAY for an explicit name, or --target SESSION for a literal exact session (including a leading dash).
This returns only when the expected provider is positively identified and ready for input. It is not "the bytes were sent". Refusals worth knowing:
| Code | Meaning |
agent_pane_busy | the pane is running a command, an editor, another agent, or is in copy mode. There is no --force; wait or use a different shell. |
agent_kind_mismatch | a different provider owns the pane. |
agent_start_failed | the process exited before it was ready. |
agent_not_ready | it came up blocked. The target is still inspectable — read it. |
timeout | it did not become ready inside your --timeout. |
4. Prompt, and wait under one pinned target
sidecar agent prompt "$target" "Review the current diff and report only actionable findings." --wait --timeout 2m --json--wait submits and waits as one operation, so no second command can race a replacement occupant into the gap. Things to know:
- Read the receipt before retrying. Prompt JSON adds
receipt.submission(submitted,not_submitted, orunknown),receipt.wait, and the exact pinnedreceipt.target. The receipt is present on success and inside the error envelope on failure. A timeout after delivery remains exit 1 with error codetimeout, plussubmission: "submitted"andwait: "timeout"; do not send the prompt again.unknownmeans a write or transport may have landed and is equally unsafe to retry automatically. - Refusals happen before any byte is written. Feature-disabled, unknown-host, missing-target, not-found, and ambiguous-target failures carry
submission: "not_submitted"andwait: "not_started"too, without inventing a pane identity. A blocked target getsagent_blocked; an unidentified or stale one getsagent_not_ready; a replaced one getsagent_replaced; and a dead pane, a pane in copy mode, or a session that no longer holds exactly one pane getsagent_pane_busy. Nothing is sent in any of them. - There is no implicit timeout.
--waitrequires--timeout, and so doesagent wait. - Settled means
idle,done, orblockedby default. Narrow it with repeated--until done, or widen it with--until working. - A prompt that goes nowhere is reported, not hidden. If the lifecycle does not move within 5 seconds of a prompt sent from idle or done, you get
agent_prompt_stalled. The bytes were written; the agent did not react. Read the screen before you send anything else. - Prompting an already-working agent claims nothing. Sidecar will not pretend to know which turn is which, and completion of the turn already in flight may satisfy your
--wait. Wait for it to settle first if you care.
To wait without prompting — for an agent somebody else started, or after send-keys:
sidecar agent wait "$target" --until done --timeout 5m --jsonThe wait stays pinned to the same session, pane, pane process, tmux server, and provider. If any of those change you get agent_replaced rather than a wait that a different process quietly satisfied.
5. Read before you send keys
When a wait comes back blocked, the agent is asking a question. Read the screen, decide, then answer. Sidecar does not auto-answer approvals, and neither should you without knowing what was asked.
sidecar agent read "$target" --source recent-unwrapped --lines 120| Source | Use it for |
visible | the current screen (default) |
recent | the screen plus recent scrollback |
recent-unwrapped | the same, with soft wraps joined — the one you want for logs and long answers |
detection | the exact slice the lifecycle detector read, when you want to argue with a status |
transcript | the provider's own conversation. Returns transcript_unavailable until an exact session binding exists; it is never guessed from the newest session in the same directory. |
Reads are passive. They never scroll, resize, or otherwise touch the agent's UI.
6. Answer with logical keys
sidecar agent send-keys "$target" down enterKeys are named, not typed: enter, esc, tab, space, backspace, delete, insert, the arrows, home, end, pageup, pagedown, f1–f12, ctrl+<letter>, ctrl+space, alt+<key>, shift+tab, shift+enter, shift+<arrow>, and any single character. The whole list is validated before any of it is written, so a typo sends nothing at all.
send-keys is for answering a UI. Prompt text goes through agent prompt — it is bracketed-paste aware and submits correctly; a string of characters through send-keys is not the same thing.
With two or more positional arguments the first is the target. With exactly one, the key goes to SIDECAR_SHELL.
Tell every agent something
sidecar agent broadcast "Code freeze on main until td-1a2b3c lands; hold pushes. Details: comms peek msg_01J9…" --jsonDefault recipients are the live agents in your project, minus you. --all reaches every registered project on this machine. --dry-run --json prints the plan and sends nothing.
Receipts, not acknowledgements: each row is submitted, skipped, or unknown. There is no --wait; use agent wait per target if you need them to settle. summary.shellsWithoutAgent counts the managed shells in scope that answered but had no identified provider — live shells with nothing running in them, not registry rows for directories that are gone.
Durable content belongs in comms. The broadcast carries a one-line summary plus the message id, so agents that were not live still have a place to read it. --host is not in this slice; --all means this machine.
Reading the output
Every verb takes --json. Success writes one object on stdout; failure writes {"error":{"code":...,"message":...,"target":{...}}} on stderr. Prompt adds its receipt to the success object or error object without changing those codes. Exit codes:
| Exit | Meaning |
| 0 | success |
| 1 | transport failure or timeout |
| 2 | usage error — your command line, not the agent |
| 3 | the target is not a registered Sidecar shell |
| 5 | feature disabled, or a semantic refusal such as agent_blocked |
The target in every result carries the pin: host, project, tmux session, pane id, pane pid, and tmux server pid. Two shells with the same display name on different hosts cannot collide.
Remote host panes
From a Sidecar-managed pane whose geometry lease is held by a connected viewer, sidecar open and sidecar layout are that viewer's screen — not a TUI that may not be running on the host. There is no sidecar open --host. Off-screen, or a disconnected or too-old lease holder, refuses (exit 4) rather than queue.
What this is not
Sidecar owns provider identity, readiness, and its refusal rules. It does not own raw terminal control. If you want to run a command in a pane and read its output, that is tmux's job — sidecar shell list --json gives you the session names. Do not reach for agent send-keys to drive a shell.
Sidecar also does not own the workflow. It gives you primitives; the plan, the task engine, the review policy, and the retry logic are yours.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

