pi-tmux-task
A minimal tmux-based task manager for agents, with skills and notifications only.
Package details
Install pi-tmux-task from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-tmux-task- Package
pi-tmux-task- Version
0.2.1- Published
- Jul 21, 2026
- Downloads
- 283/mo · 18/wk
- Author
- ttttmr
- License
- MIT
- Types
- extension, skill
- Size
- 95.1 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
],
"skills": [
"./skills"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-tmux-task
pi-tmux-task is a Pi extension package for managing background tasks in the current Pi conversation.
It is useful when Pi needs to run work that should continue in the background, such as:
- development servers;
- watch commands;
- long-running tests, builds, or scans;
- log tails;
- delayed follow-up checks;
- parallel background subtasks.
The package uses tmux underneath, but users do not need to manage tmux sessions directly. In normal use, just ask Pi to run something as a background task.
Features
- Background task convention: one Pi conversation maps to one tmux task session; one logical task maps to one tmux window.
- Task notifications: task exit, terminal bell, input wait, or unexpected disappearance can notify the active Pi conversation.
- Task inspection and management:
/tmux-tasksshows tasks, previews output, prunes exited task windows, and can kill tasks. - Conversation isolation: different Pi conversations use different task sessions.
- Automatic cleanup: inactive task sessions are cleaned up when safe; active tasks are preserved.
Included resources
Pi extension:
src/index.ts- injects
PI_TMUX_SESSIONfor the current conversation; - polls tmux task state;
- sends task event notifications;
- registers
/tmux-tasks.
- injects
Skill:
skills/tmux-task-manager/SKILL.md- teaches the agent when to use background tasks;
- defines task naming, inspection, notification handling, and cleanup rules.
Skill helper script:
skills/tmux-task-manager/tmux-task-run.sh- bundled with the skill;
- called by the agent via the skill-relative path;
- not intended as a user-facing global command.
Slash command:
/tmux-tasks- user-facing command for viewing and managing background tasks in the current Pi conversation.
Usage
After installation, ask Pi for background work in natural language:
Start the dev server in the background.
Run the long test suite and tell me when it finishes.
Watch the worker logs and notify me if there is an error.
View current background tasks:
/tmux-tasks
Prune exited task windows:
/tmux-tasks prune-dead
Kill all background tasks for the current conversation:
/tmux-tasks kill-all
Installation
pi install npm:pi-tmux-task
Pin a version:
pi install npm:pi-tmux-task@0.2.0
Install locally for a project:
pi install -l npm:pi-tmux-task
Try it for one Pi run:
pi -e npm:pi-tmux-task
tmux must be available on the system PATH.
Documentation
Development
npm install
npm run check
Pi loads the TypeScript extension source directly; there is no separate build step.
License
MIT. See LICENSE.