@selesai/code 0.2.1 → 0.3.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 (284) hide show
  1. package/dist/config.d.ts +4 -15
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js +5 -45
  4. package/dist/config.js.map +1 -1
  5. package/dist/core/agent-session.d.ts +1 -0
  6. package/dist/core/agent-session.d.ts.map +1 -1
  7. package/dist/core/agent-session.js +8 -0
  8. package/dist/core/agent-session.js.map +1 -1
  9. package/dist/core/diagnostics.d.ts +1 -0
  10. package/dist/core/diagnostics.d.ts.map +1 -1
  11. package/dist/core/diagnostics.js.map +1 -1
  12. package/dist/core/model-registry.d.ts +4 -1
  13. package/dist/core/model-registry.d.ts.map +1 -1
  14. package/dist/core/model-registry.js +101 -51
  15. package/dist/core/model-registry.js.map +1 -1
  16. package/dist/core/package-manager.d.ts +10 -0
  17. package/dist/core/package-manager.d.ts.map +1 -1
  18. package/dist/core/package-manager.js +93 -8
  19. package/dist/core/package-manager.js.map +1 -1
  20. package/dist/core/package-manager.test.d.ts +2 -0
  21. package/dist/core/package-manager.test.d.ts.map +1 -0
  22. package/dist/core/package-manager.test.js +20 -0
  23. package/dist/core/package-manager.test.js.map +1 -0
  24. package/dist/core/resource-loader.d.ts +3 -0
  25. package/dist/core/resource-loader.d.ts.map +1 -1
  26. package/dist/core/resource-loader.js +10 -0
  27. package/dist/core/resource-loader.js.map +1 -1
  28. package/dist/core/settings-manager.d.ts +1 -0
  29. package/dist/core/settings-manager.d.ts.map +1 -1
  30. package/dist/core/settings-manager.js.map +1 -1
  31. package/dist/defaults/models.json +64 -113
  32. package/dist/extensions/caveman/caveman-instructions.cjs +39 -0
  33. package/dist/extensions/caveman/index.js +116 -0
  34. package/dist/extensions/caveman/package.json +8 -0
  35. package/dist/extensions/caveman/test/extension.test.js +185 -0
  36. package/dist/extensions/caveman/test/helpers.test.js +67 -0
  37. package/dist/extensions/copy-turn.ts +2 -2
  38. package/dist/extensions/pi-intercom/broker/broker.ts +2 -3
  39. package/dist/extensions/pi-intercom/broker/paths.ts +10 -5
  40. package/dist/extensions/pi-intercom/broker/spawn.ts +2 -3
  41. package/dist/extensions/pi-intercom/config.ts +2 -2
  42. package/dist/extensions/pi-intercom/index.ts +2 -2
  43. package/dist/extensions/pi-intercom/package.json +2 -2
  44. package/dist/extensions/pi-intercom/ui/compose.ts +3 -3
  45. package/dist/extensions/pi-intercom/ui/inline-message.ts +3 -3
  46. package/dist/extensions/pi-intercom/ui/session-list.ts +3 -3
  47. package/dist/extensions/pi-powerline-footer/bash-mode/editor.ts +2 -2
  48. package/dist/extensions/pi-powerline-footer/bash-mode/history.ts +2 -1
  49. package/dist/extensions/pi-powerline-footer/index.ts +40 -47
  50. package/dist/extensions/pi-powerline-footer/package.json +2 -2
  51. package/dist/extensions/pi-powerline-footer/tests/bash-mode.test.ts +10 -10
  52. package/dist/extensions/pi-powerline-footer/tests/jump-shortcuts.test.ts +1 -1
  53. package/dist/extensions/pi-powerline-footer/tests/working-vibes.test.ts +2 -2
  54. package/dist/extensions/pi-powerline-footer/theme.ts +6 -6
  55. package/dist/extensions/pi-powerline-footer/tps.ts +1 -1
  56. package/dist/extensions/pi-powerline-footer/types.ts +7 -7
  57. package/dist/extensions/pi-powerline-footer/welcome.ts +23 -16
  58. package/dist/extensions/pi-powerline-footer/working-vibes.ts +52 -59
  59. package/dist/extensions/pi-rewind-hook/index.ts +1 -1
  60. package/dist/extensions/pi-rewind-hook/package.json +1 -1
  61. package/dist/extensions/pi-subagents/README.md +224 -52
  62. package/dist/extensions/pi-subagents/agents/architect.md +188 -0
  63. package/dist/extensions/pi-subagents/agents/builder.md +120 -0
  64. package/dist/extensions/pi-subagents/agents/commentator.md +131 -0
  65. package/dist/extensions/pi-subagents/agents/explorer.md +51 -0
  66. package/dist/extensions/pi-subagents/agents/recapper.md +21 -0
  67. package/dist/extensions/pi-subagents/install.mjs +93 -0
  68. package/dist/extensions/pi-subagents/package.json +4 -5
  69. package/dist/extensions/pi-subagents/prompts/parallel-context-build.md +1 -1
  70. package/dist/extensions/pi-subagents/prompts/parallel-handoff-plan.md +1 -1
  71. package/dist/extensions/pi-subagents/skills/pi-subagents/SKILL.md +76 -13
  72. package/dist/extensions/pi-subagents/src/agents/agent-management.ts +179 -2
  73. package/dist/extensions/pi-subagents/src/agents/agent-memory.ts +254 -0
  74. package/dist/extensions/pi-subagents/src/agents/agent-serializer.ts +11 -0
  75. package/dist/extensions/pi-subagents/src/agents/agents.ts +193 -19
  76. package/dist/extensions/pi-subagents/src/agents/chain-serializer.ts +27 -2
  77. package/dist/extensions/pi-subagents/src/extension/config.ts +27 -4
  78. package/dist/extensions/pi-subagents/src/extension/doctor.ts +1 -7
  79. package/dist/extensions/pi-subagents/src/extension/fanout-child.ts +3 -2
  80. package/dist/extensions/pi-subagents/src/extension/index.ts +73 -71
  81. package/dist/extensions/pi-subagents/src/extension/rpc.ts +369 -0
  82. package/dist/extensions/pi-subagents/src/extension/schemas.ts +54 -10
  83. package/dist/extensions/pi-subagents/src/extension/tool-description.ts +200 -0
  84. package/dist/extensions/pi-subagents/src/intercom/intercom-bridge.ts +21 -253
  85. package/dist/extensions/pi-subagents/src/intercom/native-supervisor-channel.ts +519 -0
  86. package/dist/extensions/pi-subagents/src/profiles/profiles.ts +1 -1
  87. package/dist/extensions/pi-subagents/src/runs/background/async-execution.ts +195 -105
  88. package/dist/extensions/pi-subagents/src/runs/background/async-job-tracker.ts +88 -2
  89. package/dist/extensions/pi-subagents/src/runs/background/async-status.ts +67 -10
  90. package/dist/extensions/pi-subagents/src/runs/background/chain-root-attachment.ts +34 -4
  91. package/dist/extensions/pi-subagents/src/runs/background/completion-batcher.ts +166 -0
  92. package/dist/extensions/pi-subagents/src/runs/background/control-channel.ts +156 -1
  93. package/dist/extensions/pi-subagents/src/runs/background/fleet-view.ts +515 -0
  94. package/dist/extensions/pi-subagents/src/runs/background/notify.ts +161 -44
  95. package/dist/extensions/pi-subagents/src/runs/background/result-watcher.ts +1 -2
  96. package/dist/extensions/pi-subagents/src/runs/background/run-id-resolver.ts +3 -2
  97. package/dist/extensions/pi-subagents/src/runs/background/run-status.ts +167 -6
  98. package/dist/extensions/pi-subagents/src/runs/background/scheduled-runs.ts +514 -0
  99. package/dist/extensions/pi-subagents/src/runs/background/stale-run-reconciler.ts +28 -1
  100. package/dist/extensions/pi-subagents/src/runs/background/subagent-runner.ts +873 -204
  101. package/dist/extensions/pi-subagents/src/runs/background/wait.ts +353 -0
  102. package/dist/extensions/pi-subagents/src/runs/foreground/chain-execution.ts +123 -27
  103. package/dist/extensions/pi-subagents/src/runs/foreground/execution.ts +174 -70
  104. package/dist/extensions/pi-subagents/src/runs/foreground/subagent-executor.ts +569 -81
  105. package/dist/extensions/pi-subagents/src/runs/shared/acceptance.ts +45 -22
  106. package/dist/extensions/pi-subagents/src/runs/shared/completion-guard.ts +3 -1
  107. package/dist/extensions/pi-subagents/src/runs/shared/dynamic-fanout.ts +2 -2
  108. package/dist/extensions/pi-subagents/src/runs/shared/model-fallback.ts +172 -21
  109. package/dist/extensions/pi-subagents/src/runs/shared/model-scope.ts +128 -0
  110. package/dist/extensions/pi-subagents/src/runs/shared/nested-events.ts +89 -0
  111. package/dist/extensions/pi-subagents/src/runs/shared/parallel-utils.ts +50 -1
  112. package/dist/extensions/pi-subagents/src/runs/shared/pi-args.ts +35 -4
  113. package/dist/extensions/pi-subagents/src/runs/shared/pi-spawn.ts +63 -45
  114. package/dist/extensions/pi-subagents/src/runs/shared/single-output.ts +2 -0
  115. package/dist/extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.ts +125 -5
  116. package/dist/extensions/pi-subagents/src/runs/shared/tool-budget.ts +74 -0
  117. package/dist/extensions/pi-subagents/src/runs/shared/turn-budget.ts +52 -0
  118. package/dist/extensions/pi-subagents/src/runs/shared/worktree.ts +28 -5
  119. package/dist/extensions/pi-subagents/src/shared/artifacts.ts +16 -1
  120. package/dist/extensions/pi-subagents/src/shared/atomic-json.ts +15 -2
  121. package/dist/extensions/pi-subagents/src/shared/child-transcript.ts +212 -0
  122. package/dist/extensions/pi-subagents/src/shared/fork-context.ts +133 -22
  123. package/dist/extensions/pi-subagents/src/shared/settings.ts +3 -1
  124. package/dist/extensions/pi-subagents/src/shared/types.ts +197 -4
  125. package/dist/extensions/pi-subagents/src/shared/utils.ts +108 -17
  126. package/dist/extensions/pi-subagents/src/slash/prompt-workflows.ts +330 -0
  127. package/dist/extensions/pi-subagents/src/slash/slash-commands.ts +135 -4
  128. package/dist/extensions/pi-subagents/src/tui/render.ts +32 -12
  129. package/dist/extensions/pi-subagents/test/e2e/real-session-subagent.test.ts +94 -0
  130. package/dist/extensions/pi-subagents/test/integration/async-execution.test.ts +2772 -0
  131. package/dist/extensions/pi-subagents/test/integration/async-job-tracker.test.ts +1107 -0
  132. package/dist/extensions/pi-subagents/test/integration/async-status.test.ts +463 -0
  133. package/dist/extensions/pi-subagents/test/integration/chain-clarify.test.ts +274 -0
  134. package/dist/extensions/pi-subagents/test/integration/chain-execution.test.ts +1535 -0
  135. package/dist/extensions/pi-subagents/test/integration/detect-error.test.ts +242 -0
  136. package/dist/extensions/pi-subagents/test/integration/doctor-executor.test.ts +128 -0
  137. package/dist/extensions/pi-subagents/test/integration/error-handling.test.ts +252 -0
  138. package/dist/extensions/pi-subagents/test/integration/foreground-result-size.test.ts +188 -0
  139. package/dist/extensions/pi-subagents/test/integration/fork-context-execution.test.ts +1306 -0
  140. package/dist/extensions/pi-subagents/test/integration/intercom-result-delivery.test.ts +1033 -0
  141. package/dist/extensions/pi-subagents/test/integration/parallel-execution.test.ts +397 -0
  142. package/dist/extensions/pi-subagents/test/integration/render-fork-badge.test.ts +583 -0
  143. package/dist/extensions/pi-subagents/test/integration/render-widget.test.ts +691 -0
  144. package/dist/extensions/pi-subagents/test/integration/result-watcher.test.ts +892 -0
  145. package/dist/extensions/pi-subagents/test/integration/session-tokens.test.ts +62 -0
  146. package/dist/extensions/pi-subagents/test/integration/single-execution.test.ts +1824 -0
  147. package/dist/extensions/pi-subagents/test/integration/slash-commands.test.ts +1284 -0
  148. package/dist/extensions/pi-subagents/test/integration/slash-live-state.test.ts +127 -0
  149. package/dist/extensions/pi-subagents/test/integration/template-resolution.test.ts +299 -0
  150. package/dist/extensions/pi-subagents/test/integration/top-level-async.test.ts +37 -0
  151. package/dist/extensions/pi-subagents/test/support/helpers.ts +189 -0
  152. package/dist/extensions/pi-subagents/test/support/mock-pi-script.mjs +335 -0
  153. package/dist/extensions/pi-subagents/test/support/mock-pi.ts +129 -0
  154. package/dist/extensions/pi-subagents/test/support/real-session-child-cli.mjs +184 -0
  155. package/dist/extensions/pi-subagents/test/support/real-session-runner.ts +285 -0
  156. package/dist/extensions/pi-subagents/test/support/register-loader.mjs +15 -0
  157. package/dist/extensions/pi-subagents/test/support/ts-loader.mjs +108 -0
  158. package/dist/extensions/pi-subagents/test/unit/acceptance.test.ts +421 -0
  159. package/dist/extensions/pi-subagents/test/unit/agent-disabled.test.ts +213 -0
  160. package/dist/extensions/pi-subagents/test/unit/agent-eject-disable.test.ts +343 -0
  161. package/dist/extensions/pi-subagents/test/unit/agent-frontmatter.test.ts +1199 -0
  162. package/dist/extensions/pi-subagents/test/unit/agent-management.test.ts +556 -0
  163. package/dist/extensions/pi-subagents/test/unit/agent-memory.test.ts +420 -0
  164. package/dist/extensions/pi-subagents/test/unit/agent-overrides.test.ts +579 -0
  165. package/dist/extensions/pi-subagents/test/unit/agent-scope.test.ts +20 -0
  166. package/dist/extensions/pi-subagents/test/unit/agent-selection.test.ts +88 -0
  167. package/dist/extensions/pi-subagents/test/unit/artifacts.test.ts +24 -0
  168. package/dist/extensions/pi-subagents/test/unit/async-execution.test.ts +86 -0
  169. package/dist/extensions/pi-subagents/test/unit/async-interrupt-action.test.ts +221 -0
  170. package/dist/extensions/pi-subagents/test/unit/async-permission-session.test.ts +98 -0
  171. package/dist/extensions/pi-subagents/test/unit/async-resume.test.ts +285 -0
  172. package/dist/extensions/pi-subagents/test/unit/atomic-json.test.ts +112 -0
  173. package/dist/extensions/pi-subagents/test/unit/chain-append.test.ts +206 -0
  174. package/dist/extensions/pi-subagents/test/unit/chain-root-attachment.test.ts +159 -0
  175. package/dist/extensions/pi-subagents/test/unit/chain-serializer.test.ts +229 -0
  176. package/dist/extensions/pi-subagents/test/unit/child-transcript.test.ts +225 -0
  177. package/dist/extensions/pi-subagents/test/unit/close-grace-timer.test.ts +101 -0
  178. package/dist/extensions/pi-subagents/test/unit/completion-batcher.test.ts +228 -0
  179. package/dist/extensions/pi-subagents/test/unit/completion-dedupe.test.ts +36 -0
  180. package/dist/extensions/pi-subagents/test/unit/completion-guard.test.ts +152 -0
  181. package/dist/extensions/pi-subagents/test/unit/config-dir-runtime.test.ts +72 -0
  182. package/dist/extensions/pi-subagents/test/unit/control-channel.test.ts +327 -0
  183. package/dist/extensions/pi-subagents/test/unit/control-notices.test.ts +161 -0
  184. package/dist/extensions/pi-subagents/test/unit/doctor.test.ts +159 -0
  185. package/dist/extensions/pi-subagents/test/unit/dynamic-fanout.test.ts +217 -0
  186. package/dist/extensions/pi-subagents/test/unit/extra-agent-dirs.test.ts +88 -0
  187. package/dist/extensions/pi-subagents/test/unit/file-coalescer.test.ts +68 -0
  188. package/dist/extensions/pi-subagents/test/unit/foreground-tool-call-compaction.test.ts +78 -0
  189. package/dist/extensions/pi-subagents/test/unit/fork-context.test.ts +415 -0
  190. package/dist/extensions/pi-subagents/test/unit/get-final-output.test.ts +126 -0
  191. package/dist/extensions/pi-subagents/test/unit/index-child-registration.test.ts +271 -0
  192. package/dist/extensions/pi-subagents/test/unit/intercom-bridge.test.ts +173 -0
  193. package/dist/extensions/pi-subagents/test/unit/jsonl-writer.test.ts +119 -0
  194. package/dist/extensions/pi-subagents/test/unit/live-async-resume.test.ts +170 -0
  195. package/dist/extensions/pi-subagents/test/unit/model-fallback.test.ts +346 -0
  196. package/dist/extensions/pi-subagents/test/unit/model-info.test.ts +62 -0
  197. package/dist/extensions/pi-subagents/test/unit/model-scope-settings.test.ts +87 -0
  198. package/dist/extensions/pi-subagents/test/unit/model-scope.test.ts +145 -0
  199. package/dist/extensions/pi-subagents/test/unit/native-supervisor-channel.test.ts +162 -0
  200. package/dist/extensions/pi-subagents/test/unit/nested-control.test.ts +470 -0
  201. package/dist/extensions/pi-subagents/test/unit/nested-events.test.ts +329 -0
  202. package/dist/extensions/pi-subagents/test/unit/notify.test.ts +319 -0
  203. package/dist/extensions/pi-subagents/test/unit/package-manifest.test.ts +70 -0
  204. package/dist/extensions/pi-subagents/test/unit/parallel-utils.test.ts +247 -0
  205. package/dist/extensions/pi-subagents/test/unit/path-handling.test.ts +113 -0
  206. package/dist/extensions/pi-subagents/test/unit/path-resolution.test.ts +94 -0
  207. package/dist/extensions/pi-subagents/test/unit/pi-args.test.ts +803 -0
  208. package/dist/extensions/pi-subagents/test/unit/pi-coding-agent-dir.test.ts +209 -0
  209. package/dist/extensions/pi-subagents/test/unit/pi-spawn.test.ts +238 -0
  210. package/dist/extensions/pi-subagents/test/unit/proactive-skills.test.ts +118 -0
  211. package/dist/extensions/pi-subagents/test/unit/profiles.test.ts +299 -0
  212. package/dist/extensions/pi-subagents/test/unit/prompt-template-bridge.test.ts +408 -0
  213. package/dist/extensions/pi-subagents/test/unit/prompt-workflows.test.ts +134 -0
  214. package/dist/extensions/pi-subagents/test/unit/recursion-guard.test.ts +257 -0
  215. package/dist/extensions/pi-subagents/test/unit/render-helpers.test.ts +209 -0
  216. package/dist/extensions/pi-subagents/test/unit/result-intercom.test.ts +226 -0
  217. package/dist/extensions/pi-subagents/test/unit/rpc.test.ts +294 -0
  218. package/dist/extensions/pi-subagents/test/unit/run-id-resolver.test.ts +147 -0
  219. package/dist/extensions/pi-subagents/test/unit/run-status.test.ts +997 -0
  220. package/dist/extensions/pi-subagents/test/unit/scheduled-runs.test.ts +478 -0
  221. package/dist/extensions/pi-subagents/test/unit/schemas.test.ts +562 -0
  222. package/dist/extensions/pi-subagents/test/unit/single-output.test.ts +213 -0
  223. package/dist/extensions/pi-subagents/test/unit/skills-fallback.test.ts +438 -0
  224. package/dist/extensions/pi-subagents/test/unit/slash-bridge.test.ts +54 -0
  225. package/dist/extensions/pi-subagents/test/unit/slash-chain-groups.test.ts +464 -0
  226. package/dist/extensions/pi-subagents/test/unit/stale-run-reconciler.test.ts +255 -0
  227. package/dist/extensions/pi-subagents/test/unit/status-format.test.ts +19 -0
  228. package/dist/extensions/pi-subagents/test/unit/subagent-control.test.ts +245 -0
  229. package/dist/extensions/pi-subagents/test/unit/subagent-prompt-runtime.test.ts +517 -0
  230. package/dist/extensions/pi-subagents/test/unit/temp-paths.test.ts +72 -0
  231. package/dist/extensions/pi-subagents/test/unit/tool-budget.test.ts +52 -0
  232. package/dist/extensions/pi-subagents/test/unit/tool-description.test.ts +237 -0
  233. package/dist/extensions/pi-subagents/test/unit/total-cost.test.ts +60 -0
  234. package/dist/extensions/pi-subagents/test/unit/ts-loader.test.ts +33 -0
  235. package/dist/extensions/pi-subagents/test/unit/turn-budget.test.ts +202 -0
  236. package/dist/extensions/pi-subagents/test/unit/types-fork-preamble.test.ts +23 -0
  237. package/dist/extensions/pi-subagents/test/unit/wait.test.ts +398 -0
  238. package/dist/extensions/pi-subagents/test/unit/widget-nested-render.test.ts +88 -0
  239. package/dist/extensions/pi-subagents/test/unit/windows-hide-spawn.test.ts +26 -0
  240. package/dist/extensions/pi-subagents/test/unit/workflow-graph.test.ts +134 -0
  241. package/dist/extensions/pi-subagents/test/unit/worktree.test.ts +479 -0
  242. package/dist/extensions/pi-web-agent/package.json +2 -2
  243. package/dist/extensions/pi-web-agent/src/backends/settings-reader.ts +2 -2
  244. package/dist/extensions/pi-web-agent/src/changelog-notice.ts +5 -2
  245. package/dist/extensions/pi-web-agent/src/commands/web-agent-config.ts +1 -1
  246. package/dist/extensions/pi-web-agent/src/extension.ts +1 -1
  247. package/dist/extensions/pi-web-agent/src/presentation/config-store.ts +6 -4
  248. package/dist/extensions/question/helpers.ts +3 -3
  249. package/dist/extensions/question/index.ts +2 -2
  250. package/dist/extensions/question/navigation.ts +2 -2
  251. package/dist/extensions/question/package.json +2 -2
  252. package/dist/extensions/question/question-list.ts +2 -2
  253. package/dist/extensions/question/tests/question-list.test.ts +2 -2
  254. package/dist/extensions/question/tui-adapter.ts +2 -2
  255. package/dist/extensions/question/types.ts +2 -2
  256. package/dist/extensions/question/ui-protocol.ts +2 -2
  257. package/dist/extensions/rtk.ts +2 -2
  258. package/dist/extensions/tokenin-onboarding.ts +2 -2
  259. package/dist/extensions/undo.ts +1 -1
  260. package/dist/extensions/web-agent-onboarding.ts +3 -3
  261. package/dist/extensions/workflow/adapter.ts +16 -8
  262. package/dist/extensions/workflow/extension.ts +1 -1
  263. package/dist/extensions/workflow/package.json +1 -1
  264. package/dist/main.d.ts.map +1 -1
  265. package/dist/main.js +4 -0
  266. package/dist/main.js.map +1 -1
  267. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  268. package/dist/modes/interactive/components/assistant-message.js +2 -0
  269. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  270. package/dist/modes/interactive/components/first-time-setup.d.ts +1 -1
  271. package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -1
  272. package/dist/modes/interactive/components/first-time-setup.js +19 -5
  273. package/dist/modes/interactive/components/first-time-setup.js.map +1 -1
  274. package/dist/skills/caveman/SKILL.md +49 -0
  275. package/dist/skills/handoff-text/SKILL.md +13 -0
  276. package/dist/utils/thinking-tags.d.ts +7 -0
  277. package/dist/utils/thinking-tags.d.ts.map +1 -0
  278. package/dist/utils/thinking-tags.js +63 -0
  279. package/dist/utils/thinking-tags.js.map +1 -0
  280. package/docs/docs.json +4 -0
  281. package/docs/extensions.md +2 -0
  282. package/docs/settings.md +15 -0
  283. package/docs/shared-host-extensions.md +109 -0
  284. package/package.json +2 -2
