pi-crew 0.9.68 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/CHANGELOG.md +124 -0
  2. package/agents/analyst.md +1 -1
  3. package/agents/cold-verifier.md +3 -1
  4. package/agents/critic.md +1 -1
  5. package/agents/executor.md +1 -1
  6. package/agents/explorer.md +1 -1
  7. package/agents/planner.md +1 -1
  8. package/agents/reviewer.md +1 -1
  9. package/agents/security-reviewer.md +1 -1
  10. package/agents/test-engineer.md +1 -1
  11. package/agents/verifier.md +1 -1
  12. package/agents/writer.md +1 -1
  13. package/dist/index.mjs +65838 -60331
  14. package/docs/README.md +2 -0
  15. package/docs/actions-reference.md +31 -0
  16. package/docs/commands-reference.md +17 -6
  17. package/docs/resource-formats.md +13 -0
  18. package/package.json +4 -2
  19. package/schema.json +15 -1
  20. package/scripts/resource-sampler.mjs +36 -2
  21. package/skills/requirements-to-task-packet/SKILL.md +26 -0
  22. package/skills/widget-rendering/SKILL.md +7 -7
  23. package/src/agents/agent-config.ts +2 -1
  24. package/src/agents/discover-agents.ts +23 -14
  25. package/src/config/config-merge.ts +183 -0
  26. package/src/config/config-validation.ts +681 -0
  27. package/src/config/config.ts +22 -864
  28. package/src/config/defaults.ts +35 -1
  29. package/src/config/drift-detector.ts +1 -1
  30. package/src/config/env-vars.ts +691 -0
  31. package/src/config/role-tools.ts +8 -8
  32. package/src/config/sanitize-project-config.ts +172 -0
  33. package/src/config/types.ts +30 -0
  34. package/src/extension/async-notifier.ts +25 -2
  35. package/src/extension/crew-vibes/config.ts +2 -1
  36. package/src/extension/plan-orchestrate.ts +132 -0
  37. package/src/extension/registration/commands/dashboard.ts +158 -0
  38. package/src/extension/registration/commands/index.ts +35 -0
  39. package/src/extension/registration/commands/manage.ts +303 -0
  40. package/src/extension/registration/commands/run.ts +214 -0
  41. package/src/extension/registration/commands/shared.ts +631 -0
  42. package/src/extension/registration/commands/status.ts +60 -0
  43. package/src/extension/registration/commands.ts +13 -1224
  44. package/src/extension/registration/lifecycle-handlers.ts +126 -15
  45. package/src/extension/registration/subagent-tools.ts +218 -9
  46. package/src/extension/rpc-hmac.ts +5 -3
  47. package/src/extension/team-tool/api/heartbeat.ts +47 -10
  48. package/src/extension/team-tool/api/plan-approval.ts +9 -0
  49. package/src/extension/team-tool/api/task-claims.ts +109 -40
  50. package/src/extension/team-tool/cancel.ts +84 -50
  51. package/src/extension/team-tool/dispatch/index.ts +1 -0
  52. package/src/extension/team-tool/dispatch/run.ts +4 -1
  53. package/src/extension/team-tool/doctor.ts +103 -1
  54. package/src/extension/team-tool/orchestrate.ts +66 -1
  55. package/src/extension/team-tool/plans.ts +192 -0
  56. package/src/extension/team-tool/respond.ts +197 -65
  57. package/src/extension/team-tool/run-deadline.ts +16 -1
  58. package/src/extension/team-tool/run-intent.ts +63 -0
  59. package/src/extension/team-tool/run.ts +48 -18
  60. package/src/extension/team-tool/status.ts +84 -26
  61. package/src/extension/team-tool.ts +11 -2
  62. package/src/hooks/registry.ts +1 -6
  63. package/src/i18n.ts +9 -0
  64. package/src/prompt/prompt-runtime.ts +521 -2
  65. package/src/prompt/worker-events-channel.ts +173 -0
  66. package/src/runtime/README.md +8 -8
  67. package/src/runtime/async-runner.ts +7 -3
  68. package/src/runtime/background-runner.ts +42 -14
  69. package/src/runtime/broker/broker-issuer.ts +9 -2
  70. package/src/runtime/broker/crew-broker-tokens.ts +43 -6
  71. package/src/runtime/broker/crew-broker.ts +838 -10
  72. package/src/runtime/broker/wait-status-cache.ts +157 -0
  73. package/src/runtime/budget-enforcement.ts +281 -0
  74. package/src/runtime/child-pi/child-pi-spawn.ts +60 -14
  75. package/src/runtime/child-pi/child-pi-timers.ts +324 -0
  76. package/src/runtime/child-pi/child-pi.ts +97 -201
  77. package/src/runtime/child-pi/mock-fixtures.ts +16 -2
  78. package/src/runtime/crew-agent-records.ts +259 -14
  79. package/src/runtime/delegate-spawn.ts +148 -0
  80. package/src/runtime/deterministic-ast.ts +2 -1
  81. package/src/runtime/dispatch-batch.ts +945 -0
  82. package/src/runtime/finalize-run.ts +557 -0
  83. package/src/runtime/goal-workflow/adaptive-plan.ts +87 -13
  84. package/src/runtime/goal-workflow/dynamic-workflow-runner.ts +3 -2
  85. package/src/runtime/goal-workflow/goal-state-store.ts +1 -1
  86. package/src/runtime/group-join.ts +11 -125
  87. package/src/runtime/live-session/live-session-runtime.ts +26 -1
  88. package/src/runtime/merge-gate.ts +7 -1
  89. package/src/runtime/merge-loop.ts +130 -0
  90. package/src/runtime/model/model-budget-summary.ts +53 -0
  91. package/src/runtime/model/model-fallback.ts +32 -2
  92. package/src/runtime/model/pi-args.ts +10 -0
  93. package/src/runtime/model/provider-extensions.ts +10 -0
  94. package/src/runtime/orphan-worker-registry.ts +1 -1
  95. package/src/runtime/output/output-validator.ts +45 -0
  96. package/src/runtime/parent-guard.ts +3 -1
  97. package/src/runtime/peer-dep.ts +2 -1
  98. package/src/runtime/per-write-validator.ts +0 -5
  99. package/src/runtime/pi-spawn.ts +61 -15
  100. package/src/runtime/plan-approval.ts +125 -0
  101. package/src/runtime/plan-replan.ts +151 -0
  102. package/src/runtime/recovery/checkpoint.ts +0 -18
  103. package/src/runtime/recovery/crash-recovery.ts +95 -46
  104. package/src/runtime/scheduler-context.ts +98 -0
  105. package/src/runtime/scheduling/coalesce-tasks.ts +5 -0
  106. package/src/runtime/scheduling/global-worker-cap.ts +2 -1
  107. package/src/runtime/scheduling/nested-slots.ts +70 -0
  108. package/src/runtime/scheduling/run-coalesced-task-group.ts +64 -13
  109. package/src/runtime/scheduling/task-graph-scheduler.ts +0 -10
  110. package/src/runtime/settings-store.ts +219 -0
  111. package/src/runtime/spawn-policy.ts +217 -0
  112. package/src/runtime/stale-reconciler.ts +87 -6
  113. package/src/runtime/subagent-manager.ts +25 -1
  114. package/src/runtime/task-output-context.ts +230 -9
  115. package/src/runtime/task-packet.ts +23 -1
  116. package/src/runtime/task-runner/child-executor.ts +106 -7
  117. package/src/runtime/task-runner/post-execution.ts +125 -1
  118. package/src/runtime/task-runner/pre-execution.ts +39 -1
  119. package/src/runtime/task-runner/prompt-builder.ts +51 -1
  120. package/src/runtime/task-runner/retrieval-orchestrator.ts +72 -18
  121. package/src/runtime/task-runner/spec-evidence.ts +403 -0
  122. package/src/runtime/task-runner/state-helpers.ts +26 -24
  123. package/src/runtime/task-runner.ts +11 -0
  124. package/src/runtime/team-runner.ts +129 -1671
  125. package/src/runtime/verification/spec-sandbox.ts +255 -0
  126. package/src/runtime/verification/verification-gates.ts +3 -2
  127. package/src/runtime/verification/verification-worktree.ts +2 -1
  128. package/src/runtime/workflow-phase-advance.ts +100 -0
  129. package/src/runtime/workspace-tree.ts +9 -0
  130. package/src/schema/config-schema.ts +65 -25
  131. package/src/schema/sensitive-config-paths.ts +64 -0
  132. package/src/schema/team-tool-schema.ts +13 -3
  133. package/src/state/README.md +4 -10
  134. package/src/state/atomic-write.ts +20 -3
  135. package/src/state/contracts.ts +38 -0
  136. package/src/state/coordination/mailbox.ts +12 -2
  137. package/src/state/event-log/cursor.ts +223 -0
  138. package/src/state/event-log/event-log-rotation.ts +12 -4
  139. package/src/state/event-log/event-log.ts +152 -369
  140. package/src/state/event-log/sequence-cache.ts +373 -0
  141. package/src/state/event-log/worker-atomic-writer.ts +2 -1
  142. package/src/state/stores/active-run-registry.ts +3 -2
  143. package/src/state/stores/manifest-io.ts +237 -0
  144. package/src/state/stores/ownership-map.ts +162 -0
  145. package/src/state/stores/plan-store.ts +241 -0
  146. package/src/state/stores/run-cache.ts +0 -90
  147. package/src/state/stores/spec-store.ts +189 -0
  148. package/src/state/stores/state-store.ts +66 -229
  149. package/src/state/types.ts +197 -0
  150. package/src/ui/dashboard-panes/plan-pane.ts +136 -0
  151. package/src/ui/dashboard-panes/progress-pane.ts +6 -0
  152. package/src/ui/dashboard-panes/transcript-pane.ts +31 -0
  153. package/src/ui/heartbeat-aggregator.ts +9 -1
  154. package/src/ui/keybinding-map.ts +54 -13
  155. package/src/ui/powerbar-publisher.ts +52 -1
  156. package/src/ui/run-dashboard.ts +31 -5
  157. package/src/ui/run-snapshot-cache.ts +57 -30
  158. package/src/ui/snapshot-types.ts +6 -1
  159. package/src/ui/widget/widget-renderer.ts +9 -1
  160. package/src/utils/file-coalescer.ts +0 -4
  161. package/src/utils/fs-errno.ts +66 -0
  162. package/src/utils/fs-watch.ts +1 -1
  163. package/src/utils/internal-error.ts +3 -1
  164. package/src/utils/paths.ts +11 -3
  165. package/src/utils/task-name-generator.ts +1 -8
  166. package/src/workflows/discover-workflows.ts +19 -2
  167. package/src/workflows/validate-workflow.ts +7 -1
  168. package/src/workflows/workflow-config.ts +10 -0
  169. package/src/workflows/workflow-serializer.ts +3 -0
  170. package/src/worktree/worktree-manager.ts +22 -0
  171. package/src/agents/agent-search.ts +0 -98
  172. package/src/benchmark/benchmark-runner.ts +0 -313
  173. package/src/benchmark/feedback-loop.ts +0 -73
  174. package/src/config/resilient-parser.ts +0 -117
  175. package/src/extension/crew-vibes/cat-frames.ts +0 -18
  176. package/src/extension/result-watcher.ts +0 -139
  177. package/src/observability/exporters/prometheus-exporter.ts +0 -54
  178. package/src/observability/metric-retention.ts +0 -64
  179. package/src/runtime/compaction/compaction-summary.ts +0 -278
  180. package/src/runtime/errors/crew-errors.ts +0 -162
  181. package/src/runtime/live-session/intercom-bridge.ts +0 -187
  182. package/src/runtime/loop-gates.ts +0 -128
  183. package/src/runtime/metric-parser.ts +0 -36
  184. package/src/runtime/output/stream-preview.ts +0 -184
  185. package/src/runtime/output/tool-progress.ts +0 -278
  186. package/src/runtime/phase-tracker.ts +0 -385
  187. package/src/runtime/pipeline-runner.ts +0 -523
  188. package/src/runtime/process/process-lifecycle.ts +0 -491
  189. package/src/runtime/recovery/retry-runner.ts +0 -330
  190. package/src/runtime/run-drift.ts +0 -219
  191. package/src/runtime/task-quality.ts +0 -199
  192. package/src/runtime/task-runner/run-projection.ts +0 -128
  193. package/src/runtime/verification/post-checks.ts +0 -142
  194. package/src/state/coordination/schedule.ts +0 -166
  195. package/src/state/event-log/jsonl-writer.ts +0 -115
  196. package/src/state/hook-instinct-bridge.ts +0 -94
  197. package/src/state/hook-integrations.ts +0 -51
  198. package/src/state/session-state-map.ts +0 -51
  199. package/src/state/stores/blob-store.ts +0 -308
  200. package/src/state/stores/instinct-store.ts +0 -275
  201. package/src/state/stores/observation-store.ts +0 -176
  202. package/src/state/tiered-eval.ts +0 -480
  203. package/src/state/types-eval.ts +0 -58
  204. package/src/tools/safe-bash-extension.ts +0 -54
  205. package/src/tools/safe-bash.ts +0 -505
  206. package/src/ui/agent-management-overlay.ts +0 -160
  207. package/src/ui/crew-footer.ts +0 -102
  208. package/src/ui/crew-select-list.ts +0 -114
  209. package/src/ui/dashboard-panes/capability-pane.ts +0 -77
  210. package/src/ui/transcript-entries.ts +0 -256
  211. package/src/utils/conflict-detect.ts +0 -721
  212. package/src/utils/fingerprint.ts +0 -180
  213. package/src/utils/gh-protocol.ts +0 -556
  214. package/src/utils/project-detector.ts +0 -160
  215. package/src/utils/sse-parser.ts +0 -131
  216. package/src/workflows/cost-estimator.ts +0 -34
  217. package/src/workflows/intermediate-store.ts +0 -166
