psf-monitor
psf-monitor is a live local view of pstack work on your machine. It draws each pstack session in Claude Code, Codex, or OpenCode as a tree of steps: the pstack skills it ran, the skills those skills started, and the subagents and external model lanes each skill launched. Click any step to see what started it, its model, what it is doing now, and its final response.
session
└─ poteto-mode typed by you · opus 5.5
├─ lane "bug-fix" gpt-6-sol · final response
└─ deslop step 2
└─ no-comments step 1
└─ subagent comment-sicko final response
By default it lists pstack sessions only. A session counts as pstack once it runs a pstack skill or /pstack: command, spawns a pstack agent, or launches a pstack lane. The select at the top of the session list switches to Other sessions (every Claude Code, Codex, and OpenCode session without pstack) or All sessions; the page asks the server for that scope, so other sessions reach the page only when you choose them. The choice is kept per browser, and a link can set it with ?scope=all.
The monitor is global for your OS user, across all projects in the configured Claude Code, Codex, OpenCode, and pstack lane directories. The directory you launch it from does not limit what it sees. --parent and --focus only choose the initial theme and selected session. By default it indexes the last 24 hours.
Only one monitor runs per state directory (~/.psf-monitor/ by default). Starting it again reports already running globally and returns the existing monitor's link, even if you request another port or launch from another checkout. Concurrent starts and foreground serve use the same instance lock. To change the port, history window, source directories, or running build, stop the monitor and start it again. PSF_MONITOR_DIR is an explicit override for isolated environments; using different values intentionally creates separate instances.
From the page you can:
- Browse agents in the default Nested list, expanding branches as needed. Switch to Runs for expandable task, activity, and result summaries, or Graph for the relationship map.
- Filter by status (including running only), agent type, or search across names, models, and latest activity. Nested and Graph keep matching agents' parents for context. Toggle Show skills to simplify the hierarchy.
- Collapsed branches show running, failed, and stalled agents inside. Runs shows latest activity and a direct Open transcript action.
- Open an agent's live transcript from any view. View choice is remembered; filters and expanded branches stay in place while live updates arrive.
- Cancel a running pstack lane. The monitor sends SIGTERM to the lane's runner, and the runner records a
cancelled receipt.
- Copy the command that resumes a Claude Code, Codex, or OpenCode session.
- Hide a session from its panel. It stays hidden, across monitor restarts, until it is active again; Monitor → Reset all in the top bar shows every hidden session, clears the filters, and puts every dragged card back.
- Under Monitor, turn pstack's lane journal on or off, and under Journal see each recorded lane, delete one, or clear them all while keeping the journal on.
- Use the workspace navigation to open Overview, Sessions, Providers, Model roles, Skills, Journal, or Settings. Under Model roles, pick a project's sheet or the global one, change which model and effort each role's lanes use, move every lane to one model, create or delete a project sheet.
psf-monitor setup prints the sheets for the directory it runs in.
- Stop the monitor from Monitor → Stop monitor.
Hiding and journal changes touch only the monitor's own files: the hide list in ~/.psf-monitor/hidden.sqlite and lane directories under ~/.pstack-flex/lanes/. The monitor never deletes a harness transcript, so claude --resume and codex resume keep working for a hidden session.
Requirements
Install
Claude Code:
/plugin marketplace add thisguymartin/psf-monitor
/plugin install psf-monitor@psf-monitor
Codex:
codex plugin marketplace add thisguymartin/psf-monitor
codex plugin add psf-monitor@psf-monitor
Use
In Claude Code, run /psf-monitor:monitor. In Codex, ask for psf-monitor:monitor. The skill starts the server in the background and prints a link such as http://127.0.0.1:47317/?token=…. Open it in your browser.
The link carries an access token that changes each time the monitor starts. The monitor runs until you stop it from the page, ask the skill to stop it, or run psf-monitor stop.
You can also run the launcher directly from a clone: