agent-concepts 0.4.1 → 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.
Files changed (34) hide show
  1. package/README.md +60 -57
  2. package/concepts/bc-code-review/body/SKILL.md +3 -1
  3. package/concepts/bc-council-find-bugs/body/SKILL.md +1 -1
  4. package/concepts/bc-council-mode/body/SKILL.md +5 -3
  5. package/concepts/bc-council-mode/body/references/pass-contracts.md +1 -1
  6. package/concepts/bc-diagnosing-bugs/body/SKILL.md +3 -1
  7. package/concepts/bc-dispatching-parallel-agents/body/SKILL.md +5 -1
  8. package/concepts/{bc-delegate-investigation → bc-durable-subagents}/body/SKILL.md +11 -41
  9. package/concepts/{bc-delegate-investigation → bc-durable-subagents}/body/pi.md +1 -1
  10. package/concepts/bc-executing-plans/body/SKILL.md +3 -1
  11. package/concepts/bc-find-bugs/body/SKILL.md +2 -0
  12. package/concepts/bc-finishing-development-branch/body/SKILL.md +3 -1
  13. package/concepts/bc-handoff/body/SKILL.md +1 -1
  14. package/concepts/bc-optimize-code/body/SKILL.md +3 -1
  15. package/concepts/bc-pipeline-to-done/body/SKILL.md +7 -3
  16. package/concepts/bc-pipeline-to-done/body/execute-issue.md +1 -1
  17. package/concepts/bc-prompting-agents/body/SKILL.md +1 -1
  18. package/concepts/bc-prototype/body/SKILL.md +2 -0
  19. package/concepts/bc-safe-runs/body/SKILL.md +32 -0
  20. package/concepts/bc-security-audit/body/SKILL.md +2 -0
  21. package/concepts/bc-setup-project/body/MIGRATIONS.md +457 -0
  22. package/concepts/bc-setup-project/body/SKILL.md +1 -1
  23. package/concepts/bc-setup-project/body/scaffold.py +17 -5
  24. package/concepts/bc-subagent-driven-development/body/SKILL.md +5 -1
  25. package/concepts/bc-swarm/body/SKILL.md +50 -0
  26. package/concepts/bc-tdd/body/SKILL.md +3 -1
  27. package/concepts/bc-tdd/body/refactoring.md +3 -1
  28. package/concepts/bc-using-git-worktrees/body/SKILL.md +3 -1
  29. package/concepts/bc-work-sync/body/SKILL.md +2 -0
  30. package/concepts/bc-writing-plans/body/SKILL.md +3 -1
  31. package/package.json +11 -3
  32. package/skills/bc-delegate-investigation/SKILL.md +6 -0
  33. package/skills/bc-ui-design/SKILL.md +6 -0
  34. /package/concepts/{bc-delegate-investigation → bc-durable-subagents}/body/examples/pi-settings-snippet.json +0 -0
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: bc-swarm
3
+ description: Aggressively delegate investigation, analysis, and review to parallel subagents; delegating is the default and keeping work needs a reason. Use when the user says bc-swarm, swarm, go wide, fan out, or asks for heavy/aggressive subagent use.
4
+ ---
5
+
6
+ # bc-swarm
7
+
8
+ Go wide. While this skill is active, delegating is the default and **keeping** work is what needs a reason.
9
+
10
+ Load `bc-durable-subagents` and follow it for every launch and every recovery: run folder, manifest, async fan-out, artifacts, packet bullets, recovery before relaunch. Its recovery rule runs before the routing decision below.
11
+
12
+ It composes `bc-dispatching-parallel-agents`, which owns how to split work, what goes in a packet, and the parent's integration duties. Read that for *how to split*. This skill covers *how hard to push*.
13
+
14
+ ## The inversion
15
+
16
+ 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.
17
+
18
+ The parent keeps exactly three things:
19
+
20
+ - **Decisions** — judgment calls, tradeoffs, anything the user would want to weigh.
21
+ - **Integration and verification** — reconciling children, spotting contradictions, running the combined check.
22
+ - **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.
23
+
24
+ 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.
25
+
26
+ **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 the `pi.md` file of `bc-durable-subagents` 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.
27
+
28
+ 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.
29
+
30
+ ## Fan-out width
31
+
32
+ One child for a bounded fact or a question about one or two named files (two only when each file is its own surface), two to four for comparisons and multi-surface recon, and more only for genuinely broad investigation. Never add a track the question did not name (tests, docs, background semantics) to reach a count. The default settles whether to delegate, never how wide. Why: multi-agent runs cost roughly 15x a single session, and an uncapped default drifts toward five children for a two-file question.
33
+
34
+ ## What bc-swarm packets add
35
+
36
+ Every packet carries the bullets from `bc-durable-subagents`. For code changes, add:
37
+
38
+ **Test levels travel with the code** (load the `bc-tdd` skill, section Test levels):
39
+
40
+ - 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.
41
+ - 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.
42
+ - The parent's own commits of code changes carry the block too.
43
+
44
+ ## Boundary
45
+
46
+ `bc-swarm` is for **investigation, analysis, and review** — reconnaissance, reading docs, cross-referencing, independent critique. Fan-out is cheap here because children only read.
47
+
48
+ 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.
49
+
50
+ Harness-specific mechanics, including the concrete dispatch syntax and observed failure modes, live in the `pi.md` file of `bc-durable-subagents`.
@@ -5,7 +5,9 @@ description: Use when writing new tests or behaviour-changing assertions, includ
5
5
 
