You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's New 🎉
v2.9.0
✨ Added
building habits: Quick Task, Implement and Implement + Review now read one shared reference file, references/building-habits.md, at three moments. When a bug or an unexpected failing test turns up, they find the cause first: build a command that fails on the bug before changing code (or say why they cannot, rank their guesses with the evidence and let you decide), then keep the reproduction as a regression test in the project's existing test runner. When the plan asks for it, they build test first: write the test, see it fail for the right reason, then write the code. Before a restructure meant to change no behavior, they pin the behavior with tests that must pass unchanged afterwards.
plan: the testing question gains a fourth choice, Approach: code first (the default) or test first. Test first is recorded in the PLAN-DRAFT's Testing Strategy table, and Document then orders each task's test before its code with a Test: line under the task naming where the test drives the behavior.
review: reviews run in a fresh helper that never saw the build; reports say how they ran. Wherever the tool can start a helper and the web console's Subagents switch is not off, every review (/plan2code-review, Implement + Review's Stage 2, Implement's "review" at sign-off and Quick Task's "Review it now") hands its analysis to one helper briefed only with the spec and the change set (the new references/reviewer-brief.md). The main session checks every finding in the source before you see it and drops what it cannot confirm. Each report carries a Reviewed by line: a fresh helper (with how many findings were checked and dropped), or this session, said once as not independent.
xray: a new skill, Codebase X-ray (/plan2code-xray), on the dashboard under Useful any time. Explain an area: how it works and why it is that way, citing files and the commits and pull requests behind it (git history always, gh when it is installed and signed in, and it says once which sources it could not use). Or find the rough spots: files that always change together, thin wrappers, tangled boundaries and busy code with no tests, ranked with a concrete "to change X today you must touch..." example each. You tick the ones worth fixing and only those go into specs/<name>/ARCHITECTURE-BRIEF-<date>.md, ready for Pathfinder or Plan. A new script, xray.mjs, does the counting from git history. Pathfinder and Plan point at it when the code is unfamiliar.
diagnose: a new skill, Diagnose a bug (/plan2code-diagnose), on the dashboard under Useful any time. It finds a bug's cause and writes it up without fixing it, under the find-the-cause-first habit: a command that fails on the bug first (or, when it cannot build one, its guesses ranked with the evidence), then the cause in specs/<bug-name>/DIAGNOSIS-<date>.md. It then offers /plan2code-quick-task to fix it, or /plan2code-1-plan when the fix is big. The dashboard shows such a folder as a new spec state, Bug diagnosed, which lights Quick Task (suggested) and Plan and keeps Document, Implement, Implement + Review and Finalize grayed.
quick-task: asks "Write the test first?" when the change alters behavior and the project already has a test runner, and names the test spot in the plan's Verify section. A bug fix starts with its reproduction.
show me it working: Implement, Implement + Review, Quick Task and Finalize offer to show the change running before you approve, never required: reply show me in the terminal, or press Show me it working on the web console. The agent starts the app the way AGENTS.md says (working it out from the project and offering the line for AGENTS.md when it is missing, or asking you), looks at the change, stops what it started and records one line saying what was run and what was seen. Screenshots appear on the page only, never under specs/. Init and Init Update now ask how to start the app and where to view it.
web console: a doc can show a picture. An image block ("image": "shots/<name>.png") shows a PNG, JPEG or WebP the agent saved under the session's shots/ folder; anything outside that folder, over 5 MB or not really an image is refused.
launcher: plan2code update updates everything that was installed (the skills, the plan2code command and any of the status line, plan2code-loop, plan2code-metrics and plan2code-bot), with no menu and never uninstalling. Every global install now writes ~/.plan2code/install.json listing what it installed, which install.js --update reads; with no record it updates the skills and the plan2code command.
launcher: plan2code prints one line before it starts your agent when a newer release is out: Plan2Code v<latest> is out (you have v<installed>). Run: plan2code update. It reads the web console's saved release check, so it never waits on the network; when that check is missing or old it refreshes it in the background for the next start.
web console: Stop session gains a second way to stop, Stop with a handoff. It saves the skill's place as before and also writes a Handoff document, so a quick task, a review or a half-done changelog keeps its context; the paused screen names the file.
dashboard: this checkout's unused handoffs show as chips in the spec picker. Pick it up here carries on in the skill that stopped (a handoff from the Handoff skill carries on in Quick Task), in the same session, and the chip is gone afterwards; Read it all, Copy for a new conversation and Delete sit beside it.
🔧 Changed
implement, quick-task, plan, document: tightened as they took on the habits, so each stays well under 15,000 characters.
pathfinder: tightened to stay under 15,000 characters as it took on the X-ray pointer.
quick-task, implement: when the cause is unclear or the fix big, they stop and suggest /plan2code-diagnose.
finalize: its archive confirmation now reads "yes / no / show me", the last chance to look at the whole feature running before the spec moves.
dashboard: Handoff is now the last card in Useful any time, after Git.
contributors: the add-a-skill checklist in .agents-docs/AGENTS-development-commands.md now lists every place a new skill must be registered (it missed about a dozen).
contributors: AGENTS.md gains a rule that a skill rule broken twice becomes a script check, not more prose.
web console: the UPDATE AVAILABLE dialog now gives plan2code update as the command, keeping the install command beside it for a machine without the plan2code command. User Preferences → Cleanup never lists ~/.plan2code/install.json.
docs: README, the quick reference and the web console guide say to update with plan2code update (or re-run the install command).
handoff: every handoff now lives in ~/.plan2code/handoffs/ (a Markdown file plus a small .json beside it), owned by the web console, and handoffs older than 30 days are swept when the console opens. The Handoff skill writes there with no folder or .gitignore question, and Cleanup never lists the folder. Handoffs written to the OS temp folder or a handoffs/ folder before this change are not listed.
dashboard: a Bug fixed spec has a visible Delete that needs one confirm, and its chip no longer repeats the "bug fixed" line.
web console: the review sign-off card lists Approve this phase before Show me it working, with the approve button outlined in the accent color.
web console: a sign-off's yes button (Quick Task's Build it, Finalize's Archive it) is outlined in your highlight color too, like Approve. So is the yes of a yes/no question (such as Plan's Write the plan) and a recap's Yes, that is right, except on a question marked dangerous, whose yes stays red.
web console: Skip this one (and Do not skip) on an optional question is a small button in your highlight color, like a comment box's No changes, instead of an underlined link.
init, init-update: the Keeping this file current section they write into AGENTS.md gains three rules: a rule broken twice becomes an automated check, a new Failure log line first looks for one on the same topic to sharpen instead, and the log holds 17 entries at most (over the cap, merge entries that share a cause, then drop the lowest-value ones). Init update offers the missing rules to an existing section and tidies the log on every run, showing each merge and removal for a yes before it writes.
contributors: this repo's AGENTS.md follows the same Failure log rules, and its three post-sync grep entries are merged into one.
contributors: the web console's source is split by job: lib.mjs, server.mjs, console.mjs, app.js and app.css become routes.mjs, static.mjs, cmd-*.mjs, the by-job Node files, public/screens/ and public/styles/. Nothing a person sees changes, and the page starts faster (ready in about 280 ms, was 450 ms).
contributors: the per-skill and per-spec-state tables live in two data files, public/skills.js and public/spec-states.js, so adding a skill or a state is a short list in .agents-docs/AGENTS-development-commands.md and npm test names anything missed. This replaces the long add-a-skill checklist noted above.
contributors: page tests drive the real console in Chrome or Edge through playwright-core inside npm test (running it needs Node 20 or newer; installed skills still need only Node 18). The screenshot and speed scripts use it too, with no hand install, and scripts/css-snapshot.mjs compares every computed style across a stylesheet change.
contributors: a test keeps the files table in .agents-docs/AGENTS-architecture.md complete: every console file needs a one-line row.
contributors: post now refuses a finish (exit 3) while any reported helper still shows running, so a finished page never keeps a spinning row. The agent contract in console-finish.md says to mark each helper done or failed first.
🗑️ Removed
handoff: the Handoff skill's handoff-path.mjs script is retired in favor of console.mjs handoff new, which every skill can reach.
🐛 Fixed
web console: a short card on the git board (a confirm such as Delete 2 branches?) fills the board's width instead of sitting narrow in the middle.
web console: a redraw no longer throws you back to the top of the finished screen, a doc tab, the Overview or the dashboard menu (pressing Review it now, or an agent update landing while you read). The page kept your place only on question cards; it now keeps it for whatever is scrolling, as long as the same thing is still on screen.
dashboard: a bug folder whose diagnosis Quick Task had marked Fixed no longer sits on the dashboard forever as Files on disk, pre-selected as the most recent spec with no card to clear it. The scan reports it as a new spec state, Bug fixed: no pipeline card lights for it, the picker never opens on it (it opens on the most recent spec still in play, or Start from scratch), and it is hidden while Hide unavailable workflows is on, dimmed otherwise. Quick Task, right after marking a diagnosis-only folder Fixed, offers to archive it to specs--completed/<bug>/ with the same specs.mjs archive Finalize uses (a confirm card on the web console).