flow-workflows 0.63.0 → 0.65.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +43 -8
  2. package/adapters/codex/CORE.md +35 -7
  3. package/adapters/codex/skills/flow-bug-fix/SKILL.md +1 -1
  4. package/adapters/codex/skills/flow-bug-review/SKILL.md +22 -0
  5. package/adapters/codex/skills/flow-doctor/SKILL.md +11 -0
  6. package/adapters/codex/skills/flow-feat-build/SKILL.md +1 -1
  7. package/adapters/codex/skills/flow-feat-review/SKILL.md +23 -1
  8. package/adapters/codex/skills/flow-feat-start/SKILL.md +1 -1
  9. package/adapters/codex/skills/flow-init/SKILL.md +10 -0
  10. package/adapters/codex/skills/flow-work-status/SKILL.md +2 -0
  11. package/adapters/gemini/CORE.md +35 -7
  12. package/adapters/gemini/commands/flow/bug/fix.toml +1 -1
  13. package/adapters/gemini/commands/flow/bug/review.toml +22 -0
  14. package/adapters/gemini/commands/flow/doctor.toml +11 -0
  15. package/adapters/gemini/commands/flow/feat/build.toml +1 -1
  16. package/adapters/gemini/commands/flow/feat/review.toml +23 -1
  17. package/adapters/gemini/commands/flow/feat/start.toml +1 -1
  18. package/adapters/gemini/commands/flow/init.toml +10 -0
  19. package/adapters/gemini/commands/flow/work/status.toml +2 -0
  20. package/adapters/hermes/CORE.md +35 -7
  21. package/adapters/hermes/skills/flow-bug-fix/SKILL.md +1 -1
  22. package/adapters/hermes/skills/flow-bug-review/SKILL.md +22 -0
  23. package/adapters/hermes/skills/flow-doctor/SKILL.md +11 -0
  24. package/adapters/hermes/skills/flow-feat-build/SKILL.md +1 -1
  25. package/adapters/hermes/skills/flow-feat-review/SKILL.md +23 -1
  26. package/adapters/hermes/skills/flow-feat-start/SKILL.md +1 -1
  27. package/adapters/hermes/skills/flow-init/SKILL.md +10 -0
  28. package/adapters/hermes/skills/flow-work-status/SKILL.md +2 -0
  29. package/adapters/opencode/CORE.md +35 -7
  30. package/adapters/opencode/commands/flow-bug-fix.md +1 -1
  31. package/adapters/opencode/commands/flow-bug-review.md +22 -0
  32. package/adapters/opencode/commands/flow-doctor.md +11 -0
  33. package/adapters/opencode/commands/flow-feat-build.md +1 -1
  34. package/adapters/opencode/commands/flow-feat-review.md +23 -1
  35. package/adapters/opencode/commands/flow-feat-start.md +1 -1
  36. package/adapters/opencode/commands/flow-init.md +10 -0
  37. package/adapters/opencode/commands/flow-work-status.md +2 -0
  38. package/bin/cli.mjs +543 -4
  39. package/package.json +1 -1
  40. package/plugins/flow/.claude-plugin/plugin.json +1 -1
  41. package/plugins/flow/CHANGELOG.md +78 -0
  42. package/plugins/flow/examples/FLOW.template.md +20 -0
@@ -5,6 +5,84 @@ plugin and is what `/flow:news` reads to show you what changed since your previo
5
5
 
