@bluenyang/reins 0.3.0-rc.1 → 0.3.0-rc.2

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/README.md CHANGED
@@ -15,7 +15,7 @@ knowledge lost in gitignored space, copies that drift apart. The full list is in
15
15
 
16
16
  ## Status
17
17
 
18
- **0.3.0-rc.1 is the release candidate** (intent 019): `npx @bluenyang/reins@0.3.0-rc.1`. 0.2.0, the latest stable, still installs the older design, in which skills and hooks called `npx @bluenyang/reins` during work; 0.3 removes that, and `reins update` moves a 0.1.x or 0.2.0 install over. What changed in each version is in [CHANGELOG.md](CHANGELOG.md); what comes next is in the [roadmap](docs/ROADMAP.md).
18
+ **0.3.0-rc.2 is the release candidate** (intent 019): `npx @bluenyang/reins@0.3.0-rc.2`. 0.2.0, the latest stable, still installs the older design, in which skills and hooks called `npx @bluenyang/reins` during work; 0.3 removes that, and `reins update` moves a 0.1.x or 0.2.0 install over. What changed in each version is in [CHANGELOG.md](CHANGELOG.md); what comes next is in the [roadmap](docs/ROADMAP.md).
19
19
 
20
20
  ## How it works
21
21
 
@@ -1,3 +1,7 @@
1
+ import { existsSync, readFileSync } from 'node:fs';
2
+ import { join } from 'node:path';
3
+ import { parse } from 'yaml';
4
+ import { packageHarness } from '../lib/upstream.js';
1
5
  import { CONFIRMED_MODELS, listModels, vendorOf, } from '../lib/detect.js';
2
6
  import { GROUP_ROLES, GROUPS, effectiveBindings, readLocalBindings, readTeam, } from '../lib/bindings.js';
3
7
  import { BACK, EXIT } from '../lib/prompter.js';
@@ -7,35 +11,54 @@ const LISTER_CLI = { google: 'agy', cursor: 'cursor-agent' };
7
11
  export const WHEN_TO_SWITCH_ON = 'switch a group on when the PM context degrades, independent work can run in parallel, or review/audit should run on another model';
8
12
  const show = (b) => (b ? `${b.vendor} ${b.model}` : 'off (PM)');
9
13
  /** One line per group: `pl claude claude-sonnet-5-5, openai gpt-6.1-terra +1 role`. */
10
- export function groupLine(group, spec) {
14
+ export function groupLine(group, spec, mode) {
11
15
  if (!spec)
12
16
  return `${group.padEnd(12)} off — the PM does it`;
17
+ const tag = mode === 'multi'
18
+ ? ''
19
+ : group === 'auditor'
20
+ ? ' (recommended audit model)'
21
+ : ' (used in multi only)';
13
22
  const models = spec.models?.length
14
23
  ? spec.models.map(show).join(', ')
15
24
  : spec.vendor && spec.model
16
25
  ? show({ vendor: spec.vendor, model: spec.model })
17
26
  : '—';
18
27
  const n = Object.keys(spec.roles ?? {}).length;
19
- return `${group.padEnd(12)} ${models}${n ? ` +${n} role${n > 1 ? 's' : ''}` : ''}`;
28
+ return `${group.padEnd(12)} ${models}${n ? ` +${n} role${n > 1 ? 's' : ''}` : ''}${tag}`;
20
29
  }
21
- /** Models of `vendor` already known here: confirmed ones and those in the current files. */
30
+ /** The packaged list of known models per vendor (`harness/models.yaml`, spec ST-2). */
31
+ export function catalogue() {
32
+ const p = join(packageHarness(), 'models.yaml');
33
+ if (!existsSync(p))
34
+ return {};
35
+ const doc = parse(readFileSync(p, 'utf8'));
36
+ return doc?.vendors ?? {};
37
+ }
38
+ /** Models of `vendor` known here: the packaged list, confirmed ones, and the current files' bindings of that vendor. */
22
39
  export function knownModels(vendor, current) {
23
- const out = [...CONFIRMED_MODELS];
40
+ const out = [
41
+ ...(catalogue()[vendor] ?? []),
42
+ ...[...CONFIRMED_MODELS].filter((m) => vendorOf(m) === vendor),
43
+ ];
44
+ const take = (b) => {
45
+ if (b && b.vendor === vendor)
46
+ out.push(b.model);
47
+ };
24
48
  for (const d of current) {
25
- if (d.default)
26
- out.push(d.default.model);
49
+ take(d.default);
27
50
  for (const g of Object.values(d.groups ?? {})) {
28
51
  if (!g)
29
52
  continue;
30
- if (g.model)
31
- out.push(g.model);
53
+ if (g.vendor && g.model)
54
+ take({ vendor: g.vendor, model: g.model });
32
55
  for (const m of g.models ?? [])
33
- out.push(m.model);
56
+ take(m);
34
57
  for (const r of Object.values(g.roles ?? {}))
35
- out.push(r.model);
58
+ take(r);
36
59
  }
37
60
  }
38
- return [...new Set(out)].filter((m) => vendorOf(m) === vendor || !vendorOf(m));
61
+ return [...new Set(out)];
39
62
  }
40
63
  /**
41
64
  * The models-and-roles screen (design §9): scope, the PM's model, each group (off, one model, several for
@@ -62,16 +85,19 @@ export async function modelsScreen(o) {
62
85
  prompter.note('no version-2 bindings.yaml here — run `reins install` or `reins update`');
63
86
  return 'back';
64
87
  }
65
- prompter.note(WHEN_TO_SWITCH_ON);
88
+ const single = doc.mode !== 'multi';
89
+ prompter.note(single
90
+ ? 'single: the PM does every role; the assignments below are used only after switching to multi (the auditor model is the recommended audit model either way)'
91
+ : WHEN_TO_SWITCH_ON);
66
92
  const options = [
67
93
  { value: 'back', label: '< Configuration' },
68
94
  { value: 'exit', label: 'exit' },
69
95
  {
70
96
  value: 'scope',
71
- label: `scope: ${scope === 'local' ? 'local | global' : 'global | local'}`,
97
+ label: `scope: ${scope === 'local' ? 'local | project' : 'project | local'}`,
72
98
  },
73
99
  { value: 'default', label: `${'PM'.padEnd(12)} ${show(doc.default)}` },
74
- ...GROUPS.map((g) => ({ value: g, label: groupLine(g, doc.groups?.[g]) })),
100
+ ...GROUPS.map((g) => ({ value: g, label: groupLine(g, doc.groups?.[g], doc.mode) })),
75
101
  ];
76
102
  const v = await prompter.select({
77
103
  message: `Models and roles (mode: ${doc.mode ?? 'single'})`,
@@ -87,7 +113,11 @@ export async function modelsScreen(o) {
87
113
  initial: scope,
88
114
  options: [
89
115
  { value: 'local', label: 'local', hint: '.loctx/bindings.local.yaml, this user only' },
90
- { value: 'global', label: 'global', hint: 'bindings.yaml, committed, regenerates files' },
116
+ {
117
+ value: 'project',
118
+ label: 'project',
119
+ hint: 'the team: .agents/harness/bindings.yaml, committed, regenerates files',
120
+ },
91
121
  ],
92
122
  });
93
123
  if (s === EXIT)
@@ -104,17 +134,17 @@ export async function modelsScreen(o) {
104
134
  await write({ set: [`default=${b.vendor}:${b.model}`] }, `PM → ${show(b)}`);
105
135
  continue;
106
136
  }
107
- const r = await groupScreen(o, v, doc.groups?.[v], write);
137
+ const r = await groupScreen(o, v, doc.groups?.[v], write, doc.mode);
108
138
  if (r === 'exit')
109
139
  return 'exit';
110
140
  }
111
141
  }
112
- async function groupScreen(o, group, spec, write) {
142
+ async function groupScreen(o, group, spec, write, mode) {
113
143
  const { prompter } = o;
114
144
  const many = group === 'pl' || group === 'advisor';
115
145
  const roles = GROUP_ROLES[group];
116
146
  const pick = await prompter.select({
117
- message: `${group}: ${groupLine(group, spec).slice(12).trim()}`,
147
+ message: `${group}: ${groupLine(group, spec, mode).slice(12).trim()}`,
118
148
  options: [
119
149
  { value: 'back', label: '< back' },
120
150
  { value: 'one', label: many ? 'one model' : 'set the model' },
@@ -1,7 +1,7 @@
1
1
  import { effectiveBindings, resolveRoles } from '../lib/bindings.js';
2
2
  import { newModelCache, vendors } from '../lib/detect.js';
3
3
  import { repoRoot } from '../lib/git.js';
4
- import { modelsScreen } from './config-models.js';
4
+ import { groupLine, modelsScreen } from './config-models.js';
5
5
  import { configureBindings } from './configure.js';
6
6
  import { clackPrompter, isInteractive } from '../lib/prompter.js';
7
7
  export const CONFIG_HINT = 'change with: reins config bindings --set <default|group|group.role>=<model> [--local] (see: reins config bindings --help)';
@@ -15,6 +15,13 @@ export function formatBindings(doc) {
15
15
  const on = resolveRoles(doc).filter((r) => r.on);
16
16
  if (on.length === 0)
17
17
  lines.push(' every role: the PM');
18
+ if (doc.mode !== 'multi') {
19
+ const kept = Object.entries(doc.groups ?? {}).filter(([, s]) => s && JSON.stringify(s) !== '{}');
20
+ for (const [g, s] of kept)
21
+ lines.push(` ${g.padEnd(26)} ${groupLine(g, s, doc.mode)
22
+ .slice(12)
23
+ .trim()}`);
24
+ }
18
25
  for (const r of on)
19
26
  lines.push(` ${`${r.group}/${r.role}`.padEnd(26)} ${r.models.map((b) => `${b.vendor} ${b.model}`).join(', ')} (${r.source})`);
20
27
  const tools = Object.entries(doc.tools ?? {})
@@ -103,8 +110,8 @@ export async function runConfig(o = {}) {
103
110
  const r = await configureBindings({ cwd: root, mode: m });
104
111
  prompter.note(r.refused
105
112
  ? `not changed: ${r.refused}`
106
- : r.reconcile
107
- ? `mode ${m}: AGENTS.md has a reconcile note — the PM merges it in the next conversation`
113
+ : r.modeChanged
114
+ ? `mode ${m}: AGENTS.md has a mode-changed note — the PM checks the project sections in the next conversation`
108
115
  : `mode ${m}: already so`);
109
116
  continue;
110
117
  }
@@ -3,7 +3,7 @@ import { join } from 'node:path';
3
3
  import { parse, parseDocument } from 'yaml';
4
4
  import { subdirProposals, vendorOf, vendors } from '../lib/detect.js';
5
5
  import { GROUP_ROLES, GROUPS, effectiveBindings, readLocalBindings, readTeam, resolveRoles, validateBindings, writeBindings, } from '../lib/bindings.js';
6
- import { placeNote, reconcileNote, renderBlocks } from '../lib/agents-md.js';
6
+ import { modeChangedNote, placeNote, renderBlocks } from '../lib/agents-md.js';
7
7
  import { applyBlocks } from '../lib/blocks.js';
8
8
  import { generateVendorFiles } from '../lib/generate.js';
9
9
  import { repoRoot } from '../lib/git.js';
@@ -19,8 +19,8 @@ export function parseBinding(v) {
19
19
  return { vendor: s.slice(0, i), model: s.slice(i + 1) };
20
20
  return { vendor: vendorOf(s), model: s };
21
21
  }
22
- /** Rewrite AGENTS.md's managed blocks for these settings (design §5); a mode change adds the reconcile note. */
23
- export function refreshAgents(root, doc, modeChanged) {
22
+ /** Rewrite AGENTS.md's managed blocks for these settings (design §5); a mode change adds the light mode-changed note (ST-5). */
23
+ export function refreshAgents(root, doc, modeFrom) {
24
24
  const ap = join(root, 'AGENTS.md');
25
25
  if (!existsSync(ap))
26
26
  return false;
@@ -30,12 +30,10 @@ export function refreshAgents(root, doc, modeChanged) {
30
30
  ? String(parse(readFileSync(pin, 'utf8'))?.language ?? 'ko')
31
31
  : 'ko';
32
32
  let text = applyBlocks(before, renderBlocks(packageHarness(), doc, language)).text;
33
- if (modeChanged) {
34
- // a previous text the PM has not reconciled yet is older and stays; the current one is still in AGENTS.md
35
- const prev = join(root, '.agents/AGENTS.previous.md');
36
- if (!(existsSync(prev) && before.includes('<!-- reins:reconcile pending -->')))
37
- writeFileSync(prev, before);
38
- text = placeNote(text, reconcileNote(`The user switched the mode to ${doc.mode ?? 'single'}.`), 'reconcile');
33
+ if (modeFrom !== undefined) {
34
+ // a pending note from an earlier switch is replaced by one that names the latest change
35
+ text = text.replace(/<!-- reins:mode-changed (?:pending|done) -->\n(?:> \*\*Mode changed from [^\n]*\n)?\n?/, '');
36
+ text = placeNote(text, modeChangedNote(modeFrom, doc.mode ?? 'single'), 'mode-changed');
39
37
  }
40
38
  if (text !== before)
41
39
  writeFileSync(ap, text);
@@ -174,15 +172,22 @@ export async function configureBindings(o) {
174
172
  const doc = effective();
175
173
  return { changed: [], doc, roles: resolveRoles(doc) };
176
174
  }
177
- writeBindings(root, next, o.local ? 'local' : 'global');
175
+ writeBindings(root, next, o.local ? 'local' : 'project');
178
176
  const doc = effective();
179
177
  if (o.local)
180
178
  return { changed, doc, roles: resolveRoles(doc) };
181
179
  const teamNow = readTeam(root).doc;
182
- const modeChanged = (team.doc.mode ?? 'single') !== (teamNow.mode ?? 'single');
180
+ const from = team.doc.mode ?? 'single';
181
+ const modeChanged = from !== (teamNow.mode ?? 'single');
183
182
  const generated = writeGenerated(root, generateVendorFiles(root), false);
184
- refreshAgents(root, teamNow, modeChanged);
185
- return { changed, doc, roles: resolveRoles(doc), generated, reconcile: modeChanged || undefined };
183
+ refreshAgents(root, teamNow, modeChanged ? from : undefined);
184
+ return {
185
+ changed,
186
+ doc,
187
+ roles: resolveRoles(doc),
188
+ generated,
189
+ modeChanged: modeChanged || undefined,
190
+ };
186
191
  }
187
192
  /** `reins configure gates [--add <name>…]` (spec S-7): subdirectory proposals, appended after the existing gates. */
188
193
  export function configureGates(o = {}) {
@@ -208,7 +208,7 @@ async function updateNow(o) {
208
208
  const { doc, notes } = convertV1(team.v1);
209
209
  res.converted = notes;
210
210
  if (!o.dryRun)
211
- writeBindings(root, doc, 'global');
211
+ writeBindings(root, doc, 'project');
212
212
  else
213
213
  pending.push({ path: '.agents/harness/bindings.yaml', content: stringify(doc) });
214
214
  }
@@ -89,11 +89,20 @@ export function reconcileNote(why) {
89
89
  ].join('\n');
90
90
  }
91
91
  /** Put a note right after the first H1 (or at the top) unless one of that kind is still pending. */
92
+ /** The light check after a mode switch (design §5, spec ST-5): only the delegation block changed. */
93
+ export function modeChangedNote(from, to) {
94
+ return [
95
+ '<!-- reins:mode-changed pending -->',
96
+ `> **Mode changed from ${from} to ${to}.** reins rewrote the delegation section. In the next conversation (the \`onboard\` skill), check that the project sections below say nothing that contradicts the new mode, then change the marker above to \`<!-- reins:mode-changed done -->\`.`,
97
+ ].join('\n');
98
+ }
92
99
  export function placeNote(text, note, kind) {
93
100
  if (text.includes(`<!-- reins:${kind} pending -->`))
94
101
  return text;
95
102
  // a finished one gives way to the new one (e.g. a second mode switch)
96
- text = text.replace(new RegExp(`<!-- reins:${kind} done -->\\n(?:> [^\\n]*\\n)?\\n?`), '');
103
+ // only the note reins wrote goes with its marker; a project quote under it stays
104
+ const lead = { onboarding: 'Onboarding', reconcile: 'Reconcile', 'mode-changed': 'Mode changed' }[kind];
105
+ text = text.replace(new RegExp(`<!-- reins:${kind} done -->\\n(?:> \\*\\*${lead}[^\\n]*\\n)?\\n?`), '');
97
106
  const m = /^# .*\n/m.exec(text);
98
107
  if (!m)
99
108
  return `${note}\n\n${text}`;
@@ -195,7 +195,7 @@ export function convertV1(v1) {
195
195
  if (k in v1)
196
196
  notes.push(`${k}: dropped (no run-time keys)`);
197
197
  if (doc.groups)
198
- notes.push('mode: single; switch to multi with config to use the groups above');
198
+ notes.push('mode: single — the groups above are kept for multi and unused until then; switch with `reins config`, or remove them with `reins config bindings --off <group>…`');
199
199
  return { doc, notes };
200
200
  }
201
201
  /** The committed team file and the git-ignored personal override (design §5). */
@@ -235,7 +235,7 @@ export function effectiveBindings(root) {
235
235
  }
236
236
  const HEADER = '# reins model assignment (design §5) — the user changes it with `reins config`; nothing reads it while you work\n';
237
237
  export function writeBindings(root, doc, scope) {
238
- const p = join(root, scope === 'global' ? TEAM_BINDINGS : LOCAL_BINDINGS);
238
+ const p = join(root, scope === 'project' ? TEAM_BINDINGS : LOCAL_BINDINGS);
239
239
  mkdirSync(dirname(p), { recursive: true });
240
240
  writeFileSync(p, `${HEADER}${stringify({ ...doc, schema: 'reins/bindings@2' })}`);
241
241
  }
@@ -50,16 +50,16 @@ export function scriptedPrompter(answers) {
50
50
  const queue = [...answers];
51
51
  const asked = [];
52
52
  const notes = [];
53
- const next = (kind, message, values) => {
54
- asked.push({ kind, message, values });
53
+ const next = (kind, message, values, labels) => {
54
+ asked.push({ kind, message, values, ...(labels ? { labels } : {}) });
55
55
  return queue.length ? queue.shift() : EXIT;
56
56
  };
57
57
  return {
58
58
  asked,
59
59
  notes,
60
60
  remaining: () => queue.length,
61
- select: async (q) => next('select', q.message, q.options.map((o) => o.value)),
62
- multiselect: async (q) => next('multiselect', q.message, q.options.map((o) => o.value)),
61
+ select: async (q) => next('select', q.message, q.options.map((o) => o.value), q.options.map((o) => o.label)),
62
+ multiselect: async (q) => next('multiselect', q.message, q.options.map((o) => o.value), q.options.map((o) => o.label)),
63
63
  text: async (q) => next('text', q.message),
64
64
  confirm: async (q) => next('confirm', q.message),
65
65
  note: (m) => {
package/cli/dist/reins.js CHANGED
@@ -191,8 +191,8 @@ config
191
191
  process.stdout.write(`${formatBindings(r.doc)}\n`);
192
192
  if (!o.show)
193
193
  process.stdout.write(r.changed.length ? `changed: ${r.changed.join(', ')}\n` : 'no change\n');
194
- if (r.reconcile)
195
- process.stdout.write('• AGENTS.md has a reconcile note — the PM merges it in the next conversation\n');
194
+ if (r.modeChanged)
195
+ process.stdout.write('• AGENTS.md has a mode-changed note — the PM checks the project sections in the next conversation\n');
196
196
  const g = r.generated;
197
197
  if (g) {
198
198
  for (const p of g.written)
package/docs/README.ko.md CHANGED
@@ -8,7 +8,7 @@ BlueNyang과 Team Croffle의 저장소 열두 곳이 같은 하네스 계통을
8
8
 
9
9
  ## 상태
10
10
 
11
- **0.3.0-rc.1이 릴리스 후보입니다**(intent 019): `npx @bluenyang/reins@0.3.0-rc.1`. 최신 stable인 0.2.0은 아직 이전 설계를 설치합니다. 그 설계에서는 스킬과 훅이 작업 중에 `npx @bluenyang/reins`를 불렀습니다. 0.3은 그것을 없애고, `reins update`가 0.1.x·0.2.0 설치를 옮깁니다. 버전마다 바뀐 것은 [CHANGELOG.md](../CHANGELOG.md)에, 앞으로의 계획은 [로드맵](ROADMAP.ko.md)에 있습니다.
11
+ **0.3.0-rc.2가 릴리스 후보입니다**(intent 019): `npx @bluenyang/reins@0.3.0-rc.2`. 최신 stable인 0.2.0은 아직 이전 설계를 설치합니다. 그 설계에서는 스킬과 훅이 작업 중에 `npx @bluenyang/reins`를 불렀습니다. 0.3은 그것을 없애고, `reins update`가 0.1.x·0.2.0 설치를 옮깁니다. 버전마다 바뀐 것은 [CHANGELOG.md](../CHANGELOG.md)에, 앞으로의 계획은 [로드맵](ROADMAP.ko.md)에 있습니다.
12
12
 
13
13
  ## 동작 방식
14
14
 
@@ -3,6 +3,7 @@
3
3
  Read by `reins update`: it lists the entries newer than a project's pinned version.
4
4
 
5
5
  ## 0.3.0
6
+ - rc.2: `models.yaml` lists known models per vendor; a mode switch adds `reins:mode-changed` (no AGENTS.previous.md); the `onboard` skill handles it.
6
7
  - Seven role groups replace the twelve roles; bindings.yaml version 2 (mode, audit, groups); `update` converts version 1.
7
8
  - Eleven stage skills without the `reins-` prefix replace the ten `reins-*` skills; none calls reins.
8
9
  - AGENTS.md blocks: notice, layout, settings, flow, delegation, records, stops, language; an onboarding or reconcile note for the PM.
@@ -0,0 +1,8 @@
1
+ # Known models per vendor (design §9): what `reins config` offers when a vendor's CLI cannot list its own.
2
+ # agy and cursor-agent list theirs; this list is their fallback. `other` always lets the user type an ID.
3
+ schema: reins/models@1
4
+ vendors:
5
+ claude: [claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5, claude-fable-5-1]
6
+ openai: [gpt-6.1-sol, gpt-6.1-terra, gpt-6-astra]
7
+ google: [gemini-4-argon-high, gemini-4-argon-medium, gemini-4-argon-low, gemini-3.8-flash-medium]
8
+ cursor: [cursor-grok-4.5-high-fast]
@@ -30,7 +30,7 @@ Follow these steps in order; each has a skill in `.agents/skills/`, and each ski
30
30
  4. `implement` → `review` — one work unit, one commit, naming its spec items.
31
31
  5. `test` → `merge` → **`audit`** (after the merge, before the rc) → `release` → `retro` (after stable), then delete the version's working files.
32
32
 
33
- The first conversation after installation (or after a reconcile marker appears in this file) starts with `onboard`.
33
+ The first conversation after installation (or after a reconcile or mode-changed marker appears in this file) starts with `onboard`.
34
34
  <!-- reins:end flow -->
35
35
 
36
36
  <!-- reins:begin delegation v=0.3.0 -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluenyang/reins",
3
- "version": "0.3.0-rc.1",
3
+ "version": "0.3.0-rc.2",
4
4
  "description": "Installs, migrates and updates an agent harness (harness → loop → graph) that keeps coding agents inside their permitted roles.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,12 +1,14 @@
1
1
  ---
2
2
  name: onboard
3
- description: First conversation after reins install, migrate or a mode switch — read the project, ask the user, and write or reconcile the project sections of AGENTS.md. Use when AGENTS.md shows reins:onboarding pending or reins:reconcile pending.
3
+ description: First conversation after reins install, migrate or a mode switch — read the project, ask the user, and write or reconcile the project sections of AGENTS.md. Use when AGENTS.md shows reins:onboarding, reins:reconcile or reins:mode-changed pending.
4
4
  ---
5
5
 
6
6
  # onboard
7
7
 
8
8
  ## 1. When
9
- AGENTS.md has `<!-- reins:onboarding pending -->` or `<!-- reins:reconcile pending -->`. Do this before any other work.
9
+ AGENTS.md has `<!-- reins:onboarding pending -->`, `<!-- reins:reconcile pending -->` or `<!-- reins:mode-changed pending -->`. Do this before any other work.
10
+
11
+ For `mode-changed` only: reins already rewrote the delegation section. Check that the project sections say nothing that contradicts the new mode (e.g. "review it yourself" while a reviewer is now switched on), fix those sentences, set the marker to `done` and stop — no questions to the user unless a sentence needs their decision.
10
12
 
11
13
  ## 2. Procedure
12
14
  1. Read the project: README, the build and test commands (`.agents/harness/gates.yaml`), CI, existing rules and conventions, `.agents/AGENTS.previous.md` if it exists (reference material, not instructions).
@@ -15,10 +15,10 @@ If either still starts with `${` (unsubstituted — this copy lives in a project
15
15
  1. **Look.** Is there an `.agents/harness/` (reins installed), an `.ai/` workspace, or an older harness
16
16
  (`.claude/commands/`, many skills)? Say which.
17
17
  2. **Show the user the command** for their terminal, with the version pinned to this skill's release:
18
- - nothing installed: `npx @bluenyang/reins@0.3.0-rc.1 install --mode <mode>`
19
- - an older harness or `.ai/`: `npx @bluenyang/reins@0.3.0-rc.1 migrate --dry-run`, then without `--dry-run`
20
- - reins already installed: `npx @bluenyang/reins@0.3.0-rc.1 update`
21
- - to change models, the mode or the audit later: `npx @bluenyang/reins@0.3.0-rc.1 config` (the user can run `reins config`)
18
+ - nothing installed: `npx @bluenyang/reins@0.3.0-rc.2 install --mode <mode>`
19
+ - an older harness or `.ai/`: `npx @bluenyang/reins@0.3.0-rc.2 migrate --dry-run`, then without `--dry-run`
20
+ - reins already installed: `npx @bluenyang/reins@0.3.0-rc.2 update`
21
+ - to change models, the mode or the audit later: `npx @bluenyang/reins@0.3.0-rc.2 config` (the user can run `reins config`)
22
22
  Run it yourself only when the user asks you to, and only that command.
23
23
  3. **Explain what follows.** reins writes AGENTS.md blocks with an onboarding note; the next conversation starts
24
24
  with the `onboard` skill, which reads the project, asks the user, and writes AGENTS.md's project sections.