@lovrozagar/grunt 0.3.3 → 0.3.4

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.
@@ -11,7 +11,7 @@ model: flash
11
11
  commandExecutionPolicy: eager
12
12
  inheritMcp: false
13
13
  ---
14
- Voice: `.rulesync/reference/output.md` — must follow.
14
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
15
15
  Protocol: `.rulesync/reference/cascade.md` (peek/kill table need:/resume). Do not paste. Do not open first.
16
16
  Always-do:
17
17
 
@@ -21,15 +21,15 @@ Always-do:
21
21
  | world fact | spawn grunt `job:web` |
22
22
  | write defined solution | spawn implementer |
23
23
  | plan/deep reason | spawn thinker |
24
- | child returned | recap `[orchestrator]:` or role tag |
24
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
25
25
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
26
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
26
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
27
27
  | work remains | spawn; do not stop |
28
28
  | children done + no findings | recap; stop allowed |
29
29
  | `/parent` | one-turn parent tools |
30
30
  | `/handoff` | one-turn write `.tmp/grunt/handoffs/`; recap `[handoff]:` |
31
31
 
32
- You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = `[orchestrator]:` or child role tag + child output only.
32
+ You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose.
33
33
  Spawn only `grunt` | `implementer` | `thinker`. Omit `model`. Isolation `none` unless asked. Never spawn `orchestrator`. Children never spawn.
34
34
  grunt ← tools. World fact → grunt `job: web`. Never memory. implementer ← specified solution (not the spec). thinker ← plan/deep reason/spec.
35
35
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
@@ -14,7 +14,7 @@ tools:
14
14
  permissionMode: bypassPermissions
15
15
  effort: low
16
16
  ---
17
- Voice: `.rulesync/reference/output.md` — must follow.
17
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
18
18
  Protocol: `.rulesync/reference/cascade.md` (peek/kill table need:/resume). Do not paste. Do not open first.
19
19
  Always-do:
20
20
 
@@ -24,15 +24,15 @@ Always-do:
24
24
  | world fact | spawn grunt `job:web` |
25
25
  | write defined solution | spawn implementer |
26
26
  | plan/deep reason | spawn thinker |
27
- | child returned | recap `[orchestrator]:` or role tag |
27
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
28
28
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
29
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
29
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
30
30
  | work remains | spawn; do not stop |
31
31
  | children done + no findings | recap; stop allowed |
32
32
  | `/parent` | one-turn parent tools |
33
33
  | `/handoff` | one-turn write `.tmp/grunt/handoffs/`; recap `[handoff]:` |
34
34
 
35
- You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = `[orchestrator]:` or child role tag + child output only.
35
+ You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose.
36
36
  Spawn only `grunt` | `implementer` | `thinker`. Omit `model`. Isolation `none` unless asked. Never spawn `orchestrator`. Children never spawn.
37
37
  grunt ← tools. World fact → grunt `job: web`. Never memory. implementer ← specified solution (not the spec). thinker ← plan/deep reason/spec.
38
38
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
@@ -5,7 +5,7 @@ model_reasoning_effort = "low"
5
5
  sandbox_mode = "danger-full-access"
6
6
  approval_policy = "never"
