flow-workflows 0.97.2 → 0.99.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.
Files changed (74) hide show
  1. package/README.md +4 -5
  2. package/adapters/codex/AGENTS.md +0 -1
  3. package/adapters/codex/CORE.md +44 -2
  4. package/adapters/codex/README.md +3 -6
  5. package/adapters/codex/skills/flow-bug-review/SKILL.md +1 -1
  6. package/adapters/codex/skills/flow-bug-start/SKILL.md +1 -1
  7. package/adapters/codex/skills/flow-doctor/SKILL.md +5 -3
  8. package/adapters/codex/skills/flow-feat-review/SKILL.md +1 -1
  9. package/adapters/codex/skills/flow-feat-ship/SKILL.md +5 -2
  10. package/adapters/codex/skills/flow-feat-start/SKILL.md +1 -1
  11. package/adapters/codex/skills/flow-init/SKILL.md +1 -1
  12. package/adapters/codex/skills/flow-next/SKILL.md +2 -2
  13. package/adapters/codex/skills/flow-work-README/SKILL.md +3 -4
  14. package/adapters/codex/skills/flow-work-abandon/SKILL.md +1 -1
  15. package/adapters/codex/skills/flow-work-clean/SKILL.md +1 -1
  16. package/adapters/codex/skills/flow-work-daily/SKILL.md +71 -17
  17. package/adapters/codex/skills/flow-work-respond/SKILL.md +1 -1
  18. package/adapters/codex/skills/flow-work-resume/SKILL.md +1 -1
  19. package/adapters/gemini/CORE.md +44 -2
  20. package/adapters/gemini/README.md +2 -2
  21. package/adapters/gemini/commands/flow/bug/review.toml +1 -1
  22. package/adapters/gemini/commands/flow/bug/start.toml +1 -1
  23. package/adapters/gemini/commands/flow/doctor.toml +5 -3
  24. package/adapters/gemini/commands/flow/feat/review.toml +1 -1
  25. package/adapters/gemini/commands/flow/feat/ship.toml +5 -2
  26. package/adapters/gemini/commands/flow/feat/start.toml +1 -1
  27. package/adapters/gemini/commands/flow/init.toml +1 -1
  28. package/adapters/gemini/commands/flow/next.toml +2 -2
  29. package/adapters/gemini/commands/flow/work/README.toml +3 -4
  30. package/adapters/gemini/commands/flow/work/abandon.toml +1 -1
  31. package/adapters/gemini/commands/flow/work/clean.toml +1 -1
  32. package/adapters/gemini/commands/flow/work/daily.toml +71 -17
  33. package/adapters/gemini/commands/flow/work/respond.toml +1 -1
  34. package/adapters/gemini/commands/flow/work/resume.toml +1 -1
  35. package/adapters/hermes/CORE.md +44 -2
  36. package/adapters/hermes/README.md +1 -4
  37. package/adapters/hermes/skills/flow-bug-review/SKILL.md +1 -1
  38. package/adapters/hermes/skills/flow-bug-start/SKILL.md +1 -1
  39. package/adapters/hermes/skills/flow-doctor/SKILL.md +5 -3
  40. package/adapters/hermes/skills/flow-feat-review/SKILL.md +1 -1
  41. package/adapters/hermes/skills/flow-feat-ship/SKILL.md +5 -2
  42. package/adapters/hermes/skills/flow-feat-start/SKILL.md +1 -1
  43. package/adapters/hermes/skills/flow-init/SKILL.md +1 -1
  44. package/adapters/hermes/skills/flow-next/SKILL.md +2 -2
  45. package/adapters/hermes/skills/flow-work-README/SKILL.md +3 -4
  46. package/adapters/hermes/skills/flow-work-abandon/SKILL.md +1 -1
  47. package/adapters/hermes/skills/flow-work-clean/SKILL.md +1 -1
  48. package/adapters/hermes/skills/flow-work-daily/SKILL.md +71 -17
  49. package/adapters/hermes/skills/flow-work-respond/SKILL.md +1 -1
  50. package/adapters/hermes/skills/flow-work-resume/SKILL.md +1 -1
  51. package/adapters/opencode/CORE.md +44 -2
  52. package/adapters/opencode/README.md +1 -1
  53. package/adapters/opencode/commands/flow-bug-review.md +1 -1
  54. package/adapters/opencode/commands/flow-bug-start.md +1 -1
  55. package/adapters/opencode/commands/flow-doctor.md +5 -3
  56. package/adapters/opencode/commands/flow-feat-review.md +1 -1
  57. package/adapters/opencode/commands/flow-feat-ship.md +5 -2
  58. package/adapters/opencode/commands/flow-feat-start.md +1 -1
  59. package/adapters/opencode/commands/flow-init.md +1 -1
  60. package/adapters/opencode/commands/flow-next.md +2 -2
  61. package/adapters/opencode/commands/flow-work-README.md +3 -4
  62. package/adapters/opencode/commands/flow-work-abandon.md +1 -1
  63. package/adapters/opencode/commands/flow-work-clean.md +1 -1
  64. package/adapters/opencode/commands/flow-work-daily.md +71 -17
  65. package/adapters/opencode/commands/flow-work-respond.md +1 -1
  66. package/adapters/opencode/commands/flow-work-resume.md +1 -1
  67. package/package.json +1 -1
  68. package/plugins/flow/.claude-plugin/plugin.json +1 -1
  69. package/plugins/flow/CHANGELOG.md +42 -0
  70. package/plugins/flow/examples/FLOW.template.md +10 -5
  71. package/adapters/codex/skills/flow-work-status/SKILL.md +0 -131
  72. package/adapters/gemini/commands/flow/work/status.toml +0 -128
  73. package/adapters/hermes/skills/flow-work-status/SKILL.md +0 -131
  74. package/adapters/opencode/commands/flow-work-status.md +0 -129
