omp packages

@ssh352/tmux-attention1.1.0

Find Pi and Codex panes waiting for attention in tmux.

ssh352 Published 21 hours ago ~201 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

tmux-attention

Find Pi and Codex panes that need attention, including panes in other tmux sessions. A ? badge marks a question or permission request. A ✓ badge marks a completed turn.

Click a badge, or press the tmux prefix followed by a to open the fzf picker. If a already has a binding, the extension tries j. The picker shows waiting panes first. Selecting a finished pane clears its badge.

Install

Install Node.js 22.19 or later, tmux with popup support, and fzf. Install the package in your personal Pi configuration and reload Pi.

pi install npm:@ssh352/tmux-attention

The extension activates in interactive Pi sessions inside tmux. If you used the old manual installation, move its directory or symlink out of ~/.pi/agent/extensions before reloading Pi so the extension loads once.

Enable Codex

Run the bundled installer from Pi’s personal npm installation.

~/.pi/agent/npm/node_modules/.bin/tmux-attention codex install

Open /hooks in Codex and review the eight command hooks. The installer uses $CODEX_HOME/hooks.json, which defaults to ~/.codex/hooks.json. It replaces its own registration in place and preserves unrelated handlers. Running it again with the same package path makes no changes.

Upgrading from a pre-1.0.0 manual install? This version no longer recognises the old Python hooks. Delete the codex_hook.py command in /hooks (it is preserved, not migrated, so both hooks would otherwise run), and unbind the key that still runs picker.py — check both tmux list-keys -T prefix a and -T prefix j, because the old install used j when a was taken. The picker keeps the first key it bound, so the prefix a above can be prefix j for you. Its old badge click becomes the fallback branch of the new one, so picker.py text may remain there harmlessly. If prefix + a and prefix + j are both already bound, the picker is not bound at all and marking stays inactive until one of them is free.

Codex runs the Node.js hook directly. Pi can be closed. The default installation registers the following command.

exec node "$HOME/.pi/agent/npm/node_modules/@ssh352/tmux-attention/dist/cli.js" codex hook

Reinstalling from a different path rewrites the hook command, which requires a new approval. Package updates at the same path keep the same command and hook hashes.

Develop

npm ci
npm test
npm pack

The build compiles the TypeScript extension, picker, and Codex CLI into dist/. The tests use a disposable tmux server and temporary hook configuration.