简繁EN

VS Code 插件No. 76

Work plan: keep long conversations on track and answer their questions in one place

Contents

This post covers the work plan in Claude Code Plus 1.13.0, Agent Plus 1.13.0 and OpenCode Agent Plus 1.6.0.

A conversation about adding monthly budgets per category can turn into a discussion about how to store a budget. By the time you've settled whether to use one amount for all months or a separate amount for each month, the original task is out of sight. When several conversations are waiting on you at once, it can also be hard to tell which to answer first.

In Claude Code Plus, the example here, Claude has a separate work plan for each conversation. Each row tracks a piece of work and shows its state. The plan helps Claude keep hold of unfinished work when you switch topics or when compaction summarizes older turns. Codex Plus and OpenCode Agent Plus also keep work plans.

Installing Claude Code Plus, Codex Plus or OpenCode Agent Plus also installs Agent Plus, the extension they share. Agent Plus shows the plan in three places: the plan bar just above the conversation's message box, the Work plan view in the side bar, and the Conversations tab with the Answer view beside it in VS Code's panel. The Conversations tab lists the open questions from across the workspace. Write your answer in the Answer view, and it goes back to the conversation that asked.

On the left, the Work plan view shows a plan three levels deep, with rows in several states; the three rows waiting for your answer have amber question marks. On the right, the Claude Code panel shows the plan bar above the message box.

One plan per conversation, one row per piece of work

Where the plan lives

Each conversation's plan lives outside the conversation, in a file named for its session ID under ~/.claude/plugins/data/agent-work-plan-claude-code-extras/. Constraints, settled decisions and reasoning don't get rows of their own.

When you bring up work Claude should track or ask for a plan, Claude starts one and updates it as you talk. Claude doesn't start a plan on its own for a conversation with just one question and one answer. If you have sent at least 3 messages and a single turn has made at least 25 tool calls, the work plan plugin (which Claude Code Plus installs in Claude Code) reminds Claude once to start a plan if there isn't one yet.

Claude gets the plan's open rows as part of its turn context. A row is open if its state is neither done nor dropped (decided against). See "Cost and switches" for what each turn carries.

Claude edits the file with plan-row.py, a command that ships with the plugin. You'll see it in the conversation's tool calls. To edit the file by hand, open it from the button in the Work plan view's title bar or from a row's context menu. A row's number is its position in the plan, not a line number in the editor. Edit rows in place: deleting, inserting or moving a row changes the numbers of other rows.

The plan title, row titles and notes (a one-line remark, such as why a row was left for later or who asked for it) use the conversation's language. State keywords are always in English. A row's description is for whoever picks up the work. It can include your own words, what's already settled and what to watch out for. The plugin refuses to write a description longer than 12 lines or 900 characters.

What it needs

The work plan needs Python 3.7 or later. On Windows without Python, Claude Code Plus offers to download it from python.org (11 MB).

In OpenCode Agent Plus, the work plan also requires OpenCode 2. When the extension finds Python, it installs a work plan plugin for the OpenCode 2 process it starts.

Seven states

State Meaning Who decides
discussing Raised, not agreed yet Claude suggests it, or you raise it
todo Agreed, not started Only you
doing Being worked on now Claude, when it starts; work you ask for now goes straight here
waiting Started, but held up by someone or something outside the conversation: you, a build or CI run, a reviewer, another conversation Claude, as it happens
parked Left for later, with the reason; still open You say so, with the reason
done Finished Claude, as it happens
dropped Decided against, with the reason You decide, with the reason

If a turn ends with rows still doing, the plugin checks once and asks Claude to update each one. Claude can mark a row done, move it to waiting and say who or what it's waiting on, or leave it doing with a note on what's still running.

Row numbers don't change

A child row such as 2.1 is work that must finish before its parent, row 2, can finish.

Why the numbers stay put

When Claude marks row 2 done, the plan bar stops counting it, and Claude no longer receives it with each turn. Row 2 stays in the Work plan view's tree with a check mark. If you decide against a piece of work, Claude marks the row dropped and records the reason.

Once a row and all its descendants have been closed for more than a day, the subtree moves to closed/<session ID>.json beside the plan. A placeholder keeps its place, and the Work plan view still shows the archived rows.

A row's number is its position; the file doesn't store the number. Claude doesn't delete or reorder rows, so finishing row 2 leaves a gap in the numbering.

Answering by number

You can answer several rows in one message, in any order:

1
2
2.1: not now
3: go ahead

If the conversation's extension supports it, the Work plan view shows a pen at the end of each row. Click the pen to bring the row's conversation to the front. It appends the row's number and title to anything already in the message box, for example About row 2.1 (Port the parser): . Finish the message and send it when you're ready. Clicking the pen doesn't send it.

After a click on the pen at the end of row 3.3 in the Work plan view, the Claude Code message box on the right contains "About row 3.3 (Report output: over-budget warning in report):".

The inserted text uses VS Code's display language. In Chinese, it reads 关于第 N 行(标题):.

Questions you can answer as they stand

A waiting row must say who or what it waits on, using one of five words:

  • user: you
  • build: CI or a build
  • someone: a reviewer, a colleague, anyone else
  • session: another conversation
  • other: none of these

A row waiting on user also needs a question you can answer without scrolling back through the conversation. It must fit on one line, in one sentence of at most 200 characters. "Thoughts?", "Waiting for your confirmation" and "See above" don't say what you need to decide. "Publish 1.0.20 to both marketplaces now, or wait for the colour fix?" does.

A row has room for one question. If it needs three decisions from you, they go in three child rows you can answer by number.

Who the row waits on and the question itself have separate fields. Agent Plus builds the list of questions waiting on you from those two fields alone.

The command that changes rows rejects a move to waiting unless the row specifies one of the five words above. It also refuses a row waiting on user without a question, or a question with more than one question mark.

At the end of a turn, if Claude's last reply seems to ask you something and the turn recorded no question on a row, the plugin asks Claude to record it.

The plan bar

When a conversation has a work plan, the Claude Code panel shows a one-line bar just above the message box, spanning the width of the box. From left to right, it shows a list icon and "Plan", the state bubbles, a solid "to decide" section if any rows need your answer, and an arrow. When every row is done, a green check and "All rows done" appear after "Plan".

The plan bar above the message box with four state bubbles and "3 to decide" on the right

The bubbles appear in the order shown below. Each uses the state's icon from the Work plan view and shows the number of open rows in that state. The bar doesn't count parked rows, and a state with no open rows has no bubble. Rows waiting for your answer count only in "to decide", which shows a question mark and a count such as "2 to decide".

Part of the bar Counts Colour
doing bubble Rows being worked on Blue icon
waiting bubble Rows held up by someone or something else (not those waiting for your answer) Grey icon on a fainter tint
discussing bubble Rows raised but not agreed Amber icon
to do bubble Rows agreed but not started Purple icon
to decide Rows in this conversation's plan waiting for your answer Solid amber, the colour of the question mark on such rows in the Work plan view

Rest the pointer on the bar for a moment to see a list of up to 30 rows. Hovering over a bubble limits the list to rows in that state. To see the waiting questions and their row numbers, hover over "to decide". The rest of the bar shows the list of open rows. If there is a current row (the most deeply nested doing row, or the first in plan order if several share that depth), the list starts with its number and full title.

Hovering over "3 to decide" shows "3 questions for you" with a row number beside each question

Click "to decide" to open the Answer view at the first waiting question. Anywhere else on the bar opens Agent Plus's Work plan view.

In a panel narrower than 400 pixels, the bubbles stay visible. "Plan" and the arrow disappear, and "to decide" shows only its question mark and number.

The Work plan view

The Work plan view in the Agent Plus side bar shows the active conversation's plan as a tree. When you select another Claude Code or Codex editor tab, the view follows it.

Each row shows its number, its title and when it was added (and when it was closed, once it is). A doing or waiting row also shows how long it has been in that state, for example doing for 14m. Hover over a row to see its state, note and description.

Row 13.2 with its pen and a tooltip showing the full title, "doing for 14m", the time the row was added and its description.

An amber question mark means the row has a question for you; clicking the row opens it in the Answer view. Click any other row to see its state, times and description. The details also show which row is above it in the tree and how many child rows it has. The pen at the end of the row is a separate control; see "Row numbers don't change".

Use the three buttons in the title bar to go to the Conversations tab, open the plan file or refresh the view.

The Answer view: several conversations waiting on you

Look for N conversations need you in the VS Code status bar. It counts conversations waiting for your approval or answer, or with a plan question for you, once each across all VS Code windows on this machine. Hover to see plan questions and requests for your approval or answer under separate headings. Click to pick a waiting conversation and open it. When none are waiting, the status bar shows how many conversations are running (a Claude Code conversation is running while a Claude Code process has it open).

The status bar shows "3 conversations need you".

To answer a plan question, open the Conversations tab in the VS Code panel. It shows this workspace's conversations from every installed agent, starting with the one you have in front. Under each conversation, you'll see plan questions waiting for your answer and rows in progress. The tab groups stopped conversations whose plans still have open rows. For Claude Code, it lists running conversations and puts a stopped conversation in the stopped group only if its plan was written in the last 7 days. The Conversations list in the side bar is separate; see the session list.

Click a question to open it in the Answer view beside the list. You can see which conversation the question came from and how long ago it was asked. The row number and title appear with the question. Expand "Row details" to see the full row. Clicking the conversation name instead shows its brief: the conversation's own summary and where it stands. If the conversation didn't write a brief, the view builds one from the plan and marks it as such.

Row 2 of "Why does the importer skip refunds?" is selected in the Conversations tab. The Answer view shows a typed answer and a note that Send will open the stopped conversation first.

Type your answer in the multiline box below the question. It has two buttons underneath: "Go to the conversation" and "Send". Click "Send" or press Ctrl+Enter to send your answer to the conversation that asked. It arrives as a message from you, just as if you'd typed it in that conversation's message box.

The message names the row and repeats the question. For an English question, it starts with My answer to row N ("question"): followed by your answer. If the question is in Chinese, the prefix follows its language.

