rpai-0.1.7 is not a library.
rpai
A tool for managing multiple AI coding agent sessions (opencode, claude, codex, cursor) in tmux.
Features
- Scan for running AI agent processes and ability to jump around.
- Running/Waiting indicator - shows if agent is active or stale (▶/⏸).
- Multiple color themes (gruvbox, nord, catppuccin, dracula, tokyo, solarized).
- Recommended workflow is to map to a tmux popup window.
Installation
Option 1: Install from crates.io (Recommended)
Option 2: Install from source (Latest dev version)
This builds and installs rpai in one step.
Tmux Setup
Add this line to your ~/.tmux.conf (or alternative mapping).
Then reload tmux:
Now use it:
- Press
prefix + ato open rpai in a centered popup.
Usage
|
Keyboard Shortcuts (TUI)
| Key | Action |
|---|---|
j / k / ↑ / ↓ |
Navigate sessions |
Enter |
Jump to selected session |
t |
Cycle through themes |
/ or : |
Enter command mode |
q / Esc / Ctrl-C |
Quit |
| Mouse click | Select session |
| Mouse scroll | Navigate sessions |
Commands (type after /)
theme [name]- Switch theme (gruvbox, nord, catppuccin, dracula, tokyo, solarized)themes- List available themes
Themes
- gruvbox (default) - Warm retro colors
- nord - Cool arctic blues
- catppuccin - Pastel mocha vibes
- dracula - Purple vampire aesthetic
- tokyo - Tokyo Night purple/blue
- solarized - Classic solarized dark
Configuration
Config file: ~/.config/rpai/config.json
Example config.json:
Options:
theme- Color theme (default:"gruvbox"). Options: gruvbox, nord, catppuccin, dracula, tokyo, solarized.idle_threshold- CPU percentage threshold below which a process is considered idle/waiting (default:3.0). Processes above this threshold show as running (▶), below as waiting (⏸).
License
MIT