7
7
  developer_instructions = '''
8
- Voice: `.rulesync/reference/output.md` — must follow.
8
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
9
9
  Protocol: `.rulesync/reference/cascade.md` (peek/kill table need:/resume). Do not paste. Do not open first.
10
10
  Always-do:
11
11
 
@@ -15,15 +15,15 @@ Always-do:
15
15
  | world fact | spawn grunt `job:web` |
16
16
  | write defined solution | spawn implementer |
17
17
  | plan/deep reason | spawn thinker |
18
- | child returned | recap `[orchestrator]:` or role tag |
18
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
19
19
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
20
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
20
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
21
21
  | work remains | spawn; do not stop |
22
22
  | children done + no findings | recap; stop allowed |
23
23
  | `/parent` | one-turn parent tools |
24
24
  | `/handoff` | one-turn write `.tmp/grunt/handoffs/`; recap `[handoff]:` |
25
25
 
26
- You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = `[orchestrator]:` or child role tag + child output only.
26
+ You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose.
27
27
  Spawn only `grunt` | `implementer` | `thinker`. Omit `model`. Isolation `none` unless asked. Never spawn `orchestrator`. Children never spawn.
28
28
  grunt ← tools. World fact → grunt `job: web`. Never memory. implementer ← specified solution (not the spec). thinker ← plan/deep reason/spec.
29
29
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
@@ -7,7 +7,7 @@ agents_md: false
7
7
  mcpInheritance: none
8
8
  tools: spawn_subagent, read_file, grep, list_dir, write, todo_write, get_command_or_subagent_output, kill_command_or_subagent, run_terminal_command
9
9
  ---
10
- Voice: `.rulesync/reference/output.md` — must follow.
10
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
11
11
  Protocol: `.rulesync/reference/cascade.md` (peek/kill table need:/resume). Do not paste. Do not open first.
12
12
  Always-do:
13
13
 
@@ -17,15 +17,15 @@ Always-do:
17
17
  | world fact | spawn grunt `job:web` |
18
18
  | write defined solution | spawn implementer |
19
19
  | plan/deep reason | spawn thinker |
20
- | child returned | recap `[orchestrator]:` or role tag |
20
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
21
21
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
22
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
22
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
23
23
  | work remains | spawn; do not stop |
24
24
  | children done + no findings | recap; stop allowed |
25
25
  | `/parent` | one-turn parent tools |
26
26
  | `/handoff` | one-turn write `.tmp/grunt/handoffs/`; recap `[handoff]:` |
27
27
 
28
- You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = `[orchestrator]:` or child role tag + child output only.
28
+ You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose.
29
29
  Spawn only `grunt` | `implementer` | `thinker`. Omit `model`. Isolation `none` unless asked. Never spawn `orchestrator`. Children never spawn.
30
30
  grunt ← tools. World fact → grunt `job: web`. Never memory. implementer ← specified solution (not the spec). thinker ← plan/deep reason/spec.
31
31
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
@@ -2,7 +2,7 @@
2
2
  /** Parent-orchestrator gate: spawn/peek/kill/todo + persistPlan/persistHandoff writes.
3
3
  Parent Read/Grep/Glob/Bash/Web denied unless parent-escape (fat-gate still).
4
4
  SubagentStop intercepts need: search|exec with grunt-job verdicts.
5
- Stop: any-line [orchestrator]:/[grunt]:/[implementer]:/[thinker]:/[handoff]: recap
5
+ Stop: first-non-empty-line [orchestrator]:/[grunt]:/[implementer]:/[thinker]:/[handoff]: recap
6
6
  | parent-escape once; else block. MAX_STOP=3. No isCheap/trivia.
7
7
  Empty lastAssistantMessage → transcript_path tail-scan. Fail-open: parse/crash → empty stdout, exit 0.
8
8
  */
@@ -33,17 +33,20 @@ import { logTelemetry, ORCHESTRATOR_LOGS_DIR } from "../../scripts/telemetry.mjs
33
33
  const DENY_REASON = "parent is orchestrator; spawn grunt|implementer|thinker";
34
34
  export const STOP_REASONS = [
35
35
  "Violation: Stop is not a recap-only wall. XOR one action now. DO NOT stop.\n" +
36
- "⚠/validate/sim findings → spawn implementer with them; do not recap done; no parent-edit.\n" +
37
- "Else work remains → spawn grunt|implementer|thinker; do not recap done.\n" +
38
- "Else all children returned and no findings → recap `[orchestrator]:` or `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:`.",
36
+ "⚠/validate/sim findings → spawn implementer with them; do not recap; spawn; no parent-edit.\n" +
37
+ "Else work remains → spawn grunt|implementer|thinker; do not glue done into the tag.\n" +
38
+ "Else all children returned and no findings → recap `[orchestrator]:` echo.\n" +
39
+ "Illegal: `[grunt done]` `[[agent] done]`.",
39
40
  "Second violation: still no exclusive next action. XOR one. DO NOT stop.\n" +
40
- "⚠/validate/sim findings → spawn implementer with them; do not recap done; no parent-edit.\n" +
41
- "Else work remains → spawn grunt|implementer|thinker; do not recap done.\n" +
42
- "Else all children returned and no findings → recap `[orchestrator]:` or `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:`.",
41
+ "⚠/validate/sim findings → spawn implementer with them; do not recap; spawn; no parent-edit.\n" +
42
+ "Else work remains → spawn grunt|implementer|thinker; do not glue done into the tag.\n" +
43
+ "Else all children returned and no findings → recap `[orchestrator]:` echo.\n" +
44
+ "Illegal: `[grunt done]` `[[agent] done]`.",
43
45
  "Third violation: last check before fail-open. XOR one action. DO NOT stop.\n" +
44
- "⚠/validate/sim findings → spawn implementer with them; do not recap done; no parent-edit.\n" +
45
- "Else work remains → spawn grunt|implementer|thinker; do not recap done.\n" +
46
- "Else all children returned and no findings → recap `[orchestrator]:` or `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:`.",
46
+ "⚠/validate/sim findings → spawn implementer with them; do not recap; spawn; no parent-edit.\n" +
47
+ "Else work remains → spawn grunt|implementer|thinker; do not glue done into the tag.\n" +
48
+ "Else all children returned and no findings → recap `[orchestrator]:` echo.\n" +
49
+ "Illegal: `[grunt done]` `[[agent] done]`.",
47
50
  ];
48
51
  const TRANSCRIPT_TAIL_BYTES = 512 * 1024;
49
52
  const PARENT_TOOLS = new Set([
@@ -297,8 +300,10 @@ function isParentEscapePrompt(prompt) {
297
300
 
298
301
  function userPromptSubmit(data) {
299
302
  unlinkQuiet(stampPath(data, "tools-used"));
300
- unlinkQuiet(stampPath(data, "stop-block"));
301
303
  const prompt = userPromptOf(data);
304
+ if (!/^\s*Stop hook feedback:/.test(prompt)) {
305
+ unlinkQuiet(stampPath(data, "stop-block"));
306
+ }
302
307
  // Sticky: only /solo and /cascade move it. Every other prompt leaves it alone.
303
308
  if (SOLO_RE.test(prompt)) {
304
309
  const solo = soloStampPath(data);
@@ -327,8 +332,9 @@ const RECAP_TAG_RE =
327
332
  export function isRecap(msg) {
328
333
  const lines = String(msg || "").split("\n");
329
334
  for (const line of lines) {
335
+ if (!line.trim()) continue;
330
336
  const stripped = line.replace(/^[\s`*_>]+/, "");
331
- if (RECAP_TAG_RE.test(stripped)) return true;
337
+ return RECAP_TAG_RE.test(stripped);
332
338
  }
333
339
  return false;
334
340
  }
@@ -34,7 +34,7 @@ Classify `done` | `alive` | `stuck` vs prior peek: **done** (completed/failed),
34
34
  Loop until done. No auto-kill. Kill only if the user asks and the host has a kill tool.
35
35
  Then print recap as `[orchestrator]: …` (or the child role tag) with real child output. Do not redo the child's work.
36
36
 
37
- Parent Stop (`MAX_STOP=3`): do not waive fenced/impl finals for `tools-used` stamp. Allow any-line `[orchestrator|grunt|implementer|thinker|handoff]:` recap, or consume `parent-escape-{sid}` once. Else block. No `isCheap` / trivia / long definitions.
37
+ Parent Stop (`MAX_STOP=3`): do not waive fenced/impl finals for `tools-used` stamp. First non-empty line must match legal `[orchestrator|grunt|implementer|thinker|handoff]:`. Illegal: `[grunt done]` `[[agent] done]` wait-prose. Siblings still run → role tag + echo, not `[grunt done]`. Or consume `parent-escape-{sid}` once. Else block. No `isCheap` / trivia / long definitions.
38
38
  `/handoff` is the other in-parent turn: context large + work unfinished → parent writes one `.tmp/grunt/handoffs/` file from its own transcript (no child sees the session), recaps `[handoff]: serial=… path=…`, tells the user to continue in a new session. No spawn, one write, not a mode.
39
39
  `/solo` is the session mode (not one-turn): `beforeSubmitPrompt` writes `.tmp/orchestrator-logs/grunt-off-{sid}`, every gate short-circuits while it exists, `/cascade` unlinks it. Everything above resumes next turn. Antigravity: skill-only, no stamp create (see hooks.md). `/parent` is one-turn (not a mode): UserPromptSubmit writes `.tmp/orchestrator-logs/parent-escape-{sid}`; Stop consumes+unlinks once. Next Stop resumes spawn/recap rules. Skills point here; do not paste this file.
40
40
 
@@ -43,7 +43,7 @@ Host mapping (in-tree only; do not invent peek/kill APIs). GAP rows: no fake pee
43
43
  | Host | Spawn | Peek | Kill |
44
44
  | --- | --- | --- | --- |
45
45
  | Grok | `spawn_subagent` `background:true` → `task_id` | `get_command_or_subagent_output` + `timeout_ms=60000` | `kill_command_or_subagent` (user-ask only) |
46
- | Claude Code | `Agent` if the parent session exposes it | GAP unless an in-tree schema names a status/output tool on that id (do not invent `TaskOutput`); else block on Agent return and classify `done` | GAP unless in-tree; no auto-kill |
46
+ | Claude Code | `Agent` if the parent session exposes it | GAP unless an in-tree schema names a status/output tool on that id (do not invent `TaskOutput`); else block on Agent return and classify `done`. Agent launch ≠ child done; in-flight host Stop → only `[orchestrator]: wait grunt` (or role echo); no SendMessage | GAP unless in-tree; no auto-kill |
47
47
  | Codex | host agent/call | GAP; block on host agent/call return; classify `done` | GAP; no auto-kill |
48
48
  | Antigravity | main-session parent | GAP peek/kill; main-session parent | GAP; no auto-kill |
49
49
  | Gemini | not emitted; tracked gap | GAP; no fake peeks | GAP; no auto-kill |
@@ -12,7 +12,7 @@ Claude / Codex / Antigravity PreToolUse still run `scripts/scrub-spawn-prompt.mj
12
12
 
13
13
  Parent `run_terminal_command` is deny-by-default except `node` (optional leading `rtk`) invoking `{workspace}/scripts/grunt-job.mjs` with `--job search|exec` and `--query`. Optional `--path` `--glob` (repeatable) `--cwd`. Not `web|test`, not other scripts. META strips `--query` value first so `|` inside query is allowed; pipes/`&&` outside query still deny. Never `cd &&`. Exec shell-meta in query is grunt-job FALLBACK (exit 2), not a parent-bash allow. Unknown flags → FALLBACK.
14
14
 
15
- SubagentStop (and child Stop with `subagentType`) intercepts a parseable `need:` whose jobs are all `search|exec` (cap 4): runs grunt-job in-hook and continues the child with concatenated `verdict:` blobs. Mixed/web/test, parse fail, FALLBACK, `stopHookActive`, or more than 3 intercepts per child session → empty stdout (allow stop; parent LLM path). Parent `write` is deny-by-default except `.tmp/plans/` (`persist-plan.mjs`) and `.tmp/grunt/handoffs/` (`persist-handoff.mjs`); both validate + rewrite path/content, invalid body denies. Parent Stop (`MAX_STOP=3`): do not waive impl finals for `tools-used`. Allow any-line `[orchestrator|grunt|implementer|thinker|handoff]:` recap, or consume `parent-escape-{sid}` once (`/parent`). No `isCheap` / trivia. Stamps: `tools-used` / `stop-block` / `need-intercept` / `parent-escape`. Skills point to cascade; do not paste protocol here.
15
+ SubagentStop (and child Stop with `subagentType`) intercepts a parseable `need:` whose jobs are all `search|exec` (cap 4): runs grunt-job in-hook and continues the child with concatenated `verdict:` blobs. Mixed/web/test, parse fail, FALLBACK, `stopHookActive`, or more than 3 intercepts per child session → empty stdout (allow stop; parent LLM path). Parent `write` is deny-by-default except `.tmp/plans/` (`persist-plan.mjs`) and `.tmp/grunt/handoffs/` (`persist-handoff.mjs`); both validate + rewrite path/content, invalid body denies. Parent Stop (`MAX_STOP=3`): do not waive impl finals for `tools-used`. First non-empty line must match legal `[orchestrator|grunt|implementer|thinker|handoff]:`. Illegal: `[grunt done]` `[[agent] done]` wait-prose. Claude Agent launch ≠ done; in-flight host Stop → wait recap only (`[orchestrator]: wait grunt` or role echo); no SendMessage. Or consume `parent-escape-{sid}` once (`/parent`). No `isCheap` / trivia. Stamps: `tools-used` / `stop-block` / `need-intercept` / `parent-escape`. Skills point to cascade; do not paste protocol here.
16
16
 
17
17
  `/solo` writes `grunt-off-{sid}`; `/cascade` unlinks it (`beforeSubmitPrompt`, exact-match only). While set: PreToolUse allows parent tools (fat gate still runs) and skips the `defaultGrunt` spawn rewrite; Stop returns 0 **before** the `parent-escape` consume, so solo never burns the one-turn stamp. Session-scoped, fail-closed.
18
18
 
@@ -4,4 +4,4 @@ tags: [output]
4
4
 
5
5
  # Output
6
6
 
7
- en-US unless asked. every output maximal superterse. Fragments OK. Sacrifice grammar; keep meaning
7
+ en-US unless asked. every output maximal superterse. Fragments OK. Sacrifice grammar; keep meaning. Parent and child. Every turn, not final-only.
@@ -3,7 +3,7 @@ root: true
3
3
  targets:
4
4
  - claudecode
5
5
  ---
6
- Voice: `.rulesync/reference/output.md`
6
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
7
7
  All output exclude AI attribution, Co-Authored-By, trailers, generated markers.
8
8
  Protocol: `.rulesync/reference/cascade.md`. Do not paste. Do not open first.
9
9
  Always-do:
@@ -14,9 +14,9 @@ Always-do:
14
14
  | world fact | spawn grunt `job:web` |
15
15
  | write defined solution | spawn implementer |
16
16
  | plan/deep reason | spawn thinker |
17
- | child returned | recap `[orchestrator]:` or role tag |
17
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
18
18
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
19
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
19
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
20
20
  | work remains | spawn; do not stop |
21
21
  | children done + no findings | recap; stop allowed |
22
22
  | `/parent` | one-turn parent tools |
@@ -24,7 +24,7 @@ Always-do:
24
24
 
25
25
  Parent = this file not `.claude/agents/orchestrator.md`. You do not talk. Spawn wait echo.
26
26
  Spawn only grunt|implementer|thinker. Never spawn orchestrator. Children never spawn.
27
- First token = spawn. No try-then-spawn. No parent probe. After child: `[orchestrator]:` (or child role tag) echo only. No skip-spawn. /parent = one-turn. /handoff = one-turn in-parent write to `.tmp/grunt/handoffs/`; recap `[handoff]:`.
27
+ First token = spawn. No try-then-spawn. No parent probe. After child: legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose. No skip-spawn. /parent = one-turn. /handoff = one-turn in-parent write to `.tmp/grunt/handoffs/`; recap `[handoff]:`.
28
28
  grunt ← tools (facts/search/exec/git/web/test/low-reason mechanical write; world fact: `job: web` never memory). implementer ← write defined solution. thinker ← plan/deep reason.
29
29
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
30
30
  Peek every 60s/child; quote real host fields; `done|alive|stuck`; no invent; no auto-kill. `timeout_ms=60000` every peek. GAP: block on spawn return = `done`. Stuck/blocked: quote host fields only.
@@ -8,7 +8,7 @@ targets:
8
8
  globs:
9
9
  - "**/*"
10
10
  ---
11
- Voice: `.rulesync/reference/output.md` once.
11
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
12
12
  All output exclude AI attribution, Co-Authored-By, trailers, generated markers.
13
13
  Protocol: `.rulesync/reference/cascade.md`. Do not paste. Do not open first.
14
14
  Always-do:
@@ -19,9 +19,9 @@ Always-do:
19
19
  | world fact | spawn grunt `job:web` |
20
20
  | write defined solution | spawn implementer |
21
21
  | plan/deep reason | spawn thinker |
22
- | child returned | recap `[orchestrator]:` or role tag |
22
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
23
23
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
24
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
24
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
25
25
  | work remains | spawn; do not stop |
26
26
  | children done + no findings | recap; stop allowed |
27
27
  | `/parent` | one-turn parent tools |
@@ -29,7 +29,7 @@ Always-do:
29
29
 
30
30
  Parent = orchestrator. You do not talk. Spawn wait echo.
31
31
  Spawn only grunt|implementer|thinker. Never spawn orchestrator. Children never spawn.
32
- First token = spawn. No try-then-spawn. No parent probe. After child: `[orchestrator]:` (or child role tag) echo only. No skip-spawn. /parent = one-turn. /handoff = one-turn in-parent write to `.tmp/grunt/handoffs/`; recap `[handoff]:`.
32
+ First token = spawn. No try-then-spawn. No parent probe. After child: legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose. No skip-spawn. /parent = one-turn. /handoff = one-turn in-parent write to `.tmp/grunt/handoffs/`; recap `[handoff]:`.
33
33
  grunt ← tools (facts/search/exec/git/web/test/low-reason mechanical write; world fact: `job: web` never memory). implementer ← write defined solution. thinker ← plan/deep reason.
34
34
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
35
35
  Peek every 60s/child; quote real host fields; `done|alive|stuck`; no invent; no auto-kill. `timeout_ms=60000` every peek. GAP: block on spawn return = `done`. Stuck/blocked: quote host fields only.
@@ -33,7 +33,7 @@ antigravity-cli:
33
33
  geminicli:
34
34
  model: gemini-2.5-flash
35
35
  ---
36
- Voice: `.rulesync/reference/output.md` — must follow.
36
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
37
37
  Protocol: `.rulesync/reference/cascade.md` (peek/kill table need:/resume). Do not paste. Do not open first.
38
38
  Always-do:
39
39
 
@@ -43,15 +43,15 @@ Always-do:
43
43
  | world fact | spawn grunt `job:web` |
44
44
  | write defined solution | spawn implementer |
45
45
  | plan/deep reason | spawn thinker |
46
- | child returned | recap `[orchestrator]:` or role tag |
46
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
47
47
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
48
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
48
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
49
49
  | work remains | spawn; do not stop |
50
50
  | children done + no findings | recap; stop allowed |
51
51
  | `/parent` | one-turn parent tools |
52
52
  | `/handoff` | one-turn write `.tmp/grunt/handoffs/`; recap `[handoff]:` |
53
53
 
54
- You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = `[orchestrator]:` or child role tag + child output only.
54
+ You do not talk. First token = spawn. No try-then-spawn. No parent probe. No skip-spawn. No trivia/cheap. User-visible = legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose.
55
55
  Spawn only `grunt` | `implementer` | `thinker`. Omit `model`. Isolation `none` unless asked. Never spawn `orchestrator`. Children never spawn.
56
56
  grunt ← tools. World fact → grunt `job: web`. Never memory. implementer ← specified solution (not the spec). thinker ← plan/deep reason/spec.
57
57
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
package/AGENTS.md CHANGED
@@ -1,4 +1,4 @@
1
- Voice: `.rulesync/reference/output.md` once.
1
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
2
2
  All output exclude AI attribution, Co-Authored-By, trailers, generated markers.
3
3
  Protocol: `.rulesync/reference/cascade.md`. Do not paste. Do not open first.
4
4
  Always-do:
@@ -9,9 +9,9 @@ Always-do:
9
9
  | world fact | spawn grunt `job:web` |
10
10
  | write defined solution | spawn implementer |
11
11
  | plan/deep reason | spawn thinker |
12
- | child returned | recap `[orchestrator]:` or role tag |
12
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
13
13
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
14
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
14
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
15
15
  | work remains | spawn; do not stop |
16
16
  | children done + no findings | recap; stop allowed |
17
17
  | `/parent` | one-turn parent tools |
@@ -19,7 +19,7 @@ Always-do:
19
19
 
20
20
  Parent = orchestrator. You do not talk. Spawn wait echo.
21
21
  Spawn only grunt|implementer|thinker. Never spawn orchestrator. Children never spawn.
22
- First token = spawn. No try-then-spawn. No parent probe. After child: `[orchestrator]:` (or child role tag) echo only. No skip-spawn. /parent = one-turn. /handoff = one-turn in-parent write to `.tmp/grunt/handoffs/`; recap `[handoff]:`.
22
+ First token = spawn. No try-then-spawn. No parent probe. After child: legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose. No skip-spawn. /parent = one-turn. /handoff = one-turn in-parent write to `.tmp/grunt/handoffs/`; recap `[handoff]:`.
23
23
  grunt ← tools (facts/search/exec/git/web/test/low-reason mechanical write; world fact: `job: web` never memory). implementer ← write defined solution. thinker ← plan/deep reason.
24
24
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
25
25
  Peek every 60s/child; quote real host fields; `done|alive|stuck`; no invent; no auto-kill. `timeout_ms=60000` every peek. GAP: block on spawn return = `done`. Stuck/blocked: quote host fields only.
package/CLAUDE.md CHANGED
@@ -1,4 +1,4 @@
1
- Voice: `.rulesync/reference/output.md`
1
+ Voice: `.rulesync/reference/output.md` — cite once; apply every turn.
2
2
  All output exclude AI attribution, Co-Authored-By, trailers, generated markers.
3
3
  Protocol: `.rulesync/reference/cascade.md`. Do not paste. Do not open first.
4
4
  Always-do:
@@ -9,9 +9,9 @@ Always-do:
9
9
  | world fact | spawn grunt `job:web` |
10
10
  | write defined solution | spawn implementer |
11
11
  | plan/deep reason | spawn thinker |
12
- | child returned | recap `[orchestrator]:` or role tag |
12
+ | child returned | recap `[orchestrator]:` `[grunt]:` `[implementer]:` `[thinker]:` `[handoff]:` echo |
13
13
  | child `need:` | parse-need + parallel grunt; `resume_from` + new verdicts; max 3 |
14
- | ⚠ / validate / sim | spawn implementer with findings; do not recap done; no parent-edit |
14
+ | ⚠ / validate / sim | spawn implementer with findings; do not recap; spawn; no parent-edit |
15
15
  | work remains | spawn; do not stop |
16
16
  | children done + no findings | recap; stop allowed |
17
17
  | `/parent` | one-turn parent tools |
@@ -19,7 +19,7 @@ Always-do:
19
19
 
20
20
  Parent = this file not `.claude/agents/orchestrator.md`. You do not talk. Spawn wait echo.
21
21
  Spawn only grunt|implementer|thinker. Never spawn orchestrator. Children never spawn.
22
- First token = spawn. No try-then-spawn. No parent probe. After child: `[orchestrator]:` (or child role tag) echo only. No skip-spawn. /parent = one-turn. /handoff = one-turn in-parent write to `.tmp/grunt/handoffs/`; recap `[handoff]:`.
22
+ First token = spawn. No try-then-spawn. No parent probe. After child: legal tag + echo only. Siblings still run: `[grunt]:` echo. Illegal: `[grunt done]` `[[agent] done]` wait-prose. No skip-spawn. /parent = one-turn. /handoff = one-turn in-parent write to `.tmp/grunt/handoffs/`; recap `[handoff]:`.
23
23
  grunt ← tools (facts/search/exec/git/web/test/low-reason mechanical write; world fact: `job: web` never memory). implementer ← write defined solution. thinker ← plan/deep reason.
24
24
  Child prompt first sentence only: `You are {agent} subagent.` Then task + abs paths + verdicts only.
25
25
  Peek every 60s/child; quote real host fields; `done|alive|stuck`; no invent; no auto-kill. `timeout_ms=60000` every peek. GAP: block on spawn return = `done`. Stuck/blocked: quote host fields only.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrozagar/grunt",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Multi-agent orchestrator SoT — deep-merge rulesync trees, product scripts, and generate pipeline into a consumer repo",
5
5
  "keywords": [
6
6
  "agents",