pi-crew 0.1.40 → 0.1.43

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 (184) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +60 -2
  3. package/agents/analyst.md +11 -11
  4. package/agents/critic.md +11 -11
  5. package/agents/executor.md +11 -11
  6. package/agents/explorer.md +11 -11
  7. package/agents/planner.md +11 -11
  8. package/agents/reviewer.md +11 -11
  9. package/agents/security-reviewer.md +11 -11
  10. package/agents/test-engineer.md +11 -11
  11. package/agents/verifier.md +11 -11
  12. package/agents/writer.md +11 -11
  13. package/docs/refactor-tasks-phase3.md +394 -394
  14. package/docs/refactor-tasks-phase4.md +564 -564
  15. package/docs/refactor-tasks-phase5.md +402 -402
  16. package/docs/refactor-tasks-phase6.md +662 -662
  17. package/docs/research-extension-examples.md +297 -297
  18. package/docs/research-extension-system.md +324 -324
  19. package/docs/research-optimization-plan.md +548 -548
  20. package/docs/research-pi-coding-agent.md +357 -357
  21. package/docs/research-source-pi-crew-reference.md +174 -174
  22. package/docs/runtime-flow.md +148 -148
  23. package/docs/source-runtime-refactor-map.md +83 -83
  24. package/docs/usage.md +11 -0
  25. package/index.ts +6 -6
  26. package/package.json +1 -1
  27. package/schema.json +3 -1
  28. package/src/agents/agent-serializer.ts +34 -34
  29. package/src/agents/discover-agents.ts +4 -4
  30. package/src/config/config.ts +15 -4
  31. package/src/extension/cross-extension-rpc.ts +82 -82
  32. package/src/extension/management.ts +37 -8
  33. package/src/extension/notification-router.ts +2 -2
  34. package/src/extension/register.ts +3 -0
  35. package/src/extension/registration/commands.ts +11 -9
  36. package/src/extension/registration/compaction-guard.ts +125 -125
  37. package/src/extension/registration/subagent-tools.ts +28 -19
  38. package/src/extension/result-watcher.ts +35 -10
  39. package/src/extension/run-bundle-schema.ts +8 -4
  40. package/src/extension/run-import.ts +4 -0
  41. package/src/extension/run-index.ts +4 -1
  42. package/src/extension/run-maintenance.ts +43 -24
  43. package/src/extension/team-tool/api.ts +12 -2
  44. package/src/extension/team-tool/cancel.ts +31 -31
  45. package/src/extension/team-tool/doctor.ts +39 -1
  46. package/src/extension/team-tool/handle-settings.ts +188 -0
  47. package/src/extension/team-tool/inspect.ts +41 -41
  48. package/src/extension/team-tool/lifecycle-actions.ts +79 -79
  49. package/src/extension/team-tool/plan.ts +19 -19
  50. package/src/extension/team-tool/run.ts +4 -2
  51. package/src/extension/team-tool/status.ts +93 -73
  52. package/src/extension/team-tool.ts +3 -1
  53. package/src/i18n.ts +184 -0
  54. package/src/observability/correlation.ts +2 -2
  55. package/src/observability/event-to-metric.ts +4 -3
  56. package/src/observability/exporters/adapter.ts +7 -1
  57. package/src/observability/exporters/otlp-exporter.ts +14 -2
  58. package/src/observability/exporters/prometheus-exporter.ts +9 -2
  59. package/src/observability/metric-registry.ts +18 -3
  60. package/src/observability/metric-retention.ts +11 -3
  61. package/src/observability/metric-sink.ts +9 -4
  62. package/src/observability/metrics-primitives.ts +4 -3
  63. package/src/prompt/prompt-runtime.ts +72 -68
  64. package/src/runtime/agent-control.ts +63 -64
  65. package/src/runtime/agent-memory.ts +72 -72
  66. package/src/runtime/agent-observability.ts +114 -114
  67. package/src/runtime/async-marker.ts +26 -26
  68. package/src/runtime/attention-events.ts +28 -0
  69. package/src/runtime/background-runner.ts +53 -53
  70. package/src/runtime/child-pi.ts +4 -4
  71. package/src/runtime/completion-guard.ts +103 -0
  72. package/src/runtime/concurrency.ts +1 -1
  73. package/src/runtime/crash-recovery.ts +2 -1
  74. package/src/runtime/crew-agent-runtime.ts +58 -58
  75. package/src/runtime/deadletter.ts +14 -4
  76. package/src/runtime/direct-run.ts +35 -35
  77. package/src/runtime/foreground-control.ts +82 -82
  78. package/src/runtime/green-contract.ts +46 -46
  79. package/src/runtime/group-join.ts +106 -88
  80. package/src/runtime/heartbeat-gradient.ts +28 -28
  81. package/src/runtime/heartbeat-watcher.ts +48 -4
  82. package/src/runtime/live-agent-control.ts +87 -87
  83. package/src/runtime/live-agent-manager.ts +85 -85
  84. package/src/runtime/live-control-realtime.ts +36 -36
  85. package/src/runtime/live-session-runtime.ts +305 -305
  86. package/src/runtime/manifest-cache.ts +2 -2
  87. package/src/runtime/model-fallback.ts +269 -261
  88. package/src/runtime/parallel-research.ts +44 -44
  89. package/src/runtime/parallel-utils.ts +1 -1
  90. package/src/runtime/pi-json-output.ts +111 -111
  91. package/src/runtime/policy-engine.ts +79 -78
  92. package/src/runtime/post-exit-stdio-guard.ts +2 -2
  93. package/src/runtime/process-status.ts +56 -56
  94. package/src/runtime/progress-event-coalescer.ts +43 -43
  95. package/src/runtime/recovery-recipes.ts +74 -74
  96. package/src/runtime/retry-executor.ts +5 -0
  97. package/src/runtime/role-permission.ts +39 -39
  98. package/src/runtime/runtime-resolver.ts +1 -1
  99. package/src/runtime/session-usage.ts +79 -79
  100. package/src/runtime/sidechain-output.ts +29 -29
  101. package/src/runtime/subagent-manager.ts +3 -3
  102. package/src/runtime/task-display.ts +38 -38
  103. package/src/runtime/task-output-context.ts +127 -127
  104. package/src/runtime/task-runner/live-executor.ts +101 -101
  105. package/src/runtime/task-runner/progress.ts +119 -111
  106. package/src/runtime/task-runner/result-utils.ts +14 -14
  107. package/src/runtime/task-runner/state-helpers.ts +22 -22
  108. package/src/runtime/task-runner.ts +25 -2
  109. package/src/runtime/team-runner.ts +60 -9
  110. package/src/runtime/worker-heartbeat.ts +21 -21
  111. package/src/runtime/worker-startup.ts +57 -57
  112. package/src/schema/config-schema.ts +3 -1
  113. package/src/schema/team-tool-schema.ts +110 -100
  114. package/src/state/artifact-store.ts +4 -2
  115. package/src/state/atomic-write.ts +12 -4
  116. package/src/state/contracts.ts +105 -105
  117. package/src/state/event-log.ts +3 -4
  118. package/src/state/jsonl-writer.ts +4 -1
  119. package/src/state/locks.ts +9 -1
  120. package/src/state/mailbox.ts +11 -1
  121. package/src/state/task-claims.ts +44 -42
  122. package/src/state/types.ts +13 -0
  123. package/src/state/usage.ts +29 -29
  124. package/src/subagents/async-entry.ts +1 -1
  125. package/src/subagents/index.ts +3 -3
  126. package/src/subagents/live/control.ts +1 -1
  127. package/src/subagents/live/manager.ts +1 -1
  128. package/src/subagents/live/realtime.ts +1 -1
  129. package/src/subagents/live/session-runtime.ts +1 -1
  130. package/src/subagents/manager.ts +1 -1
  131. package/src/subagents/spawn.ts +1 -1
  132. package/src/teams/discover-teams.ts +2 -2
  133. package/src/teams/team-serializer.ts +38 -38
  134. package/src/types/diff.d.ts +18 -18
  135. package/src/ui/crew-footer.ts +101 -101
  136. package/src/ui/crew-select-list.ts +111 -111
  137. package/src/ui/dashboard-panes/metrics-pane.ts +34 -34
  138. package/src/ui/dashboard-panes/progress-pane.ts +3 -0
  139. package/src/ui/dynamic-border.ts +25 -25
  140. package/src/ui/layout-primitives.ts +106 -106
  141. package/src/ui/live-run-sidebar.ts +1 -1
  142. package/src/ui/loaders.ts +158 -158
  143. package/src/ui/mascot.ts +3 -2
  144. package/src/ui/powerbar-publisher.ts +4 -3
  145. package/src/ui/render-diff.ts +119 -119
  146. package/src/ui/render-scheduler.ts +54 -14
  147. package/src/ui/run-dashboard.ts +39 -11
  148. package/src/ui/run-snapshot-cache.ts +76 -22
  149. package/src/ui/snapshot-types.ts +8 -0
  150. package/src/ui/spinner.ts +17 -17
  151. package/src/ui/status-colors.ts +54 -54
  152. package/src/ui/syntax-highlight.ts +116 -116
  153. package/src/ui/theme-adapter.ts +1 -1
  154. package/src/ui/transcript-viewer.ts +7 -2
  155. package/src/utils/completion-dedupe.ts +63 -63
  156. package/src/utils/file-coalescer.ts +5 -3
  157. package/src/utils/frontmatter.ts +68 -36
  158. package/src/utils/fs-watch.ts +3 -3
  159. package/src/utils/git.ts +262 -262
  160. package/src/utils/ids.ts +12 -12
  161. package/src/utils/internal-error.ts +1 -1
  162. package/src/utils/names.ts +27 -26
  163. package/src/utils/paths.ts +1 -1
  164. package/src/utils/redaction.ts +44 -41
  165. package/src/utils/safe-paths.ts +47 -34
  166. package/src/utils/sleep.ts +2 -2
  167. package/src/utils/timings.ts +2 -0
  168. package/src/utils/visual.ts +9 -1
  169. package/src/workflows/discover-workflows.ts +4 -1
  170. package/src/workflows/validate-workflow.ts +40 -40
  171. package/src/worktree/branch-freshness.ts +45 -45
  172. package/src/worktree/worktree-manager.ts +6 -1
  173. package/teams/default.team.md +12 -12
  174. package/teams/fast-fix.team.md +11 -11
  175. package/teams/implementation.team.md +18 -18
  176. package/teams/parallel-research.team.md +14 -14
  177. package/teams/research.team.md +11 -11
  178. package/teams/review.team.md +12 -12
  179. package/workflows/default.workflow.md +29 -29
  180. package/workflows/fast-fix.workflow.md +22 -22
  181. package/workflows/implementation.workflow.md +38 -38
  182. package/workflows/parallel-research.workflow.md +46 -46
  183. package/workflows/research.workflow.md +22 -22
  184. package/workflows/review.workflow.md +30 -30
package/CHANGELOG.md CHANGED
@@ -2,6 +2,67 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.43
6
+
7
+ ### Added
8
+
9
+ - `/team-settings` command: view and manage all pi-crew config from Pi CLI (`list`, `get`, `set`, `unset`, `path`, `scope`).
10
+ - `addTranslations(locale, bundle)` and `listLocales()` for runtime-extensible i18n.
11
+
12
+ ### Fixed
13
+
14
+ - **UI freeze crash**: replaced `setInterval` with recursive `setTimeout` in `RenderScheduler` and `HeartbeatWatcher` to prevent timer storms when renders exceed the interval.
15
+ - **Growing-file I/O bottleneck**: `safeRecentEvents`, `readMailboxCounts`, `readGroupJoinMailbox` now use tail-reading (last 32 KB) instead of reading entire `.jsonl` files that grow unbounded over long runs.
16
+ - **Snapshot cache TTL** increased from 250 ms to 500 ms, halving unnecessary I/O.
17
+ - **Heartbeat watcher memory leak**: stale keys are now cleaned after 10 minutes of inactivity instead of being held forever.
18
+ - **Dashboard crash guard**: `render()` is wrapped in `try/catch` with a fallback error display.
19
+ - **Dashboard selected-index mismatch**: reset `selected` to 0 when the selected run disappears from the manifest cache.
20
+ - **`live-run-sidebar.ts` crash**: fixed missing optional chaining on `agent.progress?.recentOutput?.at(-1)`.
21
+ - **`signatureFor` crash**: `JSON.stringify` in snapshot cache wrapped in `try/catch` with a timestamp fallback.
22
+ - **Render scheduler timer leak**: added a `disposed` guard after `schedule()` to prevent orphaned timers.
23
+ - **Render scheduler loop guard**: capped at 5 iterations per `flush()` to prevent infinite loops when `render()` re-enters `flush()`.
24
+ - **`powerbar-publisher.ts`**: replaced `.filter().length` with `.reduce()` counting to avoid temporary array allocations.
25
+
26
+ ### Changed
27
+
28
+ - **i18n module hardened**: locale validated at runtime (not hardcoded union type), `currentLocale` reset on dispose, missing-key guard (`fallback[key] ?? key`), `__test__resetI18n()` helper.
29
+
30
+ ## 0.1.42
31
+
32
+ ### Fixed
33
+
34
+ - Reduced atomic-write rename retries from 20 to 5 and added busy-wait fallback for `Atomics.wait` to avoid event-loop stalls on Windows with aggressive file-locking.
35
+ - Applied the same `sleepSync` fallback pattern to `locks.ts` for consistent lock-acquisition resilience.
36
+ - Removed dead `findReadyTask` function in team-runner.
37
+ - Eliminated a redundant `refreshTaskGraphQueues` O(n) call per batch iteration by reusing the already-computed `taskGraphSnapshot` for ready-task selection.
38
+ - Expanded `appendTaskAttentionEvent` dedup window from 100 to 200 events and switched to a computed dedup key.
39
+
40
+ ### Changed
41
+
42
+ - Extended `MUTATING_TOOLS` set in completion guard with `replace_in_file`, `insert`, `delete_files`, `create_file`, `overwrite`, and `patch`.
43
+ - Extended `MUTATING_COMMANDS` regex with `sed -i`, `tee`, `wget -O`, and `curl -o` patterns.
44
+ - Reordered bash-command mutation check so mutating patterns (`sed -i`) take priority over read-only patterns (`sed`).
45
+ - Unknown bash commands that don't match the read-only list are now treated as potentially mutating (conservative default).
46
+
47
+ ### Hardened
48
+
49
+ - Replaced `timer.unref?.()` with `timer.unref()` in `SubagentManager` blocked-poll and stuck-notify timers.
50
+ - Added session-liveness guard to `notifyOperator` fallback so it won't attempt `sendFollowUp` after extension cleanup.
51
+
52
+ ## 0.1.41
53
+
54
+ ### Added
55
+
56
+ - Added strict-provider-friendly team tool schema shapes and config schema coverage for result delivery controls.
57
+ - Added resilient result watcher fallback polling for resource-limit watch failures and partial JSON retry handling.
58
+ - Added `runtime.completionMutationGuard` (`off`/`warn`/`fail`) with structured `task.attention` events when implementation-style workers complete without observed mutations.
59
+ - Added group-join mailbox delivery metadata, request-id dedupe, ack observability, timeout events, and dashboard/status visibility.
60
+ - Expanded `team doctor` and `team status` with schema, async/result delivery, worktree/readiness, attention, transcript, and group-join diagnostics.
61
+
62
+ ### Fixed
63
+
64
+ - Recovered adaptive implementation planner output when compaction truncates the end marker but complete phase objects are still present.
65
+
5
66
  ## 0.1.40
