Rex
Superlogical’s terminal multiplexer and native app. PiG reports program status (OSC 7501), draws Kitty images and hyperlinks, and ships an optional pig-rex Piglet for session context and the Rex skill.
What works and what you need
Needs: Nothing extra (optional pig-rex Piglet). PiG already reports program status (OSC 7501) so Rex tabs and the session picker show working, blocked, done and error states, and enables hyperlinks and Kitty graphics when TERM_PROGRAM=rex. Program resume (OSC 7577) lands in 0.8.1. Rex’s built-in agent skill installs to ~/.agents/skills/rex via rex skill setup --agent pi, which PiG reads. An optional Go Package and Piglet (pig-rex, Pigpen PR #88) injects session, tab and pane context at startup via rex whoami --autostart=false --json without blocking start; it is not yet published on npm and PiG has not yet been recorded end-to-end inside a live Rex pane for this page.
Setup
Plain PiG inside Rex (status, images, and Rex’s agent skill)
Connection: OSC 7501 program status and ~/.agents/skills/rex.
- Install Rex and PiG.$
curl -fsSL https://pi-in-go.dev/install.sh | sh - Install Rex’s agent skill into ~/.agents/skills/rex (the shared directory PiG reads).$
rex skill setup --agent pi - Start pig inside a Rex terminal pane. Rex tracks its status via OSC 7501 and renders hyperlinks and Kitty images.$
pig
Optional pig-rex Piglet (session context and skill, in Pigpen PR #88)
Connection: PiG piglet (Go extension + skill).
- Rex’s session hook is not supported for Pi or PiG. The pig-rex Piglet (Pigpen PR #88) adds an original Go extension that queries rex whoami --autostart=false --json in the background on session start and bundles the pigpen-rex skill.
No run record yet. This setup comes from the package documentation and was not run for this page.
Sources and project
- www.superlogical.com/rex/docs
- www.superlogical.com/rex/docs/automate/agent-skill
- www.superlogical.com/rex/docs/build/program-status
- www.superlogical.com/rex/docs/build/program-resume
- github.com/MichaelKinsy/pigpen/pull/88
The name and logo belong to Rex’s owners. PiG is independent of Rex; no endorsement is implied.