agent-concepts 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -57
- package/concepts/bc-code-review/body/SKILL.md +3 -1
- package/concepts/bc-council-find-bugs/body/SKILL.md +1 -1
- package/concepts/bc-council-mode/body/SKILL.md +5 -3
- package/concepts/bc-council-mode/body/references/pass-contracts.md +1 -1
- package/concepts/bc-diagnosing-bugs/body/SKILL.md +3 -1
- package/concepts/bc-dispatching-parallel-agents/body/SKILL.md +5 -1
- package/concepts/{bc-delegate-investigation → bc-durable-subagents}/body/SKILL.md +11 -41
- package/concepts/{bc-delegate-investigation → bc-durable-subagents}/body/pi.md +3 -1
- package/concepts/bc-executing-plans/body/SKILL.md +3 -1
- package/concepts/bc-find-bugs/body/SKILL.md +2 -0
- package/concepts/bc-finishing-development-branch/body/SKILL.md +3 -1
- package/concepts/bc-handoff/body/SKILL.md +1 -1
- package/concepts/bc-optimize-code/body/SKILL.md +3 -1
- package/concepts/bc-pipeline-to-done/body/SKILL.md +7 -3
- package/concepts/bc-pipeline-to-done/body/execute-issue.md +1 -1
- package/concepts/bc-prompting-agents/body/SKILL.md +1 -1
- package/concepts/bc-prototype/body/SKILL.md +2 -0
- package/concepts/bc-safe-runs/body/SKILL.md +32 -0
- package/concepts/bc-security-audit/body/SKILL.md +2 -0
- package/concepts/bc-setup-project/body/MIGRATIONS.md +457 -0
- package/concepts/bc-setup-project/body/SKILL.md +1 -1
- package/concepts/bc-setup-project/body/scaffold.py +17 -5
- package/concepts/bc-subagent-driven-development/body/SKILL.md +5 -1
- package/concepts/bc-swarm/body/SKILL.md +50 -0
- package/concepts/bc-tdd/body/SKILL.md +3 -1
- package/concepts/bc-tdd/body/refactoring.md +3 -1
- package/concepts/bc-using-git-worktrees/body/SKILL.md +3 -1
- package/concepts/bc-work-sync/body/SKILL.md +2 -0
- package/concepts/bc-writing-plans/body/SKILL.md +3 -1
- package/package.json +11 -3
- package/skills/bc-delegate-investigation/SKILL.md +6 -0
- package/skills/bc-ui-design/SKILL.md +6 -0
- /package/concepts/{bc-delegate-investigation → bc-durable-subagents}/body/examples/pi-settings-snippet.json +0 -0
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ The agent that wrote the code is the worst judge of it, just as writers struggle
|
|
|
64
64
|
|
|
65
65
|
A chat vanishes when a session ends, while files stay put. Plans, work items and handoff notes live inside the project, surviving crashes so the next agent or a dashboard can read them. Over time they become the project's long-term memory: past facts any session can look up.
|
|
66
66
|
|
|
67
|
-
**Skills:** [bc-setup-project](concepts/bc-setup-project/body/SKILL.md) · [bc-handoff](concepts/bc-handoff/body/SKILL.md) · [bc-
|
|
67
|
+
**Skills:** [bc-setup-project](concepts/bc-setup-project/body/SKILL.md) · [bc-handoff](concepts/bc-handoff/body/SKILL.md) · [bc-swarm](concepts/bc-swarm/body/SKILL.md) · [bc-wiki-maintain](concepts/bc-wiki-maintain/body/SKILL.md) · the [work-data format](concepts/bc-setup-project/body/work-data.md) a dashboard reads
|
|
68
68
|
|
|
69
69
|
<br>
|
|
70
70
|
|
|
@@ -273,7 +273,7 @@ Skills marked `/name` are ones you type yourself; the rest load automatically wh
|
|
|
273
273
|
|
|
274
274
|
| Skill | What it does | How it starts |
|
|
275
275
|
|---|---|---|
|
|
276
|
-
| [bc-
|
|
276
|
+
| [bc-swarm](concepts/bc-swarm/body/SKILL.md) | Splits a big investigation across multiple helper agents working in parallel, and saves each result to a file so nothing is lost if a session dies. | [`/bc-swarm`](docs/guides/workflows.md#bc-swarm) |
|
|
277
277
|
| [bc-dispatching-parallel-agents](concepts/bc-dispatching-parallel-agents/body/SKILL.md) | How to hand separate tasks to several agents at once: what each one needs to know and how to put their results together. | automatically |
|
|
278
278
|
|
|
279
279
|
**Council skills** (Pi only; need [`pi-subagents`](https://www.npmjs.com/package/pi-subagents)): put the same question to several models and have them cross-examine each other's answers. Each council skill wraps a parent skill through the advisor council.
|
|
@@ -297,13 +297,13 @@ Every concept is listed in [index.md](index.md). To see how agents test the code
|
|
|
297
297
|
|
|
298
298
|
## Install
|
|
299
299
|
|
|
300
|
-
Pick your agent, open its box, and paste the command. Each installs a **release** — a fixed, named version (its name, such as `v0.
|
|
300
|
+
Pick your agent, open its box, and paste the command. Each installs a **release** — a fixed, named version (its name, such as `v0.5.0`, is called a tag) — not the newest code, which can hold unfinished work. The newest release is `v0.5.0`; if the [releases page](https://github.com/bendecastro/agent-concepts/releases) lists a newer tag, use it in place of `v0.5.0`.
|
|
301
301
|
|
|
302
302
|
| Agent | Method |
|
|
303
303
|
|---|---|
|
|
304
|
+
| Pi (recommended) | [Pi package](#pi) |
|
|
304
305
|
| Claude Code | [Claude Code plugin](#claude-code) |
|
|
305
306
|
| Codex | [Codex plugin](#codex) |
|
|
306
|
-
| Pi | [Pi package](#pi) |
|
|
307
307
|
| Any other agent (Cursor, Gemini CLI, GitHub Copilot, …) | [`npx skills`](#other-agents-npx-skills) |
|
|
308
308
|
| An agent that cannot load skills | [bootstrap prompt](docs/guides/bootstrap.md) |
|
|
309
309
|
| Contributors | [install from a checkout](#install-from-a-checkout-contributors) |
|
|
@@ -313,8 +313,44 @@ Details and known problems for each agent live in [harnesses.md](docs/guides/har
|
|
|
313
313
|
> [!IMPORTANT]
|
|
314
314
|
> - **Pick one method per agent.** Two methods install each skill twice. Several agents also read `~/.agents/skills/`; the contributor install and `npx skills -a pi` both write there.
|
|
315
315
|
> - **After installing, start a new agent session.** Open sessions do not see new skills.
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
|
|
317
|
+
**Report a problem:** an install that fails or a skill that misfires goes in a [new issue](https://github.com/bendecastro/agent-concepts/issues/new/choose); a security problem goes privately through [SECURITY.md](SECURITY.md).
|
|
318
|
+
|
|
319
|
+
<a name="pi"></a>
|
|
320
|
+
<details open>
|
|
321
|
+
<summary><b>Pi</b> — recommended: the only agent that runs every skill</summary>
|
|
322
|
+
|
|
323
|
+
**Install** — the skills, the agent kernel, and the pipeline's roles from npm, plus [`pi-subagents`](https://www.npmjs.com/package/pi-subagents), which runs the council and pipeline skills:
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
pi install npm:agent-concepts
|
|
327
|
+
pi install npm:pi-subagents
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
The council skills run only in Pi, through `pi-subagents`; other install methods include them, but they do not run there.
|
|
331
|
+
|
|
332
|
+
<details>
|
|
333
|
+
<summary>Try a release early, or stay on one release</summary>
|
|
334
|
+
|
|
335
|
+
`pi install npm:agent-concepts` installs the release on npm's `latest` tag, and `pi update --extensions` moves you to each new one. A new release goes first to the `next` tag and moves to `latest` after it passes an end-to-end test; to try it before then, install `pi install npm:agent-concepts@next`, which `pi update --extensions` keeps on `next`. To stay on one release instead, name its version (updates then skip it): `pi install npm:agent-concepts@0.5.0`, or from GitHub by tag, `pi install git:github.com/bendecastro/agent-concepts@v0.5.0`.
|
|
336
|
+
|
|
337
|
+
</details>
|
|
338
|
+
|
|
339
|
+
The package includes the [agent kernel](#optional-agent-kernel) as a Pi extension; to turn it off, disable that extension in `pi config`.
|
|
340
|
+
|
|
341
|
+
**Update** to the newest release (a pinned install stays where it is):
|
|
342
|
+
|
|
343
|
+
```bash
|
|
344
|
+
pi update --extensions
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
**Uninstall** (use the same source you installed; also run `pi remove npm:pi-subagents` if nothing else uses it):
|
|
348
|
+
|
|
349
|
+
```bash
|
|
350
|
+
pi remove npm:agent-concepts
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
</details>
|
|
318
354
|
|
|
319
355
|
<a name="claude-code"></a>
|
|
320
356
|
<details>
|
|
@@ -323,7 +359,7 @@ Details and known problems for each agent live in [harnesses.md](docs/guides/har
|
|
|
323
359
|
**Install** — adds this repository as a plugin source and installs the plugin:
|
|
324
360
|
|
|
325
361
|
```bash
|
|
326
|
-
claude plugin marketplace add bendecastro/agent-concepts#v0.
|
|
362
|
+
claude plugin marketplace add bendecastro/agent-concepts#v0.5.0 && \
|
|
327
363
|
claude plugin install -y agent-concepts@agent-concepts
|
|
328
364
|
```
|
|
329
365
|
|
|
@@ -334,6 +370,8 @@ claude plugin marketplace update agent-concepts && \
|
|
|
334
370
|
claude plugin update agent-concepts@agent-concepts
|
|
335
371
|
```
|
|
336
372
|
|
|
373
|
+
**To move to a newer release**, uninstall, then install again with the new tag.
|
|
374
|
+
|
|
337
375
|
**Uninstall:**
|
|
338
376
|
|
|
339
377
|
```bash
|
|
@@ -350,7 +388,7 @@ claude plugin uninstall agent-concepts@agent-concepts && \
|
|
|
350
388
|
**Install:**
|
|
351
389
|
|
|
352
390
|
```bash
|
|
353
|
-
codex plugin marketplace add bendecastro/agent-concepts --ref v0.
|
|
391
|
+
codex plugin marketplace add bendecastro/agent-concepts --ref v0.5.0 && \
|
|
354
392
|
codex plugin add agent-concepts@agent-concepts
|
|
355
393
|
```
|
|
356
394
|
|
|
@@ -361,6 +399,8 @@ codex plugin marketplace upgrade agent-concepts && \
|
|
|
361
399
|
codex plugin add agent-concepts@agent-concepts
|
|
362
400
|
```
|
|
363
401
|
|
|
402
|
+
**To move to a newer release**, uninstall, then install again with the new tag.
|
|
403
|
+
|
|
364
404
|
**Uninstall:**
|
|
365
405
|
|
|
366
406
|
```bash
|
|
@@ -370,34 +410,6 @@ codex plugin remove agent-concepts@agent-concepts && \
|
|
|
370
410
|
|
|
371
411
|
</details>
|
|
372
412
|
|
|
373
|
-
<a name="pi"></a>
|
|
374
|
-
<details>
|
|
375
|
-
<summary><b>Pi</b></summary>
|
|
376
|
-
|
|
377
|
-
**Install** — the skills, the agent kernel, and the pipeline's roles from npm, plus [`pi-subagents`](https://www.npmjs.com/package/pi-subagents), which runs the council and pipeline skills:
|
|
378
|
-
|
|
379
|
-
```bash
|
|
380
|
-
pi install npm:agent-concepts
|
|
381
|
-
pi install npm:pi-subagents
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
This installs the newest release, and `pi update` moves you to each new one. To stay on one release instead, name its version (`pi update` then skips it): `pi install npm:agent-concepts@0.4.0`, or from GitHub by tag, `pi install git:github.com/bendecastro/agent-concepts@v0.4.0`.
|
|
385
|
-
|
|
386
|
-
The package includes the [agent kernel](#optional-agent-kernel) as a Pi extension; to turn it off, disable that extension in `pi config`.
|
|
387
|
-
|
|
388
|
-
**Update** to the newest release (a pinned install stays where it is):
|
|
389
|
-
|
|
390
|
-
```bash
|
|
391
|
-
pi update --extensions
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
**Uninstall** (use the same source you installed; also run `pi remove npm:pi-subagents` if nothing else uses it):
|
|
395
|
-
|
|
396
|
-
```bash
|
|
397
|
-
pi remove npm:agent-concepts
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
</details>
|
|
401
413
|
|
|
402
414
|
<a name="other-agents-npx-skills"></a>
|
|
403
415
|
<details>
|
|
@@ -413,7 +425,7 @@ For a smaller install (one skill plus the skills it needs), see [docs/guides/ins
|
|
|
413
425
|
Install all public skills:
|
|
414
426
|
|
|
415
427
|
```bash
|
|
416
|
-
npx -y skills add bendecastro/agent-concepts@v0.
|
|
428
|
+
npx -y skills add bendecastro/agent-concepts@v0.5.0 -g -a cursor -y \
|
|
417
429
|
--skill bc-brainstorming bc-code-review bc-codebase-design bc-codebase-docs \
|
|
418
430
|
bc-council-audit-security bc-council-chain bc-council-challenge-plan \
|
|
419
431
|
bc-council-find-bugs bc-council-improve-architecture bc-council-mode \
|
|
@@ -458,7 +470,7 @@ npx -y skills remove -g -a cursor -y \
|
|
|
458
470
|
Install all public skills:
|
|
459
471
|
|
|
460
472
|
```bash
|
|
461
|
-
npx -y skills add bendecastro/agent-concepts@v0.
|
|
473
|
+
npx -y skills add bendecastro/agent-concepts@v0.5.0 -g -a gemini-cli -y \
|
|
462
474
|
--skill bc-brainstorming bc-code-review bc-codebase-design bc-codebase-docs \
|
|
463
475
|
bc-council-audit-security bc-council-chain bc-council-challenge-plan \
|
|
464
476
|
bc-council-find-bugs bc-council-improve-architecture bc-council-mode \
|
|
@@ -503,7 +515,7 @@ npx -y skills remove -g -a gemini-cli -y \
|
|
|
503
515
|
Install all public skills:
|
|
504
516
|
|
|
505
517
|
```bash
|
|
506
|
-
npx -y skills add bendecastro/agent-concepts@v0.
|
|
518
|
+
npx -y skills add bendecastro/agent-concepts@v0.5.0 -g -a github-copilot -y \
|
|
507
519
|
--skill bc-brainstorming bc-code-review bc-codebase-design bc-codebase-docs \
|
|
508
520
|
bc-council-audit-security bc-council-chain bc-council-challenge-plan \
|
|
509
521
|
bc-council-find-bugs bc-council-improve-architecture bc-council-mode \
|
|
@@ -548,7 +560,7 @@ npx -y skills remove -g -a github-copilot -y \
|
|
|
548
560
|
Install all public skills:
|
|
549
561
|
|
|
550
562
|
```bash
|
|
551
|
-
npx -y skills add bendecastro/agent-concepts@v0.
|
|
563
|
+
npx -y skills add bendecastro/agent-concepts@v0.5.0 -g -a opencode -y \
|
|
552
564
|
--skill bc-brainstorming bc-code-review bc-codebase-design bc-codebase-docs \
|
|
553
565
|
bc-council-audit-security bc-council-chain bc-council-challenge-plan \
|
|
554
566
|
bc-council-find-bugs bc-council-improve-architecture bc-council-mode \
|
|
@@ -595,7 +607,7 @@ Change `<agent>` to your agent's id from [the `skills` agent list](https://githu
|
|
|
595
607
|
Install all public skills:
|
|
596
608
|
|
|
597
609
|
```bash
|
|
598
|
-
npx -y skills add bendecastro/agent-concepts@v0.
|
|
610
|
+
npx -y skills add bendecastro/agent-concepts@v0.5.0 -g -a <agent> -y \
|
|
599
611
|
--skill bc-brainstorming bc-code-review bc-codebase-design bc-codebase-docs \
|
|
600
612
|
bc-council-audit-security bc-council-chain bc-council-challenge-plan \
|
|
601
613
|
bc-council-find-bugs bc-council-improve-architecture bc-council-mode \
|
|
@@ -634,7 +646,7 @@ npx -y skills remove -g -a <agent> -y \
|
|
|
634
646
|
|
|
635
647
|
</details>
|
|
636
648
|
|
|
637
|
-
**Refresh, for every agent** (stays on the release you installed):
|
|
649
|
+
**Refresh, for every agent** (stays on the release you installed; to move to a newer release, remove the skills and install again with the new tag):
|
|
638
650
|
|
|
639
651
|
```bash
|
|
640
652
|
npx -y skills update -g -y
|
|
@@ -688,7 +700,12 @@ A symlink pointing to a skill this checkout does not own is reported and left al
|
|
|
688
700
|
|
|
689
701
|
### Optional agent kernel
|
|
690
702
|
|
|
691
|
-
The kernel is
|
|
703
|
+
The kernel is a short instruction file loaded into every session, whatever the task: answer questions before editing, check claims before reporting them, keep changes small, and ask before choices you might weigh differently. The [Pi package](#pi) already includes it; for other agents it is a separate, optional install.
|
|
704
|
+
|
|
705
|
+
<details>
|
|
706
|
+
<summary><b>Install, disable or remove the kernel</b> (Claude Code, Codex, OpenCode, other agents)</summary>
|
|
707
|
+
|
|
708
|
+
The commands below use a local Agent Concepts checkout. Use one kernel source per agent: a package, a manual include or a marked block, not several. To pin the kernel, check out a release tag that contains the kernel package, or a full commit SHA, in a dedicated checkout and use that path; to upgrade, select another revision and refresh or reinstall from it.
|
|
692
709
|
|
|
693
710
|
| Harness | Install | Disable | Remove |
|
|
694
711
|
|---|---|---|---|
|
|
@@ -701,21 +718,9 @@ The kernel is separate from the skills, except in the [Pi package](#pi), which i
|
|
|
701
718
|
|
|
702
719
|
Start a fresh session after install, disable or removal; an old session may still carry earlier instructions. For OpenCode, restart the server before starting the new session. The manual installer pins the **copied bytes**: to change versions, run the installer from the new pinned checkout against the same file. See [delivery behavior and manual deltas](docs/guides/harnesses.md#standalone-kernel) for details.
|
|
703
720
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
`/bc-pipeline-to-done` needs separate agents to build and review changes. In Pi:
|
|
707
|
-
|
|
708
|
-
1. Use the [Pi install](#pi): it installs `pi-subagents` and the pipeline's auditor, builder and reviewer [roles](concepts/bc-pipeline-to-done/body/roles.md), with nothing to copy. If `pi-subagents` is missing, the pipeline offers to install it, then asks you to restart Pi. Other harnesses need equivalent roles and isolation.
|
|
709
|
-
2. If you use GitHub issues, install and sign in to the [GitHub CLI](https://cli.github.com/) (`gh`). Both `/bc-plan-to-pipeline` and `/bc-pipeline-to-done` use it for issues; local work items do not need it.
|
|
710
|
-
|
|
711
|
-
These machine tools are optional:
|
|
721
|
+
</details>
|
|
712
722
|
|
|
713
|
-
|
|
714
|
-
|---|---|
|
|
715
|
-
| Guarded pytest runner | Run plain `pytest` in the project environment. Use `tmp_path` for test fixtures, clean up temporary files even on failure and do not set a custom `--basetemp`. |
|
|
716
|
-
| Storage health check | Skip the check and say so in one line of the run report. If a configured check fails to run or reports critical or unknown health, stop and report it. |
|
|
717
|
-
| Wrapper for heavy checks | Run the project's full validation command directly. The session combining the changes runs it, not each worker. |
|
|
718
|
-
| Publish-policy checker | The pipeline uses its bundled checker. With no policy file, it asks once before pushing if you can answer; otherwise it commits locally and pushes nothing. |
|
|
723
|
+
<br>
|
|
719
724
|
|
|
720
725
|
## Working on this repository
|
|
721
726
|
|
|
@@ -7,7 +7,9 @@ description: Review a diff or completed change for independent Spec fidelity and
|
|
|
7
7
|
|
|
8
8
|
Code review is technical evaluation, not emotional performance. Verify feedback against the codebase; request reviews with enough context for an independent reviewer to judge the diff.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
11
|
+
|
|
12
|
+
Reuse recorded checks for the exact tree and repro findings with targeted tests only. Why: reviewers should assess evidence, not duplicate full suites.
|
|
11
13
|
|
|
12
14
|
## Two-axis diff review
|
|
13
15
|
|
|
@@ -59,7 +59,7 @@ This order only chooses what is reproduced first and how the suspected tier is r
|
|
|
59
59
|
|
|
60
60
|
## Reproduction
|
|
61
61
|
|
|
62
|
-
After pass 2, launch ONE `worker` to run `bc-find-bugs` §3 on the top `--max-repro` candidates of the queue: its own worktree on branch `find-bugs/<hunt-name>`, one test per candidate, kept only if it fails for the stated reason, committed on the hunt branch. Launch it with `skill: ["bc-find-bugs", "bc-minimal-solution-ladder", "bc-codebase-design", "bc-codebase-docs", "bc-diagnosing-bugs", "bc-tdd"]`. Why: a launch skill list replaces the role's default skills, so the defaults are listed with it. Give it the queue in order with each candidate block, and ask it to return, per candidate, the test path and name with the failing assertion lines, or its suspected reason (`bc-find-bugs` §3 wording). Advisors stay read-only and write no reproductions.
|
|
62
|
+
After pass 2, launch ONE `worker` to run `bc-find-bugs` §3 on the top `--max-repro` candidates of the queue: its own worktree on branch `find-bugs/<hunt-name>`, one test per candidate, kept only if it fails for the stated reason, committed on the hunt branch. Launch it with `skill: ["bc-find-bugs", "bc-safe-runs", "bc-minimal-solution-ladder", "bc-codebase-design", "bc-codebase-docs", "bc-diagnosing-bugs", "bc-tdd"]`. Why: a launch skill list replaces the role's default skills, so the defaults are listed with it. Give it the queue in order with each candidate block, and ask it to return, per candidate, the test path and name with the failing assertion lines, or its suspected reason (`bc-find-bugs` §3 wording). Put the `bc-safe-runs` packet line in its task. Advisors stay read-only and write no reproductions.
|
|
63
63
|
|
|
64
64
|
## Report and filing
|
|
65
65
|
|
|
@@ -11,6 +11,8 @@ The parent selects the roster, relays only curated claims, decides validity, and
|
|
|
11
11
|
|
|
12
12
|
Before launch, read [references/pass-contracts.md](references/pass-contracts.md).
|
|
13
13
|
|
|
14
|
+
Load `bc-durable-subagents` before the first launch. Else: before any launch, create a run folder that survives a reboot, write `manifest.md` there (key → artifact path → advisor → model + thinking → task) and state its path in chat.
|
|
15
|
+
|
|
14
16
|
## Roster
|
|
15
17
|
|
|
16
18
|
If the `subagent` tool is missing, stop and tell the user to install `pi-subagents` and restart Pi. Otherwise run `subagent({ action: "list" })`, then choose 2-3 executable advisor names that start with `council-`. The prefix is convention only. Never use more than four advisors. If the user has no `council-*` profiles, point them to [examples/agents/](examples/agents/README.md): ready profiles with distinct stances and a placeholder model.
|
|
@@ -27,12 +29,12 @@ Pass 1 is independent reports. Pass 2 is one cross-exam. Run Pass 3 only when `-
|
|
|
27
29
|
|
|
28
30
|
## Protocol
|
|
29
31
|
|
|
30
|
-
1.
|
|
32
|
+
1. Create the run folder and manifest, and write the council brief there: question, scope, non-goals, evidence targets, roster, known advisor context modes, and pass cap.
|
|
31
33
|
2. Tell the user the roster, context modes, and pass cap.
|
|
32
|
-
3. Launch one async workflow script for Pass 1 with the script inside the call: `subagent({ async: true, options: { script: "<js using runs.all>" } })`. Do not use the `workflow: true` form, which needs a separate ```` ```js workflow ```` block in the same reply; when that block goes missing the launch fails with no advisors run. Use stable keys, `phase: "Council pass 1"`, concise labels, and `output
|
|
34
|
+
3. Launch one async workflow script for Pass 1 with the script inside the call: `subagent({ async: true, options: { script: "<js using runs.all>" } })`. Do not use the `workflow: true` form, which needs a separate ```` ```js workflow ```` block in the same reply; when that block goes missing the launch fails with no advisors run. Use stable keys, `phase: "Council pass 1"`, concise labels, and a distinct `output` path in the run folder per advisor. Set `context` only when the profile context is known or a fallback rule requires it.
|
|
33
35
|
4. Return one aggregate Pass 1 receipt. On completion, tell the user completion count, agreement count, dispute count, and whether Pass 2 is needed.
|
|
34
36
|
5. Synthesize the claim matrix in the parent: agreements, disputed claims, missing proof, owner decisions, and at most five material relay claims per advisor.
|
|
35
|
-
6. For Pass 2, tell the user which claims are relayed and why they matter. Resume each advisor with a curated challenge packet. In the `runs.all` script each resume entry has the shape `{ key: "cross-<advisor>", resume: "<Pass 1 runId>", task: "<challenge packet>", output:
|
|
37
|
+
6. For Pass 2, tell the user which claims are relayed and why they matter. Resume each advisor with a curated challenge packet. In the `runs.all` script each resume entry has the shape `{ key: "cross-<advisor>", resume: "<Pass 1 runId>", task: "<challenge packet>", output: "<run folder>/cross-<advisor>.md" }`: the run id goes in `resume` (not `id`), and the entry excludes `agent` and rejects `gate`. Record each new run id; Pass 3 resumes those latest ids with new stable keys.
|
|
36
38
|
7. Stop at convergence, pass cap, failed fallback, or user interruption. The parent writes the final memo.
|
|
37
39
|
|
|
38
40
|
If an advisor is not resumable, run the same profile fresh with its Pass 1 report and challenge packet. Label it a fresh-context fallback, not true cross-exam.
|
|
@@ -126,7 +126,7 @@ const pass2OutputSchema = {
|
|
|
126
126
|
};
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
Use stable resume keys such as `cross-oracle`, `phase: "Council pass 2"`, concise labels, and `output
|
|
129
|
+
Use stable resume keys such as `cross-oracle`, `phase: "Council pass 2"`, concise labels, and a distinct `output` path in the run folder per advisor. The aggregate Pass 2 receipt uses the Pass 1 row shape with the new `runId` and `structuredOutput ?? output`. Pass 3 resumes those latest ids with new stable keys.
|
|
130
130
|
|
|
131
131
|
## Advisor profiles
|
|
132
132
|
|
|
@@ -9,7 +9,9 @@ A discipline for hard bugs and performance regressions. It complements `bc-tdd`:
|
|
|
9
9
|
|
|
10
10
|
Read the project's glossary and relevant decision records before editing so hypotheses use project vocabulary. Find each by its role (glossary, decisions, ideas) in the "Where things go" table in `.bc-agent/AGENTS.md`. Why: one table per project means a project that keeps something elsewhere changes one place. Without that table, use `glossary.md` (or `.bc-agent/project/overview.md` in a `bc-setup-project` vault) and the ADRs under `docs/adr/` (or `.bc-agent/decisions/`).
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
13
|
+
|
|
14
|
+
For Btrfs storage incidents use the machine's storage health check (or `btrfs filesystem usage`), not `df`. Why: free bytes alone cannot diagnose metadata starvation.
|
|
13
15
|
|
|
14
16
|
## Phase 1 — Build a feedback loop
|
|
15
17
|
|
|
@@ -7,7 +7,11 @@ description: Use when there are two or more independent investigations, reviews,
|
|
|
7
7
|
|
|
8
8
|
Dispatch one fresh agent per independent problem domain. Parallelism is useful only when the domains do not depend on each other and agents will not edit or rely on the same mutable state.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
11
|
+
|
|
12
|
+
Load `bc-durable-subagents` before the first launch. Else: before launching, write a run folder that survives a reboot and `manifest.md` (key → artifact path → role → model + thinking → task), state its path in chat, and have each child append to its own artifact.
|
|
13
|
+
|
|
14
|
+
Put the `bc-safe-runs` packet line in every worker or reviewer task. Before removing a worktree or deleting its branch, prove its commits are in `HEAD` (ancestor or patch-equivalent) and record that proof. Why: parallel checks multiply disk use.
|
|
11
15
|
|
|
12
16
|
## Use when
|
|
13
17
|
|
|
@@ -1,37 +1,21 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: bc-
|
|
3
|
-
description:
|
|
2
|
+
name: bc-durable-subagents
|
|
3
|
+
description: Durability contract for any run that launches subagents, so a lost tool result, a compaction or a dead terminal never destroys the work - run folder and manifest before dispatch, async fan-out, per-child artifacts with Commit/Branch records, evidence anchors, and recovery before relaunch. Use before launching subagents, and whenever a prior subagent run was interrupted, failed, came back empty or was reaped.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# bc-
|
|
6
|
+
# bc-durable-subagents
|
|
7
7
|
|
|
8
|
-
If `~/.config/agent-concepts/overlays/bc-
|
|
8
|
+
If `~/.config/agent-concepts/overlays/bc-durable-subagents.md` exists, read it: it supplies tool names for the generic steps below that this machine's agent instructions do not already name. It never changes behaviour, and the project's own instructions take precedence.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Any skill that launches subagents loads this one. It covers how not to lose the results; how hard to delegate and how to split the work belong to the launching skill. The rules are harness-neutral; Pi mechanics (run directory, dispatch syntax, observed failure modes, recovery commands) are in [pi.md](pi.md).
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp` for scratch, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Put the `bc-safe-runs` packet line in every worker or reviewer task. Before removing a worktree or deleting its branch, prove its commits are in `HEAD` (ancestor or patch-equivalent) and record that proof. Why: children do not inherit the kernel, and retained worktrees consume storage.
|
|
15
15
|
|
|
16
|
-
## Recovery rule — before
|
|
16
|
+
## Recovery rule — before anything else
|
|
17
17
|
|
|
18
|
-
If a prompt names an interrupted, failed, empty, missing, or reaped prior run, treat it as recovery even when it says redo, relaunch, or start again. Stop before
|
|
19
|
-
|
|
20
|
-
## The inversion
|
|
21
|
-
|
|
22
|
-
Normally you delegate when a split is obvious. Here it flips: assume every unit of work goes to a child, and justify what you keep.
|
|
23
|
-
|
|
24
|
-
The parent keeps exactly three things:
|
|
25
|
-
|
|
26
|
-
- **Decisions** — judgment calls, tradeoffs, anything the user would want to weigh.
|
|
27
|
-
- **Integration and verification** — reconciling children, spotting contradictions, running the combined check.
|
|
28
|
-
- **Work genuinely cheaper to do than to describe** — one grep, a single file read, a command whose output you need before you can even write the packet.
|
|
29
|
-
|
|
30
|
-
That third one is the honest escape hatch, and it is also the one that rots. Why: "it's faster if I just do it" is true for almost any single item and false for the whole task — it is how an aggressive posture decays into an ordinary one, one reasonable-sounding exception at a time. It is a **per-track** test, never a verdict on the whole job; applied to everything at once it is not a test, it is the rationalization.
|
|
31
|
-
|
|
32
|
-
**The routing decision: name the tracks at the decision point, and decide where each one goes.** List the independent tracks you found; show the dispatched ones in chat. For every dispatched track, name the role and the effective model plus thinking route, in this session's routing names — not a vendor id. Shape: `notes → scout, Luna max`. Do not also label tracks as child or parent — the role already says it is dispatched. Why: the list is how the user sees the fleet; a track without an effective route is a guess they cannot correct, and parent/child is noise once the role is named. The list records the route that will actually run, not a fixed set of fields that every harness must copy into every child object. If the harness exposes per-child model or thinking controls, use them to preserve that route through its own mechanics; read [pi.md](pi.md) for Pi-specific dispatch rules. Keep the effective route in chat and the manifest. Announce, then launch in the same turn. If fewer than two tracks exist, or any track stays with you, settle why per track in your reasoning (`hotfix → cheaper than a packet`) and do not write it in the reply. Those kept tracks are not subagents. Why: the user does not want a keep/no-dispatch justification heading every reply (2026-10-26); the reason still has to exist and fit the three keep cases above.
|
|
33
|
-
|
|
34
|
-
This binds **whichever way you decide, including when you decide to dispatch nothing.** Why: keeping the work is the decision that silently ends the swarm, so it is the one that most needs an explicit reason, even one kept out of the reply. A rule that only fires on the dispatch path cannot catch the case where you quietly chose not to dispatch — and "just read them yourself, it's faster than writing the packets" is precisely that case, arriving as a reasonable request.
|
|
18
|
+
If a prompt names an interrupted, failed, empty, missing, or reaped prior run, treat it as recovery even when it says redo, relaunch, or start again. Stop before naming tracks or making any replacement track, manifest, or dispatch decision, and execute rule 4 of the durability contract for that prior run. Never stash, delete, move, or overwrite prior-run evidence merely to make a replacement launchable. Do not name or launch a replacement until recovery proves that track has no usable artifact, valid handoff patch, recorded Git object, or preserved worktree/ref.
|
|
35
19
|
|
|
36
20
|
## Durability contract
|
|
37
21
|
|
|
@@ -39,7 +23,7 @@ The parent's context is not a storage medium. A lost tool result, a compaction,
|
|
|
39
23
|
|
|
40
24
|
Four rules. They are cheap. The failure they prevent is not.
|
|
41
25
|
|
|
42
|
-
**1. Manifest before dispatch.** Before launching anything, write a
|
|
26
|
+
**1. Manifest before dispatch.** Before launching anything, write the manifest in a run directory that survives a reboot (not `/tmp` or `mktemp -d`'s default; in Pi, see [Run directory](pi.md#run-directory)). List each dispatched track: key → artifact path → role → effective route (model + thinking) → one-line task. Then **state the run directory path in chat.** Why: a path that exists only in your context dies with your context, and rule 4 cannot fire without it. Telling the user makes the user your backup index. Record the same routing name the user just read so the durable copy matches. Preserve that route through whatever launch controls the harness provides; keep harness-specific field rules in its reference.
|
|
43
27
|
|
|
44
28
|
**Manifest events, todo obligations.** The run manifest records events — dispatched, launched, landed, recovered — as durable history; the session `todo` tool tracks open obligations that outlive the turn (owner waits, deferred items, out-of-sight runs, partial work), with a trigger for deferred checks. They are complementary: do not copy the manifest into todos or use todos as the manifest; later verification or integration of a dispatched run is a todo obligation (which may auto-create from the run), while its launch/landing is a manifest line. Why: a deferred item left only in the manifest was never re-checked after compaction; the todo snapshot is re-injected every turn, the manifest is not.
|
|
45
29
|
|
|
@@ -84,7 +68,7 @@ Why anchors rather than trusting or re-reading: re-reading everything defeats th
|
|
|
84
68
|
|
|
85
69
|
## What every child packet adds
|
|
86
70
|
|
|
87
|
-
`bc-dispatching-parallel-agents` defines the packet (scope, goal, constraints, evidence, output contract).
|
|
71
|
+
`bc-dispatching-parallel-agents` defines the packet (scope, goal, constraints, evidence, output contract). Every child packet adds these bullets:
|
|
88
72
|
|
|
89
73
|
```
|
|
90
74
|
- Write your findings to <artifact path>. Append them as you establish them; do not hold
|
|
@@ -103,17 +87,3 @@ Why anchors rather than trusting or re-reading: re-reading everything defeats th
|
|
|
103
87
|
```
|
|
104
88
|
|
|
105
89
|
Name the guarded runner from the project's or machine's instructions and docs, if configured. Fill the targeted checks with named test files or IDs; never paste the project's full gate into a packet, even when its validation page lists the gate. Why: a pasted gate is a full run per worker. The worktree requirement is scoped to worker packets; recon packets keep the first three bullets only.
|
|
106
|
-
|
|
107
|
-
**Test levels travel with the code** (load the `bc-tdd` skill, section Test levels):
|
|
108
|
-
|
|
109
|
-
- A worker packet never waives, narrows or forbids a tdd test level or its property library ("examples are enough", "no new dependency") unless it quotes the owner's approval. A parent that thinks a level is wrong for the task asks the owner. Why: a packet that overrides a level is a skip nobody approved, and the worker follows the packet.
|
|
110
|
-
- A review packet includes the worker's Test levels block, or the commits' `Test-levels:` trailers, and asks the reviewer to audit it against the diff. Why: a reviewer given only diff and spec never sees the levels, so nobody audits them.
|
|
111
|
-
- The parent's own commits of code changes carry the block too.
|
|
112
|
-
|
|
113
|
-
## Boundary
|
|
114
|
-
|
|
115
|
-
`bc-delegate-investigation` is for **investigation, analysis, and review** — reconnaissance, reading docs, cross-referencing, independent critique. Fan-out is cheap here because children only read.
|
|
116
|
-
|
|
117
|
-
For implementation fan-out, stop and use `bc-subagent-driven-development` or `bc-pipeline-to-done`. They already own worker packets, spec and standards review, worktree isolation, and rework loops. Why: a thinner parallel-implementation path competing with those will lose in ways nobody notices until something is merged.
|
|
118
|
-
|
|
119
|
-
Harness-specific mechanics, including the concrete dispatch syntax and observed failure modes, live in [pi.md](pi.md).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Pi mechanics for bc-
|
|
1
|
+
# Pi mechanics for bc-durable-subagents
|
|
2
2
|
|
|
3
3
|
Concrete syntax for the `subagent` tool from the `pi-subagents` extension. The contract in `SKILL.md` is harness-neutral; this file is not. In Pi, if `subagent` is missing, stop Pi dispatch and tell the user to install `pi-subagents` and restart Pi. In other harnesses, keep the four rules and use their equivalent primitives for durable output and retained runs.
|
|
4
4
|
|
|
@@ -57,6 +57,8 @@ Children do not inherit the swarm kernel, so the swarm-mode parent must copy the
|
|
|
57
57
|
|
|
58
58
|
**Worktree isolation refuses a dirty checkout, including someone else's dirt.** `worktree: true` fails before any child runs with `worktree isolation requires a clean git working tree` when the child's `cwd` has any uncommitted or untracked file — also one left by another live session in the same repository. Do not commit, stash or delete that session's files to make the launch pass. Instead create a base worktree for the track (`git worktree add -b <int-branch> <run-dir>/wt-<key> <base>`) and give it as the child's `cwd`; the managed worktree is then cut from that clean checkout, and the parent integrates the child's commits into the integration branch, then onto the main branch. Remove the base worktree and branch after integration proof. Seen twice in one session (2026-11-21, 2026-11-22).
|
|
59
59
|
|
|
60
|
+
**A long command inside a worktree worker dies with the worker.** 2026-11-27: two `worker` children each ran a stranger end-to-end script of about 30 minutes in their managed worktrees and hit the child timeout (`Subagent timed out after 1800000ms`). A timed-out worker's worktree is removed, which pulls the directory out from under a script still running there; the parent had to resume one child and grade the other run itself. Run any command expected to take more than about 20 minutes from the parent's own checkout, detached, with a completion wake (see Waiting), and give a worker only the bounded part: preparing the change before, or grading the evidence and fixing after.
|
|
61
|
+
|
|
60
62
|
## Worktree lifecycle (pi-subagents 0.56.0)
|
|
61
63
|
|
|
62
64
|
A successful managed-worktree handoff captures the child diff as a patch and records
|
|
@@ -7,7 +7,9 @@ description: Use when the user provides or selects a written implementation plan
|
|
|
7
7
|
|
|
8
8
|
Execute written plans deliberately: review the plan, verify preconditions, complete each task, and stop instead of guessing when the plan is wrong.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
11
|
+
|
|
12
|
+
Run targeted checks per task and one shared landing run of the full suite. Why: task-by-task execution must not duplicate full suites.
|
|
11
13
|
|
|
12
14
|
## Preflight
|
|
13
15
|
|
|
@@ -48,6 +48,8 @@ Rank candidates by the strength of the quoted evidence.
|
|
|
48
48
|
|
|
49
49
|
## 3. Reproduce
|
|
50
50
|
|
|
51
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
52
|
+
|
|
51
53
|
Work in a separate git worktree on a new branch `find-bugs/<hunt-name>` (`git worktree add -b bc-find-bugs/<hunt-name> <path>`). Never write reproductions in the owner's checkout. Why: the branch is what the filed items point at, and the owner's tree stays untouched.
|
|
52
54
|
|
|
53
55
|
Take the strongest candidates in rank order, up to `--max-repro` (default 12). For each, spend at most 10 minutes:
|
|
@@ -7,7 +7,9 @@ description: Use when implementation is complete and the user needs options for
|
|
|
7
7
|
|
|
8
8
|
Finish work by verifying first, then presenting clear options. Do not publish, merge, or discard by implication.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
11
|
+
|
|
12
|
+
Before removing a worktree or deleting its branch, prove its commits are in `HEAD` (ancestor or patch-equivalent) and record that proof. Keep anything dirty, unmerged or unclear. Reuse recorded full-suite evidence for the same tree instead of running the suite again. Why: completion is not a reason to duplicate suites or delete unproven work.
|
|
11
13
|
|
|
12
14
|
## 1. Verify before offering completion
|
|
13
15
|
|
|
@@ -45,7 +45,7 @@ request at a time.
|
|
|
45
45
|
| Situation | Use instead |
|
|
46
46
|
|---|---|
|
|
47
47
|
| Same harness, same directory, session continues | `/compact` — the context never has to travel |
|
|
48
|
-
| Insurance against a crash or a dead pane under fan-out | `bc-
|
|
48
|
+
| Insurance against a crash or a dead pane under fan-out | `bc-durable-subagents`' durability contract: manifest before dispatch, per-child artifacts checkpointed incrementally. It survives without anyone remembering to act; a handoff needs a live agent that notices in time |
|
|
49
49
|
| The receiver is a live session on this machine | `intercom` (or a `herdr` pane) — deliver directly, do not write a file |
|
|
50
50
|
| A fact that will still be true next month | `AGENTS.md`, the project's glossary, or a decision record (found as in [writing.md § Ledgers](writing.md#ledgers)). A handoff is one piece of work in flight |
|
|
51
51
|
|
|
@@ -9,7 +9,9 @@ Improve code along a measurable axis (speed, output size, memory, allocations, A
|
|
|
9
9
|
|
|
10
10
|
**The core idea:** the *check* owns truth; you propose *bounded* changes; a change survives only if it proves **both** that correctness still holds **and** that the chosen metric improved enough to justify it. Anything else gets reverted.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
13
|
+
|
|
14
|
+
Run the full suite once, for landing, not on each iteration. Why: repeated experiments multiply temporary storage.
|
|
13
15
|
|
|
14
16
|
## Before you touch code
|
|
15
17
|
|
|
@@ -34,9 +34,13 @@ The workflow is harness-agnostic. It launches three jobs, each a fresh subagent
|
|
|
34
34
|
- **builder** — writes only in its own worktree and never commits; builds and reworks.
|
|
35
35
|
- **reviewer** — read-only, fresh context; one review axis or the combined review.
|
|
36
36
|
|
|
37
|
-
By default the jobs run as the roles this skill's Pi package ships (see [roles.md](roles.md)): `bc-drain-auditor`, `bc-drain-worker` (the builder) and `bc-drain-reviewer`. If `~/.config/agent-concepts/overlays/bc-pipeline-to-done.md` exists, read it; roles or models it names for a job override the defaults. Set model effort explicitly per this contract. Because the jobs do not inherit the broad skill catalog, pass the worker disciplines explicitly (`bc-minimal-solution-ladder` on every implementation packet, plus `bc-tdd`, `bc-diagnosing-bugs`, and/or `bc-optimize-code` where applicable); auditor and reviewer jobs get none up front: [review-contract.md](review-contract.md) gives the reviewer the `bc-codebase-design` vocabulary and says when to load `bc-codebase-docs`. Bound each read-only auditor/reviewer to four assistant turns and 12 tool calls; mutation-capable workers receive narrow packets and are never arbitrarily interrupted mid-write. Use the configured compact tool descriptions, set top-level `artifacts:false` or an external artifact/session root (including resumed runs), and keep outputs outside unit worktrees. These are economy controls, not permission to weaken correctness gates.
|
|
37
|
+
By default the jobs run as the roles this skill's Pi package ships (see [roles.md](roles.md)): `bc-drain-auditor`, `bc-drain-worker` (the builder) and `bc-drain-reviewer`. If `~/.config/agent-concepts/overlays/bc-pipeline-to-done.md` exists, read it; roles or models it names for a job override the defaults. Set model effort explicitly per this contract. Because the jobs do not inherit the broad skill catalog, pass the worker disciplines explicitly (`bc-minimal-solution-ladder` and `bc-safe-runs` on every implementation packet, plus `bc-tdd`, `bc-diagnosing-bugs`, and/or `bc-optimize-code` where applicable); auditor and reviewer jobs get none up front: [review-contract.md](review-contract.md) gives the reviewer the `bc-codebase-design` vocabulary and says when to load `bc-codebase-docs`. Bound each read-only auditor/reviewer to four assistant turns and 12 tool calls; mutation-capable workers receive narrow packets and are never arbitrarily interrupted mid-write. Use the configured compact tool descriptions, set top-level `artifacts:false` or an external artifact/session root (including resumed runs), and keep outputs outside unit worktrees. These are economy controls, not permission to weaken correctness gates.
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
40
|
+
|
|
41
|
+
Load `bc-durable-subagents` for the generic launch rules (manifest before dispatch, async fan-out, child artifacts with `Commit:`/`Branch:` records, recover before relaunch); the drain's claims, run artifact root and recovery root below are its own run state; where they differ, the drain's resume and landing rules below win. Else: before the first dispatch, write the run manifest in a run folder that survives a reboot (use the drain's run artifact root) and state the folder path in chat.
|
|
42
|
+
|
|
43
|
+
Put the `bc-safe-runs` packet line in every worker or reviewer task. Before releasing an integrated worktree or branch, prove its commits are in `HEAD` (ancestor or patch-equivalent) and record that landing proof in the run manifest. Why: unattended loops multiply storage leaks.
|
|
40
44
|
|
|
41
45
|
## Claim before work
|
|
42
46
|
|
|
@@ -84,7 +88,7 @@ For remaining held claims, apply these dispositions only with the required claim
|
|
|
84
88
|
- **Neither, and the unit is untouched** — release the claim and the source's claim marks, then treat it as ready, unless the source page excludes it.
|
|
85
89
|
- **Anything else** — leave the claim, report it, and skip the unit for this run. Never release a claim you cannot account for, and never delete a worktree to make an inconsistency go away: the inconsistency is the evidence.
|
|
86
90
|
|
|
87
|
-
State the run artifact root and the recovery root in the run's opening report,
|
|
91
|
+
State the run artifact root and the recovery root in the run's opening report, as `bc-durable-subagents` states a run folder before launch.
|
|
88
92
|
|
|
89
93
|
## Select, classify, and claim
|
|
90
94
|
Select the next eligible unit as the chosen source page says, skipping live claims (not valid marker refs) and in-flight units. Prioritize units with a valid local recovery bundle. Vague or decision-incomplete work becomes `HUMAN_BLOCKED`, not guessed work.
|
|
@@ -28,7 +28,7 @@ For metric-bearing work only, load and follow `bc-optimize-code` after GREEN: es
|
|
|
28
28
|
|
|
29
29
|
When the change alters behavior that a README, an existing `docs/` page, an architecture page, or contract-stating JSDoc already describes, update that owning page in the same diff and follow the repo-available `bc-codebase-docs` for placement. Do not invent a new `docs/` tree, do not restate a contract that already has a home, and do not narrate this issue in a documentation page — the acceptance matrix records what the slice did, and a docs page that narrates a change is stale the moment the next one lands. A repository that keeps no documentation for this surface needs none written to satisfy this rule.
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
32
32
|
|
|
33
33
|
Preserve the driver's baseline cache. Run targeted tests/checks while editing and record commands, outcomes, failing IDs, and concise baseline deltas. Do not run the full project suite; final landing validation belongs to the driver.
|
|
34
34
|
|
|
@@ -5,7 +5,7 @@ description: Use when writing or revising instructions for a coding agent — co
|
|
|
5
5
|
|
|
6
6
|
# Prompting Agents
|
|
7
7
|
|
|
8
|
-
Reusable instruction blocks and principles distilled from OpenAI's GPT-5.2 and Codex prompting guides, Anthropic's prompting/context-engineering guidance, and Google's prompt-engineering whitepaper (see CONCEPT.md for provenance), rewritten agent-agnostically. When authoring or tuning instructions for any agent, adapt the relevant block rather than writing one from scratch — these phrasings have been optimized against production evals. Tag origin when copying verbatim so future updates can be traced.
|
|
8
|
+
Reusable instruction blocks and principles distilled from OpenAI's GPT-5.2 and Codex prompting guides, Anthropic's prompting/context-engineering guidance, and Google's prompt-engineering whitepaper (see CONCEPT.md for provenance), rewritten agent-agnostically. When authoring or tuning instructions for any agent, adapt the relevant block rather than writing one from scratch — these phrasings have been optimized against production evals. Before writing a rule, use `rg` to search concept bodies for its owner; if owned elsewhere, load it or mark a tracked `copy-of`, and if already held by two other concepts, split it into a module. Tag origin when copying verbatim so future updates can be traced.
|
|
9
9
|
|
|
10
10
|
## First: choose the altitude
|
|
11
11
|
|
|
@@ -26,6 +26,8 @@ If ambiguous and the user is not reachable, choose the branch that matches the s
|
|
|
26
26
|
6. **Surface state.** Print/render relevant state after each action or variant switch.
|
|
27
27
|
7. **Delete or absorb.** When the question is answered, either delete the prototype or fold the validated decision into real work.
|
|
28
28
|
|
|
29
|
+
Load `bc-safe-runs`. Else: guarded test runner (fallback `pytest`; no custom `--basetemp`), `mktemp -d` outside `/tmp`, targeted tests; configured storage check before full suites, worktrees, fan-out: stop if critical or unknown, or if the check cannot run.
|
|
30
|
+
|
|
29
31
|
## Handoff to the bc loop
|
|
30
32
|
|
|
31
33
|
Before moving to `/bc-plan-to-pipeline` or implementation, capture:
|