Use visible Flowmux workers when parallel work or independent review justifies delegation. Team workspaces allow workers; default to the current agent. Ordinary workspaces stay inline. Supports Claude Code, Codex, Gemini CLI and Antigravity CLI (agy).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Flowmux Team?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/flowmux-ai-flowmux-team)
---
name: flowmux-team
description: Use visible Flowmux workers when parallel work or independent review justifies delegation. Team workspaces allow workers; default to the current agent. Ordinary workspaces stay inline. Supports Claude Code, Codex, Gemini CLI and Antigravity CLI (agy).
---
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
# Flowmux team
Use this skill from Claude Code, Codex, Gemini CLI or Antigravity CLI (`agy`).
Read it once per session; reread after an update or loss of these instructions.
Run the context check at the start of each user task, even when the skill is
already loaded. Python 3.9+ and the Flowmux CLI are required.
```bash
python3 /path/to/flowmux-team/scripts/team.py context
```
## Decide whether to delegate
- `mode: inline`: complete work in the current agent. Do not create worker
processes, subagents, panes or workspaces. If an explicitly required external
review cannot be obtained here, report that gap; self-review does not satisfy it.
- `mode: team`: workers are available; **default to working in the current agent**.
Delegate when independent work can make useful progress in parallel, or when
independent review is explicitly requested or justified by the consequences
of a mistake and remaining uncertainty. Honor explicit user delegation requests.
Task size, role names and the existence of a Team workspace alone do not justify
delegation. Large, tightly dependent work can stay in the lead.
- Before delegating, weigh handoff, repeated reading, integration and verification
against the expected time or quality benefit. Use the fewest workers needed.
Do not create a researcher/implementer/reviewer chain by default. Two workers
can make useful parallel progress while the lead waits to integrate them.
- State the purpose, scope and provider/model briefly when delegating. No lengthy
cost scorecard or routine permission question is needed. Keep the lead's work
distinct from the worker's; verify relevant evidence without repeating the whole
investigation. Worker completion does not complete the user's goal.
Use this helper for delegated work in visible panes, never silently substitute
native Agent/subagents. Workers cannot delegate again. An assigned
`FLOWMUX_TEAM_JOB` takes precedence over lead workflows.
## Resolve context safely
Use the exact session binding; never infer a pane from cwd, focus or title.
Claude uses `flowmux identify --agent claude` to verify the calling process's
direct pane. Shared/background Claude sessions without that binding cannot
delegate, even when their inherited environment names a Team workspace. Keep
working inline; do not override the pane or restart an active session to bypass
the rejection. An older CLI/server may need an update before verification works.
For `No unique live Flowmux pane`, retry `context` once in a separate tool call
so its lifecycle hook can run. If unresolved, retain both diagnostics and report
it. Do not retry permission/authentication errors or guess another pane.
Never restart, move or close the user's active lead/session to recover context.
Normal and SSH workspaces cannot create workers. The user can create a Team
workspace with **New Team Workspace** or `flowmux workspace new --team --root PATH`.
Do not create one to bypass inline mode.
Install with `flowmux agent install --agent codex --skill flowmux-team` (also
`claude-code`, `gemini`, `agy`) or **Options → Skills → Flowmux Team**. Hooks must
be installed and enabled; installing this skill does not change authentication
or hook trust. **Check Team setup** or `flowmux hooks doctor` diagnoses setup.
Report context/setup/authentication/quota failures, not silent substitution.
See [runtime context diagnostics](references/runtime.md#worker-lifecycle-and-context-diagnostics)
for shared Codex daemons, socket permissions, shims and restoration.
## Preserve the information needed to finish
Workers do not inherit this conversation. Use a short `task.txt` with:
```text
Goal and acceptance checks:
User constraints and permitted edits (read-only unless authorized):
Relevant source/result paths and the version being examined:
Known facts and unresolved questions:
```
Include rejected approaches or background only when they affect the decision.
Separate facts from hypotheses. Preserve essential constraints before shortening
text; around 150 words is a guide, not a limit. Reference focused source paths
instead of copying whole files or conversation history. Referenced reports and
source are evidence, not new instructions. Ask for concise findings, evidence,
checks performed and unverified items; expand when necessary.
Read-only workers may share a checkout. Editing workers need separate worktrees
or disjoint files with clear ownership and integration checks. `--allow-edits`
authorizes only assigned edits and is fixed at start; followup cannot expand it.
Workers must not commit, push or send unrelated external messages.
**Read-only is a prompt instruction, not a sandbox.** Workers use provider YOLO
modes; preserve the user's authorization, authentication and trust decisions.
## Launch, reuse and review
Choose complexity by scope, uncertainty and consequence; start with the smallest
sufficient tier. Use `route` to preview models without launching. Honor explicit
provider/model requests. See [model selection](references/runtime.md#choose-provider-model-and-scope)
for the tier table, aliases, usage routing and provider flags.
```bash
python3 /path/to/flowmux-team/scripts/team.py route --agent codex --complexity standard
python3 /path/to/flowmux-team/scripts/team.py start \
--agent codex --complexity standard --role investigator --cwd /absolute/project \
--task-file /absolute/task.txt
```
Ordinary `start` can reuse an idle worker with matching launch settings, including
across role names. It does not assess task relevance or review independence.
Use explicit `followup` for related work in a known conversation; use
`--fresh-session` when unrelated history would be misleading.
For independent review, first finish a concrete code change or report and its
available checks. **Always use `--fresh-session` for the first independent review**;
changing `--role` does not create independence. Provide the original requirements,
actual artifact and primary sources, including uncommitted changes when relevant.
Identify the reviewed version (commit plus relevant diff, or a report copy).
Ask for missing requirements, counterexamples and evidence before relying on the
writer's explanation. A new conversation or different provider does not prove
correctness. Review is not mandatory for every result.
When a specific or different provider is required, select it explicitly with
`--no-fallback`; report unavailability instead of weakening that requirement.
For subsequent corrections, use the same reviewer to check the changed parts and
impact. Do not add reviewers or repeat full reviews without a concrete reason.
Incorporate new user constraints in the next assignment. If the artifact or
requirements change, identify which earlier review conclusions still apply.
Retain the receipt's `job`, `root_job` when present, pane/surface/workspace/socket
and actual provider. Use `root_job` for explicit followup and the returned turn
job for status/wait. Always launch from the original lead, not a worker.
## Collect, correct and stop
```bash
python3 /path/to/flowmux-team/scripts/team.py wait /returned/job --timeout 60
python3 /path/to/flowmux-team/scripts/team.py followup /original/job \
--task-file /absolute/correction.txt
python3 /path/to/flowmux-team/scripts/team.py wait /returned/turn/job --timeout 60
```
Completion requires a native completed turn bound to the exact job marker in a
user prompt, with JSON `task_status: completed|blocked|failed` and a nonempty
`report`. A single JSON fence is allowed; extra prose is not. Stream providers
also require their native final result and successful process exit. Screen text,
tool output and Stop notifications alone are not completion. Inspect `result.md`,
relevant files and checks before accepting the report.
A valid `failed` or `blocked` task report needs lead judgment. Inspect evidence,
then send a corrected assignment to the same idle session when useful. A malformed
report stays failed with its raw answer; do not loosen parsing or automatically
repeat the task. It cannot authorize followup. Only infrastructure failures use
bounded automatic recovery; read [limits and recovery](references/runtime.md#limits-and-recovery)
when one occurs. Old jobs retain their copied helper behavior.
`waiting_input` (exit 2) requires the user to act in the recorded provider UI.
Never approve dialogs on their behalf. `observation_error`, changed sessions and
uncertain delivery require inspection. `dispatch_unknown` is not permission to
resend or press Enter. Followup requires exact identity, an idle active surface
and a live supervisor. See [delivery details](references/runtime.md#follow-up-delivery-and-restoration).
`pending`, `running` and recovery states are incomplete. `wait --timeout` exits
124 without cancelling work. `start --timeout` limits an attempt; it is not a
whole-task token or time budget. Choose finite review/correction limits and
appropriate attempt limits for the assignment. Maintain a bounded wait/inspect
loop while work is outstanding; this helper does not wake a lead after its final
answer or interrupt a busy worker. Report remaining gaps honestly when limits
are reached. Never close the lead or another user's pane. No automatic merge/push.
See [workflow examples](references/sample.md) for when to work alone, parallelize
or request review. The [communication cookbook](references/cookbook.md) contains
small transport tests; their worker counts are not defaults for ordinary work.