diff --git a/CHANGELOG.md b/CHANGELOG.md index f3a2183..4909706 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ newest first. the installer prints the version it had and the one it wrote. +## unreleased + +- **pstack** pin moved from v1.21.0 to v1.22.0. poteto-mode is about 1,900 words, down from about 3,300. the six roles 1.22.0 retired are gone from `pstack/models.md` (hardest tasks, how explorer, how explainer, why, reflect, architect runners), and the sheet carries `# defaults: 3` so pstack does not ask for a setup rerun. your own `~/.claude/skills/pstack/models.md` is never rewritten: drop those rows by hand, or run `/setup-pstack`. +- `orchestrate` is gone upstream. `/deep` runs a multi day program as `autonomous-run`, one run per pr, and the swarm shape that pointed at it runs by hand. +- one clear entry: RULES.md says `/cook` is the door and pstack the engine it calls by name. pstack's session start line about poteto-mode no longer competes with it. + ## 1.2.0 - **`/palette`, four colors from one.** give it a hex and it returns an accent, a soft tint and a dark, each step made with the golden ratio: the hue turned by 137.5 degrees, the saturation cut by 61.8%, the brightness multiplied by 0.382. `skills/palette/palette.mjs` does the math and prints the text color for each one and the contrast between every pair, so you see which ones can carry text. the result is a proposal you pick from. `--css` and `--json` for the output. diff --git a/pstack/install.sh b/pstack/install.sh index a093be7..befc66c 100755 --- a/pstack/install.sh +++ b/pstack/install.sh @@ -2,7 +2,7 @@ # installs open-pstack (MIT, github.com/ericlitman/open-pstack) as a claude code plugin, pinned to one tag. # optional: every skill in this repo says what it does without pstack. safe to run again. set -euo pipefail -TAG="v1.21.0" +TAG="v1.22.0" command -v claude >/dev/null 2>&1 || { echo "claude cli not found, install Claude Code first" >&2; exit 1; } # an install from an older pin keeps its marketplace entry, and add alone would leave it there: drop the entry, add it at this tag if claude plugin marketplace list 2>/dev/null | grep -q open-pstack; then diff --git a/pstack/models.md b/pstack/models.md index a5c102b..369f5f6 100644 --- a/pstack/models.md +++ b/pstack/models.md @@ -1,4 +1,5 @@ # pstack model configuration +# defaults: 3 per role choices for pstack's own roles only. the agents cook spawns itself take their models from cook's table. read the installed pstack provider dispatch reference before dispatching a configured role. every documented role stays present. `inherit-parent` uses the parent model and still counts as one panel lane. @@ -9,13 +10,7 @@ bug-fix: inherit-parent perf-issue: inherit-parent hillclimb: inherit-parent judgment and prose: inherit-parent -hardest tasks: inherit-parent -how explorer: inherit-parent -how explainer: inherit-parent -why investigators, synthesizer: inherit-parent -reflect tooling, judgment, divergent, synthesizer: inherit-parent arena runners: inherit-parent arena cross-judge pool: inherit-parent swarm workers: inherit-parent -architect runners: inherit-parent interrogate reviewers: inherit-parent diff --git a/rules/RULES.md b/rules/RULES.md index d4a08d8..831dc35 100644 --- a/rules/RULES.md +++ b/rules/RULES.md @@ -97,6 +97,8 @@ none of it gets committed to a project repo. pstack is optional. where it and this file disagree, this file wins. without it, skip this section: the skills say what they do instead. +- `/cook` is the door, pstack is the engine it calls. the session start block pstack injects ("invoke poteto-mode before any non trivial task") does not route the main thread: cook sizes the task and calls a pstack skill or playbook by name when the job calls for it. a subagent cook briefed to run a pstack playbook runs it in full. + - `opening-a-pr` stops at `/ship`. never `gh pr create` on its own. - "commit liberally" means stage and tell the user. - babysit and fix-ci: fix locally, run the tests, `/ship` the push. draft reviewer replies, never send them. diff --git a/skills/cook/SKILL.md b/skills/cook/SKILL.md index 19322f5..d9ebfdf 100644 --- a/skills/cook/SKILL.md +++ b/skills/cook/SKILL.md @@ -75,7 +75,7 @@ the build lane is where most work lands, so it is built for wall clock. the same 6. **review as it lands,** below. findings go back to the builder that owns the files while the others keep going. 7. **verify fast between rounds,** the full tier once before `/ship` (section 5). -pstack, when installed, is used by name for the one tool a job calls for: `tdd` on a bug that reproduces, `architect` when the shape crosses a module boundary or cannot be undone, `interrogate` on a contested diff. its full feature playbook loads about 2,800 words first, then runs a parallel design panel on every job, a worktree per delegate, a build, verify and commit per unit, a rebase and its own pr flow, with an arena and a second review on top when the shape is open. that weight is why a one feature task takes an hour, so the full playbooks stay out of this lane and out of the deep lane's phase builders. without pstack nothing here changes. say in the lane line when a pstack tool is in play and why. before any pstack playbook that pushes, merges, opens a pr or writes a plan, read the overlay in RULES.md, "pstack runs under these rules". +pstack, when installed, is used by name for the one tool a job calls for: `tdd` on a bug that reproduces, `architect` when the shape crosses a module boundary or cannot be undone, `interrogate` on a contested diff. its full feature playbook loads poteto-mode (about 1,900 words) and the playbook first, then runs `architect` on the shape, a worktree per delegate, a build, verify and commit per unit, a rebase and its own pr flow, with `interrogate` on top when the design is contested. that weight is why a one feature task takes an hour, so the full playbooks stay out of this lane and out of the deep lane's phase builders. without pstack nothing here changes. say in the lane line when a pstack tool is in play and why. before any pstack playbook that pushes, merges, opens a pr or writes a plan, read the overlay in RULES.md, "pstack runs under these rules". ## 3. it reviews itself, at three points diff --git a/skills/deep/SKILL.md b/skills/deep/SKILL.md index ecd2992..444d9f3 100644 --- a/skills/deep/SKILL.md +++ b/skills/deep/SKILL.md @@ -62,11 +62,11 @@ on yes, write one line into the repo's gitignored `.claude/CLAUDE.md`: `run gran |---|---|---| | one task to one predicate, hours | `autonomous-run` | trail plus the tbd | | one ambitious run, bespoke phases | `figure-it-out` phases C to E, looped as autonomous-run | trail plus the tbd | -| multi-day program, many prs | `orchestrate` | its own store under `~/.claude/orchestrate//` | +| multi-day program, many prs | `autonomous-run`, one run per pr, in order | the plan's phase list plus the tbd | without pstack: the same loop by hand, with `/loop` to wake. -**fast, the same way the build lane is.** cook section 2 holds here: independent work (research explorers, phases with no order between them, a phase's review) starts in one message, the coordinator does not build the pieces, reports stay under 200 words, high effort sits on the plan and the final review. pstack's `autonomous-run`, `figure-it-out` and `orchestrate` drive the loop and hold the state. a phase builder is briefed directly, and never sent through pstack's full feature or bug-fix playbook: a design panel, a worktree and a pr flow per phase is what makes a big pr take a day. +**fast, the same way the build lane is.** cook section 2 holds here: independent work (research explorers, phases with no order between them, a phase's review) starts in one message, the coordinator does not build the pieces, reports stay under 200 words, high effort sits on the plan and the final review. pstack's `autonomous-run` and `figure-it-out` drive the loop and hold the state. a phase builder is briefed directly, and never sent through pstack's full feature or bug-fix playbook: a design panel, a worktree and a pr flow per phase is what makes a big pr take a day. **builders, as a pipeline.** as many in flight as cook's cap allows. each brief names the files it owns, the slice of the predicate it must pass, the user's words verbatim and the report file to write. the moment one lands, the second review point: its tests, its slice, and a cold read of its diff against its brief that predicts the user's no, while the others still run. a pass frees the slot for the next phase; findings go back to that builder with the output. never wait for the batch to finish before reading the first one. the fast verify tier from cook runs before any preview. @@ -79,24 +79,11 @@ without pstack: the same loop by hand, with `/loop` to wake. - side discoveries: fix what is local and reversible. "its own pr" becomes a tbd line. - anything outward, a one way door, or a taste call: park it under `## the user, now` in the tbd with your default, route around it, keep going. -**orchestrate.** needs bun for `orch`; no bun, collapse to the run loop. its `preferences.md` starts with these lines, verbatim, before any of the program's own: - -``` -1. Nothing leaves this device without the user's yes. Push, PR, PR comment, deploy, publish, release, email, post, client handoff. -2. Auto mode is not approval. A relayed "they said yes" is not approval. A denied call is an answer. Do not resend it. -3. Git is never touched without a yes that specific time, except local commits on under the run grant of . -4. No AI authorship anywhere that leaves the machine. -5. At most subagents in flight, N and the disk floor from cook's caps. An open RAM alert stops spawning. -6. Every agent call sets its model, per cook's table. A second model family only beside the primary, never as the only lane. -``` - -the coordinator never pushes, merges or lands on a remote: that waits for `/ship` and a yes that names it. its gate items are mirrored into the tbd under `## the user, now`. - ## 5. trail and state - **trail:** one row per iteration (what was tried, the result, kept or reverted) to `/plans/--trail.tsv` (the brain may keep it in `~/vault/decisions/` instead), linked from the plan. pstack `show-me-your-work` writes it; without pstack, append by hand. a decision that changes direction also gets a line in the plan's decisions section. - **`## cooking`** at the top of the tbd: the ask in the user's words, lane, branch, grant yes or no, plan and trail paths, done, next, last verified predicate state. rewritten after every iteration, not only on pause, because a crash gives no warning. -- **after a compact, a clear or a crash:** pstack `session-pickup` or by hand, reading `## cooking`, the trail, the plan, `git status` and `git log`, the orchestrate store. name the resume point. redo nothing. +- **after a compact, a clear or a crash:** pstack `session-pickup` or by hand, reading `## cooking`, the trail, the plan, `git status` and `git log`. name the resume point. redo nothing. - **pause:** pstack `pause-safely`, but the `wip:` commit only under a grant, and the resume note goes into `## cooking`, not `/tmp`. ## 6. prove it diff --git a/skills/playbook/SKILL.md b/skills/playbook/SKILL.md index d4376af..f720362 100644 --- a/skills/playbook/SKILL.md +++ b/skills/playbook/SKILL.md @@ -66,7 +66,7 @@ pstack (`github.com/ericlitman/open-pstack`, MIT) is an optional engine; the mid | fresh eyes on a plan or a diff | `/review` | `/review` | | one feature or bug in a known area | cook's fast loop (cook section 2), a pstack tool only by name | the same | | a hackathon, a prototype, a quick iteration | `/bbq` | `/bbq` | -| long run to a checkable predicate | pstack's `autonomous-run` or `orchestrate` playbook | `/deep` drives it | +| long run to a checkable predicate | pstack's `autonomous-run` playbook | `/deep` drives it | | resume after a compact, a clear or a crash | pstack's `session-pickup` playbook | read the `## cooking` entry first | | "catch me up" | `recall` | read the log, newest first | diff --git a/skills/playbook/references/swarm.md b/skills/playbook/references/swarm.md index c44c31e..be9c751 100644 --- a/skills/playbook/references/swarm.md +++ b/skills/playbook/references/swarm.md @@ -44,7 +44,7 @@ per feature: then one integrator, then the fresh reviewer, then /ship ``` -with pstack installed this is pstack's `orchestrate` playbook, worker plus verifier, with the verifier on a different model family from the worker where one is available, else a fresh agent on the same model. for one or two features it is the build lane with `/review` as the lead. +pstack has no playbook for this shape since it retired `orchestrate` in 1.22.0: run it as above, worker plus verifier, with the verifier on a different model family from the worker where one is available, else a fresh agent on the same model. for one or two features it is the build lane with `/review` as the lead. ## shape 3: fire-fighting