6
67
 
7
68
  ### Added
package/README.md CHANGED
@@ -60,6 +60,8 @@ Current highlights:
60
60
  - reliability hardening: heartbeat gradient watcher, opt-in retry executor with attempt trace, crash-recovery detection, deadletter queue
61
61
  - background `Agent`/`crew_agent` completion wake-up so parent sessions can automatically join completed subagent results
62
62
  - optional `runtime.requirePlanApproval` gate for planner-first approval before mutating adaptive implementation workers run
63
+ - optional `runtime.completionMutationGuard` to warn or fail implementation-style workers that complete without observed mutation tool calls
64
+ - grouped result delivery is correlated through mailbox metadata, deduped by request id, and acknowledged via existing `ack-message`
63
65
  - shared redaction for common secrets before durable event/log/mailbox/artifact/metric/diagnostic persistence
64
66
  - package polish: `schema.json`, TypeScript semantic check, strip-types import smoke, cross-platform CI workflow, dry-run package verification
65
67
 
@@ -176,7 +178,10 @@ Supported config:
176
178
  },
177
179
  "runtime": {
178
180
  "mode": "auto",
179
- "requirePlanApproval": false
181
+ "groupJoin": "smart",
182
+ "groupJoinAckTimeoutMs": 300000,
183
+ "requirePlanApproval": false,
184
+ "completionMutationGuard": "warn"
180
185
  },
