A coding agent works for minutes at a time, and its plan lives only in a scrolling transcript. You can't see at a glance where it is, what it's waiting on you for, or what comes next, and steering it means interrupting.
status-pane gives an agent session a live plan you can see and talk to. The agent keeps a short Markdown file with the goal, what waits on you, and a checklist of steps. A terminal pane beside the session redraws it whenever it changes. Type a request into the pane and it is queued for the agent: picked up at the end of the current turn, or at once if the session is idle. A hook keeps the agent honest: a turn can't end while the plan is stale or contradicts itself.
<sub>The recording replays a scripted session; run vhs demo/demo.tape (vhs) to regenerate it.</sub>
Works today with Claude Code, in any terminal multiplexer (tmux, Rex, a second terminal
window). Needs Python 3.8 or newer, so the python3 that ships with macOS is enough. MIT licensed.
curl -fsSL https://raw.githubusercontent.com/naorlov/status-pane/main/install.sh | sh
The script clones the repo to ~/.local/share/status-pane (set STATUS_PANE_DIR to change
that), links the viewer and hook into ~/.claude, registers the hook in
~/.claude/settings.json, appends instructions.md to
~/.claude/CLAUDE.md, and installs the status-pane-inbox plugin. Running it again updates
the clone and skips what's already in place.
Then ask the agent to "watch the status" and open the pane beside it, for example
tmux split-window -h ~/.claude/bin/status-pane <session id>. With no session ID, the viewer
follows the most recently updated status file.
In Rex, rex/claude-with-status.lua defines an action
that starts Claude Code in the focused pane and opens its status pane to the right. If the
pane already runs a session, for example after you closed its status pane, it only reopens
the status pane. Load it in ~/.config/rex/init.lua, bind a key, and run
rex config reload:
dofile(os.getenv("HOME") .. "/.local/share/status-pane/rex/claude-with-status.lua")
rex.bind("cmd+u", "claude_with_status")
<sub>A real Claude Code session in Rex, played at 3× speed.</sub>
The viewer and the file format don't depend on the agent. Each agent needs a small adapter for the end-of-turn check and for waking an idle session with a request.
| Agent | Status | End-of-turn check | Wakes an idle session |
|---|---|---|---|
| Claude Code | works | Stop hook | status-pane-inbox plugin |
| pi | next | extension on agent_before_settle |
the extension sends the request as a message |
| opencode | after pi | no hook can stop a turn ending; the plugin re-prompts the agent on session.idle |
plugin on session.idle |
| Codex | after opencode | Stop hook | no way yet |
bin/status-pane <session id>is the viewer, written with Python's curses. It shows~/.claude/status/<session id>.mdand folds finished steps into one line. It scrolls with the mouse wheel and PgUp/PgDn. A line you type is appended to<session id>.inbox, ↑/↓ bring back earlier lines, and a half-typed line survives closing the pane. The viewer takes the mouse to read the wheel, so hold Shift while dragging to select and copy text, as in most terminals.hooks/status-gate.pyis a Stop hook. Once a session has a status file, the hook blocks the end of a turn when:- the turn did more than read files and the status file wasn't rewritten after the turn's last non-reading tool call;
- the inbox holds requests, which the hook then hands to the agent and removes from the inbox;
- nothing will deliver later requests (neither the plugin nor
status-pane-inbox-waitis running); - the steps contradict themselves: more than one top-level step is
[>], a step isn't[x]although all its substeps are, or a step is[x]while a substep is still[>]. The viewer marks such steps with a red!.
plugin/is thestatus-pane-inboxplugin. It hands what you type in the pane to the session as a prompt the moment the session is idle.bin/status-pane-inbox-wait <session id>does the same without the plugin: it exits as soon as the inbox has something in it, printing the requests. Run as a background command, its exit wakes the session.
tests/test_viewer.py runs the viewer inside tmux as an xterm-256color terminal, sends it
keys, wheel turns, clicks and drags, and checks the screen. It needs tmux:
uv run --no-project --with pytest pytest tests
One line.
- A question or decision for you
- An option, nested under it
- [x] Done
- [>] Current
- [ ] A substep
- [ ] Planned
Checked on 5 December 2026 with Python as each system packages it. The viewer draws the status, the mouse wheel scrolls it, typing queues a request, and the hook blocks a contradictory plan.
| System | Version | Python | ncurses |
|---|---|---|---|
| macOS | 27 (built-in python3 ) |
3.9.6 | 6.0 |
| macOS | 27 (Homebrew) | 3.15.2 | 6.0 |
| Ubuntu | 20.04, 22.04, 24.04, 26.04 | 3.8.10, 3.10.12, 3.12.3, 3.14.4 | 6.2, 6.3, 6.4, 6.6 |
| Debian | 12, 13 | 3.11.2, 3.13.5 | 6.4, 6.5 |
| Fedora | 41, 44 | 3.13.9, 3.14.10 | 6.5, 6.6 |
| Rocky Linux | 8 ( python39 package), 9 |
3.9.25, 3.9.25 | 6.1, 6.2 |
| AlmaLinux | 10 | 3.12.16 | 6.4 |
| Alpine | 3.20, 3.22 | 3.12.13, 3.12.16 | 6.4, 6.5 |
| Arch Linux | rolling | 3.14.10 | 6.6 |
Not supported: Rocky Linux 8's default python3 (3.6). Not tested: Debian 11 (its packages
moved to the archive) and openSUSE Leap 15.6 (installing Python there hung).