Skip to content

Draw the agent's plan in a Plan tab, and ask agents to write one - #3195

Merged
max-sixty merged 10 commits into
mainfrom
todo-tree-ontology
Oct 20, 2026
Merged

max-sixty merged 10 commits into
mainfrom
todo-tree-ontology

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Leaf has recorded an agent's plan since #3106 (leaf task plan, served as plan), 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 with leaf task plan when 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 case plan-shows-multi-step-work scores 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-item passed 2 of 2 on both arms. Earlier runs of an instruction that gave no step shape invented fields such as waits_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.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 8 commits October 19, 2026 15:50
…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
leaf-agent previously approved these changes Oct 20, 2026
leaf-agent
leaf-agent previously approved these changes Oct 20, 2026
# Conflicts:
#	skills/leaf/kernel/kernel.json
@max-sixty
max-sixty merged commit 5edb2db into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the todo-tree-ontology branch October 20, 2026 00:56
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants