npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-tmux-task

v0.1.1

Published

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

Readme

pi-tmux-task

Pi extension package for Pi-session-scoped background task management with tmux.

It does not implement a scheduler or replace tmux. It gives Pi a simple convention:

  • one Pi session = one tmux task session;
  • one logical task = one named tmux window / task slot;
  • long-running work is started with helper scripts and observed by the Pi extension.

What you get

  • Agent skill: tmux-task-manager
    • Guides the agent to use background tasks for dev servers, watch commands, long tests, scans, reminders, recurring checks, and log tails.
  • Slash command: /tmux-tasks
    • Opens a task panel in TUI mode, or prints a text summary without TUI.
  • Bash integration:
    • Every Pi bash call receives PI_TMUX_SESSION=<current-session-task-session>.
  • Helper CLIs:
    • pi-tmux-session-name
    • pi-tmux-task-run
  • Task notifications:
    • Task exit, terminal bell, input wait, and unexpected disappearance can notify the active Pi conversation.

Session naming

The tmux session name is:

pi-<project-slug>-<session-id>

Example:

pi-pi-tmux-task-019e4988-b257-7be4-a6f7-b945f8fb7d36

project-slug comes from the current directory basename. The full Pi session id scopes tasks to one Pi conversation.

Because the slug uses only the basename, different checkout paths with the same directory name share the same project prefix. Startup cleanup and notices are best-effort by project slug, not strict absolute-path ownership.

Installation

Install the package with Pi:

pi install npm:pi-tmux-task

To pin a specific version:

pi install npm:[email protected]

For project-local installation, write the package entry to .pi/settings.json:

pi install -l npm:pi-tmux-task

You can also try the package for one Pi run without saving it to settings:

pi -e npm:pi-tmux-task

This package requires tmux to be available on PATH. After installation, Pi loads the bundled extension and the tmux-task-manager skill from the package.

Usage

Ask Pi to run long-lived work in the background, for example:

Start the dev server as a background task.

The bundled skill guides the agent to use a Pi-session-scoped tmux session for dev servers, watch commands, long tests, scans, reminders, recurring checks, and log tails.

Start or rerun a background task manually:

pi-tmux-task-run api-server -- 'npm run dev'

If running from this repository without installing the package bin links:

./skills/tmux-task-manager/tmux-task-run.sh api-server -- 'npm run dev'

When running outside Pi, compute and export the session first:

export PI_TMUX_SESSION="$(pi-tmux-session-name "$PWD" '<pi-session-id>')"
pi-tmux-task-run api-server -- 'npm run dev'

Inside Pi, the extension injects PI_TMUX_SESSION into bash tool calls, so helper commands automatically target the current conversation's task session.

Inspect tasks in Pi:

/tmux-tasks

Clean dead/exited task windows without touching running tasks:

/tmux-tasks prune-dead

Kill the entire current Pi task session after confirmation:

/tmux-tasks kill-all

Inspect tmux directly:

tmux list-windows -t "$PI_TMUX_SESSION" -F '#{window_id}\t#{window_name}'
tmux capture-pane -pt @12 -S -80

Cleanup behavior

Pi shutdown does not kill active tmux tasks.

On the next Pi startup, the extension scans same-project historical tmux sessions:

  • sessions with no active tasks are cleaned automatically;
  • sessions with active tasks are left running and reported to the user with a UI notice;
  • these startup notices are not sent to the agent conversation and do not trigger an agent turn.

Manual cleanup remains available through /tmux-tasks prune-dead, /tmux-tasks kill-all, or direct tmux commands.

Documentation

License

MIT. See LICENSE.

Development

Install dependencies:

npm install

Run checks:

npm run check

There is no separate build step; Pi loads the TypeScript extension source directly.