Repository navigation
feat: plan before long work, that starts by itself - #265
Merged
Merged
Conversation
- With "show the plan first" on (bots.plan_first, migration 0031,
bots.update { planFirst }), the bot's rules ask it to call show_plan
before long work: a summary, 2 to 8 steps and an optional smaller way.
- The card goes through the approvals path but waits only 20 s and does
not put the bot in needs_approval: start now, do only the smaller way,
change (with a note) or cancel; with no answer the bot starts.
- Off, or in plan mode, the tool answers at once without a card. The
phone reads the plan as one text and may answer it.
- The chief's and the plan rule sections move to workspace/sections.rs.
- Spec 10.5 describes it.
- StartPlanCard shows the summary, the numbered steps and the smaller way, counts down to the start, and offers Start now, Do only this, Change and Cancel. Answered, it is one line with the plan a click away. - The show_plan tool line is hidden like ask_owner's: the card says it. - The sidebar reads "Plan: ..." instead of "Waiting for approval". - The agent's edit dialog has "Show the plan before long tasks". - Texts in English, Portuguese and Spanish; a plan seeded for pnpm dev.
Owner
Author
|
Checked with the real Claude Code 2.1.309 (dev daemon in its own folder, Sonnet, Manual mode, option on):
Not seen yet: the bot offering an |
httpsphl
enabled auto-merge
October 25, 2026 04:08
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.
A bot can show its plan before long work, and starts by itself unless the owner steps in (spec 10.5). The idea comes from looking at how other agent workspaces handle it; the design and the code are our own.
What changes
show_planMCP tool: a summary, 2 to 8 steps and an optional smaller way. It goes through the approvals path but waits only 20 s and does not put the bot inneeds_approval. Start now, Do only this (the smaller way), Change (with a note) or Cancel; with no answer, the bot starts.bots.plan_first, migration 0031,bots.update { planFirst }). Only bots with it on get the "Show your plan first" section in their rules; switching restarts the bot once idle. Off, or in plan mode, the tool returns at once without a card.ask_owner's; the sidebar says "Plan: …" instead of "Waiting for approval". The phone reads the plan as one text and may answer it.workspace/sections.rs(files.rs was over 300 lines).Checks
cargo fmt,clippy -D warnings,cargo test --workspace(newtests/plan_first.rs, plan and phone unit tests).pnpm check: one run hadphone/client.test.tsfail on timing under load; it passes alone (16/16) and this PR does not touch it.pnpm dev: the card on Writer, "Do only this", the answered line and the sidebar line.Manual test with the real Claude Code