Repository navigation
Draw the agent's plan in a Plan tab, and ask agents to write one - #3195
Merged
Merged
Conversation
…dates behind ?plan-sketch Exploration for the user's pick: the plan heading On Claude (a) or its own Plan tab (b), and each planned On me item's place in the plan. Serves the plan as effective.plan and reads it through queue-api's readPlan. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/assets/runtime/chrome.css # skills/leaf/kernel/kernel.json # skills/leaf/kernel/leaf.js
The user picked the plan's own tab over the plan heading the agent's list, so the Plan tab shows beside On me and On <agent> whenever there is a plan, and candidate A is gone. Whether an On me item names its place in the plan is still undecided and stays behind ?plan-sketch. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The user chose to show each planned On me item's place in the plan, so the line no longer waits behind ?plan-sketch, and the exploration flag is gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/kernel/kernel.json
conversation-loop.md, "When to write", now asks an agent to write its plan with `leaf task plan` when work runs to several steps or part of it waits on the user, naming the shape of a step. The new plan-shows-multi-step-work case scores it: the merge base passed 0 of 2 on Claude Code, opening separate to-dos, and this change 2 of 2; work-names-its-item passed 2 of 2 on both. A browser test covers the Plan tab and the place line on a planned On me item. plans.py's header says where the plan is drawn, and TODO.md drops the item. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Review fixes: the place line skips dropped steps, as the goal's count does, names no goal when its title is gone, and stays on the card once the item is answered, so the answer moves nothing. A step's state has an accessible name, and its On me button moves focus to the list it opens. The instruction now puts the goal at depth 0 and asks for a plan only for work of several steps. The eval case passed 2 of 2 with this wording, and work-names-its-item 2 of 2. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 20, 2026
# Conflicts: # skills/leaf/kernel/kernel.json
leaf-agent
approved these changes
Oct 20, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 20, 2026
#3195 draws `leaf task plan` in the floating panel's Plan tab, closing the affectUI note's plan gap. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Leaf has recorded an agent's plan since #3106 (
leaf task plan, served asplan), but nothing drew it and no instruction asked an agent to write one. This change does both, since a plan nobody draws shows the user nothing and a drawing no agent fills stays empty.The Plan tab. While the agent has a plan, the floating panel's On view shows a third tab, Plan, beside On me and On . It draws each goal with how many of its steps are done, and every step in order with its state marked in place. The current step shows what the agent is doing and how long it has run, and a step waiting on the user carries an On me button that turns to the user's list (
floating-panel.js,floating-panel.css). On me and On are unchanged and still list planned to-dos, because the plan arranges items without owning them. The user chose the separate tab over having the plan head On .Place on On me. An On me item the plan names now carries a muted line above its question, such as "Ship the reconnect fix · step 3 of 5". Like the goal's own count, it leaves out dropped steps. It also stays once the item is answered, so the answer moves nothing on the card. The user chose this as well.
The instruction. In
conversation-loop.md, "When to write" now asks an agent to write its plan withleaf task planwhen its work runs to several steps, some of which may wait on the user. It also gives the outline's shape: the goal at depth 0, each step one level deeper than the step it belongs to. The new caseplan-shows-multi-step-workscores this. On Claude Code the merge base passed 0 of 2: it opened separate to-dos. This change passed 2 of 2, and 2 of 2 again after the final rewording.work-names-its-itempassed 2 of 2 on both arms. Earlier runs of an instruction that gave no step shape invented fields such aswaits_on, which is why the shape is named.The plan's step states come from the server's reading (
plans.plan_reading) and are not predicted in the browser. The user acts on a planned item in On me or on the page, not in the Plan tab, so the reading arrives before they can turn to the plan.A browser test covers the tab, its steps, the On me button and the place line.
plans.py's header now says where the plan is drawn, and TODO.md drops the item.