# Tmux pi

> Tmux pi is an open-source agent skill for developer tools. Delegates work to supervised Pi agents running in tmux sessions and worktrees. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/richardgill/nix/tree/main/built/ai-agents/pi/skills/tmux-pi
- **Repository:** https://github.com/richardgill/nix
- **GitHub stars:** 39
- **License:** MIT
- **Skill name:** tmux-pi
- **Collection:** https://github.com/richardgill/nix
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/pi/skills/tmux-pi)
- [License: MIT](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/pi/skills/tmux-pi)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Mux dispatch](https://ai-powered.com/skills/mux-dispatch): Mux dispatch is an open-source agent skill for developer tools.
- [Worktrees](https://ai-powered.com/skills/worktrees-richardgill-4): Worktrees is an open-source agent skill for developer tools.
- [Dmux workflows](https://ai-powered.com/skills/dmux-workflows-fmarzochi): Dmux workflows is an open-source agent skill for developer tools.
- [Dmux workflows](https://ai-powered.com/skills/dmux-workflows): Dmux workflows is an open-source agent skill for developer tools.
- [Cmux dispatch](https://ai-powered.com/skills/cmux-dispatch): Cmux dispatch is an open-source agent skill for developer tools.
- [Delegation protocol](https://ai-powered.com/skills/delegation-protocol): Delegation protocol is an open-source agent skill for developer tools.
- [Shiplog waves](https://ai-powered.com/skills/shiplog-waves): Shiplog waves is an open-source agent skill for developer tools.
- [Vibe workstream orchestration](https://ai-powered.com/skills/vibe-workstream-orchestration): Vibe workstream orchestration is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/tmux-pi