You can send from another window. "Send" delivers the answer to the window that has the conversation. If the conversation is stopped, "Send" opens it in a window that has its project open, then waits up to 120 seconds for it to accept messages. If delivery fails, the Answer view shows why, keeps your draft and copies the answer to the clipboard.

A supervisor can draft the answer

If a row is waiting for your answer and you've already told the supervisor what you want, it can draft your reply in Agent Plus's Answer view. In Claude Code Plus, a supervisor is a conversation that looks after others. Several supervisors can look after the same conversation, but only its lead supervisor can suggest an answer, and it can do so for OpenCode Agent Plus conversations it manages too.

In the supervisor's VS Code window, the Answer view switches to the question. If the view is closed, it shows the question when you open it. A line above the draft reads Suggested by supervisor "name". It disappears when you edit the draft.

The Answer view shows the Expense tracker supervisor's draft for row 11.1 about marking over-budget lines.

Read the draft, change it if needed, then click Send. The conversation receives the answer as if you had typed it, without the supervisor's name. This helps when the managed conversation's permission classifier (the check Claude Code's auto mode runs before letting an action through) has blocked an approval the supervisor passed on: only your own answer to the row's question counts.

A new suggestion won't overwrite what you've typed or refill the box after you've cleared a suggestion. The line naming the supervisor disappears when someone rewords the question. It also disappears once the question has been answered elsewhere or is no longer waiting. The draft goes with it unless you've edited it.

Before and after compaction

Automatic compaction replaces older turns with a summary. The plan file sits outside the conversation, so compaction does not touch it.

The extension asks Claude to update each doing row as the context nears compaction so someone else can pick up the work. Each row should say exactly what to do next, what to avoid and anything you said about the work that isn't written anywhere else.

Context window Asked at
200K 170k, 180k and 195k tokens
1M 960k, 970k and 995k tokens

While the context stays above a threshold and Claude hasn't written the plan since, the request repeats at the end of each turn.

The extension tells Claude that the context is at its smallest just after compaction. The message includes the plan file's path and asks Claude to read it before doing anything else.

The plan bar in OpenCode Agent Plus

On the chat page, you'll find the bar above the message box. The same code draws the bar here and in the Claude Code panel, so the bubbles, "to decide", hover lists and clicks work the same way.

Hovering over the waiting bubble shows row 2, "Wait for the build", above the plan bar and message box.

In OpenCode, the model updates the plan with add_row, set_row, set_status and set_summary. Each change appears in the chat as a tool call row.

Plans for these conversations also appear in the Work plan view. With Agent Plus 1.8.0 or later, you can click the pen at the end of a row to start a message about it.

Cost and switches

When a conversation has a plan, the first turn that shows the plan to Claude and the first turn after each compaction carry the full plan block: its instructions and the open rows. Later turns carry just one line, saying the plan has not changed and how many rows are doing, waiting and open, unless a row has changed, in which case they carry a short header and the open rows.

doing rows and questions for you include their notes. Other rows show only their titles. The block is limited to 6,000 characters. If some rows don't fit, the last line says how many were left out. The plugin's skill description (the instructions that teach Claude to keep the plan) takes about 110 tokens in every session that loads the plugin.

Use Agent Plus's token mode entry in VS Code's status bar to choose which features of Claude Code Plus, Codex Plus and the other extensions add text to the agent's context. Essential features and All features (the default) both keep the work plan. To turn off one extension's plan, use Custom. If you change an extension's switch in another mode, a notice offers a Switch to Custom button.

To turn off Setting Note
The whole work plan Token mode Interface features Adds nothing to the context and unloads the plugin
One extension's work plan Token mode Custom, then claudeCodePlus.workPlan, codexPlus.workPlan or opencodeAgentPlus.workPlan set to false Those switches work only in Custom
The plan bar in the Claude Code panel claudeCodePlus.show.planBar set to false The plan is still kept
The plan bar in OpenCode's chat page opencodeAgentPlus.planBar set to false The plan is still kept
The Work plan view agentPlus.workPlanView set to false
The Conversations tab and the Answer view agentPlus.conversationsView set to false The status bar still counts, and shows only when someone is waiting

In a running conversation, a mode change applies to plan rows and reminders starting with your next message. Only conversations started after the switch use the new mode to decide whether to load the plugin. The plan tool definitions the agent receives also change only for those new conversations.

The last four settings change only what you see.

In this series

  1. Claude Code Plus, Codex Plus and OpenCode Agent Plus: series overview
  2. Supervisor: one conversation that looks after the others
  3. Background work and alerts: see which conversation is running and which is waiting for you
  4. Conversations: one side bar list for Claude Code, Codex and OpenCode
  5. Work plan: keep long conversations on track and answer their questions in one place
  6. Claude Code Plus: times, cost and a message list in the Claude Code panel
  7. What Codex Plus 1.10.0 adds to Codex in VS Code
  8. OpenCode Agent Plus: talk to OpenCode in VS Code editor tabs

Article link: https://xnerv.wang/en/agent-plus-work-plan/