Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ git clone --depth 1 https://github.com/gntrs/workflow.git ~/.claude/workflow

## you are working on this repo itself

markdown skills, one rules file, two installers, seven scripts (the size probe, its runner, the brand check, the ref reader, the ref check, the recorder, the palette maker) and one small node app (`skills/wrapped`). no build.
markdown skills, one rules file, two installers, eight scripts (the size probe, its runner, the brand check, the ref reader, the ref check, the recorder, the palette maker, the budget check) and one small node app (`skills/wrapped`). no build.

- skills live in `skills/<name>/SKILL.md`, depth in `skills/<name>/references/`. frontmatter `name` matches the folder.
- `rules/RULES.md` is always on. a skill never contradicts it. nothing tells the reader to edit an installed file: what is personal goes in `~/.claude/RULES.local.md` (template in `setup/RULES.local.md`).
Expand All @@ -27,6 +27,7 @@ markdown skills, one rules file, two installers, seven scripts (the size probe,
- after changing `tools/brand-check.mjs`, run `node tools/brand-check.mjs --self-test` and show every line passes.
- after changing `tools/ref-read.mjs` or `tools/ref-check.mjs`, run their `--self-test` and show every line passes. ref-read's needs playwright like the probe runner.
- after changing `skills/palette/palette.mjs`, run `node skills/palette/palette.mjs --self-test` and show every line passes. node only.
- after changing `tools/limits.mjs`, run `node tools/limits.mjs --self-test` and show every line passes. node only.
- after changing anything in `skills/wrapped/`, run `node --test skills/wrapped/test/` and show every test passes. node only.
- after changing `tools/record.mjs`, run `node tools/record.mjs --self-test` and show every line passes. it needs playwright like the probe runner, and ffmpeg for the mp4 lines (without it, those check the webm fallback).
- after changing an installer, run `bash scripts/test-install.sh` (and `bash scripts/test-install.sh ps1` where `pwsh` exists). it installs into throwaway homes: fresh, an upgrade from old commits, with edits, uninstall. a new behavior gets a case there. keep `install.sh` and `install.ps1` doing the same thing.
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ newest first. the installer prints the version it had and the one it wrote.

## unreleased

### workflow: never wait, lanes on a contract, briefs, the budget check

not benchmarked yet. the bench that measures these against 1.3.0 comes next.

- **never sit waiting on you.** a question that blocks one piece parks with a default, and the work moves on. the questions reach you together, ordered by what each unblocks. reversible calls the agent makes and reports. outward, irreversible or taste calls stay open, with the plain version behind a seam.
- **you own taste, the agent owns execution.** taste calls come as two or three variations, the pick first.
- **lanes talk to each other, not to you.** a builder that needs something from another lane asks it directly, or through the run's asks file, and keeps building.
- **one brief shape**, for you asking and for cook briefing builders: what, preferences, what is known, research only when unsure, variations, the finish line as numbers. worked examples on an abstract app in `skills/playbook/references/briefs.md`.
- **the whiteboard as a preference.** `whiteboard: yes` in `RULES.local.md` puts a look or an inspiration you name on a board you mark, while everything else keeps building.
- **the budget check.** `tools/limits.mjs` taps the 5 hour and 7 day limits your statusline already receives (an opt in line, SETUP section 3), and cook reads them three times a task: plenty, finish and wait for the 5 hour reset, go full before a weekly reset, or ask once when the week runs low. a floor you set. api keys and plans with no limits change nothing.

### /wrapped


`/wrapped` gets five new scenes and a sharper count:

- **your top model**, with its share of what claude wrote and the next two.
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ these load on their own:
- **the coordinator doesn't build,** so its context stays small.
- **a new ask gets its own lane,** never queued behind the batch.
- **two checks.** a fast one before every preview, the full suite before ship.
- **it never sits waiting on you.** a question parks with a default and the work moves on. your questions arrive together, the taste calls as two or three options. builders that need something from each other ask each other, not you.
- **it can watch your plan's limits,** once you let your statusline hand them over (SETUP has the one line). near the 5 hour limit it finishes what is running and waits for the reset. near the weekly one it asks once: stop, keep going, or go cheaper and slower.

### how to ask

say what you want in one line, then what you like and what you never want, the edge cases you already see, and what done looks like in numbers. research only when you are unsure. ask for options when it is a taste call. the agent lists the edge cases you did not see, and decides everything that is not taste. the same shape it uses for its own builders: [briefs.md](skills/playbook/references/briefs.md).

### design that doesn't look generated

Expand Down
6 changes: 5 additions & 1 deletion SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ one file: `~/.claude/RULES.local.md`. the installer created it, never writes it
| voice | per answer 5 |
| parallel agents | a lower ceiling, only if they asked. the disk floor (8 gb free before a worktree) stays. already under it: tell them worktrees stay off until they free space |
| extra steps | anything they want run before a task, before `/ship` or after a push, and strings that must never leave the machine |
| budget | only on a plan with usage limits: the floor they want left untouched, and whether cook asks or decides when the week runs low |
| how you decide | `whiteboard: yes` if they like picking from a board |

the budget check needs the statusline to hand over the limits. only with their yes, since it edits their statusline: in the script their `statusLine` setting runs, keep the input once and tap it, `input=$(cat); printf '%s' "$input" | node ~/.claude/tools/limits.mjs --tap >/dev/null 2>&1 || true`, then go on using `$input` where the script read stdin before. no statusline yet: a one line script that taps and prints nothing is enough. the `|| true` keeps the line alive when node is missing or the script runs under `set -e`.

pstack on: `~/.claude/skills/pstack/models.md` is theirs too, created once and never written again. it ships with every role on `inherit-parent`. put the same model names there only if they want a role pinned.

Expand All @@ -78,7 +82,7 @@ say what you ran, not what you read.

1. `ls ~/.claude/skills` lists every skill you installed.
2. `grep -n '@RULES' ~/.claude/CLAUDE.md` shows both imports, `@RULES.md` then `@RULES.local.md`, and `bash ~/.claude/workflow/install.sh --status` says 0 behind.
3. `ls ~/.claude/tools/responsive-probe.js ~/.claude/tools/probe-test.mjs ~/.claude/tools/brand-check.mjs ~/.claude/tools/ref-read.mjs ~/.claude/tools/ref-check.mjs ~/.claude/tools/record.mjs` lists all six.
3. `ls ~/.claude/tools/responsive-probe.js ~/.claude/tools/probe-test.mjs ~/.claude/tools/brand-check.mjs ~/.claude/tools/ref-read.mjs ~/.claude/tools/ref-check.mjs ~/.claude/tools/record.mjs ~/.claude/tools/limits.mjs` lists all seven.
4. pstack yes: `claude plugin list` shows pstack.
5. brain yes: `ls ~/vault` shows `HOME.md`, `now.md`, `projects/`.
6. permissions yes: `grep -n 'git push' ~/.claude/settings.json` shows the ask rule.
Expand Down
6 changes: 3 additions & 3 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function Groups {
Get-ChildItem (Join-Path $Src 'skills') -Directory | Sort-Object Name | ForEach-Object {
if (Test-Path (Dest "skills/$($_.Name)")) { $all += Pairs $_.FullName "skills/$($_.Name)" }
}
foreach ($t in 'responsive-probe.js','probe-test.mjs','brand-check.mjs','ref-read.mjs','ref-check.mjs','record.mjs') { $all += @{ Src = (Join-Path $Src "tools/$t"); Rel = "tools/$t" } }
foreach ($t in 'responsive-probe.js','probe-test.mjs','brand-check.mjs','ref-read.mjs','ref-check.mjs','record.mjs','limits.mjs') { $all += @{ Src = (Join-Path $Src "tools/$t"); Rel = "tools/$t" } }
if (Test-Path (Dest 'skills/pstack')) { foreach ($f in 'install.sh','README.md') { $all += @{ Src = (Join-Path $Src "pstack/$f"); Rel = "skills/pstack/$f" } } }
return $all
}
Expand Down Expand Up @@ -303,8 +303,8 @@ Get-ChildItem (Join-Path $Src 'skills') -Directory | Sort-Object Name | ForEach-
Install-Group "skills/$name" $_.FullName "skills/$name"
}

# 4. the size sweep probe, its runner, the brand check, the ref reader and its gate, and the recorder
foreach ($t in 'responsive-probe.js','probe-test.mjs','brand-check.mjs','ref-read.mjs','ref-check.mjs','record.mjs') {
# 4. the size sweep probe, its runner, the brand check, the ref reader and its gate, the recorder, and the budget check
foreach ($t in 'responsive-probe.js','probe-test.mjs','brand-check.mjs','ref-read.mjs','ref-check.mjs','record.mjs','limits.mjs') {
Install-Group "tools/$t" (Join-Path $Src "tools/$t") "tools/$t"
}

Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ groups() { # every "src|rel" the installer keeps up to date and that is installe
for dir in "$SRC"/skills/*/; do
name="$(basename "$dir")"; [ -d "$CLAUDE_DIR/skills/$name" ] && pairs_of "${dir%/}" "skills/$name"
done
for f in responsive-probe.js probe-test.mjs brand-check.mjs ref-read.mjs ref-check.mjs record.mjs; do echo "$SRC/tools/$f|tools/$f"; done
for f in responsive-probe.js probe-test.mjs brand-check.mjs ref-read.mjs ref-check.mjs record.mjs limits.mjs; do echo "$SRC/tools/$f|tools/$f"; done
if [ -d "$CLAUDE_DIR/skills/pstack" ]; then for f in install.sh README.md; do echo "$SRC/pstack/$f|skills/pstack/$f"; done; fi
[ -e "$CLAUDE_DIR/hooks/ensure-node-modules.sh" ] && echo "$SRC/setup/hooks/ensure-node-modules.sh|hooks/ensure-node-modules.sh"
return 0
Expand Down Expand Up @@ -288,8 +288,8 @@ for dir in "$SRC"/skills/*/; do
install_group "skills/$name" "${dir%/}" "skills/$name"
done

# 4. the size sweep probe, its runner, the brand check, the ref reader and its gate, and the recorder
for t in responsive-probe.js probe-test.mjs brand-check.mjs ref-read.mjs ref-check.mjs record.mjs; do
# 4. the size sweep probe, its runner, the brand check, the ref reader and its gate, the recorder, and the budget check
for t in responsive-probe.js probe-test.mjs brand-check.mjs ref-read.mjs ref-check.mjs record.mjs limits.mjs; do
install_group "tools/$t" "$SRC/tools/$t" "tools/$t"
done

Expand Down
2 changes: 2 additions & 0 deletions llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ to install it for someone: `git clone --depth 1 https://github.com/gntrs/workflo
- [tools/ref-read.mjs](tools/ref-read.mjs): opens a real product or reads a user's pic, saves screenshots and styles as evidence
- [tools/ref-check.mjs](tools/ref-check.mjs): fails a brand.md with no read reference or a kit part with nothing behind it
- [tools/record.mjs](tools/record.mjs): records a scroll, wheel or drag walk of a page to a video, and checks it moved
- [tools/limits.mjs](tools/limits.mjs): taps the 5h and 7d plan limits from the statusline, tells cook to go on, go cheaper, ask or stop
- [skills/playbook/references/briefs.md](skills/playbook/references/briefs.md): how to ask an agent and how cook briefs its builders, with worked examples
- [brain-template/](brain-template/HOME.md): the vault skeleton
- [setup/permissions.json](setup/permissions.json): the ask list `--with-permissions` merges into settings.json
- [scripts/test-install.sh](scripts/test-install.sh): the installer's cases, fresh, upgrade, edits, uninstall
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"check": "bash scripts/check.sh",
"test:install": "bash scripts/test-install.sh",
"test:tools": "node tools/brand-check.mjs --self-test && node skills/palette/palette.mjs --self-test && node tools/ref-check.mjs --self-test && node tools/probe-test.mjs --self-test && node tools/ref-read.mjs --self-test && node tools/record.mjs --self-test && node --test skills/wrapped/test/",
"test:tools": "node tools/brand-check.mjs --self-test && node skills/palette/palette.mjs --self-test && node tools/ref-check.mjs --self-test && node tools/probe-test.mjs --self-test && node tools/ref-read.mjs --self-test && node tools/record.mjs --self-test && node tools/limits.mjs --self-test && node --test skills/wrapped/test/",
"test": "npm run check && npm run test:install && npm run test:tools"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ matches_source() { # every installed core file equals the source
cmp -s "$src/$f" "$h/.claude/$f" || { echo "differs: $f"; return 1; }
done
cmp -s "$src/rules/RULES.md" "$h/.claude/RULES.md" || { echo "differs: RULES.md"; return 1; }
for f in responsive-probe.js probe-test.mjs brand-check.mjs ref-read.mjs ref-check.mjs record.mjs; do
for f in responsive-probe.js probe-test.mjs brand-check.mjs ref-read.mjs ref-check.mjs record.mjs limits.mjs; do
cmp -s "$src/tools/$f" "$h/.claude/tools/$f" || { echo "differs: tools/$f"; return 1; }
done
}
Expand Down
13 changes: 13 additions & 0 deletions setup/RULES.local.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ how text should sound, words you never want. empty: the plain style in `skills/w

a lower ceiling than cook measures, if you run several sessions or a heavy local stack. empty: cook measures it.

## budget

for plans with usage limits. empty: a 5% floor, and ask once when the week runs low.

- floor, the percent of the week left untouched:
- when the week runs low: ask, or decide (cheaper and slower)

## how you decide

empty: options in chat.

- whiteboard: yes or no. yes puts a look or an inspiration you name on a private board you mark right and wrong

## extra steps

things cook and /ship run on top of their own. empty: none.
Expand Down
11 changes: 8 additions & 3 deletions skills/cook/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ one door for every task. size it, run the lane, end it the same way every time.
- an open alert from a ram watcher, if you run one, or free memory near zero: the cap is 0, work in the main thread.
- `df -h /`, or `Get-PSDrive C` on windows. under 8 gb free: no new worktree. list the stale ones with branch and dirty state and ask which go.
- the user may run several sessions at once. the cap is for the machine, not the session. other sessions already building count against it.
6. budget, on build and deep only, when the statusline taps the limits (`tools/limits.mjs` has the wiring): `node ~/.claude/tools/limits.mjs --floor <n>` at the start, before a fan out and on each wake of a long run, never per agent call. do the move it prints. the floor and whether to ask or decide when the week runs low come from `## budget` in `~/.claude/RULES.local.md`. the user away: never ask, take the cheaper and slower move and say so in the recap.

## 1. size it

Expand Down Expand Up @@ -69,11 +70,12 @@ the build lane is where most work lands, so it is built for wall clock. the same

1. **one message, everything independent.** the explorers (one per unknown, read only) start in the same message. never one agent, then a wait, then the next. nothing unknown: no explorer.
2. **a plan of ten lines in chat**, written from what they return, not a document: what changes, the files each builder owns, the contract between them (a type, a route, a name), the finish line as numbers. its cold read starts in the same message as the builders on the pieces the plan is sure of. a builder on a piece the plan is unsure of waits for the read.
3. **builders split by files.** two or more independent pieces: one builder each, started together, each brief with the user's words verbatim, its files and no others, the contract, its slice of the finish line. the main thread owns the shared files and the wiring and does not build the pieces. one piece: the main thread builds it. a second agent on a one file job is slower than doing it.
3. **builders split by files.** two or more independent pieces: one builder each, started together, each brief in the shape of `playbook` `references/briefs.md` (what, preferences, what is known, variations, the finish line as numbers), with the user's words verbatim, its files and no others, the contract, its slice of the finish line. the main thread owns the shared files and the wiring and does not build the pieces. one piece: the main thread builds it. a second agent on a one file job is slower than doing it.
4. **effort where it pays.** xhigh and max sit on the plan and the final review. builders and explorers run at their row in the table. a higher effort on every seat doubles the wait and changes nothing.
5. **short reports.** every agent answers in under 200 words: what it did, what runs, what is open. anything longer goes to a file. a coordinator full of pasted reports gets slow and forgets the plan.
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).
6. **lanes talk to each other, never to the user.** a builder that needs something from another lane (a field, a route, a shape) asks that lane directly where the harness lets agents message each other, else writes the ask to the run's asks file (`.claude/run/asks.md`, one line each: from, to, the ask) and keeps building what does not depend on it. the coordinator reads the file between landings, answers there, and owns any change to the contract, telling every lane it touches.
7. **review as it lands,** below. findings go back to the builder that owns the files while the others keep going.
8. **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 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".

Expand All @@ -93,6 +95,9 @@ every reviewer is a fresh subagent per `/review`: the target, the user's words v

- **the deep lane:** read `/deep` and follow it. research, a plan with a checkable exit predicate, the cold read, the user's read, the run grant ask, the run, the trail, proof, `/ship`. the main thread coordinates and does not build there.
- **a new ask mid build** that is separate from the running work gets its own lane at once: its own branch or worktree, its own builder inside the cap, its own `/ship`. it ships alone, never folded into the running batch.
- **never sit waiting on the user.** a question that blocks one piece parks under `## the user, now` with your default, and the work moves to the next piece. the questions go out together, ordered by what each unblocks. what to decide yourself and what to leave open: `playbook` `references/briefs.md`.
- **the user owns taste, the agent owns execution.** when the user is there and a call is taste, give two or three variations with your pick first, never one answer. everything else, decide.
- **the whiteboard, when the user likes it.** `whiteboard: yes` under `## how you decide` in `~/.claude/RULES.local.md`: a look or an inspiration the user names ("the chat of x, the side preview of y") goes on a board per `design` `references/whiteboard.md`. while the user marks it, build everything that does not depend on the look. other decisions with options, a backend shape or a flow, stay as options in chat.
- **one worktree or branch per session.** claim it in the `## cooking` entry (session, branch, folder). before building, check the tbd for another session's open claim. if one holds this tree, start your own worktree and say so in one line. ask only when free disk is under the floor in step 0.

## 5. verify in two tiers
Expand Down
Loading
Loading