@@ -0,0 +1,188 @@
1
+ ---
2
+ name: architect
3
+ model: tokenin/glm-5.2
4
+ thinking: high
5
+ description: Creates implementation plans from context and requirements
6
+ tools: read, grep, find, ls, write, intercom
7
+ systemPromptMode: replace
8
+ inheritProjectContext: true
9
+ inheritSkills: true
10
+ skill: ponytail, planger
11
+ output: plan.md
12
+ defaultReads: context.md
13
+ defaultContext: fork
14
+ ---
15
+
16
+ You are a planning subagent.
17
+
18
+ Your job is to turn requirements and code context into a concrete implementation plan. Do not make code changes. Read, analyze, and write the plan only.
19
+
20
+ Working rules:
21
+ - Read the provided context before planning.
22
+ - Read any additional code you need in order to make the plan concrete.
23
+ - Name exact files whenever you can.
24
+ - Prefer small, ordered, actionable tasks over vague phases.
25
+ - Call out risks, dependencies, and anything that needs explicit validation.
26
+ - If the task is underspecified, surface the ambiguity in the plan instead of guessing.
27
+
28
+ Output format (`plan.md`):
29
+
30
+ # Implementation Plan
31
+
32
+ ## Goal
33
+
34
+ Create implementation plans that can be executed by a small coding model with:
35
+
36
+ - Limited context window
37
+ - No project knowledge
38
+ - No memory of previous conversation
39
+ - Weak architectural understanding
40
+ - No ability to infer missing steps
41
+
42
+ Assume the executor only knows what is written in the plan.
43
+
44
+ # Core Principles
45
+
46
+ ## Discovery First
47
+
48
+ Never assume:
49
+
50
+ - File names
51
+ - File locations
52
+ - Ownership of behavior
53
+ - Existing abstractions
54
+ - Existing utilities
55
+
56
+ If the code has not been inspected, the plan must begin with discovery.
57
+ You research the codebase (using explorer agent) → clarify with the user (using questions tool) → capture findings and decisions into a comprehensive plan. This iterative approach catches edge cases and non-obvious requirements BEFORE implementation begins.
58
+
59
+ ## Simplicity First
60
+
61
+ Prefer the smallest maintainable solution that satisfies the requirement.
62
+
63
+ Avoid:
64
+
65
+ - New abstractions
66
+ - New services
67
+ - New dependencies
68
+ - Large refactors
69
+ - Generic frameworks
70
+ - Future-proofing for hypothetical requirements
71
+
72
+ Choose the lowest-complexity solution that works.
73
+
74
+ ## Reuse Before Build
75
+
76
+ Before creating anything new (use explorer agent):
77
+
78
+ - Search for existing implementations
79
+ - Search for existing utilities
80
+ - Search for existing patterns
81
+ - Search for existing tests
82
+
83
+ Reuse existing code when reasonable.
84
+
85
+ Do not duplicate behavior unless duplication is clearly preferable.
86
+
87
+ ## Scope Discipline
88
+
89
+ Only modify code required for the task.
90
+
91
+ Allowed:
92
+
93
+ - Small cleanup in touched files
94
+ - Remove unused imports
95
+ - Remove obvious dead code
96
+ - Improve nearby naming
97
+
98
+ Not allowed:
99
+
100
+ - Unrelated refactors
101
+ - Architecture changes
102
+ - Broad cleanup efforts
103
+ - Dependency migrations
104
+
105
+ # Task Structure
106
+
107
+ Every implementation task must contain:
108
+
109
+ ## 1. Discovery
110
+
111
+ Describe:
112
+
113
+ - What to search for
114
+ - Where to search
115
+ - How to identify relevant code
116
+
117
+ Example:
118
+
119
+ Search for:
120
+
121
+ - Authorization
122
+ - Bearer
123
+ - Interceptor
124
+ - Refresh token
125
+
126
+ Inspect matching files and identify where authentication headers are attached.
127
+
128
+ ## 2. Identification
129
+
130
+ Describe:
131
+
132
+ - Exact file(s) to modify
133
+ - Why those files own the behavior
134
+ - Why other files should not be modified
135
+
136
+ ## 3. Change
137
+
138
+ Describe:
139
+
140
+ - Exact modification required
141
+ - Functions/classes affected
142
+ - Existing code to reuse
143
+ - New code to add
144
+ - Code explicitly not to add
145
+
146
+ The executor should know exactly what to implement.
147
+
148
+ ## 4. Verification
149
+
150
+ Include:
151
+
152
+ ### Success Cases
153
+
154
+ Expected working behavior.
155
+
156
+ ### Failure Cases
157
+
158
+ Expected error behavior.
159
+
160
+ ### Regression Checks
161
+
162
+ Existing behavior that must remain unchanged.
163
+
164
+ # Granularity Rule
165
+
166
+ A task is too large if it can be split into smaller independently verifiable work.
167
+
168
+ Keep decomposing until each task:
169
+
170
+ - Has one objective
171
+ - Has clear ownership
172
+ - Can be implemented independently
173
+ - Can be verified independently
174
+
175
+ Prefer 5 small tasks over 1 large task.
176
+
177
+ # Final Review
178
+
179
+ Before returning a plan verify:
180
+
181
+ - Discovery exists
182
+ - Ownership is justified
183
+ - Solution is the simplest acceptable approach
184
+ - Existing code is reused when possible
185
+ - No unnecessary abstractions are introduced
186
+ - Scope remains limited
187
+ - Verification is included
188
+ - Every step is executable without additional assumptions
@@ -0,0 +1,120 @@
1
+ ---
2
+ name: builder
3
+ model: tokenin/deepseek-v4-flash
4
+ thinking: high
5
+ description: Implementation agent for normal tasks handoffs
6
+ systemPromptMode: replace
7
+ tools: read, grep, find, ls, bash, edit, write, contact_supervisor
8
+ inheritSkills: true
9
+ skill: ponytail, implanger
10
+ inheritProjectContext: true
11
+ defaultContext: fresh
12
+ defaultReads: context.md, plan.md, handoff.md
13
+ defaultProgress: true
14
+ ---
15
+
16
+ You are `builder` the implementation subagent.
17
+
18
+ You are the single writer thread. Your job is to execute the assigned task or approved direction with narrow, coherent edits. The main agent and user remain the decision authority.
19
+
20
+ Use the provided tools directly. First understand the inherited context, supplied files, plan, and explicit task. Then implement carefully and minimally.
21
+
22
+ If the task is framed as an approved direction, oracle handoff, or execution plan, treat that direction as the contract. Validate it against the actual code, but do not silently make new product, architecture, or scope decisions.
23
+
24
+ If the implementation reveals a decision that was not approved and is required to continue safely, pause and escalate through the live coordination channel. If runtime bridge instructions are present, use them as the source of truth for which supervisor session to contact and how to coordinate. Use `contact_supervisor` with `reason: "need_decision"` when a new decision is needed, and stay alive to receive the reply before continuing. Use `reason: "progress_update"` only for concise non-blocking progress updates when that extra coordination is helpful or explicitly requested. Fall back to generic `intercom` only if `contact_supervisor` is unavailable. Do not finish your final response with a question that requires the supervisor to choose before you can continue.
25
+
26
+ Default responsibilities:
27
+ - validate the task or approved direction against the actual code
28
+ - implement the smallest correct change
29
+ - follow existing patterns in the codebase
30
+ - verify the result with appropriate checks when possible
31
+ - keep `progress.md` accurate when asked to maintain it
32
+ - report back clearly with changes, validation, risks, and next steps
33
+
34
+ Working rules:
35
+ - Prefer narrow, correct changes over broad rewrites.
36
+ - Do not add speculative scaffolding or future-proofing unless explicitly required.
37
+ - Do not leave placeholder code, TODOs, or silent scope changes.
38
+ - Use `bash` for inspection, validation, and relevant tests.
39
+ - If there is supplied context or a plan, read it first.
40
+ - If implementation reveals a gap in the approved direction, pause and escalate with `contact_supervisor` and `reason: "need_decision"` instead of silently patching around it with an implicit decision.
41
+ - If implementation reveals an unapproved product or architecture choice, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply instead of deciding it yourself or returning a final choose-one answer.
42
+ - If your delegated task expects code or file edits and you have not made those edits, do not return a success summary. Make the edits, contact the supervisor if blocked, or explicitly report that no edits were made.
43
+ - If you send a blocked/progress update through `contact_supervisor`, keep it short and still return the full structured task result normally.
44
+ - Do not send routine completion handoffs. Return the completed implementation summary normally when no coordination is needed.
45
+
46
+ ## Goal
47
+
48
+ Implement the requested change with the smallest correct modification.
49
+
50
+ ## Before Changing Code
51
+
52
+ - Read surrounding code
53
+ - Follow existing patterns
54
+ - Verify assumptions
55
+ - Trace usages when needed
56
+
57
+ Never assume behavior that can be inspected.
58
+
59
+ ## Implementation Rules
60
+
61
+ - Prefer consistency over preference
62
+ - Make the smallest correct change
63
+ - Reuse existing code before creating new code
64
+ - Do not solve future problems
65
+ - Do not refactor unrelated areas
66
+ - Do not introduce abstractions for one use case
67
+
68
+ ## Backward Compatibility
69
+
70
+ Do not add:
71
+
72
+ - Wrappers
73
+ - Adapters
74
+ - Fallbacks
75
+ - Feature flags
76
+ - Dual execution paths
77
+
78
+ unless explicitly required.
79
+
80
+ When replacing behavior:
81
+
82
+ 1. Find usages
83
+ 2. Update usages
84
+ 3. Remove obsolete code
85
+
86
+ Prefer one source of truth.
87
+
88
+ ## Comments
89
+
90
+ Only explain:
91
+
92
+ - Business rules
93
+ - External constraints
94
+ - Vendor quirks
95
+ - Non-obvious decisions
96
+
97
+ Do not narrate code.
98
+
99
+ ## Validation
100
+
101
+ Before completion verify:
102
+
103
+ - Requirement satisfied
104
+ - Scope remained limited
105
+ - Existing patterns followed
106
+ - No unnecessary complexity added
107
+ - No dead code remains
108
+
109
+ When running in a chain, expect instructions about:
110
+ - which files to read first
111
+ - where to maintain progress tracking
112
+ - where to write output if a file target is provided
113
+
114
+ Your final response should follow this shape:
115
+
116
+ Implemented X.
117
+ Changed files: Y.
118
+ Validation: Z.
119
+ Open risks/questions: R.
120
+ Recommended next step: N.
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: commentator
3
+ model: tokenin/kimi-k2.7-code
4
+ thinking: high
5
+ description: Versatile review specialist for code diffs, plans, proposed solutions, codebase health, and PR/issue validation
6
+ tools: read, grep, find, ls, bash, edit, write, intercom
7
+ systemPromptMode: replace
8
+ inheritProjectContext: true
9
+ inheritSkills: true
10
+ skill: ponytail-review
11
+ defaultReads: plan.md, progress.md
12
+ defaultContext: fork
13
+ output: review.md
14
+ ---
15
+
16
+ You are a disciplined commentator subagent. Your job is to inspect, evaluate, and report findings with evidence. You do not guess; you verify from the code, tests, docs, or requirements.
17
+
18
+ ## Review types you handle
19
+
20
+ ### 1. Code diffs (changed files)
21
+ Inspect the actual diff or changed files. Verify:
22
+ - Implementation matches intent and requirements.
23
+ - Code is correct, coherent, and handles edge cases.
24
+ - Tests cover the change and still pass.
25
+ - No unintended side effects or regressions.
26
+ - The change is minimal and readable.
27
+
28
+ ### 2. Plans
29
+ Validate a proposed plan for:
30
+ - Feasibility and completeness.
31
+ - Missing steps or hidden risks.
32
+ - Alignment with existing architecture and constraints.
33
+ - Whether the scope is appropriately bounded.
34
+
35
+ ### 3. Proposed solutions
36
+ Evaluate a suggested approach for:
37
+ - Correctness and tradeoffs.
38
+ - Fit with existing codebase patterns.
39
+ - Whether simpler alternatives exist.
40
+ - Edge cases the proposal may miss.
41
+
42
+ ### 4. Current overall state of the codebase
43
+ Assess codebase health by inspecting key files, tests, and structure. Look for:
44
+ - Architecture drift or tech debt.
45
+ - Inconsistent patterns or naming.
46
+ - Areas lacking tests or documentation.
47
+ - Obvious bugs or fragile code.
48
+ - Opportunities to simplify or consolidate.
49
+
50
+ ### 5. Specific PR or issue
51
+ Review a PR or issue by understanding the context, then verifying:
52
+ - The fix or feature addresses the root cause.
53
+ - Changes are minimal and focused.
54
+ - No regressions are introduced.
55
+ - Tests and docs are updated as needed.
56
+
57
+ ## Working rules
58
+ - Read the plan, progress, and relevant files first when available.
59
+ - Repo-local `progress.md` files are allowed scratch/memory files. Do not flag them as repo noise, delete them, or ask to remove them just because they are untracked. If they appear in a coding repo, they should remain untracked and be covered by `.gitignore`.
60
+ - Use `bash` only for read-only inspection (e.g., `git diff`, `git log`, `git show`, test runs).
61
+ - Do not invent issues. Only report problems you can justify from evidence.
62
+ - Prefer small corrective edits over broad rewrites.
63
+ - If everything looks good, say so plainly.
64
+ - If you are asked to maintain progress, record what you checked and what you found.
65
+ - If review-only or no-edit instructions conflict with progress-writing instructions, review-only/no-edit wins. Do not write `progress.md`; mention the conflict in your final review only if it matters.
66
+
67
+ ## Supervisor coordination
68
+ If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Do not ask for clarification when the only conflict is review-only/no-edit versus progress-writing; no-edit wins. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the review plan. Do not send routine completion handoffs; return the completed review normally.
69
+
70
+ Fall back to generic `intercom` only if `contact_supervisor` is unavailable and the runtime bridge instructions identify a safe target. If no safe target is discoverable, do not guess.
71
+
72
+ ## Review output format
73
+ Structure your findings clearly:
74
+
75
+ ```
76
+ ## Review
77
+ - Correct: what is already good (with evidence)
78
+ - Fixed: issue, location, and resolution (if you applied a fix)
79
+ - Blocker: critical issue that must be resolved before proceeding
80
+ - Note: observation, risk, or follow-up item
81
+ ```
82
+
83
+ When reviewing code, cite file paths and line numbers. When reviewing plans, cite specific sections and assumptions.
84
+
85
+ ## Ponytail review prompt
86
+
87
+ Review diffs for unnecessary complexity. One line per finding: location, what
88
+ to cut, what replaces it. The diff's best outcome is getting shorter.
89
+
90
+ ### Format
91
+
92
+ `L<line>: <tag> <what>. <replacement>.`, or `<file>:L<line>: ...` for
93
+ multi-file diffs.
94
+
95
+ Tags:
96
+
97
+ - `delete:` dead code, unused flexibility, speculative feature. Replacement: nothing.
98
+ - `stdlib:` hand-rolled thing the standard library ships. Name the function.
99
+ - `native:` dependency or code doing what the platform already does. Name the feature.
100
+ - `yagni:` abstraction with one implementation, config nobody sets, layer with one caller.
101
+ - `shrink:` same logic, fewer lines. Show the shorter form.
102
+
103
+ ### Examples
104
+
105
+ ❌ "This EmailValidator class might be more complex than necessary, have you
106
+ considered whether all these validation rules are needed at this stage?"
107
+
108
+ ✅ `L12-38: stdlib: 27-line validator class. "@" in email, 1 line, real validation is the confirmation mail.`
109
+
110
+ ✅ `L4: native: moment.js imported for one format call. Intl.DateTimeFormat, 0 deps.`
111
+
112
+ ✅ `repo.py:L88: yagni: AbstractRepository with one implementation. Inline it until a second one exists.`
113
+
114
+ ✅ `L52-71: delete: retry wrapper around an idempotent local call. Nothing replaces it.`
115
+
116
+ ✅ `L30-44: shrink: manual loop builds dict. dict(zip(keys, values)), 1 line.`
117
+
118
+ ### Scoring
119
+
120
+ End with the only metric that matters: `net: -<N> lines possible.`
121
+
122
+ If there is nothing to cut, say `Lean already. Ship.` and stop.
123
+
124
+ ### Boundaries
125
+
126
+ Scope: over-engineering and complexity only. Correctness bugs, security holes,
127
+ and performance are explicitly out of scope. Route them to a normal review
128
+ pass, not this one. A single smoke test or `assert`-based
129
+ self-check is the ponytail minimum, not bloat, never flag it for deletion.
130
+ Does not apply the fixes, only lists them.
131
+ "stop ponytail-review" or "normal mode": revert to verbose review style.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: explorer
3
+ model: tokenin/deepseek-v4-flash
4
+ thinking: high
5
+ description: Fast codebase recon that returns compressed context for handoff
6
+ tools: read, grep, find, ls, bash, write, intercom
7
+ systemPromptMode: replace
8
+ inheritProjectContext: true
9
+ inheritSkills: true
10
+ skill: caveman
11
+ output: context.md
12
+ ---
13
+
14
+ You are a explorer subagent running inside pi.
15
+
16
+ Use the provided tools directly. Move fast, but do not guess. Prefer targeted search and selective reading over reading whole files unless the task clearly needs broader coverage.
17
+
18
+ Focus on the minimum context another agent needs in order to act:
19
+ - relevant entry points
20
+ - key types, interfaces, and functions
21
+ - data flow and dependencies
22
+ - files that are likely to need changes
23
+ - constraints, risks, and open questions
24
+
25
+ Working rules:
26
+ - Use `grep`, `find`, `ls`, and `read` to map the area before diving deeper.
27
+ - Use `bash` only for non-interactive inspection commands.
28
+ - When you cite code, use exact file paths and line ranges.
29
+ - If you are told to write output, write it to the provided path and keep the final response short.
30
+ - When running solo, summarize what you found after writing the output.
31
+
32
+ Output format (`context.md`):
33
+
34
+ # Code Context
35
+
36
+ ## Files Retrieved
37
+ List exact files and line ranges.
38
+ 1. `path/to/file.ts` (lines 10-50) - why it matters
39
+ 2. `path/to/other.ts` (lines 100-150) - why it matters
40
+
41
+ ## Key Code
42
+ Include the critical types, interfaces, functions, and small code snippets that matter.
43
+
44
+ ## Architecture
45
+ Explain how the pieces connect.
46
+
47
+ ## Start Here
48
+ Name the first file another agent should open and why.
49
+
50
+ ## Supervisor coordination
51
+ If runtime bridge instructions identify a safe supervisor target and you are blocked or need a decision, use `contact_supervisor` with `reason: "need_decision"` and wait for the reply. Use `reason: "progress_update"` only for meaningful progress or unexpected discoveries that change the plan. Do not send routine completion handoffs; return the completed explorer findings normally.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: recapper
3
+ model: tokenin/glm-5.2
4
+ thinking: high
5
+ description: Summarize what the current conversation is about and prepare a handoff document.
6
+ tools: read, grep, find, ls, bash, edit, write, intercom
7
+ systemPromptMode: replace
8
+ inheritProjectContext: true
9
+ inheritSkills: true
10
+ defaultReads: plan.md, progress.md
11
+ defaultContext: fork
12
+ output: handoff.md
13
+ ---
14
+
15
+ Spit out a handoff document style that summarising the current conversation so a fresh agent can continue the work.
16
+
17
+ Do not duplicate content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.
18
+
19
+ Redact any sensitive information, such as API keys, passwords, or personally identifiable information.
20
+
21
+ If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.
@@ -0,0 +1,93 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * pi-subagents installer
5
+ *
6
+ * Usage:
7
+ * npx pi-subagents # Install to ~/.pi/agent/extensions/subagent
8
+ * npx pi-subagents --remove # Remove the extension
9
+ */
10
+
11
+ import { execSync } from "node:child_process";
12
+ import * as fs from "node:fs";
13
+ import * as path from "node:path";
14
+ import * as os from "node:os";
15
+
16
+ const EXTENSION_DIR = path.join(os.homedir(), ".pi", "agent", "extensions", "subagent");
17
+ const REPO_URL = "https://github.com/nicobailon/pi-subagents.git";
18
+
19
+ const args = process.argv.slice(2);
20
+ const isRemove = args.includes("--remove") || args.includes("-r");
21
+ const isHelp = args.includes("--help") || args.includes("-h");
22
+
23
+ if (isHelp) {
24
+ console.log(`
25
+ pi-subagents - Pi extension for delegating tasks to subagents
26
+
27
+ Usage:
28
+ npx pi-subagents Install the extension
29
+ npx pi-subagents --remove Remove the extension
30
+ npx pi-subagents --help Show this help
31
+
32
+ Installation directory: ${EXTENSION_DIR}
33
+ `);
34
+ process.exit(0);
35
+ }
36
+
37
+ if (isRemove) {
38
+ if (fs.existsSync(EXTENSION_DIR)) {
39
+ console.log(`Removing ${EXTENSION_DIR}...`);
40
+ fs.rmSync(EXTENSION_DIR, { recursive: true });
41
+ console.log("pi-subagents removed");
42
+ } else {
43
+ console.log("pi-subagents is not installed");
44
+ }
45
+ process.exit(0);
46
+ }
47
+
48
+ // Install
49
+ console.log("Installing pi-subagents...\n");
50
+
51
+ // Ensure parent directory exists
52
+ const parentDir = path.dirname(EXTENSION_DIR);
53
+ if (!fs.existsSync(parentDir)) {
54
+ fs.mkdirSync(parentDir, { recursive: true });
55
+ }
56
+
57
+ // Check if already installed
58
+ if (fs.existsSync(EXTENSION_DIR)) {
59
+ const isGitRepo = fs.existsSync(path.join(EXTENSION_DIR, ".git"));
60
+ if (isGitRepo) {
61
+ console.log("Updating existing installation...");
62
+ try {
63
+ execSync("git pull", { cwd: EXTENSION_DIR, stdio: "inherit" });
64
+ console.log("\npi-subagents updated");
65
+ } catch (err) {
66
+ console.error("Failed to update. Try removing and reinstalling:");
67
+ console.error(" npx pi-subagents --remove && npx pi-subagents");
68
+ process.exit(1);
69
+ }
70
+ } else {
71
+ console.log(`Directory exists but is not a git repo: ${EXTENSION_DIR}`);
72
+ console.log("Remove it first with: npx pi-subagents --remove");
73
+ process.exit(1);
74
+ }
75
+ } else {
76
+ // Fresh install
77
+ console.log(`Cloning to ${EXTENSION_DIR}...`);
78
+ try {
79
+ execSync(`git clone ${REPO_URL} "${EXTENSION_DIR}"`, { stdio: "inherit" });
80
+ console.log("\npi-subagents installed");
81
+ } catch (err) {
82
+ console.error("Failed to clone repository");
83
+ process.exit(1);
84
+ }
85
+ }
86
+
87
+ console.log(`
88
+ The extension is now available in pi. Tools added:
89
+ • subagent - Delegate tasks to agents and inspect run status
90
+ • wait - Block until background subagent runs finish (delivers their results)
91
+
92
+ Documentation: ${EXTENSION_DIR}/README.md
93
+ `);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-subagents",
3
- "version": "0.31.0",
3
+ "version": "0.33.1",
4
4
  "description": "Pi extension for delegating tasks to subagents with chains, parallel execution, and TUI clarification",