package/CHANGELOG.md CHANGED
@@ -2,6 +2,130 @@
2
2
 
3
3
  > **Note:** `atomic-write-v2.ts` / `AtomicWriter` mentioned in historical entries below was consolidated into `atomic-write.ts` as of v0.9.42. This changelog is preserved as historical record — the migration was completed (the v2 class was never adopted; v1 won on simplicity + symlink-safety + link+unlink atomicity). See `docs/migration/atomic-write-v2-migration.md` for the decision rationale.
4
4
 
5
+ ## [0.10.1] — subagent v2: governed delegation, plan objects, spec system, transparency (2026-08-20)
6
+
7
+ The full subagent-v2 effort (design `docs/design/subagent-v2-design.md`, plan
8
+ `docs/design/subagent-v2-implementation-plan.md`) shipped as ONE release.
9
+ Trains T1-T5 merged as internal phases (PRs #47-#51); batteries B1-B5 in
10
+ `docs/real-test/reports/`. ADRs: governed-nesting, plan-object,
11
+ waiting-producer-ask, spec-system (+ round-1 errata).
12
+
13
+ ### T1 — waiting/ask producer + session surface
14
+ - Ask tool (worker→leader blocking questions; parked `waiting` tasks,
15
+ structured events `ask.requested/answered/timedout`), follow-up
16
+ notifications, session-ownership map.
17
+
18
+ ### T2 — plan object (ADR-4)
19
+ - PlanRecord revisions (append-only, stable item ids, carried linkage),
20
+ `plans approve/reject` dual-write, scheduler linkage, adaptive re-plan
21
+ (revision switch, dropped-item soft-cancel advisory).
22
+
23
+ ### T3 — governed nesting (ADR-5)
24
+ - delegate tool for executor-class roles at depth 1 (dormant flag;
25
+ `nesting.enabled` USER-only sensitive), nested-slot budget (fail-fast,
26
+ max(1,⌊sem/2⌋)), depth-capped broker credentials (grandchild tokens
27
+ subId-scoped + shadow task records — unbounded chains terminate),
28
+ read-only grandchild roles, usage roll-up, fenced results via mailbox.
29
+
30
+ ### T4 — spec system (ADR-6 + erratum §11)
31
+ - SpecRecord store: workspace `state/specs/` (generated-only) + USER store
32
+ `~/.pi/agent/specs/` with DIGEST-BOUND trust sidecar — workers can never
33
+ mint re-executable specs (provenance v2; content-swap + TOCTOU closed).
34
+ - SPEC-EVIDENCE footer contract + mechanical coverage gate (default:
35
+ `unverified` badge on gaps, never blocks); strict mode = coverage AND
36
+ machine-check in a hardened sandbox (`unshare -rn`, ulimit, env scrub,
37
+ digest-only outcomes, fail-closed everywhere); verifier-role reject-start.
38
+ - Freeze at dispatch: snapshots immutable; later spec edits never rewrite
39
+ what a running task was held to. Mint CLI: `scripts/spec-import.mjs`.
40
+
41
+ ### T5 — P2 transparency + hygiene
42
+ - R7 Plan UI (`PI_CREW_PLAN_UI=1`): plans snapshot slice, dashboard pane 7
43
+ (tree, progress, depth badges, approval keys, revision diff), powerbar
44
+ plan phases.
45
+ - R8 model-routing transparency: pre-run budget summary (chain +
46
+ worst-case spawns/task), deduped unvalidated-passthrough warnings,
47
+ per-attempt models in the output pane.
48
+ - R9 worker self-reporting channel: bounded `worker.*` append channel
49
+ (schema tag, sliding-window rate limit, FIFO cap, partial-line
50
+ quarantine); `PI_CREW_EVENTS_PATH` unconditional (read-only roles too).
51
+ - R10 docs hygiene (phantom commands removed, real ones documented,
52
+ widget TTL corrected).
53
+
54
+ ### Fixes surfaced by the batteries
55
+ - bug-029: symlinked-TMPDIR repo-root escape (macOS `/var`↔`/private/var`)
56
+ — deterministic `getCacheStats` CI failures; canonicalized boundaries.
57
+ - dwf-setresult determinism (ambient `PI_CREW_TRUST_PROJECT_DWF` leak).
58
+ - B2/B3 live catches: hang-class timeout group-kill gaps, delegate
59
+ deadline precedence, double-save clobber on plan revision switch.
60
+
61
+ **Full suites at release tree: 6977 unit + 188 integration, 0 fail; CI 3-OS green on every train PR.**
62
+
63
+ ## [0.10.0] — maintainability refactor: full remediation + reliability (2026-08-16)
64
+
65
+ Branch `refactor/maintainability`: 16-round audit → 5-phase refactor →
66
+ finding-by-finding sweep → full remediation of every open finding (Waves
67
+ 1A/1B/2A/2B/B/C). Full execution log with commit map:
68
+ `docs/refactor-plan.md`. Audit inventory: `docs/refactor-plan.review.md`.
69
+
70
+ ### Security (config tiering)
71
+ - Schema-driven project-config sanitize: `sensitive:true` drop-list +
72
+ CONDITIONAL drops — project config may only TIGHTEN (guards `off`/
73
+ loosening dropped). goalWrap subtree + magicKeywords user-only.
74
+ ADR: `docs/decisions/2026-08-15-schema-driven-sanitize.md`.
75
+ - P1 fix: project-tier `.pi/crew-settings.json` no longer bypasses sanitize
76
+ (tiers API; legacy flat fns JSDoc'd user-tier-only).
77
+ - scheduledJobs user-tier opt-in gate (both `schedulingEnabled:true` AND
78
+ `allowProjectScheduledJobs:true` required for project jobs).
79
+
80
+ ### Performance
81
+ - R10-1 O(B²) batch closeout → per-run `ResultArtifactReadCache`
82
+ (bench b10: −50% fs reads, byte-identical outputs; b11 extends to
83
+ dependency-context path).
84
+ - R10-2 path-scoped flush; R10-3 broker mtime-gated manifest parse cache
85
+ (N waiters ≤2 parses); R10-4 sync/async snapshot parity; R10-5
86
+ child-executor fs batching (≤250ms documented window).
87
+
88
+ ### Hygiene / dead code
89
+ - FIFO caps on all unbounded collections (10 sites); named+removed abort
90
+ listeners; dead GroupJoinManager + 7 dead fns removed; security telemetry
91
+ wired into doctor; parser/schema bounds aligned (schema wins).
92
+
93
+ ### Runner reliability (bug-026)
94
+ - Sub-A: stderr-only result artifacts now FAIL the task
95
+ (`empty-or-stderr-only-result`) instead of persisting noise as completed.
96
+ - Sub-B: fatal-fs errno classifier — ENOSPC/EDQUOT/EMFILE surfaced as
97
+ `failed (disk full)`-style failureCause in task/run/status/doctor.
98
+ - Sub-C: terminal runs evicted from in-memory preloaded manifests +
99
+ heartbeat aggregator terminal-task defense (kills phantom dead-worker
100
+ alerts on long-lived sessions).
101
+
102
+ ### Runner reliability (bug-027 / bug-028 — post-Wave-D, found via real-test + CI)
103
+ - bug-027 (`f6e605ef`): `finalizeRun` heals stale non-terminal in-memory
104
+ snapshots from disk (in-flight guard) — a run whose disk manifest is
105
+ terminal but whose preloaded snapshot says "running" no longer blocks
106
+ finalize with a misleading in-flight error.
107
+ - bug-028 (`e9586aca`): fan-out stale-fallback resurrection —
108
+ `persistSingleTaskUpdate` previously wrote the dispatch-time
109
+ `fallbackTasks` array (the O(1) "F4" shortcut), which could resurrect
110
+ disk-terminal sibling tasks back to "running". It now always re-reads
111
+ the latest manifest from disk inside the run lock. Deterministic
112
+ regression test:
113
+ `test/unit/runtime/task-runner/state-helpers-bug028-stale-fallback.test.ts`
114
+ (verified fail-before-fix via git stash).
115
+
116
+ ### Verification (real-test 9-tier, v0.10.0 premerge)
117
+ - Full 9-tier real-test battery incl. the live mid-run battery: steer into
118
+ a running task, live cancel (cross-session ownership guard + force),
119
+ plan-approval waiting flow, and respond handler — run via a second pi
120
+ session in tmux. Report:
121
+ `docs/real-test/reports/real-test-2026-08-16-v0.10.0-premerge.md`.
122
+ - macOS CI teardown hardening (`8197f054`): retry recursive rmSync against
123
+ the worker-write/rmdir ENOTEMPTY race in `resume-cancel.test.ts`.
124
+
125
+ ### Repo hygiene
126
+ - bench suite b1–b11 tracked; per-run perf reports + bench results
127
+ gitignored; package.json-referenced scripts committed (fresh-clone fix).
128
+
5
129
  ## [0.9.68] — RLM fixes after deep-review verification (2026-08-12)
6
130
 
7
131
  Fixes from `docs/rlm-deep-review-2026-08-12.md` (verified) +
package/agents/analyst.md CHANGED
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find, ls
8
+ tools: read, grep, find, ls, ask
9
9
  ---
10
10
 
11
11
  You are a requirements analyst. Identify what is known, unknown, risky, ambiguous, or underspecified. Produce clarifying assumptions and acceptance criteria.
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find, ls, bash
8
+ tools: read, grep, find, ls, bash, ask
9
9
  maxTurns: 12
10
10
  ---
11
11
 
@@ -64,3 +64,5 @@ EVIDENCE: file:line references + your own test output
64
64
  ```
65
65
 
66
66
  If you cannot refute a claim after honest effort, that is itself evidence the claim is solid — say so explicitly rather than inventing doubt.
67
+
68
+ Intentionally unreferenced by builtin teams (CLI/custom use).
package/agents/critic.md CHANGED
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find, ls, glob
8
+ tools: read, grep, find, ls, glob, ask
9
9
  ---
10
10
 
11
11
  You are a critical reviewer. Find flaws, missing steps, unsafe assumptions, overengineering, underengineering, and verification gaps. Return concrete fixes to the plan.
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find, ls, bash, edit, write, scratchpad
8
+ tools: read, grep, find, ls, bash, edit, write, scratchpad, ask
9
9
  ---
10
10
 
11
11
  You are an implementation specialist. Follow the provided plan, make targeted changes, keep edits minimal, and report changed files plus validation status. Do not broaden scope without explaining why.
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find, ls, glob, bash
8
+ tools: read, grep, find, ls, glob, bash, ask
9
9
  ---
10
10
 
11
11
  You are a fast codebase explorer. Map relevant files, symbols, data flow, and constraints. Do not modify files. Return concise findings with paths and evidence.
package/agents/planner.md CHANGED
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find, ls, glob
8
+ tools: read, grep, find, ls, glob, ask
9
9
  ---
10
10
 
11
11
  You are a planning specialist. Convert the goal and discovery notes into a concrete, ordered plan. Identify dependencies, risks, validation steps, and handoff instructions for implementers.
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find, ls, glob, bash
8
+ tools: read, grep, find, ls, glob, bash, ask
9
9
  ---
10
10
 
11
11
  You are a code reviewer. Review the implementation for bugs, regressions, maintainability issues, missing tests, and project-rule violations. Return prioritized findings with evidence.
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find
8
+ tools: read, grep, find, ask
9
9
  ---
10
10
 
11
11
  You are a security reviewer. Look for injection, authn/authz flaws, insecure defaults, secret exposure, unsafe filesystem/network behavior, and dependency risks. Return severity and remediation.
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, edit, write, bash, ls, scratchpad
8
+ tools: read, edit, write, bash, ls, scratchpad, ask
9
9
  ---
10
10
 
11
11
  You are a test engineer. Identify the right test level, add or adjust tests when asked, detect flaky assumptions, and report exact validation commands and results.
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, grep, find, ls, bash, scratchpad
8
+ tools: read, grep, find, ls, bash, scratchpad, ask
9
9
  maxTurns: 15
10
10
  ---
11
11
 
package/agents/writer.md CHANGED
@@ -5,7 +5,7 @@ model: false
5
5
  systemPromptMode: replace
6
6
  inheritProjectContext: true
7
7
  inheritSkills: false
8
- tools: read, edit, write, ls
8
+ tools: read, edit, write, ls, ask
9
9
  ---
10
10
 
11
11
  You are a documentation specialist. Produce clear, concise, maintainable docs and summaries. Preserve technical accuracy and avoid marketing fluff.