@@ -1,131 +0,0 @@
1
- ---
2
- name: flow-work-status
3
- description: "Summary of all open works in .claude/work/"
4
- ---
5
-
6
- <!-- GENERATED by script/adapter-build.py from plugins/flow/commands/work/status.md — do not edit; change the plugin file and run the script. -->
7
-
8
- # `/flow-work-status`
9
-
10
- > **hermes adapter — how the Claude Code primitives named below map here.**
11
- > - `AskUserQuestion` → ask in plain text with numbered options and wait for the reply.
12
- > - `Agent <role>` / `Agent general-purpose` / subagents → `delegate_task`, which creates the child on the spot from the `goal` and `context` you give it: the name in `agents.<role>` in `FLOW.md` is a role to state in that prompt, not an agent to declare anywhere; empty → do it in this context.
13
- > - Parallel fan-out → several `delegate_task` calls in one response, capped at `agents.fanout_max` (empty → 4) and, above that, by `delegation.max_concurrent_children` in `config.yaml` (default 10); `agents.fanout_tool` is Claude Code-only, ignore it.
14
- > - `ScheduleWakeup` / `Monitor` / `/loop` → Hermes schedules itself: the `cronjob` tool, or `/cron add "every 30m" "<this command>"`. Each firing is a fresh session with no history, so the state still lives in `monitor.md` and the scheduled text must stand alone; retiring the job from inside a firing needs `cron.allow_agent_scheduling: true`.
15
- > - `TaskCreate` → a markdown checklist in the phase artifact.
16
- > - `Skill commit-commands:commit-push-pr` → `git add` · `git commit` · `git push -u origin HEAD` · the `git.cli` CLI (`gh pr create` / `glab mr create`).
17
- > - `/model <value>` → Hermes's own `/model`; a subagent's model is `delegation.model` in `config.yaml`, one value for every child of a round.
18
- > - `knowledge.*` roles → whatever tools `FLOW.md` names there; an MCP tool keeps its name, its server is declared under `mcp_servers` in `~/.hermes/config.yaml` (see `config.snippet.yaml`).
19
- > - `$ARGUMENTS` → what the user typed after the skill name: Hermes takes everything from the first non-skill token on as the instruction.
20
-
21
- Read `~/.claude/flow/CORE.hermes.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
22
-
23
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told.
24
-
25
- Overview of works in progress; detects divergences between artifacts and actual git state.
26
-
27
- ## 1. List works
28
-
29
- - `ls -1 .claude/work/` (ignore `_archive`).
30
- - **Then `_archive/*/meta.json` for `followups[]` alone** — entries not `declined`/`logged`/`done` (§5). Nothing else about an archived work is shown; a finished work is exactly when its deferred items stop being visible, which is the point of reading them here.
31
- - Read the `meta.json` of **every** folder (named `<TICKET>-<slug>`, `<slug>` for ticket-less/local works, or just `<TICKET>` for older ones). Identify each work by `meta.json.ticket`, not by the folder name.
32
- - Read `00-summary.md` per work when it exists and use it for the recap (`Next:` line, what is pending) instead of reading every artifact (flow-core §5); missing → fall back to the artifacts.
33
-
34
- ## 2. For each work, display
35
-
36
- ```
37
- <TICKET> — <title> [feat|bug] [XS|S|M|L] ⏵ <current phase>
38
- Branch: <branch> [✓ active | ⚠ not current]
39
- Started: <date>
40
- Updated: <date>
41
- Phases done: context, design, build…
42
- MR/PRs: 2/4 merged · MR/PR #3 in_progress · MR/PR #4 pending
43
- Cross-repo: <meta.related_repos entries not "done", as "repo: scope"> (line only if any)
44
- Follow-ups: 2 awaiting a decision · 1 accepted, not started (line only if any)
45
- Cost: $0.71 measured over 2 phases · 1 phase not reported (line only if any)
46
- Next: <suggested next command>
47
- ```
48
-
49
- - "MR"/"PR" from `git.host` (`gitlab` → MR, every other host → PR); no host → "MR/PR".
50
- - `Cross-repo:` only when `meta.json.related_repos` has entries not `done`: each as `<repo>: <scope>`, appending ` — contract not handed over` when that entry's `contract_handoff` is `pending`. It flags that a **sibling repo still has a pending part**; flow never scans or touches the other repo.
51
- - `Follow-ups:` only when `meta.json.followups[]` has entries not `declined`/`logged`/`done` (flow-core §7): count the `proposed` ones as *awaiting a decision* and the `accepted` ones without a `work` as *accepted, not started*, naming the ticket id when there is one. `in_progress` entries are already visible as their own work — do not double-count them.
52
- - `Cost:` only when `meta.json.cost[]` has entries (flow-core §4): sum the `usd` figures that are there, count the phases behind them, and count separately the entries whose `source` is `not reported`. A work with no entries shows **no line at all** — absence is not zero, and a `$0.00` under a work nobody measured is the one output that would make the block worth ignoring. The figures are the harness's own client-side estimates, not a bill; `flow cost` prints the same data phase by phase.
53
- - `MR/PRs:` only when `meta.json.mrs` exists with >0 entries:
54
- - Summary: `<merged>/<total> merged`.
55
- - `closed` or `superseded` MR/PRs present → add to the count: `2/4 merged · 1 closed · 1 pending`.
56
- - One `in_progress` → show it explicitly with its number.
57
- - Any `closed`/`superseded` → list the reason (truncated to 40 chars): `MR/PR #2 closed (reviewer requested different approach)`.
58
-
59
- ### Actual progress vs estimate
60
-
61
- **Only for the `in_progress` MR/PR and only if the branch matches the current one** (you can measure the diff). Base = `git.default_base` in FLOW.md; empty → auto-discover the repo's base branch. Calculate:
62
-
63
- ```bash
64
- git diff --shortstat <base>..HEAD # lines
65
- git diff --name-only <base>..HEAD | wc -l # files
66
- ```
67
-
68
- Compare with `mrs[in_progress].lines_est` and `files_est`; show a line below `MR/PRs:`:
69
-
70
- ```
71
- Current MR/PR size: 180/120 lines (150%) · 7/6 files ⚠ exceeds estimate
72
- ```
73
-
74
- Rules:
75
- - lines ≤ `lines_est * 1.5` **and** files ≤ `files_est + 2` → show without warning, in grey.
76
- - **Either** threshold exceeded → add `⚠ exceeds estimate` and suggest that `/flow-feat-build` applies §2.3 (the size thermometer: cut / continue / reopen).
77
- - No `lines_est` in meta.json (older work) → do not show the line, do not invent an estimate.
78
-
79
- ## 3. Divergences with git
80
-
81
- Only if the branch in meta.json **is the current one**:
82
-
83
- - `git diff --name-only <base>...HEAD | wc -l` → files changed on the branch.
84
- - Read `05-implementation.md` (features) or `04-fix.md` (bugs); extract the listed files.
85
- - Files changed in git that do not appear in the log:
86
- ```
87
- ⚠ Divergence: <N> changed files not recorded in log.
88
- Examples: <path>, <path>…
89
- ```
90
- - Files in the log with no actual change in git → same.
91
-
92
- ## 4. Orphaned works
93
-
94
- - Local branches matching the ticket pattern with no work folder (`.claude/work/<TICKET>/` or `.claude/work/<TICKET>-*/`, matched via `meta.json.ticket`/`branch`) → warn.
95
- - Work folders whose branch no longer exists locally → ask whether to archive.
96
- - **Residue count** (one line, no per-entry detail): worktrees registered (`git worktree list`, minus the main checkout), work folders with `phase: done` still outside `_archive/`, and prunable registrations (`git worktree prune --dry-run`). Total above a handful → `Residue: <N> worktrees · <N> unarchived done · <N> prunable → /flow-work-clean --dry-run`. This command never deletes anything — `clean` establishes the merged/open verdict and acts.
97
- - Branch pattern from `git.branch_pattern` in FLOW.md; empty → branches matching `<prefix>XXXXX-*` or orphaned folders in `.claude/work/`.
98
-
99
- ## 5. Open follow-ups (live works and `_archive/`)
100
-
101
- One block at the end, only when there is anything to show. Deferred work outlives the work that
102
- deferred it, and `_archive/` is where it goes to be forgotten:
103
-
104
- ```
105
- Follow-ups awaiting a decision
106
- PROJ-123 F2 audit the other three callers of the same helper (archived work)
107
- PROJ-140 F1 index on events.created_at — plan says full scan → PROJ-155
108
- ```
109
-
110
- - Source: `followups[]` of every `meta.json`, live folders **and** `_archive/`, entries not
111
- `declined`/`logged`/`done`. Show the originating ticket, the id, the `title`, and the created ticket when
112
- `ticket` is set. Mark archived origins so it is clear the work itself is finished.
113
- - `proposed` entries are listed under *awaiting a decision*; `accepted` ones without a `work` under
114
- *accepted, not started*. Suggest `/flow-feat-start <ticket>` for the latter.
115
- - More than about eight → show the newest five and the total. This command is read-only: it never
116
- triages, creates a ticket, or edits `followups[]`. That happens once, at `ship` (flow-core §7).
117
-
118
- ## 6. Quick actions
119
-
120
- If a work's branch matches the current one, suggest:
121
- - `phase = "done"` → nothing to do; offer to archive.
122
- - `phase = "abandoned"` → the folder should already be in `_archive/`; at the root → suggest moving it.
123
- - An `in_progress` MR/PR waiting for merge confirmation → `/flow-feat-ship` should update the state.
124
- - A `closed` MR/PR with no subsequent decision → warn so the user can decide (retry build or abandon).
125
- - Otherwise → the concrete next command.
126
-
127
- **A mid-work knowledge save lives here.** `knowledge.read_staging` is set and returns entries for the
128
- current branch → offer, as one more action, to consolidate them now (flow-core §0) instead of waiting
129
- for `ship` or `postmortem`. Only when there are entries, only as an option among the others, and
130
- never as a question of its own: this is the last place a session that is about to end can bank what
131
- it learned.
@@ -1,129 +0,0 @@
1
- ---
2
- description: Summary of all open works in .claude/work/
3
- ---
4
-
5
- <!-- GENERATED by script/adapter-build.py from plugins/flow/commands/work/status.md — do not edit; change the plugin file and run the script. -->
6
-
7
- # `/flow-work-status`
8
-
9
- > **opencode adapter — how the Claude Code primitives named below map here.**
10
- > - `AskUserQuestion` → ask in plain text with numbered options and wait for the reply.
11
- > - `Agent <role>` / `Agent general-purpose` / subagents → `@<name>` declared in `agents/<name>.md` (`mode: subagent`); the name comes from `agents.<role>` in `FLOW.md`, empty → do it in this context.
12
- > - Parallel fan-out → several `@name` in one prompt, capped at `agents.fanout_max` (empty → 4); `agents.fanout_tool` is Claude Code-only, ignore it.
13
- > - `ScheduleWakeup` / `Monitor` / `/loop` → not available in-session: run one cycle, persist state in `monitor.md`, let the user schedule `opencode run -p "<command>"` with cron.
14
- > - `TaskCreate` → a markdown checklist in the phase artifact.
15
- > - `Skill commit-commands:commit-push-pr` → `git add` · `git commit` · `git push -u origin HEAD` · the `git.cli` CLI (`gh pr create` / `glab mr create`).
16
- > - `/model <value>` → opencode's model picker (`/models`).
17
- > - `knowledge.*` roles → whatever tools `FLOW.md` names there; an MCP tool keeps its name, its server is declared in `opencode.json` (see this adapter's `opencode.json` for the domain-memory example).
18
-
19
- Read `~/.claude/flow/CORE.opencode.md` first (shared rules: `FLOW.md` step 0, autonomy, how a stop reads, the live panel, `00-summary.md`) — skip if you already read it in this session.
20
-
21
- **Panel words are closed** — `mark`: `done` · `current` · `pending` · `wait` · `block` · `info`; `style`: `normal` · `dim` · `title` · `accent` · `ok` · `warn` · `error`. Anything else is dropped by the reader in silence: the panel still paints, and nobody is told.
22
-
23
- Overview of works in progress; detects divergences between artifacts and actual git state.
24
-
25
- ## 1. List works
26
-
27
- - `ls -1 .claude/work/` (ignore `_archive`).
28
- - **Then `_archive/*/meta.json` for `followups[]` alone** — entries not `declined`/`logged`/`done` (§5). Nothing else about an archived work is shown; a finished work is exactly when its deferred items stop being visible, which is the point of reading them here.
29
- - Read the `meta.json` of **every** folder (named `<TICKET>-<slug>`, `<slug>` for ticket-less/local works, or just `<TICKET>` for older ones). Identify each work by `meta.json.ticket`, not by the folder name.
30
- - Read `00-summary.md` per work when it exists and use it for the recap (`Next:` line, what is pending) instead of reading every artifact (flow-core §5); missing → fall back to the artifacts.
31
-
32
- ## 2. For each work, display
33
-
34
- ```
35
- <TICKET> — <title> [feat|bug] [XS|S|M|L] ⏵ <current phase>
36
- Branch: <branch> [✓ active | ⚠ not current]
37
- Started: <date>
38
- Updated: <date>
39
- Phases done: context, design, build…
40
- MR/PRs: 2/4 merged · MR/PR #3 in_progress · MR/PR #4 pending
41
- Cross-repo: <meta.related_repos entries not "done", as "repo: scope"> (line only if any)
42
- Follow-ups: 2 awaiting a decision · 1 accepted, not started (line only if any)
43
- Cost: $0.71 measured over 2 phases · 1 phase not reported (line only if any)
44
- Next: <suggested next command>
45
- ```
46
-
47
- - "MR"/"PR" from `git.host` (`gitlab` → MR, every other host → PR); no host → "MR/PR".
48
- - `Cross-repo:` only when `meta.json.related_repos` has entries not `done`: each as `<repo>: <scope>`, appending ` — contract not handed over` when that entry's `contract_handoff` is `pending`. It flags that a **sibling repo still has a pending part**; flow never scans or touches the other repo.
49
- - `Follow-ups:` only when `meta.json.followups[]` has entries not `declined`/`logged`/`done` (flow-core §7): count the `proposed` ones as *awaiting a decision* and the `accepted` ones without a `work` as *accepted, not started*, naming the ticket id when there is one. `in_progress` entries are already visible as their own work — do not double-count them.
50
- - `Cost:` only when `meta.json.cost[]` has entries (flow-core §4): sum the `usd` figures that are there, count the phases behind them, and count separately the entries whose `source` is `not reported`. A work with no entries shows **no line at all** — absence is not zero, and a `$0.00` under a work nobody measured is the one output that would make the block worth ignoring. The figures are the harness's own client-side estimates, not a bill; `flow cost` prints the same data phase by phase.
51
- - `MR/PRs:` only when `meta.json.mrs` exists with >0 entries:
52
- - Summary: `<merged>/<total> merged`.
53
- - `closed` or `superseded` MR/PRs present → add to the count: `2/4 merged · 1 closed · 1 pending`.
54
- - One `in_progress` → show it explicitly with its number.
55
- - Any `closed`/`superseded` → list the reason (truncated to 40 chars): `MR/PR #2 closed (reviewer requested different approach)`.
56
-
57
- ### Actual progress vs estimate
58
-
59
- **Only for the `in_progress` MR/PR and only if the branch matches the current one** (you can measure the diff). Base = `git.default_base` in FLOW.md; empty → auto-discover the repo's base branch. Calculate:
60
-
61
- ```bash
62
- git diff --shortstat <base>..HEAD # lines
63
- git diff --name-only <base>..HEAD | wc -l # files
64
- ```
65
-
66
- Compare with `mrs[in_progress].lines_est` and `files_est`; show a line below `MR/PRs:`:
67
-
68
- ```
69
- Current MR/PR size: 180/120 lines (150%) · 7/6 files ⚠ exceeds estimate
70
- ```
71
-
72
- Rules:
73
- - lines ≤ `lines_est * 1.5` **and** files ≤ `files_est + 2` → show without warning, in grey.
74
- - **Either** threshold exceeded → add `⚠ exceeds estimate` and suggest that `/flow-feat-build` applies §2.3 (the size thermometer: cut / continue / reopen).
75
- - No `lines_est` in meta.json (older work) → do not show the line, do not invent an estimate.
76
-
77
- ## 3. Divergences with git
78
-
79
- Only if the branch in meta.json **is the current one**:
80
-
81
- - `git diff --name-only <base>...HEAD | wc -l` → files changed on the branch.
82
- - Read `05-implementation.md` (features) or `04-fix.md` (bugs); extract the listed files.
83
- - Files changed in git that do not appear in the log:
84
- ```
85
- ⚠ Divergence: <N> changed files not recorded in log.
86
- Examples: <path>, <path>…
87
- ```
88
- - Files in the log with no actual change in git → same.
89
-
90
- ## 4. Orphaned works
91
-
92
- - Local branches matching the ticket pattern with no work folder (`.claude/work/<TICKET>/` or `.claude/work/<TICKET>-*/`, matched via `meta.json.ticket`/`branch`) → warn.
93
- - Work folders whose branch no longer exists locally → ask whether to archive.
94
- - **Residue count** (one line, no per-entry detail): worktrees registered (`git worktree list`, minus the main checkout), work folders with `phase: done` still outside `_archive/`, and prunable registrations (`git worktree prune --dry-run`). Total above a handful → `Residue: <N> worktrees · <N> unarchived done · <N> prunable → /flow-work-clean --dry-run`. This command never deletes anything — `clean` establishes the merged/open verdict and acts.
95
- - Branch pattern from `git.branch_pattern` in FLOW.md; empty → branches matching `<prefix>XXXXX-*` or orphaned folders in `.claude/work/`.
96
-
97
- ## 5. Open follow-ups (live works and `_archive/`)
98
-
99
- One block at the end, only when there is anything to show. Deferred work outlives the work that
100
- deferred it, and `_archive/` is where it goes to be forgotten:
101
-
102
- ```
103
- Follow-ups awaiting a decision
104
- PROJ-123 F2 audit the other three callers of the same helper (archived work)
105
- PROJ-140 F1 index on events.created_at — plan says full scan → PROJ-155
106
- ```
107
-
108
- - Source: `followups[]` of every `meta.json`, live folders **and** `_archive/`, entries not
109
- `declined`/`logged`/`done`. Show the originating ticket, the id, the `title`, and the created ticket when
110
- `ticket` is set. Mark archived origins so it is clear the work itself is finished.
111
- - `proposed` entries are listed under *awaiting a decision*; `accepted` ones without a `work` under
112
- *accepted, not started*. Suggest `/flow-feat-start <ticket>` for the latter.
113
- - More than about eight → show the newest five and the total. This command is read-only: it never
114
- triages, creates a ticket, or edits `followups[]`. That happens once, at `ship` (flow-core §7).
115
-
116
- ## 6. Quick actions
117
-
118
- If a work's branch matches the current one, suggest:
119
- - `phase = "done"` → nothing to do; offer to archive.
120
- - `phase = "abandoned"` → the folder should already be in `_archive/`; at the root → suggest moving it.
121
- - An `in_progress` MR/PR waiting for merge confirmation → `/flow-feat-ship` should update the state.
122
- - A `closed` MR/PR with no subsequent decision → warn so the user can decide (retry build or abandon).
123
- - Otherwise → the concrete next command.
124
-
125
- **A mid-work knowledge save lives here.** `knowledge.read_staging` is set and returns entries for the
126
- current branch → offer, as one more action, to consolidate them now (flow-core §0) instead of waiting
127
- for `ship` or `postmortem`. Only when there are entries, only as an option among the others, and
128
- never as a question of its own: this is the last place a session that is about to end can bank what
129
- it learned.