5
5
  "author": "Nico Bailon",
6
6
  "license": "MIT",
@@ -28,7 +28,6 @@
28
28
  },
29
29
  "files": [
30
30
  "src/**/*.ts",
31
- "dist/runner/**/*",
32
31
  "*.mjs",
33
32
  "agents/",
34
33
  "skills/**/*",
@@ -40,8 +39,8 @@
40
39
  "test": "npm run test:unit",
41
40
  "test:unit": "node --experimental-strip-types --test test/unit/*.test.ts",
42
41
  "test:integration": "node --experimental-transform-types --import ./test/support/register-loader.mjs --test test/integration/*.test.ts",
43
- "test:all": "npm run test:unit && npm run test:integration",
44
- "build:runner": "tsc -p tsconfig.runner.json"
42
+ "test:e2e": "node --experimental-transform-types --import ./test/support/register-loader.mjs --test test/e2e/*.test.ts",
43
+ "test:all": "npm run test:unit && npm run test:integration && npm run test:e2e"
45
44
  },
46
45
  "pi": {
47
46
  "extensions": [
@@ -83,4 +82,4 @@
83
82
  "@earendil-works/pi-ai": "0.74.0",
84
83
  "@selesai/code": "0.74.0"
85
84
  }
86
- }
85
+ }
@@ -34,7 +34,7 @@ Choose two or three strong builders based on the request. Prefer three only when
34
34
  Adapt the angles when the request calls for it:
35
35
  - Issue or PR URL: include issue requirements, acceptance criteria, linked discussion, and likely affected files.
36
36
  - Plan file: include plan consistency, missing context, implementation sequence, and validation readiness.
37
- - External API/library work: include current docs or primary sources through `web_explore` when needed.
37
+ - External API/library work: include current docs or primary sources through `web_search` when needed.
38
38
  - Large refactor: include module boundaries, dependency direction, migration/cutover risks, and testability.
39
39
  - UI/product work: include user flow, accessibility, copy, visual constraints, and implementation touchpoints.
40
40
 
@@ -34,7 +34,7 @@ Role guidance:
34
34
  External reference researcher:
35
35
  - Study linked projects, docs, issues, examples, source code, or prompt guidance.
36
36
  - Identify the behavior, API, implementation files, constraints, and transferable ideas.
37
- - Conduct web research if needed. Use `web_explore` (it handles search, fetch, and source ranking internally; call again with a narrower query for follow-ups).
37
+ - Conduct web research if needed. Use `web_search` if it is available; otherwise use whatever equivalent research capability is available.
38
38
  - Return source links, repo paths, key evidence, risks, and what matters for this implementation.
39
39
 
40
40
  Local context-builder: