跳到正文
DEV Community· alexbuilds·· 1 小時前AI 評分61

Plan Shelf 協助用戶同時掌握多個編碼智能體的工作進度

Keeping track of several coding agents at once

AI 導讀

alexbuilds 開發免費 macOS 應用 Plan Shelf,讓用戶按工作階段管理多個編碼智能體的待辦計劃與進度。應用適用於 macOS 14 及更新版本,支援 Claude Code、Codex、OpenCode、Cursor 和任何終端機,並透過 MCP 與 hooks 讓智能體留下工作狀態備註。

正文

Most days I have a few coding agents running at the same time, sometimes up to five. One builds a feature, another fixes a bug, a third does a refactor. The agents are fast. I'm the slow part.

When I switch to a terminal tab, I often can't remember what that session is doing, what I asked it to do next, or whether it's waiting for me. The plan for all of them lived in my head, and that's where things got lost.

So I made a small Mac app for it. It's called Plan Shelf, I'm the author, and it's free. This post is about three problems I ran into and how I solved each one. The app comes last.

Plan Shelf demo: three terminal tabs, three plans

(40-second demo: three Claude Code agents, the shelf follows the tab.)

Problem 1: each session needs its own list

One shared to-do list stops working once you have several agents. Tasks for the bug end up between tasks for the refactor, and after a while you stop trusting the list.

What I wanted was one list per session, shown next to the terminal and switching when I switch tabs. The tricky part is deciding what counts as a session. The window title isn't enough, because Claude Code keeps renaming it. The tab alone isn't enough either.

What worked: the app treats it as a different session when both the focused text area (there is one per tab or pane) and the window title change. Switching iTerm2 tabs changes both, so the list switches. When Claude Code renames its topic, only the title changes, so nothing happens. When I click from an editor's chat into its terminal, only the focused area changes, so nothing happens either.

Some apps don't give you that information. Zed tells macOS about one window and nothing inside it. For Zed, the app reads the open thread from Zed's own local database, read-only. If that format changes, it falls back to matching by project folder.

Problem 2: the agent knows what happened, and I don't

When I come back to a tab, I want two answers quickly: what this session is doing, and what it needs from me.

My first idea was to summarize the terminal output in the app. I dropped it. A summary made by a second system is a guess, and only the agent saw the whole turn.

So the agent writes the note itself. The app runs a small MCP server with six tools: get_plan, propose_steps, start_step, complete_step, leave_note and describe_step. When an agent stops, whether it's done, blocked or waiting for me, it calls leave_note with two or three short sentences: what I'm working on overall in this conversation, where things stand, and what it needs. The note shows under the plan.

Agents sometimes forget to call tools. For Claude Code, the Stop hook can ask once: "you ended the turn without a summary, call leave_note and stop". It asks at most once per prompt. It never asks while the agent is already continuing because of a Stop hook (stop_hook_active), and only if the app answers within 2 seconds. If not, the turn ends as usual, even when the app isn't running.

The hook is the app itself started in a --hook mode. It passes the event over a private local socket and always exits with 0. A tool that sits in the middle of an agent's turn should never be the reason the agent fails.

Problem 3: pasting the next task safely

When an agent finishes, I want one key to send it the next task from the list. I also don't want the app pressing Return in the wrong place. A running turn can be a permission question, and pasted text plus Return could answer it for me.

So "Send" (off by default) checks four things right before it presses Return:

  1. The terminal reports which tab is in front.
  2. The program in that tab is the agent, not a shell, vim or tmux.
  3. The agent's hooks say no turn is running there.
  4. No other app came to the front in the meantime.

If any check fails, the task is only pasted and I press Return myself. In anything other than Terminal or iTerm2, the button just says Paste.

What it is

Plan Shelf is a floating shelf for macOS 14 and newer. You select text that contains a list, press a hotkey, and the list goes on the shelf. It works with Claude Code, Codex, OpenCode, Cursor and any terminal. Agents connect through MCP and hooks.

It isn't another dashboard for watching agents; there are good ones already. It holds your own plan: what you intend to do next in each session.

A few details you may want to know:

  • It's free. No account, no API key, no model setup. Your task text stays on your Mac.
  • It asks for the Accessibility permission to read your selection and paste. Without it, everything still works through the clipboard.
  • Release builds send anonymous usage counts, never any text. One switch in Settings turns that off, and "Show What's Sent" shows the exact report.
  • It's a notarized download or a Homebrew cask (brew trust --cask alexchuv/tap/plan-shelf && brew install --cask alexchuv/tap/plan-shelf). It's not on the App Store, because the sandbox would block setting up agents for you.

Download: https://planshelf.app/r/devto-article

I'm still deciding what to build next. How do you keep track when you have more than one agent running?

來源:DEV Community · dev.to