Skip to content

fix(skills): update plan file checkboxes after completing tasks - #808

Open
hoklims wants to merge 2 commits into
obra:mainfrom
hoklims:fix/update-plan-checkboxes
Open

hoklims wants to merge 2 commits into
obra:mainfrom
hoklims:fix/update-plan-checkboxes

Conversation

@hoklims

@hoklims hoklims commented Mar 18, 2026

Copy link
Copy Markdown

Summary

Fixes #789 — executing-plans and subagent-driven-development never updated plan file checkboxes (- [ ] → - [x]), leaving all checkboxes unchecked even after full implementation.

Root cause: Both skills used only TodoWrite (ephemeral, session-scoped) for progress tracking. The plan file on disk was never modified, despite writing-plans promising checkbox tracking in the plan header.

Fix: Add explicit instructions for the orchestrator (not the subagent) to update checkboxes in the plan file using the Edit tool after each task completes.

Changes

  • skills/executing-plans/SKILL.md — Add step 5: update plan file checkboxes after task completion
  • skills/subagent-driven-development/SKILL.md — Add "Plan File Tracking" section, update process diagram node, update example workflow with checkbox update steps

Design decision

The orchestrator updates checkboxes (not the implementer subagent), because:

  • The task is only "done" after the two-stage review passes
  • Subagents shouldn't read/write the plan file (explicit SDD principle)
  • The orchestrator knows the plan file path and task boundaries

Testing

Verified with a fresh Claude Code instance (claude -p --plugin-dir <modified-plugin>):

Metric Before After
- [ ] (unchecked) 7 1 (header template only)
- [x] (checked) 0 6

All 6 task step checkboxes were updated after execution. The remaining - [ ] is in the plan header (syntax example, not a step).

Also verified:

  • No other mechanism in the codebase handles checkbox updates (grepped hooks, all skills)
  • No conflicts with existing functionality
  • Consistent with writing-plans promise: "Steps use checkbox syntax for tracking"

Both executing-plans and subagent-driven-development used only
TodoWrite (ephemeral) for progress tracking, leaving all plan file
checkboxes as `- [ ]` even after full implementation.

Add explicit instructions to update `- [ ]` to `- [x]` in the plan
file using the Edit tool after each task completes. This makes the
plan file a persistent progress record across sessions.

Changes:
- executing-plans: add step 5 to update checkboxes after task completion
- subagent-driven-development: add Plan File Tracking section, update
  process diagram node, and update example workflow

Fixes obra#789
Copilot AI review requested due to automatic review settings March 18, 2026 12:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the workflow documentation for plan execution to ensure progress is persisted back into the on-disk plan file (checkboxes), not only tracked in TodoWrite.

Changes:

  • Extend the subagent-driven-development process to include updating plan-file checkboxes after completing each task.
  • Add a “Plan File Tracking” section and update the example workflow to include the plan-file checkbox update step.
  • Update executing-plans to explicitly instruct updating the plan file checkboxes via the Edit tool.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
skills/subagent-driven-development/SKILL.md Updates the per-task flow diagram and adds explicit guidance + examples for marking plan-file checkboxes complete.
skills/executing-plans/SKILL.md Adds an explicit step to update plan-file checkboxes after marking a task complete.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


## Plan File Tracking

After marking a task complete in TodoWrite, update the plan file on disk — change `- [ ]` to `- [x]` for all completed steps in that task using the Edit tool. This keeps the plan file as a persistent progress record across sessions.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 46c3286 — now uses `Edit` tool with backtick formatting.

Comment thread skills/executing-plans/SKILL.md Outdated
2. Follow each step exactly (plan has bite-sized steps)
3. Run verifications as specified
4. Mark as completed
5. Update the plan file: change `- [ ]` to `- [x]` for completed steps using Edit tool

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 46c3286 — now uses `Edit` tool with backtick formatting.