6
6
  # Test-Driven Development
7
7
 
8
- Use targeted RED/GREEN checks, running pytest through the guarded test runner the project's or machine's instructions name (otherwise plain `pytest`, with `tmp_path` for test fixtures and cleanup even on failure; never custom `--basetemp`). Tests you write delete every temporary file and folder they create, even on failure; make scratch folders with `mktemp -d`, never under `/tmp`. Before a full suite, not each cycle, run the machine's storage health check if one exists and stop on critical or unknown health or if the configured check cannot run. If no storage health check is configured, skip it and note that in one line in the report. The `agent-kernel` concept's Storage safety section holds the temp-file and scratch-folder rules, when loaded. Why: fast feedback does not require repeated full suites.
8
+ 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.
9
+
10
+ Use targeted RED/GREEN checks; tests you write delete every temporary file and folder they create, even on failure; run the full suite, after the health check, not each cycle. Why: fast feedback does not require repeated full suites.
9
11
 
10
12
  If `~/.config/agent-concepts/overlays/bc-tdd.md` exists, read it for this machine's tool names.
11
13
 
@@ -9,4 +9,6 @@ After a green TDD cycle (all tests passing), look for:
9
9
  - **Primitive obsession** → introduce value objects.
10
10
  - **Existing code** the new code reveals as problematic.
11
11
 
12
- Run affected targeted tests after each refactor step; run pytest through the guarded test runner the project's or machine's instructions name (otherwise plain `pytest`, with `tmp_path` for test fixtures and cleanup even on failure; never custom `--basetemp`), and share full-suite evidence rather than re-running the suite. The `agent-kernel` concept's Storage safety section holds the temp-file and scratch-folder rules, when loaded. Why: refactoring needs fast feedback, not repeated full suites. **Never refactor while RED** — get to green first; the passing tests are what make refactoring safe.
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 affected targeted tests after each refactor step and share full-suite evidence rather than re-running the suite. Why: refactoring needs fast feedback, not repeated full suites. **Never refactor while RED** — get to green first; the passing tests are what make refactoring safe.
@@ -7,7 +7,9 @@ description: Use when starting feature work that needs isolation, before executi
7
7
 
