Remember the terminal or web console choice, refresh the launcher model menus (v3.2.2)

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-30 20:08:23 -08:00
1 parent f1d087ba47
commit ccf82c4eb7
60 files changed
+477 -317

No files matched your search

+79 -83
View File
@@ -5,6 +5,10 @@
"id": "default",
"label": "your account setting"
},
{
"id": "haiku",
"label": "fast and efficient Haiku"
},
{
"id": "sonnet",
"label": "latest Sonnet"
@@ -13,14 +17,6 @@
"id": "opus",
"label": "latest Opus"
},
{
"id": "haiku",
"label": "fast and efficient Haiku"
},
{
"id": "opusplan",
"label": "Opus in plan mode, Sonnet otherwise"
},
{
"id": "fable",
"label": "Fable for your hardest tasks"
@@ -28,6 +24,10 @@
{
"id": "best",
"label": "same model as Opus"
},
{
"id": "opusplan",
"label": "Opus in plan mode, Sonnet otherwise"
}
],
"devin": [
@@ -35,6 +35,10 @@
"id": "adaptive",
"label": "Adaptive"
},
{
"id": "swe-2-flash-high",
"label": "SWE-2 Flash High"
},
{
"id": "swe-2-medium",
"label": "SWE-2 Medium"
@@ -44,20 +48,16 @@
"label": "SWE-2 High"
},
{
"id": "claude-opus-5-5-low",
"label": "Claude Opus 5.5 Low"
"id": "swe-2-1-medium",
"label": "SWE-2.1 Medium"
},
{
"id": "claude-opus-5-5-medium",
"label": "Claude Opus 5.5 Medium"
"id": "swe-2-1-high",
"label": "SWE-2.1 High"
},
{
"id": "claude-opus-5-5-high",
"label": "Claude Opus 5.5 High"
},
{
"id": "claude-sonnet-5-5-low",
"label": "Claude Sonnet 5.5 Low"
"id": "claude-haiku-5-5-high",
"label": "Claude Haiku 5.5 High"
},
{
"id": "claude-sonnet-5-5-medium",
@@ -68,56 +68,12 @@
"label": "Claude Sonnet 5.5 High"
},
{
"id": "gpt-6-luna-low",
"label": "GPT-6 Luna Low Thinking"
"id": "claude-opus-5-5-medium",
"label": "Claude Opus 5.5 Medium"
},
{
"id": "gpt-6-luna-medium",
"label": "GPT-6 Luna Medium Thinking"
},
{
"id": "gpt-6-luna-high",
"label": "GPT-6 Luna High Thinking"
},
{
"id": "glm-5-3-high",
"label": "GLM-5.3 High"
},
{
"id": "gpt-6-1-sol-low",
"label": "GPT-6.1 Sol Low Thinking"
},
{
"id": "gpt-6-1-sol-medium",
"label": "GPT-6.1 Sol Medium Thinking"
},
{
"id": "gpt-6-1-sol-high",
"label": "GPT-6.1 Sol High Thinking"
},
{
"id": "claude-haiku-5-5-high",
"label": "Claude Haiku 5.5 High"
},
{
"id": "gpt-6-astra-low",
"label": "GPT-6 Astra Low Thinking"
},
{
"id": "gpt-6-astra-medium",
"label": "GPT-6 Astra Medium Thinking"
},
{
"id": "gpt-6-astra-high",
"label": "GPT-6 Astra High Thinking"
},
{
"id": "swe-2-flash-high",
"label": "SWE-2 Flash High"
},
{
"id": "claude-fable-5-2-low",
"label": "Claude Fable 5.2 Low"
"id": "claude-opus-5-5-high",
"label": "Claude Opus 5.5 High"
},
{
"id": "claude-fable-5-2-medium",
@@ -128,8 +84,40 @@
"label": "Claude Fable 5.2 High"
},
{
"id": "gemini-4-hydrogen-low",
"label": "Gemini 4 Hydrogen Low"
"id": "fusion-claude-opus-5-5-medium-sidekick-swe-2-1-medium",
"label": "Fusion (Claude Opus 5.5 Medium + SWE-2.1 Medium)"
},
{
"id": "gpt-6-luna-medium",
"label": "GPT-6 Luna Medium Thinking"
},
{
"id": "gpt-6-luna-high",
"label": "GPT-6 Luna High Thinking"
},
{
"id": "gpt-6-1-sol-medium",
"label": "GPT-6.1 Sol Medium Thinking"
},
{
"id": "gpt-6-1-sol-high",
"label": "GPT-6.1 Sol High Thinking"
},
{
"id": "gpt-6-astra-medium",
"label": "GPT-6 Astra Medium Thinking"
},
{
"id": "gpt-6-astra-high",
"label": "GPT-6 Astra High Thinking"
},
{
"id": "gemini-3-8-flash-medium",
"label": "Gemini 3.8 Flash Medium"
},
{
"id": "gemini-3-8-flash-high",
"label": "Gemini 3.8 Flash High"
},
{
"id": "gemini-4-hydrogen-medium",
@@ -140,8 +128,12 @@
"label": "Gemini 4 Hydrogen High"
},
{
"id": "gemini-4-neon-low",
"label": "Gemini 4 Neon Low"
"id": "gemini-4-carbon-medium",
"label": "Gemini 4 Carbon Medium"
},
{
"id": "gemini-4-carbon-high",
"label": "Gemini 4 Carbon High"
},
{
"id": "gemini-4-neon-medium",
@@ -150,32 +142,36 @@
{
"id": "gemini-4-neon-high",
"label": "Gemini 4 Neon High"
},
{
"id": "glm-5-3-high",
"label": "GLM-5.3 High"
}
],
"codex": [
{
"id": "gpt-6-astra",
"label": "GPT-6 Astra"
},
{
"id": "gpt-6.1-sol",
"label": "GPT-6.1 Sol"
"id": "gpt-6-luna",
"label": "GPT-6 Luna"
},
{
"id": "gpt-6.1-terra",
"label": "GPT-6.1 Terra"
},
{
"id": "gpt-6-luna",
"label": "GPT-6 Luna"
},
{
"id": "gpt-6.2-astra",
"label": "GPT-6.2 Astra"
"id": "gpt-6.1-sol",
"label": "GPT-6.1 Sol"
},
{
"id": "gpt-6.2-sol",
"label": "GPT-6.2 Sol"
},
{
"id": "gpt-6-astra",
"label": "GPT-6 Astra"
},
{
"id": "gpt-6.2-astra",
"label": "GPT-6.2 Astra"
}
],
"strengths": {
@@ -198,7 +194,7 @@
"model": "swe-2-flash-high"
},
"balanced": {
"model": "swe-2-high"
"model": "swe-2-1-high"
},
"best": {
"model": "claude-opus-5-5-medium"
@@ -52,7 +52,7 @@ Q2 Ceiling behavior past the cap (re-ask) · Q3 Who sees the truncation warning
## Form A — the turn ends the session
The command follows the map's status: `/plan2code-0-pathfinder specs/<idea>/pathfinder --web` while `Charting` / `Working`; `/plan2code-1-plan --web` once `Cleared`; and `/plan2code-init` first when `## Ground rules` records `AGENTS.md` absent and it still is. The path is the exact argument Auto-Discovery resolves an idea from, so the human pastes it back with zero edits.
The command follows the map's status: `/plan2code-0-pathfinder specs/<idea>/pathfinder` while `Charting` / `Working`; `/plan2code-1-plan` once `Cleared`; and `/plan2code-init` first when `## Ground rules` records `AGENTS.md` absent and it still is. The path is the exact argument Auto-Discovery resolves an idea from, so the human pastes it back with zero edits. It is printed bare, with `Add --web for the web console.` under it.
## Form B — the turn asks the human something
@@ -1143,6 +1143,9 @@ function wrapJoin(parts, indent = " ", width = 100) {
return lines;
}
// Printed bare so it pastes as is; WEB_NOTE under it offers the console.
const WEB_NOTE = "Add `--web` for the web console.";
// Init comes first only while the ground rules record AGENTS.md absent AND it is
// still missing: one written since charting needs no init detour.
function needsInit(loc, map) {
@@ -1151,9 +1154,9 @@ function needsInit(loc, map) {
function resumeCommand(loc, map) {
if (/^cleared$/i.test(map.status || "")) {
return needsInit(loc, map) ? "`/plan2code-init`, then `/plan2code-1-plan --web`" : "`/plan2code-1-plan --web`";
return needsInit(loc, map) ? "`/plan2code-init`, then `/plan2code-1-plan`" : "`/plan2code-1-plan`";
}
return `\`/plan2code-0-pathfinder ${loc.relPf} --web\``;
return `\`/plan2code-0-pathfinder ${loc.relPf}\``;
}
// What the human reads a question as: its name on the checklist row (the
@@ -1212,7 +1215,7 @@ async function cmdTrail(loc, args) {
let part2;
let menu;
if (form === "A") {
part2 = ["NEXT STEP · start a new conversation and run:", cmd];
part2 = ["NEXT STEP · start a new conversation and run:", cmd, WEB_NOTE];
} else if (form === "B") {
const items = args.item || [];
if (!items.length) fail(EXIT.USAGE, "missing-items", "Form B names every outstanding item: pass 1-3 --item.", 'Example: --item "Q1 Duration model" --item "Q2 Contract while held"');
@@ -1226,7 +1229,7 @@ async function cmdTrail(loc, args) {
// Nothing takeable means there is no menu to offer: an empty frontier is a
// stop (Work Step 4), and a stop is Form A.
if (!f.frontier.length) fail(EXIT.REFUSED, "no-frontier", "Nothing on the frontier to offer: every open question is blocked, or none is left.", "Use --form A (report the blocked chain, or go to The Clearing Gate).");
part2 = ["OR START FRESH · new conversation, paste:", cmd];
part2 = ["OR START FRESH · new conversation, paste:", cmd, WEB_NOTE];
const resolvedThisSession = Number(args["resolved-this-session"] || 0);
const checkpoint = resolvedThisSession >= 3 || !!args.heavy;
const options = f.frontier.slice(0, 3).map((x) => {
+1 -1
View File
@@ -12,7 +12,7 @@ Read references/grilling.md at the first question you grill (Chart Step 2, or a
## Interface
The FIRST thing you do, before anything else in this file — before Step 0: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow pathfinder` before reading (<D>: references/web-console/ beside this SKILL.md, or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/pathfinder.md. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Step 0.
The FIRST thing you do, before anything else in this file — before Step 0: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md, or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow pathfinder` before reading, then read <D>/console.md and <D>/notes/pathfinder.md. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Step 0.
## Backend
+3 -3
View File
@@ -8,7 +8,7 @@ Senior software architect and technical PM. Analyze requirements critically, ask
## Interface
The FIRST thing you do, before anything else in this file — before the AGENTS.md check, before looking for a draft: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow plan` before reading (<D>: references/web-console/ beside this SKILL.md, or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/plan.md. Switchable anytime. The console is far easier for sign-offs with a non-engineer. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then the AGENTS.md check.
The FIRST thing you do, before anything else in this file — before the AGENTS.md check, before looking for a draft: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md, or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow plan` before reading, then read <D>/console.md and <D>/notes/plan.md. The console is far easier for sign-offs with a non-engineer. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then the AGENTS.md check.
## Project Context (BLOCKING)
@@ -181,7 +181,7 @@ State assessment and ask user to confirm.
3. Create `specs/<feature-name>/PLAN-DRAFT-<YYYYMMDD>.md` with Phases 1-3
4. Set status: `Phase 3 Complete - Resume at Phase 4`
5. Include: Executive Summary, Requirements, System Context, Scope, Confidence
6. Instruct: "Large project. Progress saved. Start NEW conversation with `/plan2code-1-plan --web` to resume at Phase 4." On the web console, the finish carries that command.
6. Instruct: "Large project. Progress saved. Start NEW conversation with `/plan2code-1-plan` (add `--web` for the web console) to resume at Phase 4." On the web console, the finish carries that command.
7. STOP
### PHASE 4: Tech Stack
@@ -306,7 +306,7 @@ When complete (PLAN-DRAFT created), tell user:
> ╰┬─┬╯
> ```"
In the terminal, end with `NEXT STEP: /plan2code-2-document --web` in a NEW conversation. The web console's finish carries it, so print nothing there.
In the terminal, end with `NEXT STEP: /plan2code-2-document` (add `--web` for the web console) in a NEW conversation. The web console's finish carries it, so print nothing there.
## Abort / Recovery
+3 -3
View File
@@ -8,7 +8,7 @@ Senior software architect updating implementation specs when requirements change
## Interface
The FIRST thing you do, before anything else in this file — before Step 1, before reading a spec: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow revise-plan` before reading (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-1b-revise-plan/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir; add `--spec specs/<feature-name>` if known, else post `specDir` later), then read <D>/console.md and <D>/notes/revise-plan.md; the Step 1 confirmation, the Step 2 approval and every cleanup question go through it. Switchable anytime. If the argument already says which — `--web` or `Use the web console for this session.` — take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then Step 1.
The FIRST thing you do, before anything else in this file — before Step 1, before reading a spec: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-1b-revise-plan/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow revise-plan` before reading (add `--spec specs/<feature-name>` if known, else post `specDir` later), then read <D>/console.md and <D>/notes/revise-plan.md; the Step 1 confirmation, the Step 2 approval and every cleanup question go through it. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then Step 1.
## Rules
@@ -202,7 +202,7 @@ Report and resolve issues (every `error` in `checks` included), then rerun `stat
```
In the terminal, end with `REVISION COMPLETE: start a NEW conversation and run /plan2code-3-implement --web with specs/<feature-name>/overview.md` (it finds the next phase itself). The web console's finish carries it, so print nothing there.
In the terminal, end with `REVISION COMPLETE: start a NEW conversation and run /plan2code-3-implement with specs/<feature-name>/overview.md` (it finds the next phase itself; add `--web` for the web console). The web console's finish carries it, so print nothing there.
### STEP 6: Revision Cleanup
@@ -242,6 +242,6 @@ Work summary — tell user: change type, tasks added/modified/removed, phases re
**Pending phases after revision** — list `status`'s `pending` (every phase not `[x]`, re-opened ones included) with its task count so the user can plan next implementation sessions.
Returning context: Revised specs in `specs/<feature-name>/`. Run `/plan2code-3-implement --web` in a new conversation to continue implementation.
Returning context: Revised specs in `specs/<feature-name>/`. Run `/plan2code-3-implement` in a new conversation to continue implementation (add `--web` for the web console).
**On the web console:** specs change only at Step 3, so stopping before then saves nothing. The finish command is `/plan2code-3-implement specs/<feature-name>/overview.md` when revised, or the revise-plan command on an abort.
+3 -3
View File
@@ -8,7 +8,7 @@ Technical writer transforming planning documents into precise, complete implemen
## Interface
The FIRST thing you do, before anything else in this file — before Auto-Discovery: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow document` before reading (<D>: references/web-console/ beside this SKILL.md, or the dir in ~/.plan2code/console/console-dir; `--spec` once known), then read <D>/console.md and <D>/notes/document.md. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Auto-Discovery.
The FIRST thing you do, before anything else in this file — before Auto-Discovery: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md, or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow document` before reading (`--spec` once known), then read <D>/console.md and <D>/notes/document.md. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Auto-Discovery.
## Scripts
@@ -235,7 +235,7 @@ Paste the `comment` from `specs.mjs metrics specs/<feature-name> --step document
**Tell user:**
1. What was created (spec files list)
2. Path for next session: `specs/<feature-name>/overview.md`
3. Next command: `/plan2code-3-implement-review --web` (quality-gated) or `/plan2code-3-implement --web` (implementation only)
3. Next command: `/plan2code-3-implement-review` (quality-gated) or `/plan2code-3-implement` (implementation only)
4. Start NEW conversation for implementation
**Phase Overview** — present a table from `status`'s `phases`: phase name, task count (`tasks.total`), one-sentence goal (`goal`, tightened if it runs long; write one yourself when it is null). Helps the user plan sessions and identify review gates.
@@ -248,7 +248,7 @@ Paste the `comment` from `specs.mjs metrics specs/<feature-name> --step document
╰┬─┬╯
```
In the terminal, end with `NEXT STEP: start a NEW conversation and run /plan2code-3-implement-review --web` (or `/plan2code-3-implement --web` for implementation without the review gate). The web console's finish carries it, so print nothing there.
In the terminal, end with `NEXT STEP: start a NEW conversation and run /plan2code-3-implement-review` (or `/plan2code-3-implement` for implementation without the review gate; add `--web` to either for the web console). The web console's finish carries it, so print nothing there.
## Abort Handling
+1 -1
View File
@@ -8,7 +8,7 @@ Orchestrate one implementation phase and its focused independent review as a sin
## Web Console
The FIRST thing you do, before anything else in this file: Implementation Mode's Interface question — **web console** or **terminal**? On the web console, run `node "<D>/console.mjs" open --workflow implement-review` before reading (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-3-implement-review/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md, <D>/building.md and <D>/notes/implement.md in one batch (all of it; its Implement + Review section covers Stages 2–5), and <D>/building-review.md when Stage 2 starts: the Stage 2 findings go out as the page's fix list, Stage 4 is the only sign-off item, and the Stage 5 `finish` never carries the review offer. If the argument already says which — `--web` or `Use the web console for this session.` — take it and do not ask; drop the flag. `--loop` (only inside the desktop app): read <D>/notes/loop.md after console.md; it replaces the sign-off, marking and git steps, and Stages 2 to 4 run as its review section says. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then the spec.
The FIRST thing you do, before anything else in this file: Implementation Mode's Interface question — **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-3-implement-review/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. On the web console, run `node "<D>/console.mjs" open --workflow implement-review` before reading, then read <D>/console.md, <D>/building.md and <D>/notes/implement.md in one batch (all of it; its Implement + Review section covers Stages 2–5), and <D>/building-review.md when Stage 2 starts: the Stage 2 findings go out as the page's fix list, Stage 4 is the only sign-off item, and the Stage 5 `finish` never carries the review offer. `--loop` (only inside the desktop app): read <D>/notes/loop.md after console.md; it replaces the sign-off, marking and git steps, and Stages 2 to 4 run as its review section says. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then the spec.
## Controlling Contract
+8 -8
View File
@@ -8,7 +8,7 @@ Senior software engineer building exactly what the spec says, keeping progress c
## Interface
The FIRST thing you do, before anything else in this file — before reading a spec, before Phase 1: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow implement` before reading (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-3-implement/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md, <D>/building.md and <D>/notes/implement.md in one batch; progress, every question and the sign-off go through it. Switchable anytime. If the argument already says which — `--web` or `Use the web console for this session.` — take it and do not ask; drop the flag. `--loop` (only inside the desktop app): read <D>/notes/loop.md after console.md; it replaces the sign-off, marking and git steps below. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then the spec.
The FIRST thing you do, before anything else in this file — before reading a spec, before Phase 1: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-3-implement/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow implement` before reading, then read <D>/console.md, <D>/building.md and <D>/notes/implement.md in one batch; progress, every question and the sign-off go through it. `--loop` (only inside the desktop app): read <D>/notes/loop.md after console.md; it replaces the sign-off, marking and git steps below. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then the spec.
## Scripts
@@ -75,7 +75,7 @@ Never reset `[/]` to `[ ]`: started work stays marked so resuming is a conscious
| `ask-resume` | Prompt: "Phase X is in progress. Resume? (yes/no)" Relay `warning` when present. |
| `auto-start` | Mark it `[/]` and begin. Relay `warning` when present. |
| `checkoff` | Every phase is approved but tasks in them are still open (manual steps, blockers). Never say "nothing left to do": run Manual Check-Off below. |
| `none` | Nothing to implement: say why (`reason`). Every phase complete → `/plan2code-4-finalize --web` |
| `none` | Nothing to implement: say why (`reason`). Every phase complete → `/plan2code-4-finalize` (add `--web` for the web console) |
Before acting on `ask-resume` or `choose`, read the Notes of each `[/]` phase on offer: a waiting `**Plan change:**` line replaces the resume question (Plan Change Mid-Phase). After selection, claim it (Process 1), read `phase-X.md`, begin.
@@ -88,7 +88,7 @@ Before acting on `ask-resume` or `choose`, read the Notes of each `[/]` phase on
3. Yes → `node "<S>/specs.mjs" tick <spec> --task <id>` (writes `[x]` and a "Confirmed done by the user" line). Not yet → leave it as it stands. A note asking for help: help, then ask again.
4. Next task.
After the last one: `tick`'s `remaining` empty (`next` is `none`) → "NEXT STEP: Start NEW conversation and run: `/plan2code-4-finalize --web`". Otherwise list what is still open, say Finalize opens once they are checked off, and that rerunning Implement asks again. Never tick a task the person did not confirm.
After the last one: `tick`'s `remaining` empty (`next` is `none`) → "NEXT STEP: Start NEW conversation and run: `/plan2code-4-finalize` (add `--web` for the web console)". Otherwise list what is still open, say Finalize opens once they are checked off, and that rerunning Implement asks again. Never tick a task the person did not confirm.
## Code Consistency Rules
@@ -211,9 +211,9 @@ On user "approved":
| Phase X+1: [Name] | Z | [One-sentence goal] |
5. Before this, follow `references/lessons.md` → End. (Not under `--loop`.) Then write a one-line subject for the phase, then give the user the `command` from `commit-msg.mjs --subject "<subject>" --files <path> ...`, one `--files` per file the phase created or changed. It enforces the format: subject ≤100 chars and EXACTLY TWO -m flags (subject, `AI Assisted`), no body. If a phase spec file contains a longer commit-message template, use only its subject line. The diff is the body; the PR is the explanation. On Windows PowerShell 5.1 (no `&&`), give `add` and `commit` as two commands instead.
6. **If more phases:** "NEXT STEP: Start NEW conversation and run: `/plan2code-3-implement specs/<feature>/overview.md --web`"
7. **If final phase:** "NEXT STEP: Start NEW conversation and run: `/plan2code-4-finalize --web`"
8. Mention `/plan2code-1b-revise-plan --web` option
6. **If more phases:** "NEXT STEP: Start NEW conversation and run: `/plan2code-3-implement specs/<feature>/overview.md` (add `--web` for the web console)"
7. **If final phase:** "NEXT STEP: Start NEW conversation and run: `/plan2code-4-finalize` (add `--web` for the web console)"
8. Mention `/plan2code-1b-revise-plan` option
9. **On the web console:** the finish carries the next step, never a review offer (it was on the sign-off card).
Planny (continuing):
@@ -242,7 +242,7 @@ If user says "abort", "cancel", or similar:
- List completed vs remaining tasks
- Note created/modified files
- Do NOT change phase checkbox (stays `[/]`)
- Explain: "Run `/plan2code-3-implement --web` again to resume."
- Explain: "Run `/plan2code-3-implement` again to resume (add `--web` for the web console)."
3. Stop implementation. On the web console, the finish carries that command.
## Recovery
@@ -262,7 +262,7 @@ When the person decides the plan must change before this phase can finish (a new
<done and still open by task id in prose ("done 9.1, 9.3-9.5; open 9.2, 9.6-9.9"), never checkbox lines; decisions made so far>
```
NEXT STEP: `/plan2code-1b-revise-plan specs/<feature>/overview.md --web`. The dashboard and Revise the plan look for that `**Plan change:**` line; Revise the plan rewrites it to `**Plan change (applied <date>):**` once the spec is updated.
NEXT STEP: `/plan2code-1b-revise-plan specs/<feature>/overview.md` (add `--web` for the web console). The dashboard and Revise the plan look for that `**Plan change:**` line; Revise the plan rewrites it to `**Plan change (applied <date>):**` once the spec is updated.
A phase whose Notes still hold a waiting `**Plan change:**` gets one question in place of "Resume?" (console: a `choice`): **Revise the plan first** (recommended) or **Resume Phase X anyway**. Revise first: change nothing and end as a pause with the NEXT STEP above (console: that `finish.command`, headline starting "Paused"). Resume anyway: rewrite the line to `**Plan change (dropped <YYYY-MM-DD>):**`, then carry on.
+2 -2
View File
@@ -8,7 +8,7 @@ QA engineer and technical lead performing rigorous final validation. Verify spec
## Interface
The FIRST thing you do, before anything else in this file — before the Required Context check, before Step 1: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow finalize` before reading (<D>: references/web-console/ beside this SKILL.md, or the dir in ~/.plan2code/console/console-dir; `--spec specs/<feature-name>` if known, else post `specDir` later), then read <D>/console.md and <D>/notes/finalize.md; the audit options, the final review, the doc-update approval and every cleanup confirmation go through it. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then the Required Context check.
The FIRST thing you do, before anything else in this file — before the Required Context check, before Step 1: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md, or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow finalize` before reading (`--spec specs/<feature-name>` if known, else post `specDir` later), then read <D>/console.md and <D>/notes/finalize.md; the audit options, the final review, the doc-update approval and every cleanup confirmation go through it. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then the Required Context check.
## Scripts
@@ -350,7 +350,7 @@ Paste the `comment` from `specs.mjs metrics <spec's current path: specs--complet
| Completion | Action |
|-----------|--------|
| **≥75%** | Finalize with notice. List incomplete items. Note remaining tasks for follow-up cycle. |
| **<75%** | Recommend returning to implementation. List incomplete phases with task counts. Options: 1) Return via `/plan2code-3-implement --web` 2) Proceed with partial finalization. |
| **<75%** | Recommend returning to implementation. List incomplete phases with task counts. Options: 1) Return via `/plan2code-3-implement` (add `--web` for the web console) 2) Proceed with partial finalization. |
## Abort Handling
+1 -1
View File
@@ -8,7 +8,7 @@ Careful release scribe. Work out the right version from the default branch, find
## Interface
The FIRST thing you do, before anything else in this file, before reading the repository: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow changelog` before reading (<D>: references/web-console/ beside this SKILL.md, ~/.agents/skills/plan2code-changelog/references/web-console/ globally, or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/changelog.md. Every question goes through it. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`) take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Step 1.
The FIRST thing you do, before anything else in this file, before reading the repository: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md, ~/.agents/skills/plan2code-changelog/references/web-console/ globally, or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow changelog` before reading, then read <D>/console.md and <D>/notes/changelog.md. Every question goes through it. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Step 1.
## Scripts
+1 -1
View File
@@ -8,7 +8,7 @@ Finds unused code paths and dead code in the person's own project. Shows each fi
## Interface
The FIRST thing you do, before anything else in this file, before running a script: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow dead-code` before reading (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-dead-code/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/dead-code.md. The start questions, the findings list, the checks, the report and the save offers all go through it. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
The FIRST thing you do, before anything else in this file, before running a script: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-dead-code/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow dead-code` before reading, then read <D>/console.md and <D>/notes/dead-code.md. The start questions, the findings list, the checks, the report and the save offers all go through it. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
## Project Context
+1 -1
View File
@@ -10,7 +10,7 @@ Plain words for the person: version list (lockfile), package list (manifest), sm
## Interface
The FIRST thing you do, before anything else in this file, before running a script: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow deps` before reading (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-deps/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/deps.md. Every card, the progress and the report go through it. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
The FIRST thing you do, before anything else in this file, before running a script: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-deps/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow deps` before reading, then read <D>/console.md and <D>/notes/deps.md. Every card, the progress and the report go through it. Switchable anytime. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
## Project Context
+1 -1
View File
@@ -8,7 +8,7 @@ Bug detective. Find a bug's cause and write it up, **without fixing it**: reprod
## Interface
The FIRST thing you do, before anything else in this file, before asking about the bug: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow diagnose` before reading (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-diagnose/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/diagnose.md. The bug questions, the growing cause, the bug name and the hand-off all go through it. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
The FIRST thing you do, before anything else in this file, before asking about the bug: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-diagnose/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow diagnose` before reading, then read <D>/console.md and <D>/notes/diagnose.md. The bug questions, the growing cause, the bug name and the hand-off all go through it. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
## Project Context (BLOCKING)
+1 -1
View File
@@ -8,7 +8,7 @@ Careful git operator. Read where the repository stands, do what the person asks
## Interface
An instruction in the argument (`/plan2code-git switch to main`, `/plan2code-git commit and push`, a commit subject) runs in the terminal at once: do not ask about the console. With no argument, the FIRST thing you do, before anything else in this file, before reading the repository: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow git` before reading (<D>: references/web-console/ beside this SKILL.md, ~/.agents/skills/plan2code-git/references/web-console/ globally, or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/git.md. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`) take it and do not ask; drop the flag. Launched by the dashboard, or by a **Commit it now** or Changelog hand-off? Its session is already open: resume it with `--workflow git` (console-launches.md). Handed off to commit (Commit it now, Changelog's yes): post `reread`, then run the Commit flow from step 1 over every changed file (risky ones left out and named), its cards on the board; afterwards the board is theirs with Push lit.
An instruction in the argument (`/plan2code-git switch to main`, `/plan2code-git commit and push`, a commit subject) runs in the terminal at once: do not ask about the console. With no argument, the FIRST thing you do, before anything else in this file, before reading the repository: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md, ~/.agents/skills/plan2code-git/references/web-console/ globally, or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow git` before reading, then read <D>/console.md and <D>/notes/git.md. Launched by the dashboard, or by a **Commit it now** or Changelog hand-off? Its session is already open: resume it with `--workflow git` (console-launches.md). Handed off to commit (Commit it now, Changelog's yes): post `reread`, then run the Commit flow from step 1 over every changed file (risky ones left out and named), its cards on the board; afterwards the board is theirs with Push lit.
## Project context
+6 -6
View File
@@ -9,7 +9,7 @@ and can open files, but they cannot see this conversation. Write for them.
## Interface
The FIRST thing you do, before anything else in this file — before inferring the next task: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow handoff` before reading (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-handoff/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/handoff.md. The next-task confirmation and any clarifying questions go through it, and the finished handoff lands on the page as a doc with the download the page offers. Switchable anytime. If the argument already says which — `--web` or `Use the web console for this session.` — take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then the one hard rule.
The FIRST thing you do, before anything else in this file — before inferring the next task: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-handoff/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow handoff` before reading, then read <D>/console.md and <D>/notes/handoff.md. The next-task confirmation and any clarifying questions go through it, and the finished handoff lands on the page as a doc with the download the page offers. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then the one hard rule.
## The one hard rule: capture the next task, and confirm it with the user
@@ -60,8 +60,8 @@ writing with `node "<S>/specs.mjs" status specs/<feature>` (`<S>` is `scripts/`
- Cite that file and its checkbox state directly in **Current state** and
**Key files & pointers**, instead of relying on conversation memory alone.
- Let **Suggested skills** name the specific next pipeline command
(`/plan2code-3-implement --web` to keep implementing the phase,
`/plan2code-4-finalize --web` once all phases are checked) — but only as a
(`/plan2code-3-implement` to keep implementing the phase,
`/plan2code-4-finalize` once all phases are checked) — but only as a
suggestion; the confirmed **Next task** above still governs what the reader
does first.
@@ -106,9 +106,9 @@ a command that must be run a specific way. Save the reader from re-discovering
these the hard way.>
## Suggested skills
<Which skills the next agent should use, and when — e.g. /plan2code-3-implement --web
to continue a phase, /plan2code-review before finishing, /plan2code-4-finalize --web
to wrap up. Skip if none apply.>
<Which skills the next agent should use, and when — e.g. /plan2code-3-implement
to continue a phase, /plan2code-review before finishing, /plan2code-4-finalize
to wrap up; add --web to any of them for the web console. Skip if none apply.>
## Verification
<How the reader confirms their work: exact test/build commands, what "done"
+1 -1
View File
@@ -14,7 +14,7 @@ Interactive Q&A flow to update an existing `AGENTS.md` with new learnings and pr
## Interface
The FIRST thing you do, before anything else in this file — before the Awareness Context: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow init-update` before reading (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-init-update/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/init.md. Every question in the Q&A flow and the restructure offer go through it. Switchable anytime. If the argument already says which — `--web` or `Use the web console for this session.` — take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then Awareness Context.
The FIRST thing you do, before anything else in this file — before the Awareness Context: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-init-update/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow init-update` before reading, then read <D>/console.md and <D>/notes/init.md. Every question in the Q&A flow and the restructure offer go through it. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then Awareness Context.
## Scripts
+1 -1
View File
@@ -14,7 +14,7 @@ Analyze this codebase and create `AGENTS.md` to guide future AI coding agents (C
## Interface
The FIRST thing you do, before anything else in this file — before exploring the codebase: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow init` before reading (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-init/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/init.md. Every confirmation — the restructure offer, the AI-agent file-sync prompt — goes through it, and the finished AGENTS.md lands on the page as a doc marked `saved` (the file is already on disk — no download offered). Switchable anytime. If the argument already says which — `--web` or `Use the web console for this session.` — take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then Content.
The FIRST thing you do, before anything else in this file — before exploring the codebase: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-init/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow init` before reading, then read <D>/console.md and <D>/notes/init.md. Every confirmation — the restructure offer, the AI-agent file-sync prompt — goes through it, and the finished AGENTS.md lands on the page as a doc marked `saved` (the file is already on disk — no download offered). Launched by the dashboard? Its session is already open — resume it (console-launches.md), then Content.
## Scripts
+1 -1
View File
@@ -8,7 +8,7 @@ Gets a branch ready for review. Picks the checks its changes need, runs the ones
## Interface
The FIRST thing you do, before anything else in this file, before reading the branch: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow pr-prep` before reading (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-pr-prep/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/pr-prep.md. Every question, the check plan, the report and the description go through it. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
The FIRST thing you do, before anything else in this file, before reading the branch: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-pr-prep/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow pr-prep` before reading, then read <D>/console.md and <D>/notes/pr-prep.md. Every question, the check plan, the report and the description go through it. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
## Project Context
+3 -3
View File
@@ -8,7 +8,7 @@ Senior software architect. Analyze requirements, ask clarifying questions, deliv
## Interface
The FIRST thing you do, before anything else in this file — before the AGENTS.md check, before asking what to build: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow quick-task` before reading (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-quick-task/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md, <D>/building.md and <D>/notes/quick-task.md in one batch. Every question, the scope check and the plan go through it; once the task is built, the finish offers a review of it on the page. Switchable anytime. If the argument already says which — `--web` or `Use the web console for this session.` — take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then the AGENTS.md check.
The FIRST thing you do, before anything else in this file — before the AGENTS.md check, before asking what to build: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-quick-task/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow quick-task` before reading, then read <D>/console.md, <D>/building.md and <D>/notes/quick-task.md in one batch. Every question, the scope check and the plan go through it; once the task is built, the finish offers a review of it on the page. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then the AGENTS.md check.
## Project Context (BLOCKING)
@@ -128,11 +128,11 @@ After achieving clarity, assess scope:
[Files examined, patterns noted]
---
**Next:** New conversation with `/plan2code-1-plan --web`, attach this file.
**Next:** New conversation with `/plan2code-1-plan` (add `--web` for the web console), attach this file.
Resume at Phase 2 (System Context).
```
Then tell user: "Created `specs/<feature-name>/PLAN-DRAFT-<date>.md`. Start new conversation with `/plan2code-1-plan --web` to continue."
Then tell user: "Created `specs/<feature-name>/PLAN-DRAFT-<date>.md`. Start new conversation with `/plan2code-1-plan` to continue (add `--web` for the web console)."
---
+2 -2
View File
@@ -8,7 +8,7 @@ Critical review specialist -- experienced senior engineer providing independent
## Interface
The FIRST thing you do, before anything else in this file — before the scope detection: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow review` before reading (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-review/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/review.md. Scope questions, the findings report and the pick-what-gets-fixed menu all go through it; the report lands on the page as a doc. Switchable anytime. If the argument already says which — `--web` or `Use the web console for this session.` — take it and do not ask; drop the flag. `--loop` (only inside the desktop app, a Review Loop round): open with `open --loop --workflow review --round <n> --role <role> --scope-file <path>` from the arguments, read `<D>/notes/review-loop.md` after `console.md`, and follow it; it replaces the scope question, the fix menu, the sign-off, Lessons End and every git step below. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then Process. Read inside a build session for its review button? Skip this section — building-review.md's overrides govern, the session is already running.
The FIRST thing you do, before anything else in this file — before the scope detection: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md — ~/.agents/skills/plan2code-review/references/web-console/ globally — or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow review` before reading, then read <D>/console.md and <D>/notes/review.md. Scope questions, the findings report and the pick-what-gets-fixed menu all go through it; the report lands on the page as a doc. `--loop` (only inside the desktop app, a Review Loop round): open with `open --loop --workflow review --round <n> --role <role> --scope-file <path>` from the arguments, read `<D>/notes/review-loop.md` after `console.md`, and follow it; it replaces the scope question, the fix menu, the sign-off, Lessons End and every git step below. Launched by the dashboard? Its session is already open — resume it (console-launches.md), then Process. Read inside a build session for its review button? Skip this section — building-review.md's overrides govern, the session is already running.
## Scripts
@@ -184,7 +184,7 @@ Work summary — tell user: scope reviewed, findings count by severity (Critical
Read references/session-end.md
> Fallback: route plan2code artifacts (plan/spec docs/phases) on the reviewed feature's own `specs/<feature>/` state to the earliest unmet pipeline stage whose input exists — `PLAN-*` or `overview.md` without `phase-*.md` → `/plan2code-2-document`; unchecked `- [ ]` phase tasks → `/plan2code-3-implement`; all checked → `/plan2code-4-finalize`; archived → complete, summary only. Read the state with `specs.mjs status <spec>` (gitignored `specs/` defeats search tools). Non-pipeline artifacts (code/PRs/docs/logs) → summary only. Unresolved Criticals → fixing them (H/A/S) is the next step. Ambiguous or multiple candidate specs → ask one targeted question. Output: "Next (NEW conversation): `/plan2code-<step>` — [why + how you know]", appending ` --web` when the routed step offers the web console; else "Review complete -- [summary]."
> Fallback: route plan2code artifacts (plan/spec docs/phases) on the reviewed feature's own `specs/<feature>/` state to the earliest unmet pipeline stage whose input exists — `PLAN-*` or `overview.md` without `phase-*.md` → `/plan2code-2-document`; unchecked `- [ ]` phase tasks → `/plan2code-3-implement`; all checked → `/plan2code-4-finalize`; archived → complete, summary only. Read the state with `specs.mjs status <spec>` (gitignored `specs/` defeats search tools). Non-pipeline artifacts (code/PRs/docs/logs) → summary only. Unresolved Criticals → fixing them (H/A/S) is the next step. Ambiguous or multiple candidate specs → ask one targeted question. Output: "Next (NEW conversation): `/plan2code-<step>` — [why + how you know]; add `--web` for the web console"; else "Review complete -- [summary]."
- **Commit** (code changes): the `command` from `commit-msg.mjs --subject "fix: [desc]" --files <file>` repeated once per fixed file. On Windows PowerShell 5.1 (no `&&`), give `add` and `commit` as two commands.
+4 -4
View File
@@ -8,7 +8,7 @@ Finds code no test covers and writes the missing tests. Asks where to look, find
## Interface
The FIRST thing you do, before anything else in this file, before reading the code: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow test` before reading (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-test/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/test.md. Every question, the plan and the results go through it. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
The FIRST thing you do, before anything else in this file, before reading the code: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-test/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow test` before reading, then read <D>/console.md and <D>/notes/test.md. Every question, the plan and the results go through it. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
## Project Context
@@ -133,11 +133,11 @@ Write the missing tests for [scope]: [N] source files with no test, across [runn
[Commands confirmed, coverage run or skipped, nearest tests read]
---
**Next:** New conversation with `/plan2code-1-plan --web`, attach this file.
**Next:** New conversation with `/plan2code-1-plan` (add `--web` for the web console), attach this file.
Resume at Phase 2 (System Context).
```
3. Say: "Created `specs/<name>/PLAN-DRAFT-<date>.md`. Start a new conversation with `/plan2code-1-plan --web` to continue." End the run (Session End, escalated).
3. Say: "Created `specs/<name>/PLAN-DRAFT-<date>.md`. Start a new conversation with `/plan2code-1-plan` (add `--web` for the web console) to continue." End the run (Session End, escalated).
### Step 4: Style
@@ -191,7 +191,7 @@ Work summary: the scope, how gaps were found (matching, and coverage run or skip
**Next step**, as the closing line:
- A bug was kept: "NEXT STEP (NEW conversation): `/plan2code-diagnose` with `[test file]` › `[case]` as the reproduction."
- Escalated: "NEXT STEP (NEW conversation): `/plan2code-1-plan --web` with `specs/<name>/PLAN-DRAFT-<date>.md`."
- Escalated: "NEXT STEP (NEW conversation): `/plan2code-1-plan` (add `--web` for the web console) with `specs/<name>/PLAN-DRAFT-<date>.md`."
- Otherwise: "Commit the new tests with `/plan2code-git`."
On the console, post `finish` with the tests added and their results in `headline`, `"dashboard": true`, and `command` `/plan2code-diagnose` when a bug was kept (`/plan2code-1-plan` when escalated), else no `command`. No `commit` field: `body` says to commit the new tests with `/plan2code-git`.
+1 -1
View File
@@ -8,7 +8,7 @@ Product designer who shows several real options instead of describing them. Draw
## Interface
The FIRST thing you do, before anything else in this file, before running a script: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow ui-prototype` before reading (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-ui-prototype/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/ui-prototype.md. The starting screen, the paste, the next steps and the save questions all go through it; the prototype itself always opens as its own browser tab. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
The FIRST thing you do, before anything else in this file, before running a script: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-ui-prototype/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow ui-prototype` before reading, then read <D>/console.md and <D>/notes/ui-prototype.md. The starting screen, the paste, the next steps and the save questions all go through it; the prototype itself always opens as its own browser tab. Switchable anytime. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
## Run from another skill
+1 -1
View File
@@ -8,7 +8,7 @@ Codebase guide. Two jobs, one card: **explain** how and why an area of the code
## Interface
The FIRST thing you do, before anything else in this file, before the mode question: ask **web console** (browser page, suggested) or **terminal**? Console → run `node "<D>/console.mjs" open --workflow xray` before reading (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-xray/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir), then read <D>/console.md and <D>/notes/xray.md. The mode question, the answer or the ranked list, and the save offer all go through it. Switchable anytime. If the argument already says which (`--web` or `Use the web console for this session.`), take it and do not ask; drop the flag. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
The FIRST thing you do, before anything else in this file, before the mode question: **terminal** or **web console**? Run `node "<D>/console.mjs" interface` (<D>: references/web-console/ beside this SKILL.md (~/.agents/skills/plan2code-xray/references/web-console/ globally) or the dir in ~/.plan2code/console/console-dir) and follow its rule: the request or the saved default decides; ask only if it says so or the command fails. Console → run `node "<D>/console.mjs" open --workflow xray` before reading, then read <D>/console.md and <D>/notes/xray.md. The mode question, the answer or the ranked list, and the save offer all go through it. Launched by the dashboard? Its session is already open: resume it (console-launches.md), then Project Context.
## Project Context (BLOCKING)
+6
View File
@@ -143,6 +143,11 @@ port, and the filesystem as transport; this CLI is the whole agent surface.
finish to post). --force stops a dead page or an abandoned session
anyway (the desktop app passes it on its own shutdowns); --all
never asks.
interface [--set web|terminal|ask]
Every skill's first step. Prints { interface, rule }: the person's
saved default ("web", "terminal" or null) and the rule for picking
this session's interface. Follow the rule. --set saves the default
for every skill in every project; ask clears it.
${workflowLines()}
@@ -174,6 +179,7 @@ export const HELP_TOPICS = {
dashboard: "console-launches.md",
meter: "console-meter.md",
trouble: "console-trouble.md",
interface: "console-interface.md",
};
for (const f of fs.existsSync(path.join(HERE, "notes")) ? fs.readdirSync(path.join(HERE, "notes")) : []) {
if (f.endsWith(".md")) HELP_TOPICS[f.slice(0, -3)] ??= `notes/${f}`;
+53 -2
View File
@@ -1,9 +1,9 @@
// Plan2Code Web Console - the small commands: keep, forget, delete-spec, handoff, delete-handoff, status and stop.
// Plan2Code Web Console - the small commands: keep, forget, delete-spec, handoff, delete-handoff, status, stop and interface.
import fs from "node:fs";
import path from "node:path";
import { SESSIONS_DIR, appendEvent, readJson } from "./files.mjs";
import { HERE, HOME_DIR, INTERFACE_FILE, INTERFACES, SESSIONS_DIR, appendEvent, ensureDir, nowIso, readJson, savedInterface, writeJsonAtomic } from "./files.mjs";
import { SERVER_MAX_LIFE_MS, attachmentName, healthOk, listHandles, pidAlive, projectRoot, repoRoots, resultWaiting, sessionDir } from "./sessions.mjs";
import { removeSpec } from "./scan.mjs";
import { isOpen, rule } from "./patches.mjs";
@@ -304,3 +304,54 @@ export async function cmdStop() {
}
print({ ok: true, stopped, ...(skipped ? { skippedStaleHandles: skipped } : {}) });
}
/* ------------------------------------------------------------ interface */
// Every skill's first step: terminal or web console? The answer comes from the
// person's request, else their one saved default, and only when neither says
// does a skill ask. An answer is never saved on its own: the person opts in to
// a default by asking for one. The rule is printed here rather than written
// into every skill prompt: those sit at their size limit, and one copy
// cannot drift.
const INTERFACE_NAMES = { web: "web console", terminal: "terminal" };
const INTERFACE_CUES =
"Cues for the web console: --web, `Use the web console for this session.`, or words such as " +
"web console, Plan2Code UI, browser page, interactive HTML session. Cues for the terminal: " +
"--terminal, or asking for the terminal. A task that is merely about web code is not a cue. " +
"Drop a flag from the argument.";
function interfaceRule(saved) {
const set = `node "${path.join(HERE, "console.mjs")}" interface --set web|terminal`;
const switching =
'Mid-session, "web console" or "terminal" from the person switches (console-interface.md → Switching mid-session) and leaves the default alone.';
if (saved) {
return (
`Use the ${INTERFACE_NAMES[saved]}: it is the person's saved default, so do not ask. ` +
`Only a cue in their request for this skill overrides it, for this session only. ${INTERFACE_CUES} ` +
`${switching} Asked to change the default: ${set}; --set ask clears it, so the next skill asks again.`
);
}
return (
`No default saved. A cue in the person's request decides. ${INTERFACE_CUES} ` +
"Without one, ask: web console (suggested: a browser page, easier for sign-offs) or terminal. " +
"Save nothing from the answer. After asking, add one line: say \"make the terminal (or web console) my default\" " +
`and no skill asks again. Asked for a default: ${set}. ${switching}`
);
}
export function cmdInterface() {
if (args.set === undefined) {
const saved = savedInterface();
print({ interface: saved, rule: interfaceRule(saved) });
return;
}
if (args.set === "ask") {
fs.rmSync(INTERFACE_FILE, { force: true });
print({ ok: true, interface: null });
return;
}
if (!INTERFACES.includes(args.set)) die("--set takes web, terminal or ask", 2);
ensureDir(HOME_DIR);
writeJsonAtomic(INTERFACE_FILE, { interface: args.set, at: nowIso() });
print({ ok: true, interface: args.set });
}
+55
View File
@@ -0,0 +1,55 @@
# The Interface Pick: Terminal or Web Console
Part of the web console contract (`console.md`). Read when the `interface`
command's rule tells you to ask, or when the person asks to switch a running
session between the terminal and this page.
## Which one: the request, the saved default, or ask
Every skill's first step is `node "<CONSOLE>" interface`. It prints
`{ interface, rule }`: the person's saved default (`"web"`, `"terminal"` or
`null`) and the rule to follow. In short: a cue in their request wins for this
session (`--web`, `--terminal`, or plain words asking for one), then the saved
default, and only with neither do you ask. The answer is for this session only:
nothing is saved until the person asks for a default, so someone who has not
chosen one keeps being offered both.
The default is one file for the person, `interface.json` in the console folder
(`~/.plan2code/console/`), shared by every skill in every project. A cue, an
answer to the question or a mid-session switch never changes it. "Make the
terminal my default" does: `interface --set terminal`. `interface --set ask`
clears it, so the next skill asks again.
When the rule says to ask, use the structured question tool if you have one.
If you have none, ask it as an ordinary numbered question in prose. Either way
it is one question with two answers:
> **How would you like to work through this?**
>
> - **In your browser** (suggested) — a page opens with the questions laid out,
> what we have agreed so far, and everything saved as you go. Easier to follow,
> and far easier if you are walking through this with someone else.
> - **Here in the terminal** — one question at a time, right where you are.
If it lands on the terminal, ignore the rest of the console's files until they
ask to switch. If the console fails to start for any reason, say so in one line
and carry on in the terminal: never let this block the session.
## Switching mid-session
The person can move a running session either way whenever they say so ("web
console", "terminal", "switch to the browser"). The files under `specs/` are the
only source of truth and neither channel owns them, so nothing is lost. A switch
is for this session only and leaves the saved default alone.
- **Terminal → web console:** `open --workflow <yours>` (with `--spec` if you
know it), read `console.md` (and `building.md` for a build), then post where
the session stands: what is already settled as answered items, and the
question that is open now. Never re-ask something they answered in the
terminal.
- **Web console → terminal:** in one patch, post a `finish` with a headline
such as "Carrying on in the terminal", a body saying their answers are
saved, and `"console": false`, and clear any `"stopWarning"` with `""` (a
`finish` is refused while one is set). Then `stop`, and carry on in the
terminal from the same point, re-asking there whatever was still open on
the page.
+1 -1
View File
@@ -6,7 +6,7 @@
| `wait` returns 20 | `open --resume <sid>`, give the new link; nothing they typed is lost |
| They close the tab | Nothing: drafts are saved and the link restores everything |
| Your session ends mid-flight | Their answers stay on disk; a fresh session runs `status` (or `open --resume`, which reports `pendingResult:true`) and `wait` returns them |
| They ask to go back to the terminal | `finish`, then `stop`, and continue; files under `specs/` are unchanged |
| They ask to go back to the terminal | Post the "Carrying on in the terminal" `finish`, then `stop`, and continue (`console-interface.md` → Switching mid-session); files under `specs/` are unchanged |
| The page is dead, the server will not answer, or the session is abandoned with no finish | `stop --session <sid> --force` (a plain `stop` with no finish is refused, exit 3) |
| Picking up a paused session | `open --resume <sid>` clears the paused `finish` and its open questions; re-ask what you need (`console-stop.md`) |
| The same result arrives twice | Your harness killed `wait` after the hand-over. Handle it once; most of a repeated patch is harmless since items merge by id, but `thread` appends: leave out entries you already sent |
+6 -2
View File
@@ -8,6 +8,8 @@
// keep copy a cited note attachment into specs/<idea>/attachments/
// status list sessions, or show one
// stop shut a session's server down
// interface the person's saved terminal / web console default, and the rule
// every skill follows to pick one; --set changes it
//
// This file is the command table and what every command shares (the parsed
// flags, print, die and the session lookups). The commands live beside it:
@@ -39,6 +41,7 @@ import {
cmdDeleteSpec,
cmdForget,
cmdHandoff,
cmdInterface,
cmdKeep,
cmdStatus,
cmdStop,
@@ -90,6 +93,7 @@ const COMMANDS = {
"delete-handoff": cmdDeleteHandoff,
status: cmdStatus,
stop: cmdStop,
interface: cmdInterface,
help: cmdHelp,
};
@@ -107,7 +111,7 @@ if (Number.isFinite(nodeMajor) && nodeMajor < 18) {
if (!cmd || !Object.hasOwn(COMMANDS, cmd)) {
process.stderr.write(
"console: usage: console.mjs <open|post|wait|chat|keep|forget|delete-spec|handoff|delete-handoff|status|stop|help> [--session <id>] [--file <patch.json>] [--seconds N]\n"
"console: usage: console.mjs <open|post|wait|chat|keep|forget|delete-spec|handoff|delete-handoff|status|stop|interface|help> [--session <id>] [--file <patch.json>] [--seconds N]\n"
);
process.exit(2);
}
@@ -115,7 +119,7 @@ if (!cmd || !Object.hasOwn(COMMANDS, cmd)) {
// A flag given with no value parses as `true`, and a boolean handed on as a
// path or a name crashes somewhere deep (path.basename(true) throws). Every
// flag that takes a value is checked once, here, and refused as bad usage.
const VALUE_FLAGS = ["session", "sid", "resume", "file", "spec", "title", "workflow", "skill", "handoff", "upload", "name", "from", "seconds", "limit", "idle-ms", "for-cli", "round", "role", "scope-file"];
const VALUE_FLAGS = ["session", "sid", "resume", "file", "spec", "title", "workflow", "skill", "handoff", "upload", "name", "from", "seconds", "limit", "idle-ms", "for-cli", "round", "role", "scope-file", "set"];
for (const flag of VALUE_FLAGS) {
if (flag in args && typeof args[flag] !== "string") die(`--${flag} needs a value`, 2);
}
+13
View File
@@ -53,6 +53,19 @@ export const LOOKS_FILE = path.join(HOME_DIR, "looks.json");
// so every session within the hour reuses one lookup.
export const UPDATE_CHECK_FILE = path.join(HOME_DIR, "update-check.json");
// Where the person likes skills to run: "web" (this console) or "terminal".
// One file for the user, read by every skill in every project, and kept apart
// from looks.json because the page rewrites that one from its own copy and
// would put back a stale value. Written only by `console.mjs interface --set`.
export const INTERFACE_FILE = path.join(HOME_DIR, "interface.json");
export const INTERFACES = Object.freeze(["web", "terminal"]);
// The saved interface, or null when there is none or the file is unreadable.
export function savedInterface() {
const saved = readJson(INTERFACE_FILE, null);
return saved && INTERFACES.includes(saved.interface) ? saved.interface : null;
}
// The runtime dir has to follow PLAN2CODE_CONSOLE_HOME too. Without that, a
// test run (or a second sandboxed instance) shares one handle directory with
// the real thing, and `stop --all` reaches outside its own world and kills a
+1
View File
@@ -22,6 +22,7 @@ export const POINTER_FILES = {
workspace: "console-workspace.md",
subagents: "console-subagents.md",
review: "building-review.md",
interface: "console-interface.md",
learning: "console-launches.md",
};
+3 -3
View File
@@ -451,8 +451,8 @@ export function workflowLabel(workflow) {
export const CONSOLE_WORKFLOWS = FLOW_SKILLS.map((s) => s.command).filter(Boolean);
// Rides on the end of the command as part of the skill's argument. Every
// console skill takes it as the answer to "web console or terminal?" instead
// of asking again. It must stay clear of "brief", "recap" and "minutes":
// console skill takes it as a one-session cue for the web console, ahead of
// the person's saved default. It must stay clear of "brief", "recap" and "minutes":
// pathfinder reads any of those in its argument as a request for a brief.
export const CONTINUE_IN_CONSOLE = "--web";
@@ -464,7 +464,7 @@ const CONSOLE_SENTENCE = /\s*Use the web console for this session\.?/gi;
* What the Copy button on the finished screen puts on the clipboard.
*
* Someone who worked the whole session in the browser should land back in the
* browser, not be asked the interface question as though they were new. The
* browser, even when their saved default is the terminal. The
* `--web` flag goes on the same line as the command, because what follows a
* slash command is its argument, and a pasted second line is not reliably that.
* A command written with the long sentence is copied with the flag instead.
+7
View File
@@ -3908,6 +3908,13 @@
Your choices are remembered on this machine and carry over to every
session you open here.
</p>
<h4>Terminal or this page</h4>
<p>
Until you save a default, Plan2Code asks whether to start in the
terminal or on this page. Say "make the terminal my default" (or "make
the web console my default") and it stops asking. To move just the
session you are in, say "web console" or "terminal" at any point.
</p>
<h4>Less motion</h4>
<p>
The page has no motion switch of its own. It follows your computer's
+2 -1
View File
@@ -297,12 +297,13 @@ export async function removeSessions(sessionsDir, sids) {
}
// The console folder's own files that no sweep may ever remove: the person's
// looks, the folders remembered per project and spec, the Implementation
// looks, their saved interface, the folders remembered per project and spec, the Implementation
// Loop's setup per project and its report while a build is under way, the Subagents switch
// saved per project and workflow, what each unknown git host is, the pointer
// to this console's directory, and the cached release check.
export const PROTECTED_CONSOLE_FILES = new Set([
"looks.json",
"interface.json",
"workspaces.json",
"loop-setup.json",
"loop-reports.json",