Address Copilot review feedback — consistent tool name formatting.
@obra obra added bug Something isn't working claude-code Claude Code (Anthropic CLI) issues plans Retired: use skill:writing-plans / skill:executing-plans subagents Retired: use skill:subagent-driven-development / skill:dispatching-parallel-agents labels Mar 23, 2026
@infegz

infegz commented Mar 30, 2026

Copy link
Copy Markdown

When will this PR be merged and released? I was just about to open a related PR and I found it. 😂

@PGoski

PGoski commented Apr 5, 2026 •

Copy link
Copy Markdown

Would be great to have such functionality. I wonder will concurrent sub agents writing to the same plan file corrupt it?
Testing PR with llama-server --parallel 1 and don't see plan file updates happening after each tasks is completed

@jrkim-kr

jrkim-kr commented Apr 6, 2026

Copy link
Copy Markdown

When will this PR be merged and released? I was just about to open a related PR and I found it. 😂

me toooo

@PGoski

PGoski commented Apr 6, 2026

Copy link
Copy Markdown

Tested PR yesterday on a 120k token task file. Only one task was marked as done in task file in the end:
image

@hoklims

hoklims commented Apr 6, 2026

Copy link
Copy Markdown
Author

Tested PR yesterday on a 120k token task file. Only one task was marked as done in task file in the end: image

i will check today or tomorow, weird

jasoncarr95 added a commit to jasoncarr95/superpowers that referenced this pull request Jun 2, 2026
Add plan file checkbox update to executing-plans and subagent-driven-development skills.

See:
- obra#808
- obra#1075
jasoncarr95 added a commit to jasoncarr95/superpowers that referenced this pull request Jun 3, 2026
Extend the writing-plans header template so every execution plan tells
agentic workers to flip `- [ ]` to `- [x]` as work completes, not only
to use checkbox syntax.

Strengthen subagent-driven-development to match executing-plans: add a
"Track Progress in the Plan File" section, fix the process diagram edge
that skipped checkbox updates after code-quality approval, and show
plan-file edits in the example workflow.

See also:

- commit a1de107 (yason branch)
- obra#808
- obra#1075
feraudet added a commit to feraudet/superpowers that referenced this pull request Aug 29, 2026
…progress

Wired into a real statusline, the segment reported `lift-drill-into-evals 5%
· task 1/22 · 5/100 steps` on a branch that has nothing to do with that plan.
The plan was committed upstream in May, its work shipped long ago, and someone
had ticked five boxes before moving on. The old ranking picked it because it
was the only plan in the repository with partially ticked boxes, and because
mtime — the tiebreak underneath — is the checkout time for every file in a
fresh clone, so it discriminates nothing.

The deeper problem is not staleness, it is that nobody maintains the data: of
this repository's fifteen plans, fourteen show zero ticked boxes although their
work shipped (issue obra#1075, PR obra#808). Checkbox state in a committed plan is not
evidence that work is in flight, so it can no longer select one.

Selection now requires evidence somebody wrote: the branch names the plan, an
SDD ledger names it, or git reports the plan as modified or untracked. A plan
named with --plan or SUPERPOWERS_STATUSLINE_PLAN is exempt, and outside a git
repository every plan stays a candidate — there is no archive to confuse it
with. On this repository the segment is now empty, which is the honest answer:
nothing is in flight here.

Costs one `git status`, scoped to the plan directories and run only when
neither the branch nor a ledger settles it: ~72ms on a repo with 15 plans.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@obra obra added skill:executing-plans The executing-plans skill skill:subagent-driven-development The subagent-driven-development skill labels Sep 20, 2026
@obra obra added needs-rebase-to-dev-branch PR targets main but should target dev and removed plans Retired: use skill:writing-plans / skill:executing-plans labels Oct 22, 2026
@obra obra removed the subagents Retired: use skill:subagent-driven-development / skill:dispatching-parallel-agents label Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working claude-code Claude Code (Anthropic CLI) issues needs-rebase-to-dev-branch PR targets main but should target dev skill:executing-plans The executing-plans skill skill:subagent-driven-development The subagent-driven-development skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

executing-plans and subagent-driven-development don't update plan file checkboxes

6 participants