Parallel Task Tmux logo

Parallel Task Tmux

Community
am-will
parallel-task-tmux

Only to be triggered by explicit /parallel-task-tmux commands. Dependency-aware parallel plan execution that launches each unblocked Codex worker in a live tmux pane, keeps pane output visible in real time, and shrinks the layout by closing panes as tasks complete.

Overview

Publisheram-will
Repositoryswarms
Skill nameparallel-task-tmux
Stars
232
Forks
14
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by am-will on GitHub. Read the source before you install it.

Installation

Install the Parallel Task Tmux AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/am-will/swarms/tree/main/skills/parallel-task-tmux
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/am-will/swarms.git /tmp/swarms
mkdir -p .claude/skills
cp -r /tmp/swarms/skills/parallel-task-tmux .claude/skills/parallel-task-tmux
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Parallel Task Tmux in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Parallel Task Tmux on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Parallel Task Tmux is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Parallel Task Executor (tmux Live Workers)

Run dependency-ordered plan execution like parallel-task, but route each worker through codex exec inside tmux panes so progress is visible in real time.

Use this skill when you want:

  • Live visibility into each running worker
  • A tiled worker view that expands as tasks launch
  • Automatic pane cleanup that shrinks the layout as tasks finish

Execution Model

  1. Parse the plan and compute unblocked tasks by depends_on.
  2. Build one worker prompt file per task.
  3. Launch one tmux pane per task via scripts/tmux_spawn_worker.sh.
  4. Monitor status/logs and reap completed panes via scripts/tmux_reap_completed.sh.
  5. Validate completed tasks before advancing to the next dependency wave.
  6. Repeat until all requested tasks are complete.

Preflight

Run these checks before launching workers:

bash
command -v tmux >/dev/null
command -v codex >/dev/null

Resolve the skill directory once so helper script paths are stable:

bash
SKILL_ROOT="$(fd -td -p 'parallel-task-tmux' "$PWD" "$HOME/.codex/skills" "$HOME/.agents/skills" 2>/dev/null | head -n 1)"

Fail fast if SKILL_ROOT is empty.

Initialize one run directory per execution:

bash
PLAN_FILE="./plan.md"
PLAN_BASE="$(basename "$PLAN_FILE" .md)"
RUN_ID="$(date +%Y%m%d-%H%M%S)"
SESSION_NAME="swarms-${PLAN_BASE}-${RUN_ID}"
RUN_ROOT=".swarms/tmux/${SESSION_NAME}"
mkdir -p "$RUN_ROOT/prompts" "$RUN_ROOT/logs"
: > "$RUN_ROOT/status.tsv"
: > "$RUN_ROOT/task_map.tsv"
: > "$RUN_ROOT/reaped.tsv"

Plan Parsing and Scheduling