181
186
  "limits": {
182
187
  "maxConcurrentWorkers": 3,
@@ -237,6 +242,8 @@ Safety notes:
237
242
  - Background `Agent`/`crew_agent` runs notify the parent session when they reach a terminal state; the parent can then call `get_subagent_result`/`crew_agent_result` and continue the original task.
238
243
  - `tools.terminateOnForeground` is an opt-in power-user setting. When true, foreground `Agent`/`crew_agent` calls return with `terminate: true` after the child result is available, saving one follow-up LLM turn. Default is false so the assistant can still summarize raw worker output.
239
244
  - Runtime state paths are treated as untrusted data: run ids, import bundles, artifact/transcript paths, mailbox files, and agent control/log files are validated with containment checks before reads or writes.
245
+ - `runtime.completionMutationGuard` defaults to `warn`; set `off` to disable or `fail` to fail implementation-style tasks that report success without observed mutation tool calls.
246
+ - Group-join result messages use normal mailbox delivery and normal `ack-message`; missing acknowledgements never block run completion, and duplicate delivery attempts reuse the same request id/message instead of appending spam.
240
247
  - Common secret patterns (`token=`, `apiKey=`, `Authorization: Bearer ...`, private keys, etc.) are redacted before durable logs/events/mailbox/artifacts/metrics/diagnostics are written.
241
248
  - `observability.enabled` defaults to true for in-memory metrics and heartbeat watching. Metric JSONL snapshots are gated by `telemetry.enabled`; set `telemetry.enabled=false` to opt out of local telemetry files.
242
249
  - `reliability.autoRetry` and `reliability.autoRecover` default to false. Enabling retry may execute an idempotent task more than once; each attempt is recorded in `task.attempts`, and exhausted retries append a deadletter entry.
@@ -450,6 +457,7 @@ Manual slash commands are ops/debug controls. Autonomous tool use via policy/rec
450
457
  /team-dashboard
451
458
  /team-init [--copy-builtins] [--overwrite]
452
459
  /team-config [key=value] [--unset=key.path] [--project]
460
+ /team-settings [list|get <key>|set <key> <value>|unset <key>|path|scope]
453
461
  /team-autonomy [status|on|off|manual|suggested|assisted|aggressive] [--prefer-async] [--no-worktree-suggest]
454
462
  /team-validate
455
463
  /team-help
@@ -472,7 +480,7 @@ Manual slash commands are ops/debug controls. Autonomous tool use via policy/rec
472
480
  /team-api team_... send-message taskId=task_... direction=inbox to=worker body="task scoped message"
473
481
  /team-api team_... read-mailbox direction=outbox
474
482
  /team-api team_... read-mailbox taskId=task_... direction=inbox
475
- /team-api team_... ack-message messageId=msg_...
483
+ /team-api team_... ack-message messageId=msg_... # also acknowledges group-join result messages
476
484
  /team-api team_... read-delivery
477
485
  /team-api team_... validate-mailbox repair=true
478
486
  /team-api team_... approve-plan
@@ -486,6 +494,56 @@ Use `/team-metrics` for a current metrics snapshot. The optional argument is a g
486
494
  /team-metrics crew.task.*
487
495
  ```
488
496
 
497
+ ### `/team-settings` — view & manage config
498
+
499
+ List all settings, get/set individual keys, or unset (reset to default).
500
+
501
+ ```text
502
+ /team-settings # list all known config keys
503
+ /team-settings get limits.maxTurns # read one key
504
+ /team-settings set limits.maxTurns 20 # update a key
505
+ /team-settings unset runtime.maxTurns # reset to default
506
+ /team-settings path # show config file path
507
+ /team-settings scope # show current scope (user/project)
508
+ ```
509
+
510
+ **Supported config keys:**
511
+
512
+ | Key | Type | Description |
513
+ |-----|------|-------------|
514
+ | `asyncByDefault` | boolean | Run workflows async by default |
515
+ | `executeWorkers` | boolean | Enable real child Pi workers |
516
+ | `notifierIntervalMs` | number | Polling interval for async notifications |
517
+ | `runtime.mode` | `"auto"\|"scaffold"\|"child-process"\|"live-session"` | Crew runtime selection |
518
+ | `runtime.maxTurns` | number | Max turns per worker |
519
+ | `runtime.graceTurns` | number | Grace turns after max |
520
+ | `runtime.inheritContext` | boolean | Workers inherit parent context |
521
+ | `runtime.promptMode` | `"replace"\|"append"` | Prompt merge strategy |
522
+ | `runtime.groupJoin` | `"off"\|"group"\|"smart"` | Group join strategy |
523
+ | `runtime.groupJoinAckTimeoutMs` | number | Group join ack timeout (ms) |
524
+ | `runtime.requirePlanApproval` | boolean | Require plan approval before execution |
525
+ | `runtime.completionMutationGuard` | `"off"\|"warn"\|"fail"` | Mutation guard on completion |
526
+ | `limits.maxConcurrentWorkers` | number | Max concurrent workers |
527
+ | `limits.maxTaskDepth` | number | Max task tree depth |
528
+ | `limits.maxChildrenPerTask` | number | Max children per task |
529
+ | `limits.maxRunMinutes` | number | Max run duration (minutes) |
530
+ | `limits.maxRetriesPerTask` | number | Max retries per task |
531
+ | `limits.maxTasksPerRun` | number | Max tasks per run |
532
+ | `limits.heartbeatStaleMs` | number | Heartbeat stale threshold (ms) |
533
+ | `control.enabled` | boolean | Enable agent control-plane |
534
+ | `control.needsAttentionAfterMs` | number | Attention trigger after inactivity (ms) |
535
+ | `autonomous.profile` | `"manual"\|"suggested"\|"assisted"\|"aggressive"` | Autonomy profile |
536
+ | `autonomous.injectPolicy` | boolean | Inject autonomy policy into prompt |
537
+ | `autonomous.preferAsyncForLongTasks` | boolean | Auto-async for long tasks |
538
+ | `autonomous.allowWorktreeSuggestion` | boolean | Suggest worktree mode |
539
+ | `tools.enableClaudeStyleAliases` | boolean | Enable Claude-style tool aliases |
540
+ | `tools.enableSteer` | boolean | Enable steer tool |
541
+ | `tools.terminateOnForeground` | boolean | Return terminate:true from foreground Agent |
542
+ | `agents.disableBuiltins` | boolean | Disable all builtin agents |
543
+ | `observability.prometheus.enabled` | boolean | Enable Prometheus exporter |
544
+ | `observability.otlp.enabled` | boolean | Enable OTLP exporter |
545
+ | `worktree.enabled` | boolean | Enable worktree isolation |
546
+
489
547
  ## Dashboard
490
548
 
491
549
  Open:
package/agents/analyst.md CHANGED
@@ -1,11 +1,11 @@
1
- ---
2
- name: analyst
3
- description: Analyze requirements, ambiguity, and hidden constraints
4
- model: claude-sonnet-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls
9
- ---
10
-
11
- You are a requirements analyst. Identify what is known, unknown, risky, ambiguous, or underspecified. Produce clarifying assumptions and acceptance criteria.
1
+ ---
2
+ name: analyst
3
+ description: Analyze requirements, ambiguity, and hidden constraints
4
+ model: claude-sonnet-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls
9
+ ---
10
+
11
+ You are a requirements analyst. Identify what is known, unknown, risky, ambiguous, or underspecified. Produce clarifying assumptions and acceptance criteria.
package/agents/critic.md CHANGED
@@ -1,11 +1,11 @@
1
- ---
2
- name: critic
3
- description: Challenge plans and designs before execution
4
- model: claude-sonnet-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls
9
- ---
10
-
11
- You are a critical reviewer. Find flaws, missing steps, unsafe assumptions, overengineering, underengineering, and verification gaps. Return concrete fixes to the plan.
1
+ ---
2
+ name: critic
3
+ description: Challenge plans and designs before execution
4
+ model: claude-sonnet-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls
9
+ ---
10
+
11
+ You are a critical reviewer. Find flaws, missing steps, unsafe assumptions, overengineering, underengineering, and verification gaps. Return concrete fixes to the plan.
@@ -1,11 +1,11 @@
1
- ---
2
- name: executor
3
- description: Implement planned code changes
4
- model: claude-sonnet-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls, bash, edit, write
9
- ---
10
-
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.
1
+ ---
2
+ name: executor
3
+ description: Implement planned code changes
4
+ model: claude-sonnet-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls, bash, edit, write
9
+ ---
10
+
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.
@@ -1,11 +1,11 @@
1
- ---
2
- name: explorer
3
- description: Fast codebase discovery and file/symbol mapping
4
- model: claude-haiku-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls
9
- ---
10
-
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.
1
+ ---
2
+ name: explorer
3
+ description: Fast codebase discovery and file/symbol mapping
4
+ model: claude-haiku-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls
9
+ ---
10
+
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
@@ -1,11 +1,11 @@
1
- ---
2
- name: planner
3
- description: Create an execution plan with clear sequencing and risk notes
4
- model: claude-sonnet-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls
9
- ---
10
-
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.
1
+ ---
2
+ name: planner
3
+ description: Create an execution plan with clear sequencing and risk notes
4
+ model: claude-sonnet-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls
9
+ ---
10
+
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.
@@ -1,11 +1,11 @@
1
- ---
2
- name: reviewer
3
- description: Review code changes for correctness, maintainability, and regressions
4
- model: claude-sonnet-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls, bash
9
- ---
10
-
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.
1
+ ---
2
+ name: reviewer
3
+ description: Review code changes for correctness, maintainability, and regressions
4
+ model: claude-sonnet-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls, bash
9
+ ---
10
+
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.
@@ -1,11 +1,11 @@
1
- ---
2
- name: security-reviewer
3
- description: Review changes for security vulnerabilities and trust-boundary issues
4
- model: claude-sonnet-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls, bash
9
- ---
10
-
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.
1
+ ---
2
+ name: security-reviewer
3
+ description: Review changes for security vulnerabilities and trust-boundary issues
4
+ model: claude-sonnet-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls, bash
9
+ ---
10
+
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.
@@ -1,11 +1,11 @@
1
- ---
2
- name: test-engineer
3
- description: Design and implement test strategy for a change
4
- model: claude-sonnet-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls, bash, edit, write
9
- ---
10
-
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.
1
+ ---
2
+ name: test-engineer
3
+ description: Design and implement test strategy for a change
4
+ model: claude-sonnet-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls, bash, edit, write
9
+ ---
10
+
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.
@@ -1,11 +1,11 @@
1
- ---
2
- name: verifier
3
- description: Verify that implementation satisfies the requested goal
4
- model: claude-sonnet-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls, bash
9
- ---
10
-
11
- You are a verification specialist. Check whether the work is complete, correct, tested, and aligned with project constraints. Prefer evidence over assumptions. Return PASS or FAIL with reasons.
1
+ ---
2
+ name: verifier
3
+ description: Verify that implementation satisfies the requested goal
4
+ model: claude-sonnet-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls, bash
9
+ ---
10
+
11
+ You are a verification specialist. Check whether the work is complete, correct, tested, and aligned with project constraints. Prefer evidence over assumptions. Return PASS or FAIL with reasons.
package/agents/writer.md CHANGED
@@ -1,11 +1,11 @@
1
- ---
2
- name: writer
3
- description: Write concise documentation, migration notes, and summaries
4
- model: claude-haiku-4-5
5
- systemPromptMode: replace
6
- inheritProjectContext: true
7
- inheritSkills: false
8
- tools: read, grep, find, ls, edit, write
9
- ---
10
-
11
- You are a documentation specialist. Produce clear, concise, maintainable docs and summaries. Preserve technical accuracy and avoid marketing fluff.
1
+ ---
2
+ name: writer
3
+ description: Write concise documentation, migration notes, and summaries
4
+ model: claude-haiku-4-5
5
+ systemPromptMode: replace
6
+ inheritProjectContext: true
7
+ inheritSkills: false
8
+ tools: read, grep, find, ls, edit, write
9
+ ---
10
+
11
+ You are a documentation specialist. Produce clear, concise, maintainable docs and summaries. Preserve technical accuracy and avoid marketing fluff.