New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

pi-tmux-task

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi-tmux-task

A minimal tmux-based task manager for agents, with skills and notifications only.

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
20
53.85%
Maintainers
1
Weekly downloads
 
Created
Source

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-tasks shows 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_SESSION for the current conversation;
    • polls tmux task state;
    • sends task event notifications;
    • registers /tmux-tasks.
  • 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.

Keywords

pi-package

FAQs

Package last updated on 21 Jul 2026

Related posts