8
8
  Work in an isolated workspace when it reduces risk. Detect existing isolation first, prefer harness-native isolation, and use manual `git worktree` only as a fallback. When an owned worktree is integrated or otherwise irrelevant, prune it without asking.
9
9
 
10
- Before either creation path, run the machine's storage health check if one exists, and stop and report on critical or unknown health or if the configured check cannot run. If no storage health check is configured, skip it and note that in one line in the report. Reuse the once-per-base baseline. Before removing a worktree or deleting its branch, prove its commits are in `HEAD` (ancestor or patch-equivalent) and record that proof; remove with `git worktree remove`, never `--force`. The `agent-kernel` concept's Storage safety section holds the temp-file and scratch-folder rules, when loaded. Why: native isolation still consumes disk.
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 the once-per-base baseline. Before removing a worktree or deleting its branch, prove its commits are in `HEAD` and record that proof (section Cleanup below); remove with `git worktree remove`, never `--force`. Why: native isolation still consumes disk.
11
13
 
12
14
  ## Step 0: detect current state
13
15
 
@@ -62,6 +62,8 @@ Look for each of these; [PLAN.md](PLAN.md) gives the plan's format.
62
62
 
63
63
  ## After the owner approves
64
64
 
65
+ Before launching the fresh reviewer in step 4, load `bc-durable-subagents`. Else: create a run folder that survives a reboot, write `manifest.md` there (key → artifact path → reviewer → model + thinking → task), state the folder path in chat, and give the reviewer its own artifact.
66
+
65
67
  1. Write items from `.bc-agent/templates/work-item.md` under the project's work-item rules in `.bc-agent/AGENTS.md`. Number new items only in the main checkout (`git rev-parse --path-format=absolute --git-dir` equals `git rev-parse --path-format=absolute --git-common-dir`); in a worktree, add a line to the ideas file instead and say so. Link to the docs an item comes from instead of copying their content. Set a `Kind:` line when the doc makes the kind clear (a bug, a security fix, a feature, ...), and place the item in `work/order.md` where `work_index.py --check` says.
66
68
  2. Run `python3 .bc-agent/scripts/work_index.py`, then `python3 .bc-agent/scripts/work_index.py --check` and the project's own lint.
67
69
  3. Commit only your own changes, with a subject naming the sync.
@@ -7,7 +7,9 @@ description: Use when an approved spec or resolved requirements need to become a
7
7
 
8
8
  Write plans for a capable engineer or fresh agent with little project context. The plan must be concrete enough to execute task-by-task without guessing.
9
9
 
10
- Plans must be storage-safe: pytest through the guarded test runner the project's or machine's instructions name (otherwise plain `pytest`, with `tmp_path` for test fixtures and cleanup even on failure; never custom `--basetemp`); scratch folders from `mktemp -d`, never under `/tmp`; the machine's storage health check before full suites, worktrees and multi-worker launches (stop on critical or unknown health or if the configured check cannot run; if none is configured, skip it with one report line); and worktree cleanup only after proving the work's commits are in `HEAD`. Plan targeted task checks plus one shared baseline and one landing run of the full suite. The `agent-kernel` concept's Storage safety (temp files, scratch folders) and Verification sections hold their rules, when loaded. Why: unsafe commands in plans become unsafe execution.
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
+ Plans must be storage-safe: every command follows `bc-safe-runs`, worktree cleanup comes only after proving the work's commits are in `HEAD`, and the plan has targeted task checks plus one shared baseline and one landing run of the full suite. Why: unsafe commands in plans become unsafe execution.
11
13
 
12
14
  ## Scope gate
13
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-concepts",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Agent skills from agent-concepts, packaged for Pi.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,11 +22,12 @@
22
22
  "./concepts/bc-council-find-bugs/body",
23
23
  "./concepts/bc-council-improve-architecture/body",
24
24
  "./concepts/bc-council-mode/body",