6
6
  The canonical, richest notes live in the [GitHub Releases](https://github.com/mashware/flow-workflows/releases).
7
7
 
8
+ ## v0.65.0 — Every phase rediscovered the same context, and nobody knew what it cost · 2026-09-17
9
+
10
+ **In short**
11
+ - **A round gathers its material once.** `npx flow-workflows bundle` prints one context pack — worklist, diff, changed files, the repo's own analysis output, the work's handoff — instead of every reviewer paying to rediscover it.
12
+ - **The panel can run outside the agentic loop.** With `agents.exec_cmd` set, `npx flow-workflows review` runs one reviewer per role in **one turn each**, deduplicated — and that is what runs when the key is there, not one option among two.
13
+ - **What a phase spent is written down.** `meta.json.cost[]` records the figure the harness reported, `"not reported"` when it reported none and never an estimate; `flow cost`, `/flow:work:status` and the review artifact read it back.
14
+ - **A change can be run before it is tagged.** Release candidates publish under the `next` channel, so `latest` never moves for a candidate, and four ways to run a branch on a real repo are written down.
15
+ - **Two claims stopped being promises.** The preflight now refuses a line that *depends* on one ecosystem, and a test pins the four answer shapes the review CLI has to unwrap.
16
+
17
+ A phase costs turns times context. The API keeps no state, so ten calls spent finding out what
18
+ changed cost ten times the context they find — and `review` made that worse by construction: every
19
+ member of a panel ran its own `git diff`, opened the same files, and read the same code, paying for
20
+ that material once per agent. `bundle` gathers it for the whole round in a single call, and
21
+ `quality.static_analysis` — a key that until now only ran at the end — is copied into the pack
22
+ verbatim, so a reviewer no longer spends its turns hunting for what a linter already knew.
23
+
24
+ It knows nothing about any ecosystem, which is the constraint that decided its shape. Which paths to
25
+ leave out of the diff comes from the new `git.diff_exclude`; which command reports problems comes
26
+ from the existing `quality.static_analysis`; that command's output is copied out rather than parsed,
27
+ because parsing it is exactly what would tie the plugin to one toolchain. One size rule governs the
28
+ whole pack: a file over the limit is out of both the contents and the diff, and is named with its
29
+ size.
30
+
31
+ `agents.exec_cmd` is the other half. A reviewer that only has to read a pack and answer does not
32
+ need an agentic loop, and where the key is set the round now runs one non-interactive invocation per
33
+ role — any harness, any vendor, a script of your own — with the findings deduplicated in code rather
34
+ than by a model reading eight reports. It arrived as an alternative the panel *could* take, and a
35
+ real run showed what that costs: the familiar path wins every time, in silence. So it is the path
36
+ when the key is set, with three named ways back to the agentic panel, and the review artifact now
37
+ records which one ran — a round that skipped the CLI and one that used it read the same otherwise.
38
+
39
+ Cost stopped being a design argument and became a number. Every phase that can measure what it spent
40
+ appends one entry to `meta.json.cost[]`, and the two rules are what make the block worth having: a
41
+ harness that reports nothing is recorded as `"not reported"` rather than estimated, and a phase with
42
+ no entry measured nothing — absence is not zero. The `Cost:` line of a review, meanwhile, stopped
43
+ counting subagents: a headcount is not a bill, and saying so was cheaper than pretending otherwise.
44
+
45
+ None of this requires anything of an existing repo. An empty `agents.exec_cmd` is the default and
46
+ the agentic panel runs exactly as before; a `FLOW.md` written before any of these keys existed still
47
+ produces a pack; a work with no cost block simply has none. What a machine without node loses is the
48
+ saving, not the review — the CLI failing for any reason is a documented fallback to reading the diff
49
+ from git, and `/flow:doctor` now checks for that CLI so it is a line in a diagnosis rather than a
50
+ surprise mid-phase.
51
+
52
+ Finally, two things this repo asserted about itself and never checked. `check_no_stack_leak` reads
53
+ every line of the plugin and fails the ones that *depend* on a single ecosystem — naming several is
54
+ a detection table and passes, naming one is a leak — with three narrow exemptions and no exemption
55
+ at all under `bin/`. And a change to the flow can now be installed before it is tagged: an rc
56
+ publishes under `next`, `claude --plugin-dir` loads a branch over the release you use daily, and npm
57
+ serves a branch straight from git for the other harnesses.
58
+
59
+ ## v0.64.0 — Announcing the next step was how the run ended · 2026-09-16
60
+
61
+ **In short**
62
+ - **A phase that chains no longer reports.** In `guided`/`auto` the turn opens with the call that starts the next command; the summary it used to print goes to the phase artifact.
63
+ - **`I need: nothing, continuing with X` is gone.** That line now names the decision or action being waited on — nothing else.
64
+ - **Progress lines belong to `panel.json`** (`Now`, `Next`): whoever is watching sees the run advance without it costing a turn or a stop.
65
+ - **Nothing changes for `manual`, for blockers, or for `ship`** — those are real stops and still open with the full header.
66
+
67
+ The stop header exists because the user comes back to a screen they walked away from. It is the
68
+ shape of a goodbye — ticket, plan, what just finished, what is needed — and a model that has just
69
+ written a goodbye stops. That is what `"nothing, continuing with X"` asked for: render the
70
+ farewell, then keep working. In practice the run ended there, having just promised it would not,
71
+ and the user found a pane sitting idle under a sentence saying it was busy.
72
+
73
+ The promise was not merely unlikely, it was unkeepable on some harnesses. A turn ends when the
74
+ model emits text with no tool call behind it: emitting the text *is* handing control back. Claude
75
+ Code allows text and a tool call in the same message, so there the failure is a habit; on an
76
+ OpenAI-shaped API, where a message carrying content and no `tool_calls` is terminal by
77
+ construction, there was never a way for the sentence to come true.
78
+
79
+ So the contract is now ordered rather than intended. `flow-core §3` opens by defining a stop — a
80
+ question, a hard gate, the end of the flow — and says that everything else, however much has just
81
+ finished, is not one. When the next command runs anyway, the continuing call goes **first** and no
82
+ report precedes it. `feat:start`, `feat:build`, `feat:review` and `bug:fix` say the same at their
83
+ own `## Close`, where the temptation actually lives, and `feat:review`'s `Cost:` line travels to
84
+ the stop the run does reach instead of being announced at a juncture that is not one.
85
+
8
86
  ## v0.63.0 — A file collected everything nobody was going to do · 2026-09-16
9
87
 
10
88
  **In short**
@@ -69,6 +69,12 @@ Branch and Pull/Merge Request conventions.
69
69
  - `cli:` # Empty = the default for `host` in the table above. Set it for a self-hosted forge, a wrapper, or
70
70
  # a host with no CLI of its own (`bitbucket`), where the commands degrade to plain git and say so.
71
71
  - `default_base:` # base for new branches, e.g. `origin/master` or `origin/main`.
72
+ - `diff_exclude:` # paths kept out of the diff a phase reads, one per line with `- `. Generated files nobody reviews —
73
+ # dependency locks, generated migrations, compiled assets, recorded fixtures — cost context in every
74
+ # phase that opens the diff and in every reviewer launched over it. Empty = exclude nothing.
75
+ # `/flow:init` proposes what it finds. Git pathspec syntax, so a glob works. e.g.:
76
+ # - '*.lock'
77
+ # - 'assets/build/**'
72
78
  - `branch_pattern:` # e.g. `{PREFIX}{TICKET}-{slug}`. `{slug}` in English, kebab-case. Empty = `{PREFIX}{TICKET}-{slug}`.
73
79
  - `assignee:` # user to assign the MR/PR to. Empty = do not assign.
74
80
  - `squash:` # `true` | `false` (squash-before-merge).
@@ -180,6 +186,18 @@ Two keys below configure the **parallel fan-out** (approach panel in `design` §
180
186
  sweep in `investigate` §3.A, finding verification in `review`) instead of naming an agent. The
181
187
  fan-out runs as plain parallel subagents — the primitive every harness has.
182
188
 
189
+ - `exec_cmd:` # how to invoke a harness NON-interactively, so `flow review` can run one reviewer per role in one
190
+ # turn each instead of an agentic loop each. `{ROLE}` and `{SCHEMA}` are substituted; the diff and
191
+ # the brief arrive on stdin. **Empty = the agentic panel inside `/flow:*:review` reviews, exactly
192
+ # as before** — this key is the opt-in, nothing changes without it. It takes any command: a
193
+ # subscription login, an API key, another vendor's CLI, or a script of your own. When it is set,
194
+ # that command picks the model and `models.agents`/`models.workers` no longer apply to review.
195
+ # Quote `{SCHEMA}` with DOUBLE quotes: the substitution escapes for that context and single
196
+ # quotes would hand the command invalid JSON. A harness that answers in an envelope of its own
197
+ # is unwrapped here — no `jq` needed. Measured: one reviewer over a small diff ≈ $0.17, so a
198
+ # four-role round ≈ $0.70, which is what `budget_max` below is bounding. e.g.:
199
+ # - claude -p --model sonnet --output-format json --json-schema "{SCHEMA}"
200
+ # - codex exec --model <m>
183
201
  - `fanout_max:` # max subagents per parallel round. Empty = 4. Lower it to keep the flow cheap; what a cap drops is always reported
184
202
  - `budget_max:` # max subagents ONE command run may launch in total, summed over every round (flow-core §6). Empty = 12. `0` = no ceiling
185
203
  # (not recommended). `fanout_max` bounds a round; this bounds the command — `/flow:*:review` composes a panel, area
@@ -195,6 +213,8 @@ command composes itself — the panel in `review`, the delegated pieces in `buil
195
213
  `validate` — not to the prompts this plugin already writes out with their own cap.
196
214
 
197
215
  - `report_max_words:` # word cap every brief you write for a subagent carries. Empty = 250. Not a style rule: a report too long for the harness to carry is truncated in transit and reaches you as silence
216
+ # Output tokens are the most expensive kind and are never served from cache,
217
+ # so this is a cost ceiling as much as a format rule
198
218
  - `stall_after_minutes:` # a fan-out agent past this with nothing written to its named path is stopped, its brief split in two, and relaunched. Empty = 25 —
199
219
  # a guess from one session, not a measurement. Lower it if your rounds are short and you would rather relaunch early; raise it
200
220
  # for agents that legitimately read for half an hour before writing