Product Introduction
- Definition: Stuck Hunt is an N-up terminal session viewer and interactive Duck Hunt-style cleanup game built specifically for the Rex terminal multiplexer environment (Superlogical Rex). Categorized as a Terminal User Interface (TUI) utility and developer productivity tool, it runs natively inside Rex with zero external runtime dependencies.
- Core Value Proposition: Stuck Hunt exists to solve session fatigue and terminal clutter by gamifying the process of monitoring, browsing, and terminating stale or abandoned background sessions. By integrating classic NES-style retro mechanics with real-time terminal process introspection, it transforms routine system administration into an engaging, low-latency visual workflow.
Main Features
- N-Up Live Terminal Grid: Renders dynamic grid layouts (
1Ć1,2Ć2,3Ć3,4Ć4) featuring liverex capturepreviews. Each grid tile exposes critical session metadata including UUIDv7-decoded session age, active foreground processes, and current working directories (cwd). - Full-Bleed [1Ć1] Zoom and Scrollback: Allows users to expand any target session full-screen using the
kkey. This view provides complete scrollback navigation viaā/āinputs, horizontal session flipping (ā/ā), and instant toggling back to the multi-pane grid layout. - Stale/Stuck Heuristics & Safety Controls: Employs intelligent heuristics to automatically flag exited processes, blank shells, idle terminal sessions, and auto-generated Rex naming conventions (e.g.,
arid-mesa). It includes robust safety protocols such as a built-in--dry-runpractice mode, automatic shielding of the activeREX_SESSION, double-tap confirmation requirements for active foreground tasks (nvim,claude), and manual session locking.
Problems Solved
- Pain Point: Terminal session bloat and process ceiling exhaustion. Developers frequently hit maximum session limits (such as Rex's 64-session ceiling) and waste valuable time navigating manual list views to locate and prune inactive or zombie terminals.
- Target Audience: Power users, DevOps engineers, systems administrators, and software developers who rely heavily on terminal multiplexers, tiling window managers, and command-line development environments.
- Use Cases: Rapidly cleaning up abandoned development servers, identifying rogue background processes consuming system resources, managing concurrent terminal workflows without leaving the keyboard, and auditing active multiplexer states in high-density environments.
Unique Advantages
- Strengths & Limitations (Pros & Cons):
- Pros: Zero external runtime dependencies when installed via Homebrew; highly responsive TUI architecture; delightful 24-bit Unicode half-block pixel art and synthesized 8-bit WAV sound effects; built-in safety mechanisms prevent accidental destruction of active work.
- Cons: Strictly bound to the Rex terminal ecosystem (not compatible with tmux, Zellij, or GNU Screen without modification); requires Bun >= 1.0 if building from source; macOS-centric audio output dependency (
afplay).
- Key Alternatives & Differentiation:
- Manual CLI Multiplexer Commands (
rex list/rex kill): Traditional command-line management requires tedious context switching, reading plaintext UUIDs, and guessing session states. Stuck Hunt replaces this with visual previews and gamified interaction. - Standard TUI Process Managers (htop /btop): While standard system monitors display raw OS processes, they lack awareness of Rex-specific multiplexer layers, session naming conventions, interactive scrollback previews, and application-specific session grouping.
- Manual CLI Multiplexer Commands (
Frequently Asked Questions (FAQ)
- Question: How do I install Stuck Hunt for the Rex terminal?
Answer: You can install Stuck Hunt quickly on macOS using Homebrew via
brew install dshaw/tap/stuckhunt, or build it from source using Bun. To integrate it as a floating overlay inside Rex, add the provideddofileregistration script to your~/.config/rex/init.luaconfiguration file. - Question: Will Stuck Hunt accidentally delete my active working session?
Answer: No. Stuck Hunt automatically shields your current
REX_SESSION. Additionally, it includes a safe--dry-runpractice mode (-d), requires double-tap confirmations for sessions running active foreground processes like Neovim or Claude, and allows you to manually lock critical sessions using the shield command (s). - Question: Can I run Stuck Hunt without connecting to a live Rex environment?
Answer: Yes. You can evaluate the interface and gameplay mechanics safely by running
stuckhunt --demo, which launches the utility using synthetic sample sessions without interacting with your live Rex daemon. - Question: How do I control audio effects and grid density in Stuck Hunt?
Answer: You can mute or unmute the 8-bit synthesized sound effects instantly by pressing
m(or launching with--mute), and cycle through different N-up viewing densities (1Ć1up to4Ć4) by pressingg.