25
- "./concepts/bc-delegate-investigation/body",
25
+ "./skills/bc-delegate-investigation",
26
26
  "./concepts/bc-design/body",
27
27
  "./concepts/bc-diagnosing-bugs/body",
28
28
  "./concepts/bc-dispatching-parallel-agents/body",
29
29
  "./concepts/bc-domain-modeling/body",
30
+ "./concepts/bc-durable-subagents/body",
30
31
  "./concepts/bc-executing-plans/body",
31
32
  "./concepts/bc-explain-visually/body",
32
33
  "./concepts/bc-find-bugs/body",
@@ -49,16 +50,19 @@
49
50
  "./concepts/bc-prototype/body",
50
51
  "./concepts/bc-qmd/body",
51
52
  "./concepts/bc-research/body",
53
+ "./concepts/bc-safe-runs/body",
52
54
  "./concepts/bc-security-audit/body",
53
55
  "./concepts/bc-self-improve/body",
54
56
  "./concepts/bc-seo/body",
55
57
  "./concepts/bc-setup-project/body",
56
58
  "./concepts/bc-subagent-driven-development/body",
59
+ "./concepts/bc-swarm/body",
57
60
  "./concepts/bc-tdd/body",
58
61
  "./concepts/bc-teach/body",
59
62
  "./concepts/bc-to-spec/body",
60
63
  "./concepts/bc-to-tickets/body",
61
64
  "./concepts/bc-triage/body",
65
+ "./skills/bc-ui-design",
62
66
  "./concepts/bc-unslop/body",
63
67
  "./concepts/bc-using-git-worktrees/body",
64
68
  "./concepts/bc-wiki-maintain/body",
@@ -85,11 +89,12 @@
85
89
  "concepts/bc-council-find-bugs/body/",
86
90
  "concepts/bc-council-improve-architecture/body/",
87
91
  "concepts/bc-council-mode/body/",
88
- "concepts/bc-delegate-investigation/body/",
92
+ "skills/bc-delegate-investigation/",
89
93
  "concepts/bc-design/body/",
90
94
  "concepts/bc-diagnosing-bugs/body/",
91
95
  "concepts/bc-dispatching-parallel-agents/body/",
92
96
  "concepts/bc-domain-modeling/body/",
97
+ "concepts/bc-durable-subagents/body/",
93
98
  "concepts/bc-executing-plans/body/",
94
99
  "concepts/bc-explain-visually/body/",
95
100
  "concepts/bc-find-bugs/body/",
@@ -112,16 +117,19 @@
112
117
  "concepts/bc-prototype/body/",
113
118
  "concepts/bc-qmd/body/",
114
119
  "concepts/bc-research/body/",
120
+ "concepts/bc-safe-runs/body/",
115
121
  "concepts/bc-security-audit/body/",
116
122
  "concepts/bc-self-improve/body/",
117
123
  "concepts/bc-seo/body/",
118
124
  "concepts/bc-setup-project/body/",
119
125
  "concepts/bc-subagent-driven-development/body/",
126
+ "concepts/bc-swarm/body/",
120
127
  "concepts/bc-tdd/body/",
121
128
  "concepts/bc-teach/body/",
122
129
  "concepts/bc-to-spec/body/",
123
130
  "concepts/bc-to-tickets/body/",
124
131
  "concepts/bc-triage/body/",
132
+ "skills/bc-ui-design/",
125
133
  "concepts/bc-unslop/body/",
126
134
  "concepts/bc-using-git-worktrees/body/",
127
135
  "concepts/bc-wiki-maintain/body/",
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: bc-delegate-investigation
3
+ description: Compatibility alias for the renamed bc-swarm skill.
4
+ ---
5
+
6
+ This skill was renamed. Load `bc-swarm` and follow it instead.
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: bc-ui-design
3
+ description: Compatibility alias for the renamed bc-design skill.
4
+ ---
5
+
6
+ This skill was renamed. Load `bc-design` and follow it instead.