| name | tmux-monitor |
| description | Use to discover which coding agents are running in tmux, find agents relevant to the current repo, check what they're working on, and coordinate or control them. Run before starting work to avoid conflicts, or to send commands to other agents. |
tmux Agent Monitor
Discover and coordinate coding agents running across tmux sessions.
When to Use
- Before starting work on a repo — check if another agent is already there
- To understand what other agents are doing
- To coordinate or send commands to another agent
- When asked "what's running?" or "who's working on X?"
Commands
Check relevant agents (most common)
tmux-monitor status
tmux-monitor status --repo driftdriver
tmux-monitor status --json
tmux-monitor status --all
Control another agent
The JSON output includes a pane_id field. Use it to send commands:
tmux send-keys -t %272 "your command" Enter
Other commands
tmux-monitor sessions
tmux-monitor logs "fresh_7.1"
tmux-monitor heartbeat
Output Fields
| Field | Meaning |
|---|
session | tmux session name |
pane | Window.pane identifier (e.g., fresh:7.1) |
pane_id | tmux internal ID for send-keys control (e.g., %298) |
type | Agent type: codex, claude-code, opencode, kilocode, pi-dev, shell, idle |
title | Pane title from tmux (often shows current task or repo) |
relevance | same_repo / related / unrelated |
current_task | LLM-extracted task description |
summary | LLM-generated paragraph summary of recent activity |
controllable | Whether the agent can receive tmux send-keys commands |
Coordination Protocol
- Before starting work: Run
tmux-monitor status --json
- If
relevant_count > 0: Read the existing agent's current_task and summary
- If same task: Coordinate via
tmux send-keys or defer
- If different task: Proceed but note the other agent may have context you need
- After finishing: No cleanup needed — the monitor tracks lifecycle automatically
State Location
Status file: ~/.local/share/driftdriver/tmux-monitor/status.json
Pane logs: ~/.local/share/driftdriver/tmux-monitor/panes/
Daily events: ~/.local/share/driftdriver/tmux-monitor/daily/