flow-workflows 0.111.0 → 0.113.0
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.
- package/adapters/codex/CORE.md +14 -3
- package/adapters/codex/skills/flow-doctor/SKILL.md +1 -1
- package/adapters/codex/skills/flow-init/SKILL.md +56 -2
- package/adapters/gemini/CORE.md +14 -3
- package/adapters/gemini/commands/flow/doctor.toml +1 -1
- package/adapters/gemini/commands/flow/init.toml +56 -2
- package/adapters/hermes/CORE.md +14 -3
- package/adapters/hermes/skills/flow-doctor/SKILL.md +1 -1
- package/adapters/hermes/skills/flow-init/SKILL.md +56 -2
- package/adapters/opencode/CORE.md +14 -3
- package/adapters/opencode/commands/flow-doctor.md +1 -1
- package/adapters/opencode/commands/flow-init.md +56 -2
- package/package.json +1 -1
- package/plugins/flow/.claude-plugin/plugin.json +1 -1
- package/plugins/flow/CHANGELOG.md +27 -0
- package/plugins/flow/examples/FLOW.template.md +3 -4
package/adapters/codex/CORE.md
CHANGED
|
@@ -17,7 +17,7 @@ Every `$flow-*` command assumes these rules. They are stated once, here, so a co
|
|
|
17
17
|
carries what is specific to its phase. Read this once per session; a command that says "load
|
|
18
18
|
`flow-core`" means this file.
|
|
19
19
|
|
|
20
|
-
**This file belongs to flow `0.
|
|
20
|
+
**This file belongs to flow `0.113.0`.** Compare it once, at the start of the session, against
|
|
21
21
|
`version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
|
|
22
22
|
is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
|
|
23
23
|
— which is exactly what happens when a branch or a release candidate is loaded over an installed
|
|
@@ -808,8 +808,9 @@ client-side estimate and can differ from a bill.
|
|
|
808
808
|
### 4.6 The artifact mirror — one page for every work, opt-in
|
|
809
809
|
|
|
810
810
|
Someone running flow in several consoles, across several repos, has one panel per pane and no view
|
|
811
|
-
of them together. `panel.artifact` in the FLOW config — the URL of a claude.ai artifact
|
|
812
|
-
from `examples/panel-artifact.html`
|
|
811
|
+
of them together. `panel.artifact` in the FLOW config — the URL of a claude.ai artifact, which
|
|
812
|
+
`$flow-init room` publishes from `examples/panel-artifact.html` or finds among the person's own —
|
|
813
|
+
turns on a mirror: each work writes its own card to that
|
|
813
814
|
page's shared database, and the page shows every card, grouped by repo. Empty or absent → this
|
|
814
815
|
section does not exist: no artifact tool is loaded or called.
|
|
815
816
|
|
|
@@ -818,6 +819,16 @@ section does not exist: no artifact tool is loaded or called.
|
|
|
818
819
|
Absent → the mirror is off, in silence: no line, no error. A headless run (`claude -p`, an
|
|
819
820
|
`unattended` container) has no such tool, and other harnesses never read `FLOW.claude.md`, where
|
|
820
821
|
the key belongs.
|
|
822
|
+
- **The page is kept current — once per session**, before its first card write. Artifact `read`
|
|
823
|
+
of the URL, and the `content` of `<meta name="flow-room-page">` in what comes back, against the
|
|
824
|
+
same tag in `~/.claude/flow/examples/panel-artifact.html`. Equal or higher → nothing.
|
|
825
|
+
Lower or absent → the page predates this plugin, and an old page draws states the cards no
|
|
826
|
+
longer mean: republish it — copy the example into the session's scratchpad (the Artifact tool
|
|
827
|
+
publishes only from there or the working directory), read it whole, publish that copy with `url`
|
|
828
|
+
the key's value and no `capabilities`, so the page keeps its database and every card. The read
|
|
829
|
+
saying the person cannot edit it (no "writer") → leave it. Either failing, or a page left
|
|
830
|
+
behind, → the next stop carries one line, `artifact panel: page out of date — <why>`, and the
|
|
831
|
+
cards are written anyway: an old page still shows them.
|
|
821
832
|
- **When**: right after the transport publishes, at §4.4 (a) to (e) — a phase's own publications
|
|
822
833
|
(`ship` the moment an MR/PR URL exists, `plan`, `resume`, `watch`, `abandon`) are among them. At
|
|
823
834
|
(f), a plan step, only when the card's last write is 10 minutes old or more: every write is a
|
|
@@ -226,7 +226,7 @@ refuse) · **degraded** (it runs, quietly worse than the config promises), plus
|
|
|
226
226
|
that fits, else `general-purpose` (a skill: skipped) — a panel missing agents reviews less and still reports a clean pass.
|
|
227
227
|
- Harness cannot set a model per subagent → note that every `models.*` value degrades to inheritance.
|
|
228
228
|
- **Where the live panel will go this session** (flow-core §4): a tool whose name ends in `panel_set` / `panel_patch` — namespaced by the harness (`mcp__panel__panel_set` on Claude Code) and possibly **deferred**, which reads as absent until the list of deferred tools is checked → the terminal draws the panel and no `panel.json` is written; genuinely absent → the panel is that file, as before. Neither is a fault — one line naming the tools as they are actually called here, or saying the file is the transport.
|
|
229
|
-
- **The artifact mirror** (flow-core §4.6) —
|
|
229
|
+
- **The artifact mirror** (flow-core §4.6) — `panel.artifact` empty and the artifact tools here → one information line, not a fault: *control room off — `$flow-init room` turns it on*. Set: one line with its value and the file it came from; whether a tool whose name ends in `ArtifactData` is here (deferred counts); and, when it is, whether a `list` of collection `works` (limit 1) on that URL answers — a read, never a write. Tool present → also name the rule that keeps every card update from asking — `ArtifactData` (as the harness calls it) under `permissions.allow` — and its cost in the same line: it lets any session write to the data of any of your artifacts without asking, not only this page's; without it, each card update is approved by hand. The value coming from any file but `FLOW.claude.md` → a fault: the URL is one person's page, and a committed `FLOW.md` hands it to every teammate, whose writes it refuses. Key set and no tool → *off in this harness*, not a fault. The read failing → the error, as a fault. The read answering → also the page's version (`flow-room-page`, through an Artifact `read`) against the plugin's example: older or absent → one information line, *control room page out of date — the next card write republishes it*, not a fault.
|
|
230
230
|
|
|
231
231
|
### 2.3 Knowledge sources
|
|
232
232
|
|
|
@@ -5,7 +5,7 @@ description: "Assistant that generates FLOW.md and its optional harness overlay
|
|
|
5
5
|
|
|
6
6
|
<!-- GENERATED by script/adapter-build.py from plugins/flow/commands/init.md — do not edit; change the plugin file and run the script. -->
|
|
7
7
|
|
|
8
|
-
# `$flow-init`
|
|
8
|
+
# `$flow-init $ARGUMENTS`
|
|
9
9
|
|
|
10
10
|
> **codex adapter — how the Claude Code primitives named below map here.**
|
|
11
11
|
> - `AskUserQuestion` → ask in plain text with numbered options and wait for the reply.
|
|
@@ -30,6 +30,12 @@ auto-detected and only confirmed.
|
|
|
30
30
|
|
|
31
31
|
Key names and contract: `examples/FLOW.template.md` from the plugin. Do not invent keys that are not there.
|
|
32
32
|
|
|
33
|
+
**`$ARGUMENTS` is `room`** → run only §4.5, the control room, and end there — for a repo that is
|
|
34
|
+
already set up. Neither `FLOW.md` nor the active overlay exists → say so in one line and run the
|
|
35
|
+
whole command instead: the room is offered at its close, and a repo never ends with an overlay that
|
|
36
|
+
holds nothing but the room while nobody was asked the rest. Any other `$ARGUMENTS` → ignore it and
|
|
37
|
+
run the whole command.
|
|
38
|
+
|
|
33
39
|
## 1. If either configuration file already exists
|
|
34
40
|
|
|
35
41
|
Show `FLOW.md` and the active overlay when each exists, then show their effective merged values —
|
|
@@ -143,7 +149,7 @@ phase, so their size is paid on every step:
|
|
|
143
149
|
current file unless the user explicitly requested a split.
|
|
144
150
|
- Two-line header in each file: whether it is the shared base or which harness it overlays, and that
|
|
145
151
|
the plugin's `examples/FLOW.template.md` documents every key, merge rule, and default.
|
|
146
|
-
- Sections in the template's order — tracker, git, autonomy, quality, agents, models, data, conventions, notes, knowledge, observability — but **only the sections and keys that have a value**. One line per key: `- key: value`. No template comments.
|
|
152
|
+
- Sections in the template's order — tracker, git, autonomy, quality, agents, models, data, conventions, roadmap, panel, notes, knowledge, observability — but **only the sections and keys that have a value**. One line per key: `- key: value`. No template comments.
|
|
147
153
|
- Empty keys are omitted from the base (absent = default). In an overlay, preserve or write an empty
|
|
148
154
|
key only when it intentionally masks a non-empty base value; removing it would change the
|
|
149
155
|
effective config. A section with no set or masking key is omitted. **The two base-file exceptions
|
|
@@ -154,6 +160,52 @@ phase, so their size is paid on every step:
|
|
|
154
160
|
|
|
155
161
|
- **A worked example exists for one stack.** When detection says PHP (a `composer.json`, a `symfony.lock`, a `bin/console`), add **one line** to the close: *"an example `FLOW.md` and agent set for Symfony ship with the plugin under `examples/symfony/` — copy what applies."* Never copy anything on your own, and never mention it for another stack: it is one stack's answer, not a default.
|
|
156
162
|
|
|
163
|
+
## 4.5 Control room — one page for every work (Claude Code)
|
|
164
|
+
|
|
165
|
+
Plain `init` runs this **from §5's close**, as its last question; `init room` runs it alone. Either
|
|
166
|
+
way, leaving this section ends only this section.
|
|
167
|
+
|
|
168
|
+
Only when a tool whose name ends in `Artifact` and one ending in `ArtifactData` are both here
|
|
169
|
+
(deferred counts: load them) — interactive Claude Code. Neither → plain `init` says nothing about
|
|
170
|
+
it; `init room` says in one line that the control room needs an interactive Claude Code session.
|
|
171
|
+
|
|
172
|
+
The control room is the page flow-core §4.6 mirrors every work's panel to; each person has one, and
|
|
173
|
+
every repo they work in points at it.
|
|
174
|
+
|
|
175
|
+
1. **Already set?** `panel.artifact` resolves (flow-core §0) from `FLOW.claude.md` → say where it
|
|
176
|
+
points; nothing else to do. From any other file → it is one person's page handed to whoever
|
|
177
|
+
reads that file (doctor flags it): offer, in the question of step 4, to move it to
|
|
178
|
+
`FLOW.claude.md`.
|
|
179
|
+
2. **Find theirs.** Artifact `list`, scope `mine`, `limit` 200, every page of it (`page_token`
|
|
180
|
+
until none is left): the artifacts titled exactly `Flow Control Room`. A page past the first 25
|
|
181
|
+
is still theirs, and a second page would split their works in two. Read `works` once (ArtifactData
|
|
182
|
+
`list`, limit 1) on each candidate you will offer: a page that refuses it was published without
|
|
183
|
+
its database and cannot hold cards — leave it out.
|
|
184
|
+
3. **Can the key be kept out of git?** `git ls-files --error-unmatch FLOW.claude.md` succeeds → the
|
|
185
|
+
overlay is tracked, and anything written there reaches the team: do not write the key — say so,
|
|
186
|
+
and that untracking the file (`git rm --cached FLOW.claude.md`, then ignoring it) is the user's
|
|
187
|
+
call. Not tracked and not git-ignored (`git check-ignore -q FLOW.claude.md` fails — `.git/info/exclude` counts as ignored) → the step-4 question also asks to ignore it, unless §5
|
|
188
|
+
already asked that this run.
|
|
189
|
+
4. **One `AskUserQuestion`**, before anything is published or written. Options: each page found in
|
|
190
|
+
step 2, most recently updated first, at most three — or, when none was found, **publish your
|
|
191
|
+
control room** — and **not now**. With a page found, **publish a new one** stays as an option
|
|
192
|
+
only when fewer than three were offered. The ignore part of step 3 and the move of step 1 ride
|
|
193
|
+
along in the same question.
|
|
194
|
+
5. **Publish, when chosen.** Copy `~/.claude/flow/examples/panel-artifact.html` into the
|
|
195
|
+
session's scratchpad (the Artifact tool publishes only from the working directory or the
|
|
196
|
+
scratchpad, and the plugin's folder is neither), read it whole, load whatever the harness asks
|
|
197
|
+
for before passing `capabilities`, and publish that copy as a new artifact with the capabilities
|
|
198
|
+
its header names. Nobody types a path or a version: the plugin knows where it is.
|
|
199
|
+
**Reuse, when a found page was chosen**: bring it up to date as flow-core §4.6 says (*The page
|
|
200
|
+
is kept current*) — a page published by an older plugin is republished from the example, with
|
|
201
|
+
its cards kept.
|
|
202
|
+
6. **Write the key** — `- artifact: <url>` under `## panel` in `FLOW.claude.md`, in the template's
|
|
203
|
+
section order (§4): the section exists → replace the value; the file exists without it → insert
|
|
204
|
+
the section where that order puts it; absent → create the file with the two-line header of §4
|
|
205
|
+
and that section alone. Then the ignore line, if it was accepted.
|
|
206
|
+
7. **One line**: the URL, whether it was reused (and brought up to date) or published, and that
|
|
207
|
+
`$flow-doctor` checks it and names the permission rule that stops each card update from asking.
|
|
208
|
+
|
|
157
209
|
## 5. Close
|
|
158
210
|
|
|
159
211
|
- Summarize on screen: what was written to the base, what was written to the active overlay, and
|
|
@@ -169,4 +221,6 @@ phase, so their size is paid on every step:
|
|
|
169
221
|
(`FLOW.<context>.md`, flow-core §0), which a repo commits on purpose. Do not use a recursive
|
|
170
222
|
pattern either: examples under the plugin must remain visible.
|
|
171
223
|
- Git-ignore `.claude/work/` too — recommended default: ignore it (artifacts are personal working state; teams that want to share them commit deliberately). `git.worktree` not `off` → offer `.worktrees/` in the same gesture.
|
|
224
|
+
- **The control room** (§4.5), when the artifact tools are here and `panel.artifact` is empty: offer
|
|
225
|
+
it as the last question of the close.
|
|
172
226
|
- Suggest `$flow-next` as the next step (it routes to `$flow-feat-start`, `$flow-work-resume` or `$flow-work-daily`).
|
package/adapters/gemini/CORE.md
CHANGED
|
@@ -16,7 +16,7 @@ Every `/flow:*` command assumes these rules. They are stated once, here, so a co
|
|
|
16
16
|
carries what is specific to its phase. Read this once per session; a command that says "load
|
|
17
17
|
`flow-core`" means this file.
|
|
18
18
|
|
|
19
|
-
**This file belongs to flow `0.
|
|
19
|
+
**This file belongs to flow `0.113.0`.** Compare it once, at the start of the session, against
|
|
20
20
|
`version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
|
|
21
21
|
is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
|
|
22
22
|
— which is exactly what happens when a branch or a release candidate is loaded over an installed
|
|
@@ -807,8 +807,9 @@ client-side estimate and can differ from a bill.
|
|
|
807
807
|
### 4.6 The artifact mirror — one page for every work, opt-in
|
|
808
808
|
|
|
809
809
|
Someone running flow in several consoles, across several repos, has one panel per pane and no view
|
|
810
|
-
of them together. `panel.artifact` in the FLOW config — the URL of a claude.ai artifact
|
|
811
|
-
from `examples/panel-artifact.html`
|
|
810
|
+
of them together. `panel.artifact` in the FLOW config — the URL of a claude.ai artifact, which
|
|
811
|
+
`/flow:init room` publishes from `examples/panel-artifact.html` or finds among the person's own —
|
|
812
|
+
turns on a mirror: each work writes its own card to that
|
|
812
813
|
page's shared database, and the page shows every card, grouped by repo. Empty or absent → this
|
|
813
814
|
section does not exist: no artifact tool is loaded or called.
|
|
814
815
|
|
|
@@ -817,6 +818,16 @@ section does not exist: no artifact tool is loaded or called.
|
|
|
817
818
|
Absent → the mirror is off, in silence: no line, no error. A headless run (`claude -p`, an
|
|
818
819
|
`unattended` container) has no such tool, and other harnesses never read `FLOW.claude.md`, where
|
|
819
820
|
the key belongs.
|
|
821
|
+
- **The page is kept current — once per session**, before its first card write. Artifact `read`
|
|
822
|
+
of the URL, and the `content` of `<meta name="flow-room-page">` in what comes back, against the
|
|
823
|
+
same tag in `~/.claude/flow/examples/panel-artifact.html`. Equal or higher → nothing.
|
|
824
|
+
Lower or absent → the page predates this plugin, and an old page draws states the cards no
|
|
825
|
+
longer mean: republish it — copy the example into the session's scratchpad (the Artifact tool
|
|
826
|
+
publishes only from there or the working directory), read it whole, publish that copy with `url`
|
|
827
|
+
the key's value and no `capabilities`, so the page keeps its database and every card. The read
|
|
828
|
+
saying the person cannot edit it (no "writer") → leave it. Either failing, or a page left
|
|
829
|
+
behind, → the next stop carries one line, `artifact panel: page out of date — <why>`, and the
|
|
830
|
+
cards are written anyway: an old page still shows them.
|
|
820
831
|
- **When**: right after the transport publishes, at §4.4 (a) to (e) — a phase's own publications
|
|
821
832
|
(`ship` the moment an MR/PR URL exists, `plan`, `resume`, `watch`, `abandon`) are among them. At
|
|
822
833
|
(f), a plan step, only when the card's last write is 10 minutes old or more: every write is a
|
|
@@ -222,7 +222,7 @@ refuse) · **degraded** (it runs, quietly worse than the config promises), plus
|
|
|
222
222
|
that fits, else `general-purpose` (a skill: skipped) — a panel missing agents reviews less and still reports a clean pass.
|
|
223
223
|
- Harness cannot set a model per subagent → note that every `models.*` value degrades to inheritance.
|
|
224
224
|
- **Where the live panel will go this session** (flow-core §4): a tool whose name ends in `panel_set` / `panel_patch` — namespaced by the harness (`mcp__panel__panel_set` on Claude Code) and possibly **deferred**, which reads as absent until the list of deferred tools is checked → the terminal draws the panel and no `panel.json` is written; genuinely absent → the panel is that file, as before. Neither is a fault — one line naming the tools as they are actually called here, or saying the file is the transport.
|
|
225
|
-
- **The artifact mirror** (flow-core §4.6) —
|
|
225
|
+
- **The artifact mirror** (flow-core §4.6) — `panel.artifact` empty and the artifact tools here → one information line, not a fault: *control room off — `/flow:init room` turns it on*. Set: one line with its value and the file it came from; whether a tool whose name ends in `ArtifactData` is here (deferred counts); and, when it is, whether a `list` of collection `works` (limit 1) on that URL answers — a read, never a write. Tool present → also name the rule that keeps every card update from asking — `ArtifactData` (as the harness calls it) under `permissions.allow` — and its cost in the same line: it lets any session write to the data of any of your artifacts without asking, not only this page's; without it, each card update is approved by hand. The value coming from any file but `FLOW.claude.md` → a fault: the URL is one person's page, and a committed `FLOW.md` hands it to every teammate, whose writes it refuses. Key set and no tool → *off in this harness*, not a fault. The read failing → the error, as a fault. The read answering → also the page's version (`flow-room-page`, through an Artifact `read`) against the plugin's example: older or absent → one information line, *control room page out of date — the next card write republishes it*, not a fault.
|
|
226
226
|
|
|
227
227
|
### 2.3 Knowledge sources
|
|
228
228
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description = "Assistant that generates FLOW.md and its optional harness overlay (auto-detects what it can, asks the minimum)"
|
|
3
3
|
|
|
4
4
|
prompt = """
|
|
5
|
-
# `/flow:init`
|
|
5
|
+
# `/flow:init {{args}}`
|
|
6
6
|
|
|
7
7
|
> **gemini adapter — how the Claude Code primitives named below map here.**
|
|
8
8
|
> - `AskUserQuestion` → ask in plain text with numbered options and wait for the reply.
|
|
@@ -26,6 +26,12 @@ auto-detected and only confirmed.
|
|
|
26
26
|
|
|
27
27
|
Key names and contract: `examples/FLOW.template.md` from the plugin. Do not invent keys that are not there.
|
|
28
28
|
|
|
29
|
+
**`{{args}}` is `room`** → run only §4.5, the control room, and end there — for a repo that is
|
|
30
|
+
already set up. Neither `FLOW.md` nor the active overlay exists → say so in one line and run the
|
|
31
|
+
whole command instead: the room is offered at its close, and a repo never ends with an overlay that
|
|
32
|
+
holds nothing but the room while nobody was asked the rest. Any other `{{args}}` → ignore it and
|
|
33
|
+
run the whole command.
|
|
34
|
+
|
|
29
35
|
## 1. If either configuration file already exists
|
|
30
36
|
|
|
31
37
|
Show `FLOW.md` and the active overlay when each exists, then show their effective merged values —
|
|
@@ -139,7 +145,7 @@ phase, so their size is paid on every step:
|
|
|
139
145
|
current file unless the user explicitly requested a split.
|
|
140
146
|
- Two-line header in each file: whether it is the shared base or which harness it overlays, and that
|
|
141
147
|
the plugin's `examples/FLOW.template.md` documents every key, merge rule, and default.
|
|
142
|
-
- Sections in the template's order — tracker, git, autonomy, quality, agents, models, data, conventions, notes, knowledge, observability — but **only the sections and keys that have a value**. One line per key: `- key: value`. No template comments.
|
|
148
|
+
- Sections in the template's order — tracker, git, autonomy, quality, agents, models, data, conventions, roadmap, panel, notes, knowledge, observability — but **only the sections and keys that have a value**. One line per key: `- key: value`. No template comments.
|
|
143
149
|
- Empty keys are omitted from the base (absent = default). In an overlay, preserve or write an empty
|
|
144
150
|
key only when it intentionally masks a non-empty base value; removing it would change the
|
|
145
151
|
effective config. A section with no set or masking key is omitted. **The two base-file exceptions
|
|
@@ -150,6 +156,52 @@ phase, so their size is paid on every step:
|
|
|
150
156
|
|
|
151
157
|
- **A worked example exists for one stack.** When detection says PHP (a `composer.json`, a `symfony.lock`, a `bin/console`), add **one line** to the close: *"an example `FLOW.md` and agent set for Symfony ship with the plugin under `examples/symfony/` — copy what applies."* Never copy anything on your own, and never mention it for another stack: it is one stack's answer, not a default.
|
|
152
158
|
|
|
159
|
+
## 4.5 Control room — one page for every work (Claude Code)
|
|
160
|
+
|
|
161
|
+
Plain `init` runs this **from §5's close**, as its last question; `init room` runs it alone. Either
|
|
162
|
+
way, leaving this section ends only this section.
|
|
163
|
+
|
|
164
|
+
Only when a tool whose name ends in `Artifact` and one ending in `ArtifactData` are both here
|
|
165
|
+
(deferred counts: load them) — interactive Claude Code. Neither → plain `init` says nothing about
|
|
166
|
+
it; `init room` says in one line that the control room needs an interactive Claude Code session.
|
|
167
|
+
|
|
168
|
+
The control room is the page flow-core §4.6 mirrors every work's panel to; each person has one, and
|
|
169
|
+
every repo they work in points at it.
|
|
170
|
+
|
|
171
|
+
1. **Already set?** `panel.artifact` resolves (flow-core §0) from `FLOW.claude.md` → say where it
|
|
172
|
+
points; nothing else to do. From any other file → it is one person's page handed to whoever
|
|
173
|
+
reads that file (doctor flags it): offer, in the question of step 4, to move it to
|
|
174
|
+
`FLOW.claude.md`.
|
|
175
|
+
2. **Find theirs.** Artifact `list`, scope `mine`, `limit` 200, every page of it (`page_token`
|
|
176
|
+
until none is left): the artifacts titled exactly `Flow Control Room`. A page past the first 25
|
|
177
|
+
is still theirs, and a second page would split their works in two. Read `works` once (ArtifactData
|
|
178
|
+
`list`, limit 1) on each candidate you will offer: a page that refuses it was published without
|
|
179
|
+
its database and cannot hold cards — leave it out.
|
|
180
|
+
3. **Can the key be kept out of git?** `git ls-files --error-unmatch FLOW.claude.md` succeeds → the
|
|
181
|
+
overlay is tracked, and anything written there reaches the team: do not write the key — say so,
|
|
182
|
+
and that untracking the file (`git rm --cached FLOW.claude.md`, then ignoring it) is the user's
|
|
183
|
+
call. Not tracked and not git-ignored (`git check-ignore -q FLOW.claude.md` fails — `.git/info/exclude` counts as ignored) → the step-4 question also asks to ignore it, unless §5
|
|
184
|
+
already asked that this run.
|
|
185
|
+
4. **One `AskUserQuestion`**, before anything is published or written. Options: each page found in
|
|
186
|
+
step 2, most recently updated first, at most three — or, when none was found, **publish your
|
|
187
|
+
control room** — and **not now**. With a page found, **publish a new one** stays as an option
|
|
188
|
+
only when fewer than three were offered. The ignore part of step 3 and the move of step 1 ride
|
|
189
|
+
along in the same question.
|
|
190
|
+
5. **Publish, when chosen.** Copy `~/.claude/flow/examples/panel-artifact.html` into the
|
|
191
|
+
session's scratchpad (the Artifact tool publishes only from the working directory or the
|
|
192
|
+
scratchpad, and the plugin's folder is neither), read it whole, load whatever the harness asks
|
|
193
|
+
for before passing `capabilities`, and publish that copy as a new artifact with the capabilities
|
|
194
|
+
its header names. Nobody types a path or a version: the plugin knows where it is.
|
|
195
|
+
**Reuse, when a found page was chosen**: bring it up to date as flow-core §4.6 says (*The page
|
|
196
|
+
is kept current*) — a page published by an older plugin is republished from the example, with
|
|
197
|
+
its cards kept.
|
|
198
|
+
6. **Write the key** — `- artifact: <url>` under `## panel` in `FLOW.claude.md`, in the template's
|
|
199
|
+
section order (§4): the section exists → replace the value; the file exists without it → insert
|
|
200
|
+
the section where that order puts it; absent → create the file with the two-line header of §4
|
|
201
|
+
and that section alone. Then the ignore line, if it was accepted.
|
|
202
|
+
7. **One line**: the URL, whether it was reused (and brought up to date) or published, and that
|
|
203
|
+
`/flow:doctor` checks it and names the permission rule that stops each card update from asking.
|
|
204
|
+
|
|
153
205
|
## 5. Close
|
|
154
206
|
|
|
155
207
|
- Summarize on screen: what was written to the base, what was written to the active overlay, and
|
|
@@ -165,5 +217,7 @@ phase, so their size is paid on every step:
|
|
|
165
217
|
(`FLOW.<context>.md`, flow-core §0), which a repo commits on purpose. Do not use a recursive
|
|
166
218
|
pattern either: examples under the plugin must remain visible.
|
|
167
219
|
- Git-ignore `.claude/work/` too — recommended default: ignore it (artifacts are personal working state; teams that want to share them commit deliberately). `git.worktree` not `off` → offer `.worktrees/` in the same gesture.
|
|
220
|
+
- **The control room** (§4.5), when the artifact tools are here and `panel.artifact` is empty: offer
|
|
221
|
+
it as the last question of the close.
|
|
168
222
|
- Suggest `/flow:next` as the next step (it routes to `/flow:feat:start`, `/flow:work:resume` or `/flow:work:daily`).
|
|
169
223
|
"""
|
package/adapters/hermes/CORE.md
CHANGED
|
@@ -17,7 +17,7 @@ Every `/flow-*` command assumes these rules. They are stated once, here, so a co
|
|
|
17
17
|
carries what is specific to its phase. Read this once per session; a command that says "load
|
|
18
18
|
`flow-core`" means this file.
|
|
19
19
|
|
|
20
|
-
**This file belongs to flow `0.
|
|
20
|
+
**This file belongs to flow `0.113.0`.** Compare it once, at the start of the session, against
|
|
21
21
|
`version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
|
|
22
22
|
is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
|
|
23
23
|
— which is exactly what happens when a branch or a release candidate is loaded over an installed
|
|
@@ -808,8 +808,9 @@ client-side estimate and can differ from a bill.
|
|
|
808
808
|
### 4.6 The artifact mirror — one page for every work, opt-in
|
|
809
809
|
|
|
810
810
|
Someone running flow in several consoles, across several repos, has one panel per pane and no view
|
|
811
|
-
of them together. `panel.artifact` in the FLOW config — the URL of a claude.ai artifact
|
|
812
|
-
from `examples/panel-artifact.html`
|
|
811
|
+
of them together. `panel.artifact` in the FLOW config — the URL of a claude.ai artifact, which
|
|
812
|
+
`/flow-init room` publishes from `examples/panel-artifact.html` or finds among the person's own —
|
|
813
|
+
turns on a mirror: each work writes its own card to that
|
|
813
814
|
page's shared database, and the page shows every card, grouped by repo. Empty or absent → this
|
|
814
815
|
section does not exist: no artifact tool is loaded or called.
|
|
815
816
|
|
|
@@ -818,6 +819,16 @@ section does not exist: no artifact tool is loaded or called.
|
|
|
818
819
|
Absent → the mirror is off, in silence: no line, no error. A headless run (`claude -p`, an
|
|
819
820
|
`unattended` container) has no such tool, and other harnesses never read `FLOW.claude.md`, where
|
|
820
821
|
the key belongs.
|
|
822
|
+
- **The page is kept current — once per session**, before its first card write. Artifact `read`
|
|
823
|
+
of the URL, and the `content` of `<meta name="flow-room-page">` in what comes back, against the
|
|
824
|
+
same tag in `~/.claude/flow/examples/panel-artifact.html`. Equal or higher → nothing.
|
|
825
|
+
Lower or absent → the page predates this plugin, and an old page draws states the cards no
|
|
826
|
+
longer mean: republish it — copy the example into the session's scratchpad (the Artifact tool
|
|
827
|
+
publishes only from there or the working directory), read it whole, publish that copy with `url`
|
|
828
|
+
the key's value and no `capabilities`, so the page keeps its database and every card. The read
|
|
829
|
+
saying the person cannot edit it (no "writer") → leave it. Either failing, or a page left
|
|
830
|
+
behind, → the next stop carries one line, `artifact panel: page out of date — <why>`, and the
|
|
831
|
+
cards are written anyway: an old page still shows them.
|
|
821
832
|
- **When**: right after the transport publishes, at §4.4 (a) to (e) — a phase's own publications
|
|
822
833
|
(`ship` the moment an MR/PR URL exists, `plan`, `resume`, `watch`, `abandon`) are among them. At
|
|
823
834
|
(f), a plan step, only when the card's last write is 10 minutes old or more: every write is a
|
|
@@ -226,7 +226,7 @@ refuse) · **degraded** (it runs, quietly worse than the config promises), plus
|
|
|
226
226
|
that fits, else `general-purpose` (a skill: skipped) — a panel missing agents reviews less and still reports a clean pass.
|
|
227
227
|
- Harness cannot set a model per subagent → note that every `models.*` value degrades to inheritance.
|
|
228
228
|
- **Where the live panel will go this session** (flow-core §4): a tool whose name ends in `panel_set` / `panel_patch` — namespaced by the harness (`mcp__panel__panel_set` on Claude Code) and possibly **deferred**, which reads as absent until the list of deferred tools is checked → the terminal draws the panel and no `panel.json` is written; genuinely absent → the panel is that file, as before. Neither is a fault — one line naming the tools as they are actually called here, or saying the file is the transport.
|
|
229
|
-
- **The artifact mirror** (flow-core §4.6) —
|
|
229
|
+
- **The artifact mirror** (flow-core §4.6) — `panel.artifact` empty and the artifact tools here → one information line, not a fault: *control room off — `/flow-init room` turns it on*. Set: one line with its value and the file it came from; whether a tool whose name ends in `ArtifactData` is here (deferred counts); and, when it is, whether a `list` of collection `works` (limit 1) on that URL answers — a read, never a write. Tool present → also name the rule that keeps every card update from asking — `ArtifactData` (as the harness calls it) under `permissions.allow` — and its cost in the same line: it lets any session write to the data of any of your artifacts without asking, not only this page's; without it, each card update is approved by hand. The value coming from any file but `FLOW.claude.md` → a fault: the URL is one person's page, and a committed `FLOW.md` hands it to every teammate, whose writes it refuses. Key set and no tool → *off in this harness*, not a fault. The read failing → the error, as a fault. The read answering → also the page's version (`flow-room-page`, through an Artifact `read`) against the plugin's example: older or absent → one information line, *control room page out of date — the next card write republishes it*, not a fault.
|
|
230
230
|
|
|
231
231
|
### 2.3 Knowledge sources
|
|
232
232
|
|
|
@@ -5,7 +5,7 @@ description: "Assistant that generates FLOW.md and its optional harness overlay
|
|
|
5
5
|
|
|
6
6
|
<!-- GENERATED by script/adapter-build.py from plugins/flow/commands/init.md — do not edit; change the plugin file and run the script. -->
|
|
7
7
|
|
|
8
|
-
# `/flow-init`
|
|
8
|
+
# `/flow-init $ARGUMENTS`
|
|
9
9
|
|
|
10
10
|
> **hermes adapter — how the Claude Code primitives named below map here.**
|
|
11
11
|
> - `AskUserQuestion` → ask in plain text with numbered options and wait for the reply.
|
|
@@ -30,6 +30,12 @@ auto-detected and only confirmed.
|
|
|
30
30
|
|
|
31
31
|
Key names and contract: `examples/FLOW.template.md` from the plugin. Do not invent keys that are not there.
|
|
32
32
|
|
|
33
|
+
**`$ARGUMENTS` is `room`** → run only §4.5, the control room, and end there — for a repo that is
|
|
34
|
+
already set up. Neither `FLOW.md` nor the active overlay exists → say so in one line and run the
|
|
35
|
+
whole command instead: the room is offered at its close, and a repo never ends with an overlay that
|
|
36
|
+
holds nothing but the room while nobody was asked the rest. Any other `$ARGUMENTS` → ignore it and
|
|
37
|
+
run the whole command.
|
|
38
|
+
|
|
33
39
|
## 1. If either configuration file already exists
|
|
34
40
|
|
|
35
41
|
Show `FLOW.md` and the active overlay when each exists, then show their effective merged values —
|
|
@@ -143,7 +149,7 @@ phase, so their size is paid on every step:
|
|
|
143
149
|
current file unless the user explicitly requested a split.
|
|
144
150
|
- Two-line header in each file: whether it is the shared base or which harness it overlays, and that
|
|
145
151
|
the plugin's `examples/FLOW.template.md` documents every key, merge rule, and default.
|
|
146
|
-
- Sections in the template's order — tracker, git, autonomy, quality, agents, models, data, conventions, notes, knowledge, observability — but **only the sections and keys that have a value**. One line per key: `- key: value`. No template comments.
|
|
152
|
+
- Sections in the template's order — tracker, git, autonomy, quality, agents, models, data, conventions, roadmap, panel, notes, knowledge, observability — but **only the sections and keys that have a value**. One line per key: `- key: value`. No template comments.
|
|
147
153
|
- Empty keys are omitted from the base (absent = default). In an overlay, preserve or write an empty
|
|
148
154
|
key only when it intentionally masks a non-empty base value; removing it would change the
|
|
149
155
|
effective config. A section with no set or masking key is omitted. **The two base-file exceptions
|
|
@@ -154,6 +160,52 @@ phase, so their size is paid on every step:
|
|
|
154
160
|
|
|
155
161
|
- **A worked example exists for one stack.** When detection says PHP (a `composer.json`, a `symfony.lock`, a `bin/console`), add **one line** to the close: *"an example `FLOW.md` and agent set for Symfony ship with the plugin under `examples/symfony/` — copy what applies."* Never copy anything on your own, and never mention it for another stack: it is one stack's answer, not a default.
|
|
156
162
|
|
|
163
|
+
## 4.5 Control room — one page for every work (Claude Code)
|
|
164
|
+
|
|
165
|
+
Plain `init` runs this **from §5's close**, as its last question; `init room` runs it alone. Either
|
|
166
|
+
way, leaving this section ends only this section.
|
|
167
|
+
|
|
168
|
+
Only when a tool whose name ends in `Artifact` and one ending in `ArtifactData` are both here
|
|
169
|
+
(deferred counts: load them) — interactive Claude Code. Neither → plain `init` says nothing about
|
|
170
|
+
it; `init room` says in one line that the control room needs an interactive Claude Code session.
|
|
171
|
+
|
|
172
|
+
The control room is the page flow-core §4.6 mirrors every work's panel to; each person has one, and
|
|
173
|
+
every repo they work in points at it.
|
|
174
|
+
|
|
175
|
+
1. **Already set?** `panel.artifact` resolves (flow-core §0) from `FLOW.claude.md` → say where it
|
|
176
|
+
points; nothing else to do. From any other file → it is one person's page handed to whoever
|
|
177
|
+
reads that file (doctor flags it): offer, in the question of step 4, to move it to
|
|
178
|
+
`FLOW.claude.md`.
|
|
179
|
+
2. **Find theirs.** Artifact `list`, scope `mine`, `limit` 200, every page of it (`page_token`
|
|
180
|
+
until none is left): the artifacts titled exactly `Flow Control Room`. A page past the first 25
|
|
181
|
+
is still theirs, and a second page would split their works in two. Read `works` once (ArtifactData
|
|
182
|
+
`list`, limit 1) on each candidate you will offer: a page that refuses it was published without
|
|
183
|
+
its database and cannot hold cards — leave it out.
|
|
184
|
+
3. **Can the key be kept out of git?** `git ls-files --error-unmatch FLOW.claude.md` succeeds → the
|
|
185
|
+
overlay is tracked, and anything written there reaches the team: do not write the key — say so,
|
|
186
|
+
and that untracking the file (`git rm --cached FLOW.claude.md`, then ignoring it) is the user's
|
|
187
|
+
call. Not tracked and not git-ignored (`git check-ignore -q FLOW.claude.md` fails — `.git/info/exclude` counts as ignored) → the step-4 question also asks to ignore it, unless §5
|
|
188
|
+
already asked that this run.
|
|
189
|
+
4. **One `AskUserQuestion`**, before anything is published or written. Options: each page found in
|
|
190
|
+
step 2, most recently updated first, at most three — or, when none was found, **publish your
|
|
191
|
+
control room** — and **not now**. With a page found, **publish a new one** stays as an option
|
|
192
|
+
only when fewer than three were offered. The ignore part of step 3 and the move of step 1 ride
|
|
193
|
+
along in the same question.
|
|
194
|
+
5. **Publish, when chosen.** Copy `~/.claude/flow/examples/panel-artifact.html` into the
|
|
195
|
+
session's scratchpad (the Artifact tool publishes only from the working directory or the
|
|
196
|
+
scratchpad, and the plugin's folder is neither), read it whole, load whatever the harness asks
|
|
197
|
+
for before passing `capabilities`, and publish that copy as a new artifact with the capabilities
|
|
198
|
+
its header names. Nobody types a path or a version: the plugin knows where it is.
|
|
199
|
+
**Reuse, when a found page was chosen**: bring it up to date as flow-core §4.6 says (*The page
|
|
200
|
+
is kept current*) — a page published by an older plugin is republished from the example, with
|
|
201
|
+
its cards kept.
|
|
202
|
+
6. **Write the key** — `- artifact: <url>` under `## panel` in `FLOW.claude.md`, in the template's
|
|
203
|
+
section order (§4): the section exists → replace the value; the file exists without it → insert
|
|
204
|
+
the section where that order puts it; absent → create the file with the two-line header of §4
|
|
205
|
+
and that section alone. Then the ignore line, if it was accepted.
|
|
206
|
+
7. **One line**: the URL, whether it was reused (and brought up to date) or published, and that
|
|
207
|
+
`/flow-doctor` checks it and names the permission rule that stops each card update from asking.
|
|
208
|
+
|
|
157
209
|
## 5. Close
|
|
158
210
|
|
|
159
211
|
- Summarize on screen: what was written to the base, what was written to the active overlay, and
|
|
@@ -169,4 +221,6 @@ phase, so their size is paid on every step:
|
|
|
169
221
|
(`FLOW.<context>.md`, flow-core §0), which a repo commits on purpose. Do not use a recursive
|
|
170
222
|
pattern either: examples under the plugin must remain visible.
|
|
171
223
|
- Git-ignore `.claude/work/` too — recommended default: ignore it (artifacts are personal working state; teams that want to share them commit deliberately). `git.worktree` not `off` → offer `.worktrees/` in the same gesture.
|
|
224
|
+
- **The control room** (§4.5), when the artifact tools are here and `panel.artifact` is empty: offer
|
|
225
|
+
it as the last question of the close.
|
|
172
226
|
- Suggest `/flow-next` as the next step (it routes to `/flow-feat-start`, `/flow-work-resume` or `/flow-work-daily`).
|
|
@@ -16,7 +16,7 @@ Every `/flow-*` command assumes these rules. They are stated once, here, so a co
|
|
|
16
16
|
carries what is specific to its phase. Read this once per session; a command that says "load
|
|
17
17
|
`flow-core`" means this file.
|
|
18
18
|
|
|
19
|
-
**This file belongs to flow `0.
|
|
19
|
+
**This file belongs to flow `0.113.0`.** Compare it once, at the start of the session, against
|
|
20
20
|
`version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
|
|
21
21
|
is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
|
|
22
22
|
— which is exactly what happens when a branch or a release candidate is loaded over an installed
|
|
@@ -807,8 +807,9 @@ client-side estimate and can differ from a bill.
|
|
|
807
807
|
### 4.6 The artifact mirror — one page for every work, opt-in
|
|
808
808
|
|
|
809
809
|
Someone running flow in several consoles, across several repos, has one panel per pane and no view
|
|
810
|
-
of them together. `panel.artifact` in the FLOW config — the URL of a claude.ai artifact
|
|
811
|
-
from `examples/panel-artifact.html`
|
|
810
|
+
of them together. `panel.artifact` in the FLOW config — the URL of a claude.ai artifact, which
|
|
811
|
+
`/flow-init room` publishes from `examples/panel-artifact.html` or finds among the person's own —
|
|
812
|
+
turns on a mirror: each work writes its own card to that
|
|
812
813
|
page's shared database, and the page shows every card, grouped by repo. Empty or absent → this
|
|
813
814
|
section does not exist: no artifact tool is loaded or called.
|
|
814
815
|
|
|
@@ -817,6 +818,16 @@ section does not exist: no artifact tool is loaded or called.
|
|
|
817
818
|
Absent → the mirror is off, in silence: no line, no error. A headless run (`claude -p`, an
|
|
818
819
|
`unattended` container) has no such tool, and other harnesses never read `FLOW.claude.md`, where
|
|
819
820
|
the key belongs.
|
|
821
|
+
- **The page is kept current — once per session**, before its first card write. Artifact `read`
|
|
822
|
+
of the URL, and the `content` of `<meta name="flow-room-page">` in what comes back, against the
|
|
823
|
+
same tag in `~/.claude/flow/examples/panel-artifact.html`. Equal or higher → nothing.
|
|
824
|
+
Lower or absent → the page predates this plugin, and an old page draws states the cards no
|
|
825
|
+
longer mean: republish it — copy the example into the session's scratchpad (the Artifact tool
|
|
826
|
+
publishes only from there or the working directory), read it whole, publish that copy with `url`
|
|
827
|
+
the key's value and no `capabilities`, so the page keeps its database and every card. The read
|
|
828
|
+
saying the person cannot edit it (no "writer") → leave it. Either failing, or a page left
|
|
829
|
+
behind, → the next stop carries one line, `artifact panel: page out of date — <why>`, and the
|
|
830
|
+
cards are written anyway: an old page still shows them.
|
|
820
831
|
- **When**: right after the transport publishes, at §4.4 (a) to (e) — a phase's own publications
|
|
821
832
|
(`ship` the moment an MR/PR URL exists, `plan`, `resume`, `watch`, `abandon`) are among them. At
|
|
822
833
|
(f), a plan step, only when the card's last write is 10 minutes old or more: every write is a
|
|
@@ -224,7 +224,7 @@ refuse) · **degraded** (it runs, quietly worse than the config promises), plus
|
|
|
224
224
|
that fits, else `general-purpose` (a skill: skipped) — a panel missing agents reviews less and still reports a clean pass.
|
|
225
225
|
- Harness cannot set a model per subagent → note that every `models.*` value degrades to inheritance.
|
|
226
226
|
- **Where the live panel will go this session** (flow-core §4): a tool whose name ends in `panel_set` / `panel_patch` — namespaced by the harness (`mcp__panel__panel_set` on Claude Code) and possibly **deferred**, which reads as absent until the list of deferred tools is checked → the terminal draws the panel and no `panel.json` is written; genuinely absent → the panel is that file, as before. Neither is a fault — one line naming the tools as they are actually called here, or saying the file is the transport.
|
|
227
|
-
- **The artifact mirror** (flow-core §4.6) —
|
|
227
|
+
- **The artifact mirror** (flow-core §4.6) — `panel.artifact` empty and the artifact tools here → one information line, not a fault: *control room off — `/flow-init room` turns it on*. Set: one line with its value and the file it came from; whether a tool whose name ends in `ArtifactData` is here (deferred counts); and, when it is, whether a `list` of collection `works` (limit 1) on that URL answers — a read, never a write. Tool present → also name the rule that keeps every card update from asking — `ArtifactData` (as the harness calls it) under `permissions.allow` — and its cost in the same line: it lets any session write to the data of any of your artifacts without asking, not only this page's; without it, each card update is approved by hand. The value coming from any file but `FLOW.claude.md` → a fault: the URL is one person's page, and a committed `FLOW.md` hands it to every teammate, whose writes it refuses. Key set and no tool → *off in this harness*, not a fault. The read failing → the error, as a fault. The read answering → also the page's version (`flow-room-page`, through an Artifact `read`) against the plugin's example: older or absent → one information line, *control room page out of date — the next card write republishes it*, not a fault.
|
|
228
228
|
|
|
229
229
|
### 2.3 Knowledge sources
|
|
230
230
|
|
|
@@ -4,7 +4,7 @@ description: Assistant that generates FLOW.md and its optional harness overlay (
|
|
|
4
4
|
|
|
5
5
|
<!-- GENERATED by script/adapter-build.py from plugins/flow/commands/init.md — do not edit; change the plugin file and run the script. -->
|
|
6
6
|
|
|
7
|
-
# `/flow-init`
|
|
7
|
+
# `/flow-init $ARGUMENTS`
|
|
8
8
|
|
|
9
9
|
> **opencode adapter — how the Claude Code primitives named below map here.**
|
|
10
10
|
> - `AskUserQuestion` → ask in plain text with numbered options and wait for the reply.
|
|
@@ -28,6 +28,12 @@ auto-detected and only confirmed.
|
|
|
28
28
|
|
|
29
29
|
Key names and contract: `examples/FLOW.template.md` from the plugin. Do not invent keys that are not there.
|
|
30
30
|
|
|
31
|
+
**`$ARGUMENTS` is `room`** → run only §4.5, the control room, and end there — for a repo that is
|
|
32
|
+
already set up. Neither `FLOW.md` nor the active overlay exists → say so in one line and run the
|
|
33
|
+
whole command instead: the room is offered at its close, and a repo never ends with an overlay that
|
|
34
|
+
holds nothing but the room while nobody was asked the rest. Any other `$ARGUMENTS` → ignore it and
|
|
35
|
+
run the whole command.
|
|
36
|
+
|
|
31
37
|
## 1. If either configuration file already exists
|
|
32
38
|
|
|
33
39
|
Show `FLOW.md` and the active overlay when each exists, then show their effective merged values —
|
|
@@ -141,7 +147,7 @@ phase, so their size is paid on every step:
|
|
|
141
147
|
current file unless the user explicitly requested a split.
|
|
142
148
|
- Two-line header in each file: whether it is the shared base or which harness it overlays, and that
|
|
143
149
|
the plugin's `examples/FLOW.template.md` documents every key, merge rule, and default.
|
|
144
|
-
- Sections in the template's order — tracker, git, autonomy, quality, agents, models, data, conventions, notes, knowledge, observability — but **only the sections and keys that have a value**. One line per key: `- key: value`. No template comments.
|
|
150
|
+
- Sections in the template's order — tracker, git, autonomy, quality, agents, models, data, conventions, roadmap, panel, notes, knowledge, observability — but **only the sections and keys that have a value**. One line per key: `- key: value`. No template comments.
|
|
145
151
|
- Empty keys are omitted from the base (absent = default). In an overlay, preserve or write an empty
|
|
146
152
|
key only when it intentionally masks a non-empty base value; removing it would change the
|
|
147
153
|
effective config. A section with no set or masking key is omitted. **The two base-file exceptions
|
|
@@ -152,6 +158,52 @@ phase, so their size is paid on every step:
|
|
|
152
158
|
|
|
153
159
|
- **A worked example exists for one stack.** When detection says PHP (a `composer.json`, a `symfony.lock`, a `bin/console`), add **one line** to the close: *"an example `FLOW.md` and agent set for Symfony ship with the plugin under `examples/symfony/` — copy what applies."* Never copy anything on your own, and never mention it for another stack: it is one stack's answer, not a default.
|
|
154
160
|
|
|
161
|
+
## 4.5 Control room — one page for every work (Claude Code)
|
|
162
|
+
|
|
163
|
+
Plain `init` runs this **from §5's close**, as its last question; `init room` runs it alone. Either
|
|
164
|
+
way, leaving this section ends only this section.
|
|
165
|
+
|
|
166
|
+
Only when a tool whose name ends in `Artifact` and one ending in `ArtifactData` are both here
|
|
167
|
+
(deferred counts: load them) — interactive Claude Code. Neither → plain `init` says nothing about
|
|
168
|
+
it; `init room` says in one line that the control room needs an interactive Claude Code session.
|
|
169
|
+
|
|
170
|
+
The control room is the page flow-core §4.6 mirrors every work's panel to; each person has one, and
|
|
171
|
+
every repo they work in points at it.
|
|
172
|
+
|
|
173
|
+
1. **Already set?** `panel.artifact` resolves (flow-core §0) from `FLOW.claude.md` → say where it
|
|
174
|
+
points; nothing else to do. From any other file → it is one person's page handed to whoever
|
|
175
|
+
reads that file (doctor flags it): offer, in the question of step 4, to move it to
|
|
176
|
+
`FLOW.claude.md`.
|
|
177
|
+
2. **Find theirs.** Artifact `list`, scope `mine`, `limit` 200, every page of it (`page_token`
|
|
178
|
+
until none is left): the artifacts titled exactly `Flow Control Room`. A page past the first 25
|
|
179
|
+
is still theirs, and a second page would split their works in two. Read `works` once (ArtifactData
|
|
180
|
+
`list`, limit 1) on each candidate you will offer: a page that refuses it was published without
|
|
181
|
+
its database and cannot hold cards — leave it out.
|
|
182
|
+
3. **Can the key be kept out of git?** `git ls-files --error-unmatch FLOW.claude.md` succeeds → the
|
|
183
|
+
overlay is tracked, and anything written there reaches the team: do not write the key — say so,
|
|
184
|
+
and that untracking the file (`git rm --cached FLOW.claude.md`, then ignoring it) is the user's
|
|
185
|
+
call. Not tracked and not git-ignored (`git check-ignore -q FLOW.claude.md` fails — `.git/info/exclude` counts as ignored) → the step-4 question also asks to ignore it, unless §5
|
|
186
|
+
already asked that this run.
|
|
187
|
+
4. **One `AskUserQuestion`**, before anything is published or written. Options: each page found in
|
|
188
|
+
step 2, most recently updated first, at most three — or, when none was found, **publish your
|
|
189
|
+
control room** — and **not now**. With a page found, **publish a new one** stays as an option
|
|
190
|
+
only when fewer than three were offered. The ignore part of step 3 and the move of step 1 ride
|
|
191
|
+
along in the same question.
|
|
192
|
+
5. **Publish, when chosen.** Copy `~/.claude/flow/examples/panel-artifact.html` into the
|
|
193
|
+
session's scratchpad (the Artifact tool publishes only from the working directory or the
|
|
194
|
+
scratchpad, and the plugin's folder is neither), read it whole, load whatever the harness asks
|
|
195
|
+
for before passing `capabilities`, and publish that copy as a new artifact with the capabilities
|
|
196
|
+
its header names. Nobody types a path or a version: the plugin knows where it is.
|
|
197
|
+
**Reuse, when a found page was chosen**: bring it up to date as flow-core §4.6 says (*The page
|
|
198
|
+
is kept current*) — a page published by an older plugin is republished from the example, with
|
|
199
|
+
its cards kept.
|
|
200
|
+
6. **Write the key** — `- artifact: <url>` under `## panel` in `FLOW.claude.md`, in the template's
|
|
201
|
+
section order (§4): the section exists → replace the value; the file exists without it → insert
|
|
202
|
+
the section where that order puts it; absent → create the file with the two-line header of §4
|
|
203
|
+
and that section alone. Then the ignore line, if it was accepted.
|
|
204
|
+
7. **One line**: the URL, whether it was reused (and brought up to date) or published, and that
|
|
205
|
+
`/flow-doctor` checks it and names the permission rule that stops each card update from asking.
|
|
206
|
+
|
|
155
207
|
## 5. Close
|
|
156
208
|
|
|
157
209
|
- Summarize on screen: what was written to the base, what was written to the active overlay, and
|
|
@@ -167,4 +219,6 @@ phase, so their size is paid on every step:
|
|
|
167
219
|
(`FLOW.<context>.md`, flow-core §0), which a repo commits on purpose. Do not use a recursive
|
|
168
220
|
pattern either: examples under the plugin must remain visible.
|
|
169
221
|
- Git-ignore `.claude/work/` too — recommended default: ignore it (artifacts are personal working state; teams that want to share them commit deliberately). `git.worktree` not `off` → offer `.worktrees/` in the same gesture.
|
|
222
|
+
- **The control room** (§4.5), when the artifact tools are here and `panel.artifact` is empty: offer
|
|
223
|
+
it as the last question of the close.
|
|
170
224
|
- Suggest `/flow-next` as the next step (it routes to `/flow-feat-start`, `/flow-work-resume` or `/flow-work-daily`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flow-workflows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.113.0",
|
|
4
4
|
"description": "Guided feat/bug workflows (start→ship), post-deploy monitoring and multi-agent code review, stack-agnostic. Each repo uses a shared FLOW.md plus optional harness overlay.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "flow",
|
|
4
4
|
"displayName": "Flow — guided dev workflows",
|
|
5
5
|
"description": "Guided feat/bug workflows (start→ship), post-deploy monitoring and multi-agent code review, stack-agnostic. Each repo uses a shared FLOW.md plus optional harness overlay.",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.113.0",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Alberto Vioque",
|
|
9
9
|
"email": "mashware@gmail.com"
|
|
@@ -5,6 +5,33 @@ 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.113.0 — The control room page keeps itself up to date · 2026-11-05
|
|
9
|
+
|
|
10
|
+
**In short**
|
|
11
|
+
- **A work that answered its question no longer stays red on the control room.** A page published by an older
|
|
12
|
+
plugin painted a card as blocked whenever one of its lines carried a ✕, even a heads-up such as "the sibling
|
|
13
|
+
repo will need the contract". The current page reads only the state the session writes.
|
|
14
|
+
- **Nobody has to republish the page by hand.** Once per session, before its first card write, flow compares
|
|
15
|
+
the published page with the plugin's and republishes it when it is older. Cards and their data stay.
|
|
16
|
+
- **`/flow:init room` brings a page it reuses up to date**, and `/flow:doctor` says when a page is out of date.
|
|
17
|
+
|
|
18
|
+
The page carries its own version now, and the release preflight refuses a change to the page that does not
|
|
19
|
+
raise it.
|
|
20
|
+
|
|
21
|
+
## v0.112.0 — The control room sets itself up · 2026-11-04
|
|
22
|
+
|
|
23
|
+
**In short**
|
|
24
|
+
- **One command per repo: `/flow:init room`.** The first time, flow publishes your control room by itself. In
|
|
25
|
+
every other repo it finds that same page among your artifacts and reuses it. Nobody types a path or a version.
|
|
26
|
+
- **`/flow:doctor` tells you when the room is off** and names the command that turns it on. It still changes
|
|
27
|
+
nothing.
|
|
28
|
+
- **A repo with no flow configuration gets the full setup**, with the room offered at the end, so no repo is
|
|
29
|
+
left with only half a configuration.
|
|
30
|
+
- **Plain `/flow:init` offers the room too**, as its last question, whenever Claude Code has the artifact tools.
|
|
31
|
+
|
|
32
|
+
Until now, turning the room on meant publishing the plugin's page by hand. That required knowing where the plugin
|
|
33
|
+
was installed and which version it was, then pasting the URL into each repo (#240).
|
|
34
|
+
|
|
8
35
|
## v0.111.0 — Every work of every repo on one page · 2026-11-04
|
|
9
36
|
|
|
10
37
|
**In short**
|
|
@@ -360,11 +360,10 @@ already delivered but the file does not say; `feat:start` links a work to one of
|
|
|
360
360
|
## panel
|
|
361
361
|
One page for every work you have running, across repos and consoles (flow-core §4.6): each work
|
|
362
362
|
mirrors its live panel to its own card on a claude.ai artifact, grouped by repo. Claude Code only —
|
|
363
|
-
put the key in `FLOW.claude.md`, which is personal and read by no other harness.
|
|
364
|
-
|
|
365
|
-
capabilities its header names), then paste the same URL into each repo you want on the page.
|
|
363
|
+
put the key in `FLOW.claude.md`, which is personal and read by no other harness. `/flow:init room`
|
|
364
|
+
sets it: the first time it publishes your page, in every other repo it finds that page and reuses it.
|
|
366
365
|
|
|
367
|
-
- `artifact:` # the artifact's URL, `https://claude.ai/artifact/<id
|
|
366
|
+
- `artifact:` # the artifact's URL, `https://claude.ai/artifact/<id>` — `/flow:init room` writes it. Empty = no mirror, no artifact tool called. Each card update is a tool call that asks permission unless `ArtifactData` is allowed — `doctor` prints the rule.
|
|
368
367
|
|
|
369
368
|
## notes
|
|
370
369
|
Per-command extra guidance. When a command runs, it MUST follow the entry matching its command
|