AgentsTmux
A tmux sidebar for Claude Code, Codex, Command Code, OpenCode, and Pi.
Keep your agents in one tmux window. Select an agent to show its live terminal beside the sidebar.
Other agents continue to run in the background.
Each tmux session has its own sidebar view. Agent lists, selected rows, and repository filters do not affect other sessions.

Live workspace with OpenCode selected. The sidebar groups agents by folder and shows usage for the visible agent.
View the isolated demo capture

This screenshot shows the real sidebar with an isolated demo session. Conversations and usage values are examples.
Features
- One window for agents. Switch agents without adding a tmux window for each agent.
Each agent keeps its process, conversation, and terminal history.
- Separate sessions. Each sidebar shows only agents in its own tmux session, including agents in that session's detached holding area.
- Creation order. New folders appear below existing folders. New agents appear below existing agents in their folder.
- Persistent selection. The visible agent stays highlighted while you type. Keyboard navigation tracks each agent by its pane identity.
- Usage for the visible agent. See subscription limits, reset times, model names, and local session usage where available.
- Status indicators. Animated indicators show working, background, waiting, ready, and error states. You can change their icons and colors.
- Notifications and sounds. Receive completion, question, permission, and error alerts when the source agent is not visible.
Selecting an existing session does not repeat its completion alert.
- Folder-based sessions. Start an agent in an existing folder. AgentsTmux does not create a Git worktree or branch.
- Compact view. Prompt and reply previews are hidden by default. Status, branch, and task progress remain visible.
Requirements
- tmux 3.0 or later
- Git
- Rust and Cargo for source builds
curl for subscription usage requests
Optional tools:
| Tool | Purpose |
|---|
| TPM | Install AgentsTmux as a tmux plugin |
| Nerd Font | Render the sidebar glyphs |
sqlite3 | Read local OpenCode V2 usage and provider credentials |
notify-send and a notification daemon | Show Linux desktop notifications |
| Papirus icons | Supply notification icons, with theme icons as a fallback |
hyprctl | Check whether an agent is visible on an active Hyprland workspace |
| An audio player | Play the bundled alert sounds |
Installation
Install with TPM
-
Add this line before the TPM initialization line in ~/.tmux.conf:
set -g @plugin 'ahmad9059/AgentsTmux'
-
Reload your tmux configuration.
-
Press your tmux prefix, followed by I.
-
Select Build from source in the installer if a release binary is unavailable.
The plugin configures supported agents that it detects. No separate setup script is necessary.
See Agent setup for agent-specific steps.
Install manually
-
Clone the repository:
git clone https://github.com/ahmad9059/AgentsTmux.git ~/.tmux/plugins/AgentsTmux
-
Build the binary:
cd ~/.tmux/plugins/AgentsTmux
cargo build --release
-
Add the launcher to ~/.tmux.conf:
run-shell ~/.tmux/plugins/AgentsTmux/agents-tmux.tmux
-
Reload your tmux configuration.
Open the sidebar
Press your tmux prefix, followed by e.
By default, AgentsTmux also creates the sidebar in windows named Agents or Agent.
This applies to new, renamed, and restored windows. AgentsTmux does not create a sidebar in every window by default.
Agent setup
Each plugin load runs agents-tmux integrate --auto in the background.
The installer skips agents that it does not detect. Repeated runs preserve unrelated settings.
Before changing a file, the installer saves a backup under ~/.local/state/agentstmux/backups/.
| Agent | Detection | Configuration |
|---|
| Claude Code | claude is on PATH | Installs agents-tmux@agentstmux from this repository's local marketplace |
| Codex | ~/.codex exists | Adds lifecycle hooks to ~/.codex/hooks.json |
| OpenCode V2 | ~/.config/opencode exists | Links the bundled TUI plugin and adds it to cli.json |
| Pi | ~/.pi/agent exists | Links the bundled extension |
| Command Code | commandcode is on PATH | Links the bundled mod to ~/.commandcode/mods/agents-tmux.ts |
After configuration: