Skip to content

workflow: never wait, lanes that talk, one brief shape, the budget check - #16

Open
gntrs wants to merge 1 commit into
mainfrom
feat/workflow-faster
Open

gntrs wants to merge 1 commit into
mainfrom
feat/workflow-faster

Conversation

@gntrs

@gntrs gntrs commented Dec 4, 2026

Copy link
Copy Markdown
Owner

the agent stops sitting and waiting. a question that blocks one piece parks with a default, the rest keeps building, and your questions reach you together. builders that need something from each other ask each other, not you. one brief shape for how you ask and how cook hands work out. and a rare check on your plan's 5 hour and 7 day limits.

not benchmarked yet. the bar is same quality or better, and nothing here is measured against 1.3.0. the bench that does it comes next, so this stays open until it has run.

what changes

1. never sit waiting on you

before: a builder hits a question, asks, and the whole run stops until you answer.
after (skills/cook/SKILL.md section 4, skills/playbook/references/briefs.md):

  • the question parks under ## the user, now with the agent's default, and the work moves to the next piece that does not depend on it.
  • your questions arrive together, ordered by what each one unblocks. never one ping each.
  • reversible (a name, a layout inside a page, a library): the agent decides, builds, and says so in the recap.
  • outward, irreversible or taste (a push, a delete, a migration on real data, how the product feels): left open. the plain version goes in behind a seam, or the agent does other work.

2. you own taste, the agent owns execution

taste calls come as two or three variations, the agent's pick first. everything else the agent decides.

3. lanes talk to each other

front end and back end build at once off a contract written first. a builder that needs a field or a route from another lane asks that lane directly where the harness allows it, else writes the ask to .claude/run/asks.md and keeps building. the coordinator answers there and owns any contract change. you are never the relay.

4. one brief shape

skills/playbook/references/briefs.md, for you asking an agent and for cook briefing a builder:

  1. what you want, one line
  2. preferences, do and do not
  3. what you know (edge cases, bottlenecks). what you do not know, the agent lists in its plan
  4. research only when unsure, or when the project needs it
  5. variations when a person can pick
  6. the finish line as numbers

worked examples on an abstract app (a cat feeder): a bug, a feature over front and back, a research ask, the whole app from a one page brief. the readme gets a short "how to ask".

5. the whiteboard, as an opt in

whiteboard: yes under ## how you decide in RULES.local.md: a look, or an inspiration you name ("the chat of x, the side preview of y"), goes on a board you mark right and wrong. building goes on while you mark. backend and flow choices stay as options in chat.

6. the budget check

claude code already hands your statusline rate_limits.five_hour and rate_limits.seven_day. tools/limits.mjs --tap saves them to a small file, from one opt in line in your statusline script (SETUP section 3). cook reads it at the start of a build or deep task, before a fan out, and on each wake of a long run. never per agent call.

state what cook does
plenty, unknown as planned. unknown covers api keys, plans with no limits, and a snapshot older than 30 min
five-hour-tight (90% and up) finishes the lane in flight, parks the rest, wakes after the reset
week-tight-reset-soon (80% and up, reset within 36 h) goes full on what matters, stops at your floor
week-tight-reset-far asks once: stop, continue, or cheaper and slower. you away: cheaper and slower, said in the recap
week-at-floor starts nothing new, parks the rest, says when it resets

the floor (default 5%) and ask or decide live under ## budget in RULES.local.md. a window whose reset has passed counts as empty again. the tap prints nothing, and with || true it never breaks the statusline.

files

  • skills/cook/SKILL.md: step 0.6 budget, section 2 briefs and lanes that talk, section 4 never wait, taste, whiteboard
  • skills/playbook/references/briefs.md (new), skills/playbook/SKILL.md: pointers
  • skills/deep/SKILL.md: the budget on each wake, parked questions go out together
  • tools/limits.mjs (new), wired into install.sh, install.ps1, scripts/test-install.sh, package.json
  • setup/RULES.local.md: ## budget, ## how you decide
  • SETUP.md, README.md, llms.txt, AGENTS.md, CHANGELOG.md (unreleased, its own heading beside /wrapped)

cook grows from 2,546 to 2,882 words. the detail sits in briefs.md and the tool, cook keeps one line and a pointer each.

tested

  • npm test: exit 0. check ok, installer 107 passed, limits.mjs --self-test 25 passed, wrapped 92 passed, every other tool self test green
  • limits.mjs self test, checked that it can fail: five copies with a bug planted each (thresholds, the stale window, the floor compare, seconds to milliseconds, the atomic write) all went red
  • a cold review ran: fix these, 9 items, all taken (a reset that already passed, non numbers read as percents, the whiteboard waiting while the rest should build, lanes with no channel to each other, the tap failing a statusline under set -e, cook bloat, changelog headings, two wording fixes)

not checked: install.ps1 under pwsh here (ci runs it), a real cook run with these rules, the statusline tap on a live session, whether resets_at is in the statusline input on every plan.

hand test

  1. node tools/limits.mjs --self-test: 25 passed, 0 failed. any FAIL line is broken.
  2. echo '{"rate_limits":{"five_hour":{"used_percentage":95},"seven_day":{"used_percentage":40}}}' | node tools/limits.mjs --tap --file /tmp/l.json; node tools/limits.mjs --file /tmp/l.json: prints five-hour-tight: finish the lane in flight .... plenty means broken.
  3. echo 'junk' | node tools/limits.mjs --tap; echo $?: prints 0 and nothing else.
  4. read skills/playbook/references/briefs.md top to bottom: the six step shape and four worked examples, no project you recognise from real work.
  5. in a session, give cook a two piece task and say you are away. it should park a question with a default and finish the other piece, not stop and ask.

surely a response will come

- cook: a blocked question parks with a default and the work moves on; questions reach the user together. reversible calls the agent makes, outward, irreversible or taste calls stay open with the plain version behind a seam
- the user owns taste (two or three variations, the pick first), the agent owns execution
- lanes ask each other directly, or through the run's asks file, never the user; the coordinator owns contract changes
- playbook/references/briefs.md: one shape for asking and for builder briefs, worked examples on an abstract app
- the whiteboard as an opt in for looks and inspiration, building goes on while the user marks
- tools/limits.mjs: taps the 5h and 7d limits from the statusline, cook reads them at the start, before a fan out and on each wake; a floor and ask or decide in RULES.local.md
- installers, install test, npm test, SETUP, README, llms, AGENTS, changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant