@iceinvein/agent-skills 0.26.0 → 0.27.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iceinvein/agent-skills",
3
- "version": "0.26.0",
3
+ "version": "0.27.1",
4
4
  "description": "Install agent skills into AI coding tools",
5
5
  "author": "iceinvein",
6
6
  "license": "MIT",
package/skills/index.json CHANGED
@@ -225,9 +225,9 @@
225
225
  },
226
226
  {
227
227
  "name": "magpie",
228
- "description": "Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture) plus a once-per-PR checks pass that finds tests and controls able to pass without proving their purpose, drops findings whose quoted evidence is not in the code, dedupes, runs critic subagents that re-check each finding against the worktree and set its risk label, peer-reviews via codex exec (falling back to a Claude second opinion when codex is unavailable), and serves an interactive HTML report for selecting or dismissing findings to post via gh, recording the outcome per finding as labels. Bundles a Bun CLI put on PATH by the skill's postinstall step under a bunx install, or by the plugin's bin/ under a Claude Code plugin install. Use when the user asks to review a GitHub pull request. Local mode (setup --local) runs the same pipeline on the current branch's diff from its merge base, uncommitted and untracked work included, against the caller's live tree, with no server or posting, and hands the ranked findings back in the terminal for an implementing or orchestrating agent to address. Splits oversized diffs into budgeted shards and rebuilds the diff from the local clone when gh pr diff refuses it.",
228
+ "description": "Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture) plus a once-per-PR checks pass that finds tests and controls able to pass without proving their purpose, drops findings whose quoted evidence is not in the code, dedupes, runs critic subagents that re-check each finding against the worktree and set its risk label, peer-reviews through a configured provider (codex, claude or agy) with a subagent fallback when the provider is unavailable, and serves an interactive HTML report for selecting or dismissing findings to post via gh, recording the outcome per finding as labels. Bundles a Bun CLI put on PATH by the skill's postinstall step under a bunx install, or by the plugin's bin/ under a Claude Code plugin install. Use when the user asks to review a GitHub pull request. Local mode (setup --local) runs the same pipeline on the current branch's diff from its merge base, uncommitted and untracked work included, against the caller's live tree, with no server or posting, and hands the ranked findings back in the terminal for an implementing or orchestrating agent to address. Splits oversized diffs into budgeted shards and rebuilds the diff from the local clone when gh pr diff refuses it.",
229
229
  "type": "prompt",
230
- "version": "0.18.0"
230
+ "version": "0.19.0"
231
231
  },
232
232
  {
233
233
  "name": "migrate",
@@ -293,9 +293,9 @@
293
293
  },
294
294
  {
295
295
  "name": "sluice",
296
- "description": "Routes work by change shape into four channels (bypass, fast, main, deep) and applies only the rules each channel needs, so a one-line fix does not pay the cost of a multi-subsystem build. Carries nine rules as one-liners in the router and the full treatment in references read only on friction. Deep runs read the repo before designing, map the spec's intent to its decisions, and check spec against intent and plan against spec with a fresh reader, with plan.sh validate enforcing that every decision is covered. Checks the finished plan with plan.sh validate rather than trusting it to memory, seeds the run state from it, keeps a deep run's task breakdown in .sluice/run.json so a statusline segment, one status command and a SessionStart hook can answer where the run is (the hook prints a live run at every session start, compaction included), lists every live deep run and routed fast or main session on the machine in one board.sh view (drawn once, watched, or as JSON), and closes each run with a ledger read out of the session transcript: elapsed, tools, tokens, and what each dispatched agent cost where the transcript recorded it. Two Stop hooks hold a handback: one refuses a tree that moved since its last recorded check, the other refuses a changed existing test not proven to fail on the session's starting code (or recorded with a reason). Claude Code only; stands down where the superpowers pipeline governs the repo.",
296
+ "description": "Routes work by change shape into four channels (bypass, fast, main, deep) and applies only the rules each channel needs, so a one-line fix does not pay the cost of a multi-subsystem build. Carries nine rules as one-liners in the router and the full treatment in references read only on friction. Deep runs read the repo before designing, map the spec's intent to its decisions, and check spec against intent and plan against spec with a fresh reader, with plan.sh validate enforcing that every decision is covered. Checks the finished plan with plan.sh validate rather than trusting it to memory, seeds the run state from it, keeps a deep run's task breakdown in .sluice/run.json so an opt-in statusline segment, the harness task list where the session has one, one status command and a SessionStart hook can answer where the run is (the hook prints a live run at every session start, compaction included), lists every live deep run and routed fast or main session on the machine in one board.sh view (drawn once, watched, or as JSON), and closes each run with a ledger read out of the session transcript: elapsed, tools, tokens, and what each dispatched agent cost where the transcript recorded it. Two Stop hooks hold a handback: one refuses a tree that moved since its last recorded check, the other refuses a changed existing test not proven to fail on the session's starting code (or recorded with a reason). Runs on Claude Code, Codex and Antigravity; stands down where the superpowers pipeline governs the repo.",
297
297
  "type": "prompt",
298
- "version": "0.30.0"
298
+ "version": "0.32.0"
299
299
  },
300
300
  {
301
301
  "name": "temporal-coupling-detector",
@@ -1,31 +1,35 @@
1
1
  # magpie
2
2
 
3
- Interactive Claude Code skill that runs a multi-stage PR review pipeline inside the user's Claude Code conversation.
3
+ Skill that runs a multi-stage PR review pipeline inside the user's agent conversation. It runs under Claude Code, Codex and Antigravity.
4
4
 
5
5
  ## What it does
6
6
 
7
- Given a GitHub PR number, dispatches five specialist subagents in parallel (security, bugs, performance, code-smells, architecture), each quoting an evidence snippet for every anchored finding, plus one checks pass per PR that reviews the tests, harnesses and controls for ways they can pass without proving what they exist for. Dedupe drops findings whose snippet is not in the file and groups nearby findings from different domains as merge candidates. Critic subagents then re-check each surviving finding against the worktree, keep, drop or merge it, and set its risk label, from which the severity is derived. Peer review runs via `codex exec` (falling back to a Claude second-opinion subagent when codex is unavailable). The interactive HTML report puts the top recommended findings first, lets the user dismiss findings with a reason, and posts the ones they select via `gh`; cleanup records what was posted, dismissed or ignored in `labels.json`.
7
+ Given a GitHub PR number, dispatches five specialist subagents in parallel (security, bugs, performance, code-smells, architecture), each quoting an evidence snippet for every anchored finding, plus one checks pass per PR that reviews the tests, harnesses and controls for ways they can pass without proving what they exist for. Dedupe drops findings whose snippet is not in the file and groups nearby findings from different domains as merge candidates. Critic subagents then re-check each surviving finding against the worktree, keep, drop or merge it, and set its risk label, from which the severity is derived. Peer review runs through the configured peer provider (`codex`, `claude` or `agy`), falling back to a second-opinion subagent when that provider is unavailable. The interactive HTML report puts the top recommended findings first, lets the user dismiss findings with a reason, and posts the ones they select via `gh`; cleanup records what was posted, dismissed or ignored in `labels.json`.
8
8
 
9
9
  ## Requirements
10
10
 
11
11
  - `bun` on PATH (https://bun.sh)
12
12
  - `gh` on PATH, authenticated (`gh auth status`)
13
13
  - `git` on PATH
14
- - `codex` on PATH, authenticated (optional; if absent the peer-review stage falls back to a Claude second-opinion subagent)
14
+ - the peer provider's binary on PATH, authenticated (optional; if absent the peer-review stage falls back to a second-opinion subagent). See [Peer review settings](#peer-review-settings) for which binary each preset needs.
15
15
 
16
16
  ## Install
17
17
 
18
18
  ```
19
- bunx @iceinvein/agent-skills install magpie -g
19
+ bunx @iceinvein/agent-skills install magpie -g # Claude Code: ~/.claude/skills/magpie/
20
+ bunx @iceinvein/agent-skills install magpie --tool codex -g # Codex: ~/.agents/skills/magpie/
21
+ bunx @iceinvein/agent-skills install magpie --tool antigravity -g # Antigravity: ~/.gemini/config/skills/magpie/
20
22
  ```
21
23
 
24
+ Without `-g`, the skill lands in the current project instead: `.claude/skills/magpie/` for Claude Code, and `.agents/skills/magpie/` for both Codex and Antigravity.
25
+
22
26
  As a Claude Code plugin, after `/plugin marketplace add iceinvein/agent-skills`:
23
27
 
24
28
  ```
25
29
  /plugin install magpie@iceinvein-skills
26
30
  ```
27
31
 
28
- This skill ships in two parts: the prompt (SKILL.md) and a companion Bun CLI (bin + scripts). The agent-skills installer writes both into `~/.claude/skills/magpie/` and then runs the bundled `install.sh` as a postinstall step, which symlinks `bin/magpie` onto your PATH (preferring `/usr/local/bin`, falling back to `~/.local/bin`). Set `MAGPIE_BIN_DIR` to link into that directory instead; it is created if missing, and install.sh fails rather than falling back when it cannot link there. Removing the skill with `agent-skills remove magpie -g` runs `uninstall.sh` first to undo the PATH symlink.
32
+ This skill ships in two parts: the prompt (SKILL.md) and a companion Bun CLI (bin + scripts). The agent-skills installer writes both into the host's skill directory (above) and then runs the bundled `install.sh` as a postinstall step, which symlinks `bin/magpie` onto your PATH (preferring `/usr/local/bin`, falling back to `~/.local/bin`). Set `MAGPIE_BIN_DIR` to link into that directory instead; it is created if missing, and install.sh fails rather than falling back when it cannot link there. Removing the skill with `agent-skills remove magpie -g` runs `uninstall.sh` first to undo the PATH symlink.
29
33
 
30
34
  Under a Claude Code plugin install, the plugin's `bin/` puts `magpie` on your PATH, and `bin/magpie` installs its runtime dependencies on first run (Bun required). `install.sh` and `MAGPIE_BIN_DIR` apply only to the bunx install.
31
35
 
@@ -33,10 +37,24 @@ If you cloned this repo and want to run from source, you can also invoke `./inst
33
37
 
34
38
  ## Use
35
39
 
36
- Inside Claude Code, ask: "Review PR 1234" (or paste a PR URL). The agent reads SKILL.md and walks the pipeline; the CLI runs as `magpie setup`, `magpie serve`, etc.
40
+ Inside Claude Code, Codex or Antigravity, ask: "Review PR 1234" (or paste a PR URL). The agent reads SKILL.md and walks the pipeline; the CLI runs as `magpie setup`, `magpie serve`, etc.
37
41
 
38
42
  An implementing or orchestrating agent can also ask for a review of its own branch before a PR exists: local mode (`magpie setup <run-dir> --local [--base <ref>]`) reviews the merge base to working tree diff in place and hands the ranked findings back as terminal text via `magpie handoff`, with no server, report or posting. `/magpie` with no arguments runs local mode; pass a PR number or URL to review a PR.
39
43
 
44
+ ### Peer review settings
45
+
46
+ Stage 7 sends the review to a second model through `magpie peer-run`. These environment variables pick it:
47
+
48
+ - `MAGPIE_PEER`: the provider preset, `codex` (default), `claude` or `agy`. `codex` runs `codex exec` and needs the `codex` binary; `claude` runs `claude -p` and needs the `claude` binary (Claude Code); `agy` runs `agy -p` and needs the `agy` binary (Antigravity). `MAGPIE_CODEX_BIN`, `MAGPIE_CLAUDE_BIN` and `MAGPIE_AGY_BIN` point a preset at a binary elsewhere than PATH.
49
+ - `MAGPIE_PEER_MODEL`: the model passed to the provider (`-m` for codex, `--model` for claude and agy). Unset, the provider's own default applies.
50
+ - `MAGPIE_PEER_TIMEOUT`: the provider's time limit in seconds (default 600).
51
+
52
+ An unknown `MAGPIE_PEER` or a non-positive `MAGPIE_PEER_TIMEOUT` fails setup. A missing provider binary only moves peer review to a subagent.
53
+
54
+ ### Host sandbox
55
+
56
+ Whichever host runs it, its sandbox must allow network access for `gh` (and for the peer provider, which calls its own API), writes to `~/.magpie` (the run directories) and to the repository's `.git` (PR mode adds a worktree), and running the peer provider's binary. A Codex or Antigravity sandbox that blocks these makes setup or posting fail rather than degrade.
57
+
40
58
  ### Review panel
41
59
 
42
60
  The [magpie-panel](../../mods/magpie-panel) mod shows a PR run's findings in a pane beside the chat, alongside the HTML report. With it installed, stage 8 opens the pane; without it nothing changes.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magpie",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "magpie",
3
- "version": "0.18.0",
4
- "description": "Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture) plus a once-per-PR checks pass that finds tests and controls able to pass without proving their purpose, drops findings whose quoted evidence is not in the code, dedupes, runs critic subagents that re-check each finding against the worktree and set its risk label, peer-reviews via codex exec (falling back to a Claude second opinion when codex is unavailable), and serves an interactive HTML report for selecting or dismissing findings to post via gh, recording the outcome per finding as labels. Bundles a Bun CLI put on PATH by the skill's postinstall step under a bunx install, or by the plugin's bin/ under a Claude Code plugin install. Use when the user asks to review a GitHub pull request. Local mode (setup --local) runs the same pipeline on the current branch's diff from its merge base, uncommitted and untracked work included, against the caller's live tree, with no server or posting, and hands the ranked findings back in the terminal for an implementing or orchestrating agent to address. Splits oversized diffs into budgeted shards and rebuilds the diff from the local clone when gh pr diff refuses it.",
3
+ "version": "0.19.0",
4
+ "description": "Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture) plus a once-per-PR checks pass that finds tests and controls able to pass without proving their purpose, drops findings whose quoted evidence is not in the code, dedupes, runs critic subagents that re-check each finding against the worktree and set its risk label, peer-reviews through a configured provider (codex, claude or agy) with a subagent fallback when the provider is unavailable, and serves an interactive HTML report for selecting or dismissing findings to post via gh, recording the outcome per finding as labels. Bundles a Bun CLI put on PATH by the skill's postinstall step under a bunx install, or by the plugin's bin/ under a Claude Code plugin install. Use when the user asks to review a GitHub pull request. Local mode (setup --local) runs the same pipeline on the current branch's diff from its merge base, uncommitted and untracked work included, against the caller's live tree, with no server or posting, and hands the ranked findings back in the terminal for an implementing or orchestrating agent to address. Splits oversized diffs into budgeted shards and rebuilds the diff from the local clone when gh pr diff refuses it.",
5
5
  "author": "iceinvein",
6
6
  "type": "prompt",
7
7
  "tools": [
8
- "claude"
8
+ "claude",
9
+ "codex",
10
+ "antigravity"
9
11
  ],
10
12
  "files": {
11
13
  "prompt": "SKILL.md"
@@ -34,6 +36,22 @@
34
36
  "bundleRoot": ".claude/skills/magpie",
35
37
  "postinstall": "install.sh",
36
38
  "postremove": "uninstall.sh"
39
+ },
40
+ "codex": {
41
+ "prompt": ".agents/skills/magpie/SKILL.md",
42
+ "bundleRoot": ".agents/skills/magpie",
43
+ "postinstall": "install.sh",
44
+ "postremove": "uninstall.sh"
45
+ },
46
+ "antigravity": {
47
+ "prompt": ".agents/skills/magpie/SKILL.md",
48
+ "bundleRoot": ".agents/skills/magpie",
49
+ "postinstall": "install.sh",
50
+ "postremove": "uninstall.sh",
51
+ "global": {
52
+ "prompt": ".gemini/config/skills/magpie/SKILL.md",
53
+ "bundleRoot": ".gemini/config/skills/magpie"
54
+ }
37
55
  }
38
56
  }
39
57
  }
@@ -163,7 +163,9 @@ approval is not one.
163
163
  The run's state goes in `.sluice/run.json`, written a command at a time by
164
164
  `scripts/status.sh`. That is what makes the breakdown readable from outside the
165
165
  session running it: a statusline segment while it runs, `status.sh show` after a
166
- compaction, and neither costing your partner a turn to ask. `references/status.md`
166
+ compaction, and neither costing your partner a turn to ask. Where the session has
167
+ `TaskCreate` and `TaskUpdate`, the rows are mirrored into its task list as well, a view of
168
+ `run.json` rather than a second record. `references/status.md`
167
169
 
168
170
  **Read `references/deep-channel.md` before you write the plan.** It carries the
169
171
  plan format, the pre-flight questions, the run record, the dispatch rules and
@@ -1,8 +1,8 @@
1
1
  # sluice evals
2
2
 
3
- Twenty-five cases for `claude plugin eval`. Eighteen pin the routing decision: which
3
+ Twenty-six cases for `claude plugin eval`. Eighteen pin the routing decision: which
4
4
  channel the run names, and whether the behaviour that channel owes actually
5
- happened. Seven pin what a deep run does after pre-flight, where the question is
5
+ happened. Eight pin what a deep run does after pre-flight, where the question is
6
6
  no longer which channel but whether the run keeps going.
7
7
 
8
8
  | Case | Signal under test | What it pins |
@@ -36,11 +36,12 @@ Execution, where the run is already past both stops:
36
36
  | `deep-run-decides-a-non-blocking-choice` | A task leaves a choice open and says either is fine | Decided, written into the record, no task blocked, no decision list at the end |
37
37
  | `deep-run-waits-for-a-running-agent` | Every task goes to an implementer agent | A `T2:` labelled dispatch; the handback comes after the last result |
38
38
  | `deep-run-fans-out` | Three disjoint tasks under a worktree-per-implementer answer | Three dispatches in one message, then the flip; each task's files merged back into the run's own tree; also the baseline for a time-budget A/B |
39
+ | `deep-run-mirrors-the-task-list` | The same run, in a session with the task tools | One task-list entry per row; each remaining task completed in the list as its row reaches done |
39
40
  | `deep-run-hunts-after-the-flip` | Every task done, the flip included | bug-hunter on the plan diff against the spec before the final review; the proven off-by-one fixed test-first; a Hunt section in the record |
40
41
 
41
42
  ## Running
42
43
 
43
- Twenty-four cases scaffold a small Node repo and then change it, so they need the
44
+ Twenty-five cases scaffold a small Node repo and then change it, so they need the
44
45
  scaffold flag and a tool grant. Pin the model, because the eval child does not
45
46
  inherit it, and pin the judge, because `--model` does not reach it and the
46
47
  `llm` graders otherwise run on Haiku. From the repo root:
@@ -0,0 +1,4 @@
1
+ schema_version: "1.1"
2
+ name: deep-run-mirrors-the-task-list
3
+ context:
4
+ scaffold_script: fixture.sh
@@ -0,0 +1,304 @@
1
+ #!/usr/bin/env bash
2
+ # A deep run stopped exactly where the two stops are already behind it: design
3
+ # signed off, plan validated, pre-flight answered, Task 1 landed. What is left
4
+ # is execution, which is the part that must not stop.
5
+ set -euo pipefail
6
+
7
+ mkdir -p src/cli tests docs/plans .sluice
8
+
9
+ cat > package.json <<'JSON'
10
+ {
11
+ "name": "shipit",
12
+ "version": "1.2.0",
13
+ "type": "module",
14
+ "scripts": {
15
+ "test": "node --test \"tests/*.test.js\""
16
+ }
17
+ }
18
+ JSON
19
+
20
+ # Task 1, already landed: the sink exists and nothing routes through it yet.
21
+ cat > src/cli/progress.js <<'JS'
22
+ export function createSink({ quiet }) {
23
+ return {
24
+ write(line) {
25
+ if (!quiet) {
26
+ console.log(line);
27
+ }
28
+ },
29
+ };
30
+ }
31
+ JS
32
+
33
+ cat > tests/progress.test.js <<'JS'
34
+ import assert from "node:assert/strict";
35
+ import { test } from "node:test";
36
+ import { createSink } from "../src/cli/progress.js";
37
+
38
+ test("a loud sink prints the line", () => {
39
+ const lines = [];
40
+ const sink = createSink({ quiet: false });
41
+ const restore = console.log;
42
+ console.log = (line) => lines.push(line);
43
+ try {
44
+ sink.write("-> build");
45
+ } finally {
46
+ console.log = restore;
47
+ }
48
+ assert.deepEqual(lines, ["-> build"]);
49
+ });
50
+
51
+ test("a quiet sink swallows the line", () => {
52
+ const lines = [];
53
+ const sink = createSink({ quiet: true });
54
+ const restore = console.log;
55
+ console.log = (line) => lines.push(line);
56
+ try {
57
+ sink.write("-> build");
58
+ } finally {
59
+ console.log = restore;
60
+ }
61
+ assert.deepEqual(lines, []);
62
+ });
63
+ JS
64
+
65
+ cat > src/cli/args.js <<'JS'
66
+ export function parseArgs(argv) {
67
+ return { dryRun: argv.includes("--dry-run") };
68
+ }
69
+ JS
70
+
71
+ cat > tests/args.test.js <<'JS'
72
+ import assert from "node:assert/strict";
73
+ import { test } from "node:test";
74
+ import { parseArgs } from "../src/cli/args.js";
75
+
76
+ test("dry run is read off the argv", () => {
77
+ assert.deepEqual(parseArgs(["--dry-run"]), { dryRun: true });
78
+ });
79
+ JS
80
+
81
+ cat > src/cli/deploy.js <<'JS'
82
+ const STEPS = ["build", "upload", "activate"];
83
+
84
+ export function deploy(args) {
85
+ const { dryRun } = args;
86
+
87
+ for (const step of STEPS) {
88
+ console.log(`-> ${step}`);
89
+ }
90
+
91
+ console.log(dryRun ? "dry run: 3 steps skipped" : "deployed: 3 steps");
92
+ }
93
+ JS
94
+
95
+ cat > tests/deploy.test.js <<'JS'
96
+ import assert from "node:assert/strict";
97
+ import { test } from "node:test";
98
+ import { deploy } from "../src/cli/deploy.js";
99
+
100
+ function capture(run) {
101
+ const lines = [];
102
+ const restore = console.log;
103
+ console.log = (line) => lines.push(line);
104
+ try {
105
+ run();
106
+ } finally {
107
+ console.log = restore;
108
+ }
109
+ return lines;
110
+ }
111
+
112
+ test("dry run skips the steps and says so", () => {
113
+ const lines = capture(() => deploy({ dryRun: true }));
114
+ assert.equal(lines.at(-1), "dry run: 3 steps skipped");
115
+ });
116
+
117
+ test("a full deploy reports every step", () => {
118
+ const lines = capture(() => deploy({ dryRun: false }));
119
+ assert.deepEqual(lines, ["-> build", "-> upload", "-> activate", "deployed: 3 steps"]);
120
+ });
121
+ JS
122
+
123
+ cat > docs/plans/2026-09-20-quiet-flag.md <<'MD'
124
+ # Plan: quiet-flag
125
+
126
+ ## Goal
127
+
128
+ `deploy --quiet` suppresses the three per-step progress lines and leaves the
129
+ final summary line untouched. Every other deploy output is unchanged.
130
+
131
+ ## Architecture
132
+
133
+ Progress lines go through a sink instead of `console.log`. The sink is built
134
+ from the parsed flags and handed to `deploy`, so `deploy` never asks whether it
135
+ is quiet. The summary line does not go through the sink.
136
+
137
+ ## Ground Rules
138
+
139
+ - Commit message convention: `<type>(<scope>): <subject>`, subject lower case,
140
+ no trailing full stop, no attribution trailers and no tool footers.
141
+ - Test runner: `npm test`, which runs `node --test "tests/*.test.js"`.
142
+ - Node built-ins only. No dependency may be added to package.json.
143
+ - Every test asserts on captured output lines, never on internal state.
144
+
145
+ ### Task 1: progress sink
146
+
147
+ **Contract:** Needs: none | Offers: `createSink({ quiet: boolean }) -> { write(line: string): void }`
148
+ **Touches:** src/cli/progress.js (new) | tests/progress.test.js (new)
149
+
150
+ - [x] Add a test asserting a sink built with `quiet: false` prints the line it is given -> the test fails because src/cli/progress.js does not exist
151
+ - [x] Add a test asserting a sink built with `quiet: true` prints nothing -> it fails for the same reason
152
+ - [x] Write `createSink` returning an object with a `write` method that prints unless `quiet` -> `npm test` green
153
+
154
+ ### Task 2: quiet flag parsing
155
+
156
+ **Contract:** Needs: none | Offers: `parseArgs(argv: string[]) -> { dryRun: boolean, quiet: boolean }`
157
+ **Touches:** src/cli/args.js (edit) | tests/args.test.js (test)
158
+
159
+ - [ ] Add a test asserting `parseArgs(["--quiet"])` returns `{ dryRun: false, quiet: true }` -> the new test fails
160
+ - [ ] Add a test asserting `parseArgs([])` returns `{ dryRun: false, quiet: false }` -> it fails on the missing key
161
+ - [ ] Read `--quiet` off argv alongside `--dry-run`, and update the existing dry-run test to expect `{ dryRun: true, quiet: false }` now that the key exists -> `npm test` green
162
+
163
+ ### Task 3: route progress through the sink
164
+
165
+ **Contract:** Needs: `createSink({ quiet: boolean }) -> { write(line: string): void }` | Offers: `deploy(args: { dryRun: boolean }, sink?: { write(line: string): void }) -> void`
166
+ **Touches:** src/cli/deploy.js (edit) | tests/deploy.test.js (test)
167
+
168
+ - [ ] Add a test passing a recording sink to `deploy` and asserting the three `-> <step>` lines arrive on the sink -> the new test fails because deploy takes no sink
169
+ - [ ] Give `deploy` an optional second parameter `sink`, defaulting to `createSink({ quiet: false })` so `deploy(args)` still prints, and send each `-> <step>` line to `sink.write` -> the new test passes
170
+ - [ ] Keep the summary line on `console.log` and keep both original deploy tests, which call `deploy(args)` with no sink, asserting the exact lines `dry run: 3 steps skipped` and `deployed: 3 steps` -> `npm test` green
171
+
172
+ ### Task 4: turn quiet on
173
+
174
+ **Contract:** Needs: `parseArgs(argv: string[]) -> { dryRun: boolean, quiet: boolean }`, `createSink({ quiet: boolean }) -> { write(line: string): void }`, `deploy(args: { dryRun: boolean }, sink?: { write(line: string): void }) -> void` | Offers: `main(argv: string[]) -> void`
175
+ **Touches:** src/cli/main.js (new) | tests/main.test.js (test)
176
+ **Flips:** the three progress lines become suppressible; before this task `--quiet` parses and changes nothing
177
+
178
+ - [ ] Add a test asserting `main(["--quiet"])` prints only `deployed: 3 steps` -> it fails because src/cli/main.js does not exist
179
+ - [ ] Add a test asserting `main([])` prints the three step lines and then `deployed: 3 steps` -> it fails for the same reason
180
+ - [ ] Write `main` to call `parseArgs`, build the sink from `quiet`, and call `deploy` with both -> `npm test` green
181
+ MD
182
+
183
+ cat > docs/plans/2026-09-20-quiet-flag-record.md <<'MD'
184
+ # Run record: quiet-flag
185
+
186
+ ## Pre-flight
187
+
188
+ - Review: tier 3 only. Task 4 is the flip and is the one task that gets a reviewer.
189
+ - Effort: this session's effort for every task. None of the three remaining tasks was marked mechanical.
190
+ - Workspace: shared tree. Tasks run serially, so no worktree was cut.
191
+
192
+ ## Log
193
+
194
+ - Task 1, progress sink: landed. `createSink` written with both tests green.
195
+ Inert by design, nothing routes through it yet.
196
+ MD
197
+
198
+ cat > .sluice/run.json <<'JSON'
199
+ {
200
+ "schema": 1,
201
+ "topic": "quiet-flag",
202
+ "channel": "deep",
203
+ "started": "2026-09-23T06:14:07Z",
204
+ "plan": "docs/plans/2026-09-20-quiet-flag.md",
205
+ "record": "docs/plans/2026-09-20-quiet-flag-record.md",
206
+ "tasks": [
207
+ {
208
+ "id": 1,
209
+ "status": "done",
210
+ "name": "progress sink",
211
+ "tier": 2,
212
+ "offers": [
213
+ "boolean",
214
+ "createSink",
215
+ "line",
216
+ "quiet",
217
+ "string",
218
+ "void",
219
+ "write"
220
+ ],
221
+ "touches": [
222
+ "src/cli/progress.js",
223
+ "tests/progress.test.js"
224
+ ]
225
+ },
226
+ {
227
+ "id": 2,
228
+ "status": "todo",
229
+ "name": "quiet flag parsing",
230
+ "tier": 1,
231
+ "offers": [
232
+ "argv",
233
+ "boolean",
234
+ "dryRun",
235
+ "parseArgs",
236
+ "quiet",
237
+ "string"
238
+ ],
239
+ "touches": [
240
+ "src/cli/args.js",
241
+ "tests/args.test.js"
242
+ ]
243
+ },
244
+ {
245
+ "id": 3,
246
+ "status": "todo",
247
+ "name": "route progress through the sink",
248
+ "tier": 1,
249
+ "needs": [
250
+ "createSink",
251
+ "write"
252
+ ],
253
+ "offers": [
254
+ "args",
255
+ "boolean",
256
+ "deploy",
257
+ "dryRun",
258
+ "line",
259
+ "sink",
260
+ "string",
261
+ "void",
262
+ "write"
263
+ ],
264
+ "touches": [
265
+ "src/cli/deploy.js",
266
+ "tests/deploy.test.js"
267
+ ]
268
+ },
269
+ {
270
+ "id": 4,
271
+ "status": "todo",
272
+ "name": "turn quiet on",
273
+ "tier": 3,
274
+ "flips": true,
275
+ "needs": [
276
+ "createSink",
277
+ "deploy",
278
+ "parseArgs",
279
+ "write"
280
+ ],
281
+ "offers": [
282
+ "argv",
283
+ "main",
284
+ "string",
285
+ "void"
286
+ ],
287
+ "touches": [
288
+ "src/cli/main.js",
289
+ "tests/main.test.js"
290
+ ]
291
+ }
292
+ ],
293
+ "updated": "2026-09-23T06:14:07Z",
294
+ "preflight": {
295
+ "review": "tier3",
296
+ "effort": "0 of 3 low",
297
+ "workspace": "shared"
298
+ }
299
+ }
300
+ JSON
301
+
302
+ git init --quiet
303
+ git add -A
304
+ git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat(progress): add the quiet-aware progress sink"
@@ -0,0 +1,7 @@
1
+ ---
2
+ type: regex
3
+ pattern: '"status":\s*"done"'
4
+ match: 'count:4'
5
+ target: { source: file, path: .sluice/run.json }
6
+ weight: 2
7
+ ---
@@ -0,0 +1,5 @@
1
+ ---
2
+ type: tool_used
3
+ tool: Skill
4
+ input_match: '"skill"\s*:\s*"(?:[\w-]+:)?sluice"'
5
+ ---
@@ -0,0 +1,7 @@
1
+ ---
2
+ type: tool_used
3
+ tool: TaskUpdate
4
+ input_match: '"status"\s*:\s*"completed"'
5
+ min: 3
6
+ weight: 3
7
+ ---
@@ -0,0 +1,8 @@
1
+ ---
2
+ type: tool_used
3
+ tool: TaskCreate
4
+ # The fixture's run has four rows, one of them already done; a list that left
5
+ # out the done row still shows the three that move.
6
+ min: 3
7
+ weight: 2
8
+ ---
@@ -0,0 +1,13 @@
1
+ ---
2
+ name: deep-run-mirrors-the-task-list
3
+ description: A deep run past pre-flight, in a session that has the task tools, mirrors its run.json rows into the harness task list and completes each task there as the row reaches done.
4
+ tags: [deep, execution, scaffold, write]
5
+ max_turns: 80
6
+ timeout_seconds: 2400
7
+ # Naming the task tools here is also what offers them: Claude Code withholds
8
+ # them on current models unless the session opts in.
9
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, TaskCreate, TaskUpdate, TaskList, TaskGet]
10
+ expected_outcome: One task-list entry per run.json row, each remaining task marked completed in the list as its row reaches done, and every row done in run.json.
11
+ ---
12
+
13
+ Plan's signed off and pre-flight's answered, it's all in `.sluice/run.json`. Go.
@@ -382,6 +382,14 @@
382
382
  "cases": [
383
383
  "deep-run-waits-for-a-running-agent"
384
384
  ]
385
+ },
386
+ {
387
+ "id": "deep-mirrors-rows-into-the-task-list",
388
+ "states": "references/deep-channel.md: The run record",
389
+ "origin": "README.md",
390
+ "cases": [
391
+ "deep-run-mirrors-the-task-list"
392
+ ]
385
393
  }
386
394
  ],
387
395
  "sandboxSensitive": [
@@ -390,6 +398,7 @@
390
398
  "deep-run-fans-out",
391
399
  "deep-run-finishes-every-task",
392
400
  "deep-run-hunts-after-the-flip",
401
+ "deep-run-mirrors-the-task-list",
393
402
  "deep-run-survives-a-milestone",
394
403
  "deep-run-waits-for-a-running-agent",
395
404
  "fast-leaves-an-unrelated-red-test-alone",
@@ -127,6 +127,23 @@ review mark or a ratified effort already recorded is left alone and a tier is on
127
127
  ever raised, so resuming after a compaction cannot rewind the run, and an
128
128
  `active` row survives it whether or not its agent did.
129
129
 
130
+ Where the session has `TaskCreate` and `TaskUpdate`, mirror the rows into the
131
+ harness task list, which is the progress your partner sees in the session
132
+ without a statusline or a question. One `TaskCreate` per row right after the
133
+ import, and again for every row when a session picks up a run its own list has
134
+ never seen (a new session or a resume starts with an empty list), each named
135
+ `T<id>: <name>` and created in the status the row already holds. Then a
136
+ `TaskUpdate` in the same message as each flip: `active` and `review` are in progress, `done` is completed, `todo` is
137
+ pending, and `blocked` stays in progress with the reason put in its
138
+ description. The list is a view of `run.json`, not a second record: on any
139
+ disagreement `run.json` is right and the list is corrected to it, and nothing
140
+ outside this session can read the list, which is why the board, the hooks and
141
+ `show` never look at it. Where the tools are absent, skip this without
142
+ remark: Claude Code offers them on current models only with
143
+ `CLAUDE_CODE_ENABLE_TODO_TOOLS=1` set before the session starts, which installing
144
+ this skill with the bunx CLI under global activation (the default) sets unless
145
+ the key already has a value.
146
+
130
147
  The record is the other file, and it holds what a status cannot: the reason
131
148
  review went the way it did, the reason a task was downshifted, the reason the
132
149
  workspace answer went that way, any finding belonging to a task other than the
@@ -462,10 +462,15 @@ case. `%s` rather than `%b`: the render already carries real escape bytes, and
462
462
  2/9 done · !T6 model tiers rather than model names +1 · ⟲ 1 unreviewed
463
463
  ```
464
464
 
465
- On a machine with no status line at all there is nothing to paste into, so the
466
- install claims the empty `statusLine` slot and points it at
465
+ On a machine with no status line at all there is nothing to paste into, so an
466
+ install given `--statusline` claims the empty `statusLine` slot and points it at
467
467
  `scripts/statusline-command.sh`, a complete command that reads the harness JSON
468
- on stdin and draws the run and nothing else. A slot already holding someone
468
+ on stdin and draws the run and nothing else. Without the flag the slot is never
469
+ touched: the bar is the one setting everyone sees on every keystroke, so it is
470
+ asked for rather than assumed. The choice is kept in the lockfile, so an update
471
+ re-wires it unasked, and a slot an install claimed before the flag existed counts
472
+ as asked for. An install given `--no-statusline` gives the slot back and
473
+ clears the choice, so later updates leave it empty. A slot already holding someone
469
474
  else's command is never touched, on install or on removal, and the one the
470
475
  install claimed is given back when the skill is removed, including on the
471
476
  removal path that has no manifest to read.
@@ -24,9 +24,9 @@ RENDER="$BUNDLE/scripts/statusline.sh"
24
24
  command -v jq >/dev/null 2>&1 || exit 0
25
25
 
26
26
  # Nothing is said to someone with no statusline configured. Either the install
27
- # claimed the empty slot, in which case the branch below reports it, or this is
28
- # a session-mode install that wires nothing, in which case there is no file to
29
- # paste into and no instruction worth printing.
27
+ # was given --statusline and claimed the empty slot, in which case the branch
28
+ # below reports it, or nobody asked for one, and an install that repeated the
29
+ # offer on every update would be the notice nobody can switch off.
30
30
  CONFIGURED="$(jq -r '.statusLine.command // empty' "$SETTINGS" 2>/dev/null || true)"
31
31
  [ -n "$CONFIGURED" ] || exit 0
32
32