herdr-orchestra 5.10.0 → 6.2.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/CHANGELOG.md +75 -0
- package/README.md +42 -2
- package/VERSION +1 -1
- package/agents.default.toml +12 -0
- package/bin/orch +1198 -81
- package/extensions/orch-mode.ts +224 -0
- package/install.sh +8 -0
- package/package.json +27 -4
- package/pi/README.md +5 -0
- package/pi/skills/orch-plan/SKILL.md +6 -0
- package/playbooks/plan.md +7 -5
- package/playbooks/run.md +5 -4
- package/playbooks/subagent.md +40 -0
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
// herdr-orchestra for Pi (https://pi.dev): shows which orch mode this window is in and lets you switch it.
|
|
2
|
+
//
|
|
3
|
+
// panes (default) coders and the reviewer run in herdr panes; the lead uses `orch dispatch`
|
|
4
|
+
// subagent one Pi window: the lead starts the coder and the reviewer as Pi subagents (@tintinweb/pi-subagents)
|
|
5
|
+
//
|
|
6
|
+
// Only Pi loads this file (package.json "pi".extensions). Claude Code, Codex, OpenCode and the other agents never
|
|
7
|
+
// read it, and `npx herdr-orchestra` ignores it.
|
|
8
|
+
//
|
|
9
|
+
// Where the mode comes from: this repo's run (.orchestrate/state.json, `orch_mode`; a run from before 6.2.0 is
|
|
10
|
+
// panes), else ~/.config/herdr-orchestra/config.json (`mode`), else panes.
|
|
11
|
+
//
|
|
12
|
+
// Commands: /orch-mode [panes|subagent] show or switch the mode
|
|
13
|
+
// /orch-setup install the `orch` command from this package (needed once)
|
|
14
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
15
|
+
import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
16
|
+
import { homedir } from "node:os";
|
|
17
|
+
import { dirname, join, resolve } from "node:path";
|
|
18
|
+
import { fileURLToPath } from "node:url";
|
|
19
|
+
|
|
20
|
+
type Mode = "panes" | "subagent";
|
|
21
|
+
const MODES: Mode[] = ["panes", "subagent"];
|
|
22
|
+
const STATUS_KEY = "orch";
|
|
23
|
+
|
|
24
|
+
function packageRoot(): string {
|
|
25
|
+
const here = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
|
|
26
|
+
return resolve(here, "..");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function configFile(): string {
|
|
30
|
+
return process.env.ORCH_CONFIG_FILE || join(homedir(), ".config", "herdr-orchestra", "config.json");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function readJson(path: string): Record<string, unknown> | undefined {
|
|
34
|
+
try {
|
|
35
|
+
const data = JSON.parse(readFileSync(path, "utf8"));
|
|
36
|
+
return data && typeof data === "object" && !Array.isArray(data) ? data : undefined;
|
|
37
|
+
} catch {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function asMode(value: unknown): Mode | undefined {
|
|
43
|
+
return typeof value === "string" && (MODES as string[]).includes(value.toLowerCase())
|
|
44
|
+
? (value.toLowerCase() as Mode)
|
|
45
|
+
: undefined;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** .orchestrate/state.json of the repo that holds cwd (orch keeps it in the main checkout, not in worktrees). */
|
|
49
|
+
async function stateFile(pi: ExtensionAPI, cwd: string): Promise<string | undefined> {
|
|
50
|
+
try {
|
|
51
|
+
const r = await pi.exec("git", ["rev-parse", "--path-format=absolute", "--git-common-dir"], { cwd, timeout: 5000 });
|
|
52
|
+
if (r.code === 0 && r.stdout.trim()) {
|
|
53
|
+
const p = join(dirname(r.stdout.trim()), ".orchestrate", "state.json");
|
|
54
|
+
return existsSync(p) ? p : undefined;
|
|
55
|
+
}
|
|
56
|
+
} catch {
|
|
57
|
+
// not a git repo, or no git: no run here
|
|
58
|
+
}
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function readMode(pi: ExtensionAPI, cwd: string): Promise<{ mode: Mode; from: string }> {
|
|
63
|
+
const state = await stateFile(pi, cwd);
|
|
64
|
+
if (state) {
|
|
65
|
+
const st = readJson(state);
|
|
66
|
+
if (st) return { mode: asMode(st.orch_mode) ?? "panes", from: "this repo's run" };
|
|
67
|
+
}
|
|
68
|
+
const saved = asMode(readJson(configFile())?.mode);
|
|
69
|
+
return saved ? { mode: saved, from: configFile() } : { mode: "panes", from: "default" };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function saveConfigMode(mode: Mode): void {
|
|
73
|
+
const path = configFile();
|
|
74
|
+
const data = readJson(path) ?? {};
|
|
75
|
+
data.mode = mode;
|
|
76
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
77
|
+
writeFileSync(path + ".tmp", JSON.stringify(data, null, 2) + "\n");
|
|
78
|
+
renameSync(path + ".tmp", path);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
async function orchCommand(pi: ExtensionAPI): Promise<string | undefined> {
|
|
82
|
+
const r = await pi.exec("sh", ["-c", 'command -v orch || { test -x "$HOME/.local/bin/orch" && echo "$HOME/.local/bin/orch"; }'], {
|
|
83
|
+
timeout: 5000,
|
|
84
|
+
});
|
|
85
|
+
const path = r.stdout.trim().split("\n")[0];
|
|
86
|
+
return r.code === 0 && path ? path : undefined;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function packageVersion(): string | undefined {
|
|
90
|
+
try {
|
|
91
|
+
return JSON.parse(readFileSync(join(packageRoot(), "package.json"), "utf8")).version;
|
|
92
|
+
} catch {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** "6.1.0" or "6.2.0-dev" -> [6, 1, 0]; undefined when it is not a version. */
|
|
98
|
+
function parseVersion(text: string | undefined): number[] | undefined {
|
|
99
|
+
const m = /(\d+)\.(\d+)\.(\d+)/.exec(text ?? "");
|
|
100
|
+
return m ? [Number(m[1]), Number(m[2]), Number(m[3])] : undefined;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function olderThan(a: number[], b: number[]): boolean {
|
|
104
|
+
for (let i = 0; i < 3; i++) if (a[i] !== b[i]) return a[i] < b[i];
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** What orch is on this machine: missing, older than this package (an old install next to a new Pi package, which
|
|
109
|
+
* has no `orch mode` yet), or ok. */
|
|
110
|
+
async function orchState(pi: ExtensionAPI): Promise<{ state: "missing" | "old" | "ok"; path?: string; version?: string }> {
|
|
111
|
+
const path = await orchCommand(pi);
|
|
112
|
+
if (!path) return { state: "missing" };
|
|
113
|
+
const r = await pi.exec(path, ["version"], { timeout: 10000 });
|
|
114
|
+
const have = parseVersion(r.stdout);
|
|
115
|
+
const want = parseVersion(packageVersion());
|
|
116
|
+
const version = have?.join(".");
|
|
117
|
+
if (r.code !== 0 || !have || (want && olderThan(have, want))) return { state: "old", path, version };
|
|
118
|
+
return { state: "ok", path, version };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function showStatus(ctx: ExtensionContext, mode: Mode): void {
|
|
122
|
+
ctx.ui.setStatus(STATUS_KEY, `orch: ${mode}`);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export default function orchMode(pi: ExtensionAPI) {
|
|
126
|
+
let mode: Mode = "panes";
|
|
127
|
+
|
|
128
|
+
pi.on("session_start", async (_event, ctx) => {
|
|
129
|
+
mode = (await readMode(pi, ctx.cwd)).mode;
|
|
130
|
+
showStatus(ctx, mode);
|
|
131
|
+
const o = await orchState(pi);
|
|
132
|
+
if (o.state === "missing") {
|
|
133
|
+
ctx.ui.notify("herdr-orchestra: the `orch` command is not installed yet. Type /orch-setup once to install it.", "warning");
|
|
134
|
+
} else if (o.state === "old") {
|
|
135
|
+
ctx.ui.notify(
|
|
136
|
+
`herdr-orchestra: this Pi package is ${packageVersion() ?? "newer"} but the orch command on this machine is ${o.version ?? "older"}, which does not know the modes. Type /orch-setup to update it.`,
|
|
137
|
+
"warning",
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
// Pi knows the mode on every turn. Worded for anyone who reads it (a coder subagent loads this extension too).
|
|
143
|
+
pi.on("before_agent_start", async (event, ctx) => {
|
|
144
|
+
mode = (await readMode(pi, ctx.cwd)).mode;
|
|
145
|
+
const line =
|
|
146
|
+
mode === "subagent"
|
|
147
|
+
? "herdr-orchestra (orch) mode: subagent. When you lead an orch run, the coder and the reviewer are Pi subagents (the Agent tool), not herdr panes; `orch lead run` prints the steps."
|
|
148
|
+
: "herdr-orchestra (orch) mode: panes. When you lead an orch run, coders and the reviewer run in herdr panes; `orch lead run` prints the steps.";
|
|
149
|
+
return { systemPrompt: `${event.systemPrompt}\n\n${line}` };
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
pi.registerCommand("orch-mode", {
|
|
153
|
+
description: "Show or switch the herdr-orchestra mode: panes (herdr panes) or subagent (one Pi window)",
|
|
154
|
+
getArgumentCompletions: (prefix: string) =>
|
|
155
|
+
MODES.filter((m) => m.startsWith(prefix.trim().toLowerCase())).map((m) => ({ value: m, label: m })),
|
|
156
|
+
handler: async (args, ctx) => {
|
|
157
|
+
const want = args.trim().toLowerCase();
|
|
158
|
+
if (!want) {
|
|
159
|
+
const cur = await readMode(pi, ctx.cwd);
|
|
160
|
+
mode = cur.mode;
|
|
161
|
+
showStatus(ctx, mode);
|
|
162
|
+
ctx.ui.notify(`orch mode: ${cur.mode} (${cur.from}). Switch with /orch-mode panes or /orch-mode subagent.`, "info");
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const next = asMode(want);
|
|
166
|
+
if (!next) {
|
|
167
|
+
ctx.ui.notify(`Unknown mode "${want}". Use /orch-mode panes or /orch-mode subagent.`, "error");
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const o = await orchState(pi);
|
|
171
|
+
const orch = o.state === "ok" ? o.path : undefined;
|
|
172
|
+
if (orch) {
|
|
173
|
+
// `orch mode` saves the machine's default and, when nothing is in progress, this repo's run too
|
|
174
|
+
const r = await pi.exec(orch, ["mode", next], { cwd: ctx.cwd, timeout: 30000 });
|
|
175
|
+
const out = (r.stdout + r.stderr).trim();
|
|
176
|
+
if (r.code !== 0) {
|
|
177
|
+
ctx.ui.notify(out || `orch mode ${next} failed`, "error");
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
ctx.ui.notify(out, "info");
|
|
181
|
+
} else {
|
|
182
|
+
saveConfigMode(next);
|
|
183
|
+
ctx.ui.notify(
|
|
184
|
+
`orch mode: ${next} (saved in ${configFile()}). ` +
|
|
185
|
+
(o.state === "old" ? `The orch command here is ${o.version ?? "older"} and does not know the modes yet: ` : "") +
|
|
186
|
+
"Type /orch-setup to install the orch command.",
|
|
187
|
+
"info",
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
const now = await readMode(pi, ctx.cwd);
|
|
191
|
+
mode = now.mode;
|
|
192
|
+
showStatus(ctx, mode);
|
|
193
|
+
if (now.mode !== next) {
|
|
194
|
+
ctx.ui.notify(`This repo's run stays ${now.mode} (${orch ? "something is in progress" : "switch it with /orch-mode after /orch-setup"}). New runs use ${next}.`, "warning");
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
pi.registerCommand("orch-setup", {
|
|
200
|
+
description: "Install the herdr-orchestra `orch` command from this package (and, in subagent mode, its Pi subagents)",
|
|
201
|
+
handler: async (_args, ctx) => {
|
|
202
|
+
const installer = join(packageRoot(), "install.sh");
|
|
203
|
+
if (!existsSync(installer)) {
|
|
204
|
+
ctx.ui.notify(`install.sh not found next to this extension (${installer}). Run: npx herdr-orchestra@latest`, "error");
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const cur = await readMode(pi, ctx.cwd);
|
|
208
|
+
ctx.ui.notify("Installing herdr-orchestra (orch)...", "info");
|
|
209
|
+
// ORCH_TTY=/dev/null: the installer must not read Pi's terminal. An unanswered auto-update question gets the
|
|
210
|
+
// installer's default (on); the output says how to turn it off (`orch config auto-update off`).
|
|
211
|
+
const args = ["ORCH_PACKAGE=1", "ORCH_TTY=/dev/null", "bash", installer, ...(cur.mode === "subagent" ? ["--mode", "subagent"] : [])];
|
|
212
|
+
const r = await pi.exec("env", args, { cwd: ctx.cwd, timeout: 600000 });
|
|
213
|
+
const tail = (r.stdout + r.stderr)
|
|
214
|
+
.replace(/\x1b\[[0-9;]*m/g, "")
|
|
215
|
+
.split("\n")
|
|
216
|
+
.filter((l) => /^(==>|warn:|error:)|auto-update|is active/.test(l.trim()))
|
|
217
|
+
.slice(-12)
|
|
218
|
+
.join("\n");
|
|
219
|
+
ctx.ui.notify(tail || (r.code === 0 ? "Installed." : "The installer failed."), r.code === 0 ? "info" : "error");
|
|
220
|
+
mode = (await readMode(pi, ctx.cwd)).mode;
|
|
221
|
+
showStatus(ctx, mode);
|
|
222
|
+
},
|
|
223
|
+
});
|
|
224
|
+
}
|
package/install.sh
CHANGED
|
@@ -42,6 +42,8 @@ Options:
|
|
|
42
42
|
--no-herdr-skill don't install/refresh the official herdr skill via npx
|
|
43
43
|
--auto-update keep herdr-orchestra up to date automatically (no question asked)
|
|
44
44
|
--no-auto-update never update by itself (also: ORCH_AUTO_UPDATE=1 or 0)
|
|
45
|
+
--mode <panes|subagent> save the mode runs use (default panes); subagent also sets up Pi's coder and
|
|
46
|
+
reviewer subagents (same as: orch setup --mode subagent)
|
|
45
47
|
-h, --help this help
|
|
46
48
|
EOF
|
|
47
49
|
}
|
|
@@ -57,6 +59,8 @@ while [[ $# -gt 0 ]]; do
|
|
|
57
59
|
--no-herdr-skill) HERDR_SKILL=0; shift;;
|
|
58
60
|
--auto-update) AUTO_UPDATE=1; shift;;
|
|
59
61
|
--no-auto-update) AUTO_UPDATE=0; shift;;
|
|
62
|
+
--mode) MODE_ARG="${2:?--mode needs panes or subagent}"; shift 2;;
|
|
63
|
+
--mode=*) MODE_ARG="${1#*=}"; shift;;
|
|
60
64
|
-h|--help) usage; exit 0;;
|
|
61
65
|
*) die "unknown option: $1 (see --help)";;
|
|
62
66
|
esac
|
|
@@ -266,6 +270,10 @@ fi
|
|
|
266
270
|
|
|
267
271
|
case ":$PATH:" in *":$BIN:"*) ;; *) warn "$BIN is not on your PATH — add: export PATH=\"\$HOME/.local/bin:\$PATH\"";; esac
|
|
268
272
|
|
|
273
|
+
if [[ -n "${MODE_ARG:-}" ]]; then
|
|
274
|
+
"$BIN/orch" setup --mode "$MODE_ARG" || warn "orch setup --mode $MODE_ARG did not finish — run it again after fixing what it says"
|
|
275
|
+
fi
|
|
276
|
+
|
|
269
277
|
say "herdr-orchestra $VER is active"
|
|
270
278
|
cat <<'MSG'
|
|
271
279
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdr-orchestra",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Orchestrate AI coding agents (Claude Code, Codex, OpenCode, Amp) as one team
|
|
3
|
+
"version": "6.2.1",
|
|
4
|
+
"description": "Orchestrate AI coding agents (Claude Code, Codex, OpenCode, Amp, Pi) as one team: a lead plans, coders build, a reviewer checks, you get one PR. Runs in Herdr panes, or in one Pi window with subagents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
7
7
|
"herdr-orchestra": "npm/cli.js"
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"opencode-commands",
|
|
15
15
|
"claude-commands",
|
|
16
16
|
"playbooks",
|
|
17
|
+
"extensions",
|
|
18
|
+
"pi",
|
|
17
19
|
"agents.default.toml",
|
|
18
20
|
"models.default.toml",
|
|
19
21
|
"VERSION",
|
|
@@ -44,13 +46,34 @@
|
|
|
44
46
|
"amp",
|
|
45
47
|
"llm",
|
|
46
48
|
"cli",
|
|
47
|
-
"developer-tools"
|
|
49
|
+
"developer-tools",
|
|
50
|
+
"pi-package",
|
|
51
|
+
"pi",
|
|
52
|
+
"pi-coding-agent",
|
|
53
|
+
"subagents"
|
|
48
54
|
],
|
|
55
|
+
"pi": {
|
|
56
|
+
"skills": [
|
|
57
|
+
"./pi/skills/orch-plan",
|
|
58
|
+
"./skills/orch-run"
|
|
59
|
+
],
|
|
60
|
+
"extensions": [
|
|
61
|
+
"./extensions/orch-mode.ts"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
49
64
|
"engines": {
|
|
50
65
|
"node": ">=16"
|
|
51
66
|
},
|
|
52
67
|
"publishConfig": {
|
|
53
68
|
"access": "public"
|
|
54
69
|
},
|
|
55
|
-
"author": "arunnarangali (https://github.com/arunnarangali)"
|
|
70
|
+
"author": "arunnarangali (https://github.com/arunnarangali)",
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@earendil-works/pi-coding-agent": "*"
|
|
73
|
+
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"@earendil-works/pi-coding-agent": {
|
|
76
|
+
"optional": true
|
|
77
|
+
}
|
|
78
|
+
}
|
|
56
79
|
}
|
package/pi/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Pi-only copies of the orch skills, loaded through package.json `"pi".skills`.
|
|
2
|
+
|
|
3
|
+
`skills/orch-plan/SKILL.md` has a `description:` with `: ` inside it, which strict YAML parsers (Pi's) reject, so
|
|
4
|
+
Pi would skip the skill. This copy has the same text with the description in quotes. Every other agent keeps using
|
|
5
|
+
`skills/orch-plan/SKILL.md`, unchanged. `tests/run.sh` checks that the two say the same thing.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: orch-plan
|
|
3
|
+
description: "Orchestrator step 1 for a Herdr multi-agent team (any agent can lead; Claude, Codex, Amp, OpenCode, Hermes or Antigravity coders; optional reviewer). Use when the user asks to plan or orchestrate a feature, or says \"orch-plan\". Research the codebase, then write a dependency-aware plan with as many milestones as the feature needs, written as issues (what and why, never how), each with the model tier it needs (small, medium, high) and why. A small, clear change (UI or backend) gets a short quick-run plan instead: one milestone, one coder, no reviewer; start the request with quick: or full: to choose. Does NOT execute until the developer says go."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run `orch lead plan` (or `~/.local/bin/orch lead plan` if `orch` is not on PATH) and follow its output exactly. You are the lead. The user's message is the feature request.
|
package/playbooks/plan.md
CHANGED
|
@@ -44,7 +44,7 @@ If any is false, use the full process: run `orch lead plan full` and follow its
|
|
|
44
44
|
|
|
45
45
|
**A quick run, step by step** (in place of steps 3 to 10):
|
|
46
46
|
- **First run `orch lead plan quick`.** It prints the rules a quick plan uses, word for word from the full process: the split test, the tiers, the estimate, the check command and how to write acceptance criteria and Likely files. Don't run `orch lead plan full` for a quick run.
|
|
47
|
-
- **Team: one coder, no reviewer.**
|
|
47
|
+
- **Team: one coder, no reviewer.** Your pane is named `lead` already (`orch lead plan` did it; if it printed a rename command, run it). Pick ONE coder pane whose model fits the tier (a free pane of any kind; if only you are open, `orch team <your kind> --coders 1 --no-reviewer`). `Reviewer: none`, unless the developer wrote `quick review:`: then one reviewer pane and `Review: yes`. Why no reviewer: a quick change is small and stays out of risky areas, the check command (lint, types, tests) still has to pass before it lands, and the developer looks at UI changes in the browser anyway; the reviewer is often the slowest step of a small run.
|
|
48
48
|
- **One milestone** that holds every change in the request, with **one acceptance criterion per change**, so the coder and the summary go through them one by one.
|
|
49
49
|
- **Fields:** only `Tier`, `Estimate`, `Likely files`, `Goal`, `Acceptance criteria` and the `Context` facts the coder needs to find their way. Leave out `Feature breakdown`, `Why separate`, `Needs`, `Model why`, `Role`, `Interfaces` (none) and `Prefer` unless one really helps. A backend change gets an acceptance criterion a test can prove (e.g. "GET /orders returns `createdAt` as ISO 8601; a test covers it").
|
|
50
50
|
- **Header:** `Mode: quick`, your `Quick because:` line, `Isolation: shared`, `Setup command: none` (shared mode uses your folder as it is), the `Check command`, `Estimate` = the milestone's.
|
|
@@ -87,7 +87,7 @@ Then the run is the same as any run (`orch lead run`): the coder builds it, the
|
|
|
87
87
|
|
|
88
88
|
<!-- full -->
|
|
89
89
|
## 3. Discover the team
|
|
90
|
-
-
|
|
90
|
+
- Your pane is named `lead` for you: `orch lead plan` did it (look for `NAMED` or `LEAD` at the top of its output). If it printed a rename command instead, run `orch lead whoami`, which shows YOUR pane, and run the rename command it prints. Never prompt your own pane.
|
|
91
91
|
- Run `herdr agent list` and `orch agents` (which kinds exist here, their roles, and whether herdr can watch them).
|
|
92
92
|
- **Coders** = the other agent panes the user wants coding (any kind with the `coder` role: claude, codex, amp, opencode, hermes, agy…). Name them `<kind>-1`, `<kind>-2`… with `herdr agent rename`, and always target them by name.
|
|
93
93
|
- **Reviewer** = one spare agent the user picks (any kind, including another pane of your own tool), named `reviewer`. If there is none, use `Reviewer: none`.
|
|
@@ -207,6 +207,7 @@ Reviewer: reviewer (claude: opus) | none
|
|
|
207
207
|
## [x] M1: <title>
|
|
208
208
|
Depends on: none
|
|
209
209
|
Why separate: <why this is its own milestone; leave the line out when the plan has one milestone>
|
|
210
|
+
Plain: <one sentence for the developer: what they get from this milestone, in everyday words, no code words>
|
|
210
211
|
Prefer: any | <worker kind> | <worker name>
|
|
211
212
|
Tier: small | medium | high
|
|
212
213
|
Needs: <any of: reasoning, coding, architecture, long-context, tool-use, planning, speed>
|
|
@@ -235,10 +236,11 @@ Notes from user:
|
|
|
235
236
|
|
|
236
237
|
Git: the run makes ONE branch, `Branch:` (use `feature/<slug>`, or `fix/<slug>` for a bug fix). It is created by `orch start`, not now: planning never creates a branch or a commit. orch keeps each milestone's work in progress in hidden refs (not branches), lands each milestone as one commit whose message describes the change (the coder writes it), and `orch finish` pushes the branch and opens a PR. Optional header lines: `Base: <branch>` (defaults to the branch you start from) and `Commits: single` (squash the whole run into one commit at finish; default `per-milestone`).
|
|
237
238
|
|
|
238
|
-
Optional header lines: `Scope: strict` sends a milestone back when its coder changes files outside `Likely files` (default `warn`: listed in the summary); `Budget: 3h` stops autopilot when its running time is used up; `Risk hold: off` lets risky changes (deleted files, migrations, CI config, secrets files, unlisted dependency changes, very large diffs) land without `orch approve`; `Setup inputs: <globs>` names the files that mean "run the setup command again" (default: lockfiles and manifests); `Lead mode: off` makes the event manager dispatch by itself and stop for the developer instead of waking you (default with a `Lead:` line: `events`).
|
|
239
|
+
Optional header lines: `Scope: strict` sends a milestone back when its coder changes files outside `Likely files` (default `warn`: listed in the summary); `Budget: 3h` stops autopilot when its running time is used up; `Risk hold: off` lets risky changes (deleted files, migrations, CI config, secrets files, unlisted dependency changes, very large diffs) land without `orch approve`; `Setup inputs: <globs>` names the files that mean "run the setup command again" (default: lockfiles and manifests); `Lead mode: off` makes the event manager dispatch by itself and stop for the developer instead of waking you (default with a `Lead:` line: `events`). Speed lines (leave them out unless the developer asks; the defaults are the fast ones): `Parallel checks: 2` runs two check commands at once (default 1; only when the machine has room for two); `Early review: off` sends a review only after the check passed (default `on`: the reviewer reads while the check runs); `Branch check: always` runs the check again on the feature branch even when the files are exactly the ones already checked in the coder's folder (default `auto`: skipped then); `Auto dispatch: off` makes a milestone that a landing unlocked wait for your `orch dispatch` (default `on`: it starts at once and you get `AUTO-DISPATCHED`).
|
|
239
240
|
|
|
240
241
|
Rules for every milestone:
|
|
241
242
|
- **Role**: from step 6, on every milestone. The standard to work to, never a how-to.
|
|
243
|
+
- **Plain**: on every milestone, one sentence a person who never opens the code understands: what they will get, not how it is built. "the screen where you see and add categories", not "CategoryList component with a POST /categories call". `orch plan show` puts it on that milestone's card.
|
|
242
244
|
<!-- quick: Rules for the milestone (from step 9) -->
|
|
243
245
|
- **Acceptance criteria are observable**: "POST /upload returns 400 when the amount column is missing", not "handles errors well". Prefer criteria a test or a command can prove; say so plainly when one needs a person's eyes ("the upload button matches the other primary buttons, seen in the browser"), because at the end only those go on the developer's manual checklist. One per line: orch numbers them AC1, AC2… in the milestone's `task.json`, the coder says for each whether it is met, and the reviewer checks each one. A milestone without any gets a warning.
|
|
244
246
|
- **Likely files is the scope**: list every file or folder (`src/feature/`, globs work) the milestone should change, including dependency files (`package.json`, lockfiles) when it adds packages. orch compares the coder's real diff with it, runs milestones that share a listed file one after the other, and holds an unlisted dependency change for approval. `Parallel: allow` lets a milestone run next to one it shares files with (expect a merge conflict).
|
|
@@ -256,9 +258,9 @@ Rules for every milestone:
|
|
|
256
258
|
|
|
257
259
|
## 10. Validate and show the plan
|
|
258
260
|
- Run `orch sync`. Fix every ERROR. Fix or consciously accept every WARN: missing dependency reasons, hotspot files in parallel milestones, "how" in a milestone, overlap, a milestone without `Why separate` or `Estimate`, independent milestones in shared mode, coders left idle by a fully sequential plan, a tier no coder reaches, a model outside the catalog.
|
|
259
|
-
- Run `orch
|
|
260
|
-
- the feature breakdown, the milestones with each one's `Why separate`, and the parallel shape (which run together);
|
|
261
|
+
- Run `orch plan show` and give the developer its cards as they are: each milestone in plain words, what it waits for and why, who builds it on which model, how long, and the order. Fix every `WARN no Plain: line` first. Then add, in plain words too:
|
|
261
262
|
- **the team and model table**: each milestone, its tier, which coder and model it will go to, the `Model why`, and its estimate, plus the estimate for the whole feature;
|
|
262
263
|
- the research facts that shaped the plan, and all open questions.
|
|
264
|
+
Keep code words (file names, functions, endpoints) out of what you write here: they are in plan.md for whoever wants them.
|
|
263
265
|
- Then say: "Plan written to .orchestrate/plan.md. Edit it if you like: untick `[x]` to skip a milestone, change `Tier` / `Depends on` / `Prefer`, answer open questions under 'Notes from user' and set 'Open questions: - none'. Say **go** (or `/orch-run`, "use the orch-run skill", "Run `orch lead run` and follow it") and I will start the run: I dispatch the milestones, the event manager runs them, and I come back when one finishes, asks a question or needs a decision."
|
|
264
266
|
- STOP and wait for the developer. Do not dispatch before they say so.
|
package/playbooks/run.md
CHANGED
|
@@ -17,6 +17,7 @@ A run behaves like a call stack. You **dispatch** work and **pause**. The **even
|
|
|
17
17
|
4. Never answer a worker's permission prompt yourself, and never approve a held milestone yourself (`orch approve` is the developer's call).
|
|
18
18
|
5. Never move a task forward by hand: `orch set` only accepts `pending`, `paused`, `failed` and `skipped`. Don't use `--force`.
|
|
19
19
|
6. After every step below that ends in **STOP**, stop. Do not sleep, loop or check back: you will be woken.
|
|
20
|
+
7. **Never end a wake-up silently.** Before you STOP, write in your chat one short line per event, in plain words: what happened (its `SAY:` line from `orch events`) and what you did about it. Example: `M1 (Model) is done and on the branch. M3 started by itself because it was waiting for M1. Nothing for me to do.` or `M4 is paused: the coder asks which currency to use. I'm asking you: INR only, or several?`. The developer reads your chat to follow the run; `orch story` keeps the same lines.
|
|
20
21
|
|
|
21
22
|
## Context budget (credits scale with how much you read and how many turns you take)
|
|
22
23
|
- Your memory is `orch events` + `orch status` + files on disk, not this conversation. Never re-read old reports, diffs, plans or this playbook "to refresh": `orch events` prints what each wake-up needs.
|
|
@@ -25,7 +26,7 @@ A run behaves like a call stack. You **dispatch** work and **pause**. The **even
|
|
|
25
26
|
|
|
26
27
|
## 1. Start the run (the developer said go)
|
|
27
28
|
1. Run `orch sync`. Stop on ERROR; report every WARN.
|
|
28
|
-
2. Run `orch start`. If a worker or the reviewer shows `herdr=NOT FOUND`, run `orch team up`: it opens a pane for each missing agent next to yours, in its folder (its worktree, or the repo), starts it on its plan model and gives it its plan name. Then run `orch start` again. If team up reports `WAITING` (the new pane shows a first-run question such as "trust this folder" or a sign-in) or `FAILED`, or a worker shows `STALE pane`, tell the developer exactly what to do in which pane (`orch agents launch <kind> --model <id>` gives the start command), and stop. `WARN agent <kind>: …` means a launch flag in the registry is out of date for the installed tool; show it (`orch doctor <kind>` has the detail). Workers shown as `detect:off` are fine.
|
|
29
|
+
2. Run `orch start`. It checks that herdr can wake you: it names your pane `lead` if it is not named yet (`NAMED`), or refuses with `NO LEAD` and the exact `herdr agent rename <pane> lead` command; give that to the developer and stop. `orch dispatch` makes the same check. If a worker or the reviewer shows `herdr=NOT FOUND`, run `orch team up`: it opens a pane for each missing agent next to yours, in its folder (its worktree, or the repo), starts it on its plan model and gives it its plan name. Then run `orch start` again. If team up reports `WAITING` (the new pane shows a first-run question such as "trust this folder" or a sign-in) or `FAILED`, or a worker shows `STALE pane`, tell the developer exactly what to do in which pane (`orch agents launch <kind> --model <id>` gives the start command), and stop. `WARN agent <kind>: …` means a launch flag in the registry is out of date for the installed tool; show it (`orch doctor <kind>` has the detail). Workers shown as `detect:off` are fine.
|
|
29
30
|
3. Dispatch every milestone whose dependencies are met: `orch dispatch M1 M2`. It prints who can take each one, and starts the event manager if none is running. If it says it could not start it, ask the developer to run `orch autopilot` in a terminal.
|
|
30
31
|
- `--to <worker>` gives a milestone to one coder; `--tier high` asks for a stronger model than the plan says. Use them only with a reason, and tell the developer.
|
|
31
32
|
4. Tell the developer in two lines what is running where (milestone → coder and model). **STOP.**
|
|
@@ -35,7 +36,7 @@ Run `orch events`. It lists the new events, the ones still open, the milestones
|
|
|
35
36
|
|
|
36
37
|
| Event | What you do |
|
|
37
38
|
|---|---|
|
|
38
|
-
| `READY` | Dispatch them: `orch dispatch <Mn>...`. If you wait too long (15 minutes by default) the event manager starts them itself, so a run never stalls on you. |
|
|
39
|
+
| `READY` | Dispatch them: `orch dispatch <Mn>...`. If you wait too long (15 minutes by default) the event manager starts them itself, so a run never stalls on you. A milestone that a landing unlocked does not come as READY: it starts at once and you get `AUTO-DISPATCHED` (unless the plan says `Auto dispatch: off`). |
|
|
39
40
|
| `MERGED Mn` | Nothing, unless it unlocked milestones listed under READY: dispatch those. |
|
|
40
41
|
| `PAUSED Mn` with a coder's question | If the request, the plan or the code already answers it: `orch answer Mn "<answer> (from: <where>)"`. Otherwise put it to the developer with 2–3 options and STOP; when they answer, `orch answer Mn "<their answer>"`. The answer is written under that milestone's "Notes from user" and the **same coder** carries on from its saved work. |
|
|
41
42
|
| `PAUSED Mn`: a criterion can't be met (for example an outside API it needs does not exist) | Only the developer can drop part of a milestone. Ask them: build the rest and defer AC<n>, or wait. If they agree, `orch answer Mn --defer AC<n> "<their words>"`. Then a coder that reports AC<n> `met: false` gets no fix round and no escalation for it, the reviewer does not block on it, and the summary lists it as **not done**, with a follow-up. Never defer without the developer's yes, and never by writing it in the plan only: the check reads `--defer`, not prose. |
|
|
@@ -46,7 +47,7 @@ Run `orch events`. It lists the new events, the ones still open, the milestones
|
|
|
46
47
|
| `HERDR-RESTART` | Most agents vanished at once. Tell the developer to run `orch resume`, then `orch team up` for any agent it reports `LOST`. |
|
|
47
48
|
| `HELD Mn` | Risky changes (deleted files, migrations, CI config, secrets files, unlisted dependency changes, a very large diff) wait for the developer. Show the reasons from `orch status`, and tell the developer to look and run `orch approve Mn` (or `orch set Mn paused`). |
|
|
48
49
|
| `NEEDS-ANSWER Mn` | Open questions in the plan: ask the developer, write the answers under "Notes from user", set "Open questions:" to `- none`, `orch sync`, then `orch dispatch Mn`. |
|
|
49
|
-
| `ESCALATED Mn`, `AUTO-DISPATCHED Mn` | Information. Mention an escalation in the final summary. |
|
|
50
|
+
| `ESCALATED Mn`, `AUTO-DISPATCHED Mn` | Information: nothing to dispatch. Mention an escalation in the final summary. |
|
|
50
51
|
| `STOPPED` / the event manager is not running | Read the last lines of `.orchestrate/autopilot.log` and tell the developer why (a red baseline, the run's budget, the branch failing its check). Your next `orch dispatch` or `orch answer` starts it again; so does `orch autopilot` in a terminal. |
|
|
51
52
|
| `orch status` starts with `!! EVENT MANAGER NOT RUNNING`, or the developer says the computer or herdr was restarted | Run `orch resume` once and read what it prints. It leaves the time orch was down out of every time budget, gives the agents' panes their names back, saves unsaved work, sends the tasks in progress to their agents again and starts the event manager. For each `LOST` line, give the developer the exact command it prints (`herdr agent rename <pane> <name>`, or `orch team up` for a pane with no agent in it), then run `orch resume` again. Never fix this with git by hand, and never prompt a coder yourself. |
|
|
52
53
|
| `ALL_DONE` | Section 3. |
|
|
@@ -69,7 +70,7 @@ If you changed plan.md by hand, run `orch sync` (it works once the event manager
|
|
|
69
70
|
- **"Design decisions & study notes"** for the developer (include any milestone that needed a stronger model than planned, and what that says about the plan).
|
|
70
71
|
- **"Checked by the lead"**. Go through every acceptance criterion and every behaviour the feature promised. Whatever can be settled by running a command or by reading the code, YOU settle now, and write one line each with the evidence: the command and its result, or `file:line`. This covers: a criterion "Checked automatically" marks `no evidence recorded` or `NOT met`, "the comment / doc / config says X", "the endpoint returns 400 for Y" (run its test, or read the test that covers it), "the migration adds column Z", "no leftover TODO or debug output". You may run the check command, single tests and read-only commands (`grep`, `git log`, `git diff --stat`), and open the few files you need; you still never edit application code. If a check of yours fails, it is a defect, not a checklist item: tell the developer and offer `orch fix Mn "<what is wrong>"`.
|
|
71
72
|
- **"Manual verification checklist"**: ONLY what a person must see or do, because no command and no reading of code can settle it. That is: how the UI looks (layout, spacing, colours, dark mode, a small screen), how it behaves in a real browser or on a real device (click-through flows, focus, animation, how fast it feels), and anything that needs an outside account or hardware (a real email arriving, a payment in the provider's test mode, a push notification, a printer). Write each item so the developer can do it without reading code: `- [ ] <where to go and what to do> → <what they should see>`. Test for every item: "could I, or a test, have checked this?" If yes, it does not belong here: check it and move it to "Checked by the lead". Never write "review the code", "read the comments", "confirm the tests pass" or "check the function handles X" as a manual item. If nothing needs a person (a pure backend, CLI or docs change), write `Nothing to check by hand: <one line why>` instead of inventing items.
|
|
72
|
-
3. Tell the developer: "All tasks landed on <branch>. Review .orchestrate/summary.md. I checked <n> things myself; <m> need your eyes; <k> were deferred with your approval and are NOT done (listed as follow-ups) (the manual checklist), or: nothing needs checking by hand. Then run `orch finish`: it re-runs the check (or reuses it when it already passed on exactly these files), removes the worktrees and hidden refs, pushes <branch> and opens a PR into <base> (`orch finish --no-push` to only clean up)." Run `orch finish` yourself only when the developer says so: it pushes. **STOP.**
|
|
73
|
+
3. Tell the developer: "All tasks landed on <branch>. Review .orchestrate/summary.md. I checked <n> things myself; <m> need your eyes; <k> were deferred with your approval and are NOT done (listed as follow-ups) (the manual checklist), or: nothing needs checking by hand. Then run `orch finish`: it re-runs the check (or reuses it when it already passed on exactly these files), removes the worktrees and hidden refs, pushes <branch> and opens a PR into <base> (`orch finish --no-push` to only clean up)." Run `orch finish` yourself only when the developer says so: it pushes. It opens the PR itself when `gh` is installed; if it prints `OPEN A PR`, give the developer the link, and if they ask you to open it, use exactly the title and `.orchestrate/pr-body.md` it names. Never add a "Generated with …", `Co-Authored-By` or session line to a commit or a PR of the run: they are the developer's. **STOP.**
|
|
73
74
|
4. **The developer asks for a change after the summary** (for example "the login button should be blue"). Do not plan again. Find the milestone that built that part (the summary's Tasks list and Likely files tell you), then run `orch fix Mn "<the change, in the developer's words>"`. It adds one small follow-up milestone to `plan.md`, sends it straight to the coder who built Mn, and starts the event manager; the check and the review (when Mn had one) still run. Name another coder only when the developer asks: `--to <worker>`. Then **STOP**: you are woken with ALL_DONE again, and the new summary keeps the old one in `.orchestrate/summary.prev.md`, so carry your notes and checklist over and add what changed. Never type into a coder's pane yourself.
|
|
74
75
|
|
|
75
76
|
## Runs without a lead (`Lead mode: off`)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
You are the LEAD of a herdr-orchestra run in **subagent mode**: you stay in this one Pi window, and the coder and the reviewer are Pi subagents (the `Agent` tool from pi-subagents). All bookkeeping goes through `orch` (`~/.local/bin/orch` — use the full path if `orch` is not on PATH). Trust its output over your memory: it owns task states, the check, commits and the final PR.
|
|
2
|
+
Extra user input = whatever the user wrote alongside asking you to run this playbook (a go-ahead, answers, overrides, or nothing).
|
|
3
|
+
|
|
4
|
+
## How a run works in subagent mode
|
|
5
|
+
There is no event manager and there are no herdr panes. You drive one milestone at a time, in this folder:
|
|
6
|
+
`orch sub next` → coder subagent → `orch check` → reviewer subagent (when the milestone has `Review: yes`) → `orch sub done` → the next milestone. When every milestone is saved: the summary, then `orch finish` when the developer says so.
|
|
7
|
+
|
|
8
|
+
## Hard rules
|
|
9
|
+
0. **Roles: you decide what and why; the coder decides how.** Your prompts to the coder name the task file, the failing check output or the review findings: problems and goals, never solutions.
|
|
10
|
+
1. You NEVER edit application code yourself. You only run `orch`, read its files, start subagents, and edit `.orchestrate/plan.md` (answers, notes, tiers, the check command).
|
|
11
|
+
2. Never guess. A question only the developer can settle goes to the developer, with 2–3 concrete options. Answer the coder's question yourself only when the feature request, the plan or the code already settles it; say where the answer comes from.
|
|
12
|
+
3. Never approve a held milestone yourself (`orch approve` is the developer's call). Never `git commit`, `git stash` or `git reset` yourself: `orch sub done` saves the work.
|
|
13
|
+
4. Never skip the check, and never ask the coder to weaken or skip tests.
|
|
14
|
+
5. After each milestone, write one short line in your chat in plain words: what landed, what the check and the review said, what starts next. Example: `M1 (Model) is saved on the branch: check PASS, review found nothing. Starting M2 (Endpoint).`
|
|
15
|
+
|
|
16
|
+
## 1. Start the run (the developer said go)
|
|
17
|
+
1. Run `orch sync`. Stop on ERROR; report every WARN except the ones about Workers naming no model (the subagents run on the models in `~/.config/herdr-orchestra/config.json`).
|
|
18
|
+
2. Run `orch start` (it makes or switches to the feature branch).
|
|
19
|
+
3. Check that the `Agent` tool is available to you. If it is not, tell the developer to run `orch setup --mode subagent` and restart Pi, and **STOP**.
|
|
20
|
+
|
|
21
|
+
## 2. One milestone
|
|
22
|
+
1. Run `orch sub next`. It prints `NEXT Mn: <title>`, `TASK <path to task.md>` and `REVIEW yes|no`. (`CURRENT Mn` means a milestone was started and not saved: carry on with it from step 2. `HELD`, `WAITING` or `ALL_DONE`: see below.)
|
|
23
|
+
2. **Coder.** Call the `Agent` tool: `subagent_type: "coder"`, `description: "Mn <short title>"`, `run_in_background: false`, and a prompt like `Build milestone Mn. Read the task file <TASK path> and follow it. The check command is: <check command>. There is no result file or done file in this run: put your report in your reply.`
|
|
24
|
+
- If the coder replies `QUESTION: ...`: answer it from the plan or the code (say where the answer comes from), or ask the developer with 2–3 options and **STOP**. Write the answer under that milestone's "Notes from user" in `.orchestrate/plan.md`, then send it to the same coder with the `Agent` tool's `resume` (its agent id), so it carries on from its work.
|
|
25
|
+
3. **Check.** Run `orch check Mn`. On `CHECK FAIL`, resume the same coder with the failing output (the last lines `orch check` printed) and ask it to fix the cause. Run `orch check Mn` again. At most 3 fix rounds; after that, run `orch set Mn failed "<what keeps failing>"`, explain it to the developer in two lines, and **STOP**.
|
|
26
|
+
4. **Review** (only when `REVIEW yes`). Call the `Agent` tool: `subagent_type: "reviewer"`, `run_in_background: false`, prompt `Review milestone Mn. Task file: <TASK path>. Look at the change with git diff HEAD and git status --short.` Each `BLOCKER:` line goes back to the same coder (resume it with those lines only), then `orch check Mn` again, then one more review. At most 2 review rounds; blockers still left after that: `orch set Mn failed "<the blockers>"`, tell the developer, **STOP**. `SUGGESTION:` lines do not block: keep them for the summary.
|
|
27
|
+
5. **Save.** Run `orch sub done Mn`. `MERGED Mn` means it is committed on the feature branch. `HELD Mn` (exit 7) means risky changes (deleted files, migrations, CI config, secrets files, unlisted dependency changes, a very large diff) wait for the developer: show the reasons from `orch status`, tell them to look and run `orch approve Mn`, and **STOP**; after their approval run `orch sub done Mn` again.
|
|
28
|
+
6. Write your one line in the chat (hard rule 5), and go back to step 1 for the next milestone.
|
|
29
|
+
|
|
30
|
+
`orch sub next` printing `WAITING` means nothing is ready (a milestone is paused, failed or needs an answer): tell the developer which and why (`orch status`), and **STOP**. When it is sorted out, `orch set Mn pending` and carry on.
|
|
31
|
+
|
|
32
|
+
**The developer asks for a change after a milestone was saved** (for example "the login button should be blue"): do not plan again. Add one small follow-up milestone to `.orchestrate/plan.md` (same format, `Depends on: Mn (what it changes)`, the change in the developer's words), run `orch sync`, and run it with section 2. (`orch fix` and `orch dispatch` are for panes mode: they need the event manager.)
|
|
33
|
+
|
|
34
|
+
## 3. ALL_DONE (`orch sub next` or `orch sub done` prints it)
|
|
35
|
+
1. Write `.orchestrate/summary.md` for the developer, short:
|
|
36
|
+
- **Tasks**: one line per milestone, what it does now.
|
|
37
|
+
- **Checked**: the final `orch check` result, each review, and one line per acceptance criterion with its evidence (a test, a command, or `file:line`). Run a command or read the code to settle anything you can.
|
|
38
|
+
- **Reviewer suggestions not applied.**
|
|
39
|
+
- **Manual verification checklist**: ONLY what a person must see or do (how the UI looks, a click-through in a real browser, a real email arriving). For a backend-only change write `Nothing to check by hand: <why>`.
|
|
40
|
+
2. Tell the developer: "All milestones are saved on <branch>. Review .orchestrate/summary.md. Then run `orch finish`: it re-runs the check (or reuses it), pushes <branch> and opens a PR (`orch finish --no-push` to only clean up)." Run `orch finish` yourself only when the developer says so: it pushes. Never add a "Generated with …", `Co-Authored-By` or session line to a commit or a PR of the run: they are the developer's. **STOP.**
|
|
Binary file
|