AIFeed

Show HN: Status Pane – steer your AI agent's plan in real-time via terminal pane

Original text(via HN AI)

status-pane

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.

The status pane: a request typed into it is delivered to the agent and becomes a step in the plan
The status pane: a request typed into it is delivered to the agent and becomes a step in the plan

The recording replays a scripted session; run vhs demo/demo.tape (vhs) to regenerate it.

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.

Install


        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.

Usage with Rex

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")
      
Cmd+U in Rex starts Claude Code with its status pane; a request typed into the pane becomes a step
Cmd+U in Rex starts Claude Code with its status pane; a request typed into the pane becomes a step

A real Claude Code session in Rex, played at 3× speed.

Planned: other agents

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.

AgentStatusEnd-of-turn checkWakes an idle session
Claude CodeworksStop hookstatus-pane-inbox plugin
pinextextension on agent_before_settlethe extension sends the request as a message
opencodeafter pino hook can stop a turn ending; the plugin re-prompts the agent on session.idleplugin on session.idle
Codexafter opencodeStop hookno way yet

Files

  • bin/status-pane <session id> is the viewer, written with Python's curses. It shows ~/.claude/status/<session id>.md and folds finished steps into one line. It gives its pane the session's title, the one Claude Code generates or /rename sets. 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.py is 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-wait is 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 !.
  • 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-wait is 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 the status-pane-inbox plugin. 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

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
      

Status file


        # Goal
One line.

# Waiting on you
- A question or decision for you
  - An option, nested under it

# Steps
- [x] Done
- [>] Current
  - [ ] A substep
- [ ] Planned
      

Supported systems

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.

SystemVersionPythonncurses
macOS27 (built-in python3 )3.9.66.0
macOS27 (Homebrew)3.15.26.0
Ubuntu20.04, 22.04, 24.04, 26.043.8.10, 3.10.12, 3.12.3, 3.14.46.2, 6.3, 6.4, 6.6
Debian12, 133.11.2, 3.13.56.4, 6.5
Fedora41, 443.13.9, 3.14.106.5, 6.6
Rocky Linux8 ( python39 package), 93.9.25, 3.9.256.1, 6.2
AlmaLinux103.12.166.4
Alpine3.20, 3.223.12.13, 3.12.166.4, 6.5
Arch Linuxrolling3.14.106.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).

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