Mirror parallel-task behavior:

  • Parse task sections (for example ### T1:).
  • Extract task id, title, depends_on, location, description, acceptance criteria, validation.
  • Filter to requested subset and required dependencies if the user passes a subset.
  • Launch only tasks whose dependencies are complete.

Worker Prompt Contract

Create one prompt file per task at:

  • $RUN_ROOT/prompts/<TASK_ID>.md

Use the same task context and completion requirements as parallel-task:

  • Read the working plan and relevant files before coding.
  • Default to TDD RED phase first using a tdd_test_writer subagent, or explicitly record reason_not_testable with an alternative verification contract.
  • Treat RED-phase tests (or approved non-testable verification plan) as the implementation contract.
  • Implement acceptance criteria.
  • Keep edits atomic.
  • Run the exact new/updated test commands until GREEN, or run the documented alternative verification and capture evidence.
  • Commit only task-scoped files.
  • Update the plan status/log/files after the commit.
  • Return modified files, criteria coverage, and RED -> GREEN or non-testable verification evidence.

Launching tmux Workers

When running inside tmux, prefer in-place splits so the user can keep chatting in the current Codex pane while workers appear beside it.

In-place mode (recommended inside tmux):

bash
"$SKILL_ROOT/scripts/tmux_spawn_worker.sh" \
  --split-current \
  --workspace "$PWD" \
  --task-id "$TASK_ID" \
  --prompt-file "$RUN_ROOT/prompts/${TASK_ID}.md" \
  --log-file "$RUN_ROOT/logs/${TASK_ID}.log" \
  --status-file "$RUN_ROOT/status.tsv" \
  --map-file "$RUN_ROOT/task_map.tsv"

Detached session mode (for non-tmux shells):

bash
"$SKILL_ROOT/scripts/tmux_spawn_worker.sh" \
  --session "$SESSION_NAME" \
  --workspace "$PWD" \
  --task-id "$TASK_ID" \
  --prompt-file "$RUN_ROOT/prompts/${TASK_ID}.md" \
  --log-file "$RUN_ROOT/logs/${TASK_ID}.log" \
  --status-file "$RUN_ROOT/status.tsv" \
  --map-file "$RUN_ROOT/task_map.tsv"

Behavior:

  • In split-current mode, launches workers as new panes in the current tmux window.
  • In detached mode, creates tmux session/window if missing.
  • Re-tiles panes after each launch so the grid expands live.
  • Streams codex exec output live in each pane while also writing logs to logs/<TASK_ID>.log.
  • Tracks pane ids in task_map.tsv for deterministic cleanup.

In detached mode, if not already attached, print:

bash
tmux attach -t "$SESSION_NAME"

Monitoring and Pane Reaping

During each wave, monitor active panes:

bash
tmux list-panes -t "${SESSION_NAME}:workers" -F '#{pane_id} #{pane_current_command} #{pane_dead}'

Collect completed workers and close their panes:

bash
"$SKILL_ROOT/scripts/tmux_reap_completed.sh" \
  --session "$SESSION_NAME" \
  --status-file "$RUN_ROOT/status.tsv" \
  --map-file "$RUN_ROOT/task_map.tsv" \
  --seen-file "$RUN_ROOT/reaped.tsv"

This is what gives the expand/shrink behavior:

  • Launching tasks adds panes and expands the tile grid.
  • Reaping completed tasks kills panes and shrinks the grid.

Inspect logs before accepting a task:

bash
tail -n 80 "$RUN_ROOT/logs/${TASK_ID}.log"

Validation and Wave Control

For each completed task:

  1. Verify files changed as expected.
  2. Verify plan status/log/files fields were updated.
  3. Verify RED -> GREEN test evidence or explicit reason_not_testable plus concrete alternative verification output.
  4. Mark task complete in orchestrator state only after verification passes.
  5. Retry failed tasks with corrected prompts when needed.

Launch the next wave only when all tasks in the current wave are verified complete.

Finalization

After all tasks are complete:

  1. Run final validation commands from the plan.
  2. Confirm no pending tasks remain.
  3. Provide an execution summary with completed, failed, retried tasks, modified files, and verification evidence.

Leave the tmux session alive by default for auditability. Only kill it if the user asks:

bash
tmux kill-session -t "$SESSION_NAME"

Error Handling

  • Missing task ids in subset: list valid task ids from the parsed plan.
  • tmux unavailable: stop and instruct user to install tmux.
  • Worker exits non-zero: inspect log, repair prompt/context, relaunch task.
  • No status updates: verify pane is still running; if dead without status line, relaunch.
  • Parse failure: report parser assumptions and request corrected plan format.

Example Usage

text
/parallel-task-tmux plan.md
/parallel-task-tmux ./plans/auth-plan.md T1 T2 T4
/parallel-task-tmux user-profile-plan.md --tasks T3 T7

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Parallel Task Tmux AI skill do?

Only to be triggered by explicit /parallel-task-tmux commands. Dependency-aware parallel plan execution that launches each unblocked Codex worker in a live tmux pane, keeps pane output visible in real time, and shrinks the layout by closing panes as tasks complete.

Why use Parallel Task Tmux on TypingMind?

Because you install it once and use it with any model. Parallel Task Tmux is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Parallel Task Tmux in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/am-will/swarms/tree/main/skills/parallel-task-tmux. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Parallel Task Tmux?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Parallel Task Tmux?

As many as you like. As long as a model supports skills, you can use Parallel Task Tmux with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Parallel Task Tmux AI skill free?

It is published on GitHub by am-will. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