Skip to content
Skill

Tmux pi

Delegates work to supervised Pi agents running in tmux sessions and worktrees

Tmux pi is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
39
Last commit
License
MIT
Listing updated

Similar skills

About Tmux pi

This skill lets a Pi agent hand a task to another Pi agent in a tmux session, either in the current directory, in another existing repo or worktree, or in a freshly created git worktree branched from local main. Launches are done through the tmux-pi command, which takes a prompt file, a task slug and flags controlling callbacks, nested delegation, fast mode and model choice. The parent agent gets the child's session ID and tmux window, then continues without blocking.

For supervised runs, the pi-ipc extension notifies the parent when the child settles, and the parent can read the embedded status, inspect session files with pi-jq, or send follow-up instructions to the child by session ID. The skill also covers fire-and-forget launches with no callback, and a mode that stops the child from delegating further. It defines short trigger words such as thread, wt, FAF and a fire emoji.

Using it requires the tmux-pi, pi-ipc and pi-jq tools from the author's setup, with a running tmux server and Pi installed. The skill is a single SKILL.md file with no bundled scripts.

When your agent uses it

Delegate and oversee work in tmux-hosted Pi agents. Triggers: "🧵", "thread", "delegate", "orchestrate", "oversee", "worktree", "wt", "spawn", "FAF", "🔥". Use for launching, monitoring, following up with, or coordinating delegated Pi work.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (7 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/tmux-pi to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tmux-pi &&
cp -R "$tmp/built/ai-agents/pi/skills/tmux-pi" ~/.claude/skills/tmux-pi &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/tmux-pi inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/tmux-pi to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tmux-pi &&
cp -R "$tmp/built/ai-agents/pi/skills/tmux-pi" ~/.agents/skills/tmux-pi &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/tmux-pi inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/tmux-pi to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tmux-pi &&
cp -R "$tmp/built/ai-agents/pi/skills/tmux-pi" ~/.cursor/skills/tmux-pi &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/tmux-pi inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/richardgill/nix.git --path built/ai-agents/pi/skills/tmux-pi

Or copy the folder to ~/.gemini/skills/tmux-pi yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/tmux-pi:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tmux-pi &&
cp -R "$tmp/built/ai-agents/pi/skills/tmux-pi" ~/.copilot/skills/tmux-pi &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/tmux-pi inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/richardgill/nix.git

Then copy nix/built/ai-agents/pi/skills/tmux-pi into your agent's skills folder as tmux-pi. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Local and worktree delegation
Launches a child Pi in the current session, another existing repo, or a new worktree.
Supervised callbacks
Notifies the parent when a child settles so its result can be reviewed.
Fire-and-forget launches
Starts a child with no callback for work the parent will not track.
Nested delegation control
Can block a child from delegating further while still allowing fire-and-forget work.
Follow-up messaging
Sends further instructions to a running child by its Pi session ID.
Session inspection
Reads child session files with pi-jq when the embedded status is not enough.

Good for

  • Hand a research task to a separate Pi agent while continuing other work
  • Start a feature in a new git worktree and let the child report back
  • Send follow-up instructions to a delegated agent that has not finished
  • Launch a background task with no callback and check nothing afterward
  • Run a delegated agent in another existing repository's tmux session

Tmux pi FAQ

What does the skill need to run?

It calls the tmux-pi launcher, the pi-ipc extension and the pi-jq tool, and it runs inside tmux with Pi.

How does a worktree delegation pick its starting point?

It pulls local main first and branches from its updated HEAD unless a source ref is given.

What do FAF and fire emoji mean?

They request fire-and-forget delegation, launching with no callback and no supervision.

Can a delegated agent start its own delegates?

By default yes, but --block-nested stops it from supervised delegation; fire-and-forget remains allowed.

How do I install Tmux pi in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/tmux-pi to use it in all your projects, or to .claude/skills/tmux-pi in one project.

Does Tmux pi run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Tmux pi?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Tmux pi?

The closest alternatives to Tmux pi are Mux dispatch, Worktrees, Dmux workflows, Dmux workflows and Cmux dispatch.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from richardgill/nix

  1. Lets your agent manage Todoist tasks through the todoist command-line tool

    • Open source
    • 39 GitHub stars
    • Productivity
  2. Creates git worktrees in tmux sessions and starts an AI agent on a prompt

    • Open source
    • 39 GitHub stars
    • Developer tools
  3. Plans a clean-room rewrite of existing behavior, from requirements through phased

    • Open source
    • 39 GitHub stars
    • Developer tools
  4. Lets your agent run web searches, fetch page content and quick answers via Kagi CLI

    • Open source
    • 39 GitHub stars
    • Web search and scraping
  5. Lets an agent handle Gmail tasks through the gws command-line tool

    • Open source
    • 39 GitHub stars
    • Communication
  6. Lets your agent work with Google Calendar through the gws command-line tool

    • Open source
    • 39 GitHub stars
    • Productivity