@chankov/agent-fleet 2.0.5 → 2.0.6

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 (514) hide show
  1. package/.pi/harnesses/agent-hub/README.md +74 -10
  2. package/.pi/harnesses/agent-hub/acceptance.ts +62 -0
  3. package/.pi/harnesses/agent-hub/artifacts.js +1 -1
  4. package/.pi/harnesses/agent-hub/budget-continuation.ts +0 -60
  5. package/.pi/harnesses/agent-hub/budget-recovery.ts +97 -0
  6. package/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
  7. package/.pi/harnesses/agent-hub/commands/context.ts +2 -0
  8. package/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  9. package/.pi/harnesses/agent-hub/config/agents.ts +3 -9
  10. package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +7 -5
  11. package/.pi/harnesses/agent-hub/context/budgets.ts +8 -14
  12. package/.pi/harnesses/agent-hub/debate-command.ts +2 -2
  13. package/.pi/harnesses/agent-hub/dispatch-coms.ts +4 -1
  14. package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +37 -18
  15. package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +5 -5
  16. package/.pi/harnesses/agent-hub/dispatch-native-types.ts +22 -0
  17. package/.pi/harnesses/agent-hub/dispatch-native.ts +25 -11
  18. package/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
  19. package/.pi/harnesses/agent-hub/hub-state-audit.js +5 -0
  20. package/.pi/harnesses/agent-hub/index.ts +79 -43
  21. package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +2 -0
  22. package/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +9 -30
  23. package/.pi/harnesses/agent-hub/monitor-control.ts +1 -1
  24. package/.pi/harnesses/agent-hub/no-progress.ts +76 -0
  25. package/.pi/harnesses/agent-hub/package.json +1 -1
  26. package/.pi/harnesses/agent-hub/policy/roster.ts +16 -1
  27. package/.pi/harnesses/agent-hub/policy/work-mode.ts +3 -2
  28. package/.pi/harnesses/agent-hub/poll-command.ts +2 -2
  29. package/.pi/harnesses/agent-hub/prompts/context.ts +1 -0
  30. package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +3 -1
  31. package/.pi/harnesses/agent-hub/research/runtime.ts +17 -2
  32. package/.pi/harnesses/agent-hub/research/spawn-run.ts +14 -6
  33. package/.pi/harnesses/agent-hub/scope-gate.js +50 -30
  34. package/.pi/harnesses/agent-hub/tools/context.ts +2 -0
  35. package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +6 -3
  36. package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +65 -24
  37. package/.pi/harnesses/agent-hub/types.ts +1 -0
  38. package/.pi/harnesses/agent-hub/ui/pool.ts +6 -1
  39. package/.pi/harnesses/agent-hub/work-mode-controls.ts +1 -1
  40. package/.pi/harnesses/ask-user-remote/README.md +8 -2
  41. package/.pi/harnesses/ask-user-remote/index.ts +40 -14
  42. package/.pi/harnesses/ask-user-remote/questions.ts +161 -0
  43. package/.pi/harnesses/ask-user-remote/race-core.js +23 -5
  44. package/.pi/harnesses/ask-user-remote/runtime-ask.ts +43 -0
  45. package/.pi/harnesses/coms/README.md +1 -1
  46. package/.pi/harnesses/coms/index.ts +7 -1
  47. package/.pi/harnesses/coms/package.json +1 -1
  48. package/.pi/harnesses/damage-control-continue/package.json +1 -1
  49. package/.pi/harnesses/lib/context-budget-child-prompt.ts +5 -4
  50. package/.pi/harnesses/lib/fleet-dashboard-view.ts +1 -1
  51. package/.versions/2.0.6/.pi/agents/dispatch-policy.yaml +32 -0
  52. package/.versions/2.0.6/.pi/agents/model-profiles.yaml +83 -0
  53. package/.versions/2.0.6/.pi/agents/peers.yaml +145 -0
  54. package/.versions/2.0.6/.pi/agents/teams.yaml +41 -0
  55. package/.versions/2.0.6/.pi/agents/voices.yaml +13 -0
  56. package/.versions/2.0.6/.pi/damage-control-rules.yaml +297 -0
  57. package/.versions/2.0.6/.pi/extensions/agent-fleet-update-check/README.md +57 -0
  58. package/.versions/2.0.6/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
  59. package/.versions/2.0.6/.pi/extensions/agent-fleet-update-check/package.json +6 -0
  60. package/.versions/2.0.6/.pi/extensions/btw/README.md +120 -0
  61. package/.versions/2.0.6/.pi/extensions/btw/index.ts +914 -0
  62. package/.versions/2.0.6/.pi/extensions/btw/package.json +6 -0
  63. package/.versions/2.0.6/.pi/extensions/btw/state.js +179 -0
  64. package/.versions/2.0.6/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  65. package/.versions/2.0.6/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  66. package/.versions/2.0.6/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  67. package/.versions/2.0.6/.pi/extensions/compact-and-continue/README.md +42 -0
  68. package/.versions/2.0.6/.pi/extensions/compact-and-continue/index.ts +120 -0
  69. package/.versions/2.0.6/.pi/extensions/compact-and-continue/package.json +6 -0
  70. package/.versions/2.0.6/.pi/extensions/mcp-bridge/README.md +46 -0
  71. package/.versions/2.0.6/.pi/extensions/mcp-bridge/index.ts +206 -0
  72. package/.versions/2.0.6/.pi/extensions/mcp-bridge/package.json +6 -0
  73. package/.versions/2.0.6/.pi/extensions/package-lock.json +1175 -0
  74. package/.versions/2.0.6/.pi/extensions/package.json +9 -0
  75. package/.versions/2.0.6/.pi/extensions/pi-voice-stt/README.md +205 -0
  76. package/.versions/2.0.6/.pi/extensions/pi-voice-stt/config.ts +198 -0
  77. package/.versions/2.0.6/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  78. package/.versions/2.0.6/.pi/extensions/pi-voice-stt/index.ts +248 -0
  79. package/.versions/2.0.6/.pi/extensions/pi-voice-stt/package.json +6 -0
  80. package/.versions/2.0.6/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  81. package/.versions/2.0.6/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  82. package/.versions/2.0.6/.pi/harnesses/agent-hub/README.md +1203 -0
  83. package/.versions/2.0.6/.pi/harnesses/agent-hub/acceptance.ts +62 -0
  84. package/.versions/2.0.6/.pi/harnesses/agent-hub/access-approval.ts +135 -0
  85. package/.versions/2.0.6/.pi/harnesses/agent-hub/artifacts.js +146 -0
  86. package/.versions/2.0.6/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
  87. package/.versions/2.0.6/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  88. package/.versions/2.0.6/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
  89. package/.versions/2.0.6/.pi/harnesses/agent-hub/budget-recovery.ts +97 -0
  90. package/.versions/2.0.6/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  91. package/.versions/2.0.6/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
  92. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  93. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  94. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  95. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  96. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  97. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  98. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  99. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  100. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  101. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  102. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  103. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
  104. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  105. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  106. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  107. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/context.ts +43 -0
  108. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  109. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  110. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  111. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  112. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  113. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  114. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  115. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  116. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
  117. package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  118. package/.versions/2.0.6/.pi/harnesses/agent-hub/config/agents.ts +173 -0
  119. package/.versions/2.0.6/.pi/harnesses/agent-hub/config/model-profiles.ts +216 -0
  120. package/.versions/2.0.6/.pi/harnesses/agent-hub/config/overrides.ts +153 -0
  121. package/.versions/2.0.6/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  122. package/.versions/2.0.6/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +213 -0
  123. package/.versions/2.0.6/.pi/harnesses/agent-hub/context/budgets.ts +202 -0
  124. package/.versions/2.0.6/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  125. package/.versions/2.0.6/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  126. package/.versions/2.0.6/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
  127. package/.versions/2.0.6/.pi/harnesses/agent-hub/context-window.js +106 -0
  128. package/.versions/2.0.6/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  129. package/.versions/2.0.6/.pi/harnesses/agent-hub/delegate.ts +446 -0
  130. package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-coms.ts +237 -0
  131. package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  132. package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native-complete.ts +154 -0
  133. package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +156 -0
  134. package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +193 -0
  135. package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native-types.ts +230 -0
  136. package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native.ts +213 -0
  137. package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  138. package/.versions/2.0.6/.pi/harnesses/agent-hub/docs-lane.js +122 -0
  139. package/.versions/2.0.6/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
  140. package/.versions/2.0.6/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  141. package/.versions/2.0.6/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
  142. package/.versions/2.0.6/.pi/harnesses/agent-hub/external-blocker.js +85 -0
  143. package/.versions/2.0.6/.pi/harnesses/agent-hub/fixtures/registration-surface.json +57 -0
  144. package/.versions/2.0.6/.pi/harnesses/agent-hub/footer.ts +30 -0
  145. package/.versions/2.0.6/.pi/harnesses/agent-hub/helpers.ts +266 -0
  146. package/.versions/2.0.6/.pi/harnesses/agent-hub/hub-state-audit.js +64 -0
  147. package/.versions/2.0.6/.pi/harnesses/agent-hub/index.ts +2151 -0
  148. package/.versions/2.0.6/.pi/harnesses/agent-hub/input/completions.ts +76 -0
  149. package/.versions/2.0.6/.pi/harnesses/agent-hub/input/shortcuts.ts +18 -0
  150. package/.versions/2.0.6/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
  151. package/.versions/2.0.6/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  152. package/.versions/2.0.6/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  153. package/.versions/2.0.6/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
  154. package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  155. package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  156. package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  157. package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  158. package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  159. package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  160. package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  161. package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  162. package/.versions/2.0.6/.pi/harnesses/agent-hub/no-progress.ts +76 -0
  163. package/.versions/2.0.6/.pi/harnesses/agent-hub/package.json +7 -0
  164. package/.versions/2.0.6/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  165. package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  166. package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  167. package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  168. package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
  169. package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/work-mode.ts +119 -0
  170. package/.versions/2.0.6/.pi/harnesses/agent-hub/poll-command.ts +176 -0
  171. package/.versions/2.0.6/.pi/harnesses/agent-hub/presentation.ts +48 -0
  172. package/.versions/2.0.6/.pi/harnesses/agent-hub/prompts/context.ts +47 -0
  173. package/.versions/2.0.6/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
  174. package/.versions/2.0.6/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
  175. package/.versions/2.0.6/.pi/harnesses/agent-hub/prompts/system-prompt.ts +112 -0
  176. package/.versions/2.0.6/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
  177. package/.versions/2.0.6/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  178. package/.versions/2.0.6/.pi/harnesses/agent-hub/research/runtime.ts +192 -0
  179. package/.versions/2.0.6/.pi/harnesses/agent-hub/research/spawn-run.ts +156 -0
  180. package/.versions/2.0.6/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  181. package/.versions/2.0.6/.pi/harnesses/agent-hub/return-contract.js +293 -0
  182. package/.versions/2.0.6/.pi/harnesses/agent-hub/return-extract.js +75 -0
  183. package/.versions/2.0.6/.pi/harnesses/agent-hub/review-findings.js +102 -0
  184. package/.versions/2.0.6/.pi/harnesses/agent-hub/run-budget.js +537 -0
  185. package/.versions/2.0.6/.pi/harnesses/agent-hub/run-namespace.js +87 -0
  186. package/.versions/2.0.6/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
  187. package/.versions/2.0.6/.pi/harnesses/agent-hub/scope-gate.js +123 -0
  188. package/.versions/2.0.6/.pi/harnesses/agent-hub/session-health.js +110 -0
  189. package/.versions/2.0.6/.pi/harnesses/agent-hub/session-start.ts +42 -0
  190. package/.versions/2.0.6/.pi/harnesses/agent-hub/spawn.ts +404 -0
  191. package/.versions/2.0.6/.pi/harnesses/agent-hub/timeline.ts +54 -0
  192. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/action-executors.ts +149 -0
  193. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  194. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/context.ts +134 -0
  195. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
  196. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +273 -0
  197. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  198. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
  199. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
  200. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
  201. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
  202. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  203. package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
  204. package/.versions/2.0.6/.pi/harnesses/agent-hub/types.ts +63 -0
  205. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/activity-dots.ts +16 -0
  206. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
  207. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/detail-panel.ts +178 -0
  208. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +125 -0
  209. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/grid.ts +42 -0
  210. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  211. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  212. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  213. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/running-strip.ts +139 -0
  214. package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
  215. package/.versions/2.0.6/.pi/harnesses/agent-hub/version.ts +42 -0
  216. package/.versions/2.0.6/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
  217. package/.versions/2.0.6/.pi/harnesses/agent-hub/work-mode.ts +167 -0
  218. package/.versions/2.0.6/.pi/harnesses/ask-user-remote/README.md +59 -0
  219. package/.versions/2.0.6/.pi/harnesses/ask-user-remote/index.ts +558 -0
  220. package/.versions/2.0.6/.pi/harnesses/ask-user-remote/questions.ts +161 -0
  221. package/.versions/2.0.6/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  222. package/.versions/2.0.6/.pi/harnesses/ask-user-remote/runtime-ask.ts +43 -0
  223. package/.versions/2.0.6/.pi/harnesses/coms/README.md +100 -0
  224. package/.versions/2.0.6/.pi/harnesses/coms/index.ts +282 -0
  225. package/.versions/2.0.6/.pi/harnesses/coms/package.json +7 -0
  226. package/.versions/2.0.6/.pi/harnesses/coms/version.ts +42 -0
  227. package/.versions/2.0.6/.pi/harnesses/damage-control-continue/README.md +124 -0
  228. package/.versions/2.0.6/.pi/harnesses/damage-control-continue/index.ts +536 -0
  229. package/.versions/2.0.6/.pi/harnesses/damage-control-continue/package.json +7 -0
  230. package/.versions/2.0.6/.pi/harnesses/damage-control-continue/version.ts +42 -0
  231. package/.versions/2.0.6/.pi/harnesses/lib/coms-core-io.ts +385 -0
  232. package/.versions/2.0.6/.pi/harnesses/lib/coms-core.ts +577 -0
  233. package/.versions/2.0.6/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
  234. package/.versions/2.0.6/.pi/harnesses/lib/context-budget-child-prompt.ts +180 -0
  235. package/.versions/2.0.6/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
  236. package/.versions/2.0.6/.pi/harnesses/lib/context-budget-view.ts +107 -0
  237. package/.versions/2.0.6/.pi/harnesses/lib/context-budget.ts +114 -0
  238. package/.versions/2.0.6/.pi/harnesses/lib/damage-control-shared.ts +197 -0
  239. package/.versions/2.0.6/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  240. package/.versions/2.0.6/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  241. package/.versions/2.0.6/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  242. package/.versions/2.0.6/.pi/harnesses/lib/fleet-dashboard-ops.ts +161 -0
  243. package/.versions/2.0.6/.pi/harnesses/lib/fleet-dashboard-view.ts +148 -0
  244. package/.versions/2.0.6/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
  245. package/.versions/2.0.6/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  246. package/.versions/2.0.6/.pi/harnesses/lib/fleet-panel.ts +34 -0
  247. package/.versions/2.0.6/.pi/harnesses/lib/fleet-read-model.ts +131 -0
  248. package/.versions/2.0.6/.pi/harnesses/lib/fleet-selection.ts +24 -0
  249. package/.versions/2.0.6/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  250. package/.versions/2.0.6/.pi/harnesses/lib/herdr-client.ts +472 -0
  251. package/.versions/2.0.6/.pi/harnesses/lib/herdr-presence.ts +399 -0
  252. package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  253. package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  254. package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  255. package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  256. package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  257. package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  258. package/.versions/2.0.6/.pi/harnesses/lib/spawned-peers.js +190 -0
  259. package/.versions/2.0.6/.pi/harnesses/package-lock.json +2039 -0
  260. package/.versions/2.0.6/.pi/harnesses/package.json +10 -0
  261. package/.versions/2.0.6/.pi/prompts/af-build.md +24 -0
  262. package/.versions/2.0.6/.pi/prompts/af-code-simplify.md +22 -0
  263. package/.versions/2.0.6/.pi/prompts/af-plan.md +17 -0
  264. package/.versions/2.0.6/.pi/prompts/af-review.md +16 -0
  265. package/.versions/2.0.6/.pi/prompts/af-set-hermes-telegram.md +15 -0
  266. package/.versions/2.0.6/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  267. package/.versions/2.0.6/.pi/prompts/af-ship.md +17 -0
  268. package/.versions/2.0.6/.pi/prompts/af-spec.md +15 -0
  269. package/.versions/2.0.6/.pi/prompts/af-test.md +19 -0
  270. package/.versions/2.0.6/.pi/skills/bowser/SKILL.md +145 -0
  271. package/.versions/2.0.6/.version +1 -0
  272. package/.versions/2.0.6/agents/architect.md +25 -0
  273. package/.versions/2.0.6/agents/bowser.md +28 -0
  274. package/.versions/2.0.6/agents/builder.md +56 -0
  275. package/.versions/2.0.6/agents/code-reviewer.md +210 -0
  276. package/.versions/2.0.6/agents/deep-researcher.md +33 -0
  277. package/.versions/2.0.6/agents/documenter.md +23 -0
  278. package/.versions/2.0.6/agents/orchestrator.md +23 -0
  279. package/.versions/2.0.6/agents/plan-reviewer.md +84 -0
  280. package/.versions/2.0.6/agents/planner.md +106 -0
  281. package/.versions/2.0.6/agents/releaser.md +25 -0
  282. package/.versions/2.0.6/agents/researcher.md +31 -0
  283. package/.versions/2.0.6/agents/security-auditor.md +168 -0
  284. package/.versions/2.0.6/agents/test-engineer.md +154 -0
  285. package/.versions/2.0.6/agents/web-debugger.md +44 -0
  286. package/.versions/2.0.6/agents/web-performance-auditor.md +194 -0
  287. package/.versions/2.0.6/bin/catalog/harness-runtime-closure.json +31 -0
  288. package/.versions/2.0.6/codex/fleet-session-client/SKILL.md +34 -0
  289. package/.versions/2.0.6/codex/fleet-session-client.zip +0 -0
  290. package/.versions/2.0.6/docs/ARCHITECTURE.md +407 -0
  291. package/.versions/2.0.6/docs/agent-fleet-setup.md +561 -0
  292. package/.versions/2.0.6/docs/claude-code-coms-bridge.md +133 -0
  293. package/.versions/2.0.6/docs/codex-session-bridge.md +219 -0
  294. package/.versions/2.0.6/docs/coms-hermes-bridge.md +188 -0
  295. package/.versions/2.0.6/docs/getting-started.md +126 -0
  296. package/.versions/2.0.6/docs/npm-install.md +301 -0
  297. package/.versions/2.0.6/docs/pi-extensions.md +446 -0
  298. package/.versions/2.0.6/docs/pi-setup.md +76 -0
  299. package/.versions/2.0.6/docs/skill-anatomy.md +150 -0
  300. package/.versions/2.0.6/hermes/README.md +347 -0
  301. package/.versions/2.0.6/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  302. package/.versions/2.0.6/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  303. package/.versions/2.0.6/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  304. package/.versions/2.0.6/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  305. package/.versions/2.0.6/hermes/gates/gate-o-capability.md +8 -0
  306. package/.versions/2.0.6/hermes/gates/gate-o-validator-fixtures.json +1 -0
  307. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  308. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  309. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  310. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  311. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  312. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  313. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  314. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  315. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  316. package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  317. package/.versions/2.0.6/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  318. package/.versions/2.0.6/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  319. package/.versions/2.0.6/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  320. package/.versions/2.0.6/hermes/skills/hub-conductor/SKILL.md +84 -0
  321. package/.versions/2.0.6/hermes/skills/hub-liaison/SKILL.md +84 -0
  322. package/.versions/2.0.6/hermes/skills/hub-watchdog/SKILL.md +76 -0
  323. package/.versions/2.0.6/hermes/skills/hub-watchdog/manifest.json +1 -0
  324. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  325. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  326. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  327. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  328. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  329. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  330. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  331. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  332. package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  333. package/.versions/2.0.6/hermes/watchdog-tests/__init__.py +0 -0
  334. package/.versions/2.0.6/hooks/coms-stop-hook.mjs +84 -0
  335. package/.versions/2.0.6/install-manifest.json +2924 -0
  336. package/.versions/2.0.6/justfile +247 -0
  337. package/.versions/2.0.6/manifest-meta.json +976 -0
  338. package/.versions/2.0.6/references/accessibility-checklist.md +160 -0
  339. package/.versions/2.0.6/references/communication-contract.md +26 -0
  340. package/.versions/2.0.6/references/definition-of-done.md +67 -0
  341. package/.versions/2.0.6/references/fleet-coordination-patterns.md +171 -0
  342. package/.versions/2.0.6/references/observability-checklist.md +91 -0
  343. package/.versions/2.0.6/references/orchestration-patterns.md +370 -0
  344. package/.versions/2.0.6/references/performance-checklist.md +153 -0
  345. package/.versions/2.0.6/references/prompting-patterns.md +380 -0
  346. package/.versions/2.0.6/references/security-checklist.md +179 -0
  347. package/.versions/2.0.6/references/testing-patterns.md +236 -0
  348. package/.versions/2.0.6/references/workflow-authoring.md +304 -0
  349. package/.versions/2.0.6/scripts/claude-code-preflight.ts +70 -0
  350. package/.versions/2.0.6/scripts/coms-claude-bridge.ts +411 -0
  351. package/.versions/2.0.6/scripts/coms-cli.ts +425 -0
  352. package/.versions/2.0.6/scripts/coms-hermes-bridge.ts +413 -0
  353. package/.versions/2.0.6/scripts/fleet-codex-client.ts +69 -0
  354. package/.versions/2.0.6/scripts/fleet-codex-read.py +146 -0
  355. package/.versions/2.0.6/scripts/fleet.ts +216 -0
  356. package/.versions/2.0.6/scripts/flow.ts +137 -0
  357. package/.versions/2.0.6/scripts/hermes-monitor-capability-runner.ts +25 -0
  358. package/.versions/2.0.6/scripts/hermes-monitor-scenario.ts +474 -0
  359. package/.versions/2.0.6/scripts/hermes-watchdog-capability-probe.ts +45 -0
  360. package/.versions/2.0.6/scripts/install-hermes-plugin.sh +180 -0
  361. package/.versions/2.0.6/scripts/lib/claude-bridge-core.ts +210 -0
  362. package/.versions/2.0.6/scripts/lib/coms-envelope.ts +582 -0
  363. package/.versions/2.0.6/scripts/lib/fake-herdr-server.ts +88 -0
  364. package/.versions/2.0.6/scripts/lib/fleet-codex-catalog.ts +63 -0
  365. package/.versions/2.0.6/scripts/lib/fleet-codex-operations.ts +190 -0
  366. package/.versions/2.0.6/scripts/lib/fleet-codex-session.ts +166 -0
  367. package/.versions/2.0.6/scripts/lib/fleet-codex-transport.ts +124 -0
  368. package/.versions/2.0.6/scripts/lib/fleet-command.ts +252 -0
  369. package/.versions/2.0.6/scripts/lib/flow-command.ts +93 -0
  370. package/.versions/2.0.6/scripts/lib/flow-maintenance.ts +230 -0
  371. package/.versions/2.0.6/scripts/lib/herdr-layout.ts +281 -0
  372. package/.versions/2.0.6/scripts/lib/hermes-bridge-core.ts +241 -0
  373. package/.versions/2.0.6/scripts/lib/hermes-monitor-events.ts +1 -0
  374. package/.versions/2.0.6/scripts/lib/hermes-monitor-herdr.ts +2 -0
  375. package/.versions/2.0.6/scripts/lib/hermes-monitor-model.ts +3 -0
  376. package/.versions/2.0.6/scripts/lib/hermes-monitor-registry.ts +2 -0
  377. package/.versions/2.0.6/scripts/lib/hermes-monitor-socket.ts +2 -0
  378. package/.versions/2.0.6/scripts/lib/hermes-monitor-store.ts +2 -0
  379. package/.versions/2.0.6/scripts/lib/monitor-env.ts +146 -0
  380. package/.versions/2.0.6/scripts/lib/peer-launch.ts +318 -0
  381. package/.versions/2.0.6/scripts/lib/persona-banner.ts +62 -0
  382. package/.versions/2.0.6/scripts/lib/runtime-dependencies.js +124 -0
  383. package/.versions/2.0.6/scripts/lib/spawn-stagger.ts +101 -0
  384. package/.versions/2.0.6/scripts/lib/team-project.ts +178 -0
  385. package/.versions/2.0.6/scripts/lib/team-snapshot.ts +147 -0
  386. package/.versions/2.0.6/scripts/package-lock.json +35 -0
  387. package/.versions/2.0.6/scripts/package.json +9 -0
  388. package/.versions/2.0.6/scripts/peer-banner.ts +40 -0
  389. package/.versions/2.0.6/scripts/peer-launch.ts +285 -0
  390. package/.versions/2.0.6/scripts/team-snapshot.ts +237 -0
  391. package/.versions/2.0.6/scripts/team-up.ts +378 -0
  392. package/.versions/2.0.6/scripts/workflows/lib/agent-phase.ts +133 -0
  393. package/.versions/2.0.6/scripts/workflows/lib/changes.ts +61 -0
  394. package/.versions/2.0.6/scripts/workflows/lib/debate.ts +149 -0
  395. package/.versions/2.0.6/scripts/workflows/lib/env.ts +34 -0
  396. package/.versions/2.0.6/scripts/workflows/lib/envelopes.ts +169 -0
  397. package/.versions/2.0.6/scripts/workflows/lib/gates.ts +81 -0
  398. package/.versions/2.0.6/scripts/workflows/lib/git.ts +96 -0
  399. package/.versions/2.0.6/scripts/workflows/lib/merge.ts +95 -0
  400. package/.versions/2.0.6/scripts/workflows/lib/model-profile.ts +22 -0
  401. package/.versions/2.0.6/scripts/workflows/lib/model-visibility.ts +92 -0
  402. package/.versions/2.0.6/scripts/workflows/lib/permissions.ts +130 -0
  403. package/.versions/2.0.6/scripts/workflows/lib/personas.ts +57 -0
  404. package/.versions/2.0.6/scripts/workflows/lib/poll.ts +86 -0
  405. package/.versions/2.0.6/scripts/workflows/lib/quality.ts +64 -0
  406. package/.versions/2.0.6/scripts/workflows/lib/run.ts +108 -0
  407. package/.versions/2.0.6/scripts/workflows/lib/trace.ts +34 -0
  408. package/.versions/2.0.6/scripts/workflows/lib/voices.ts +128 -0
  409. package/.versions/2.0.6/scripts/workflows/lib/writer-lease.ts +112 -0
  410. package/.versions/2.0.6/scripts/workflows/tsconfig.json +22 -0
  411. package/.versions/2.0.6/scripts/workflows/wf-build-test.ts +61 -0
  412. package/.versions/2.0.6/scripts/workflows/wf-debate.ts +87 -0
  413. package/.versions/2.0.6/scripts/workflows/wf-document.ts +50 -0
  414. package/.versions/2.0.6/scripts/workflows/wf-poll.ts +95 -0
  415. package/.versions/2.0.6/scripts/workflows/wf-quality.ts +20 -0
  416. package/.versions/2.0.6/scripts/workflows/wf-scout.ts +38 -0
  417. package/.versions/2.0.6/skills/_internal/grilling.md +59 -0
  418. package/.versions/2.0.6/skills/browser-testing-with-devtools/SKILL.md +351 -0
  419. package/.versions/2.0.6/skills/code-review-and-quality/SKILL.md +381 -0
  420. package/.versions/2.0.6/skills/compound-learning/SKILL.md +137 -0
  421. package/.versions/2.0.6/skills/context-engineering/SKILL.md +291 -0
  422. package/.versions/2.0.6/skills/deprecation-and-migration/SKILL.md +206 -0
  423. package/.versions/2.0.6/skills/designing-agents/SKILL.md +394 -0
  424. package/.versions/2.0.6/skills/designing-agents/pi-harness-authoring.md +222 -0
  425. package/.versions/2.0.6/skills/drafting-workflows/SKILL.md +143 -0
  426. package/.versions/2.0.6/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  427. package/.versions/2.0.6/skills/frontend-ui-engineering/SKILL.md +328 -0
  428. package/.versions/2.0.6/skills/git-workflow-and-versioning/SKILL.md +316 -0
  429. package/.versions/2.0.6/skills/idea-refine/SKILL.md +182 -0
  430. package/.versions/2.0.6/skills/idea-refine/examples.md +238 -0
  431. package/.versions/2.0.6/skills/idea-refine/frameworks.md +99 -0
  432. package/.versions/2.0.6/skills/idea-refine/refinement-criteria.md +113 -0
  433. package/.versions/2.0.6/skills/idea-refine/scripts/idea-refine.sh +15 -0
  434. package/.versions/2.0.6/skills/incremental-implementation/SKILL.md +298 -0
  435. package/.versions/2.0.6/skills/interview-me/SKILL.md +226 -0
  436. package/.versions/2.0.6/skills/orchestration-verification/SKILL.md +181 -0
  437. package/.versions/2.0.6/skills/peer-coms/SKILL.md +90 -0
  438. package/.versions/2.0.6/skills/performance-optimization/SKILL.md +350 -0
  439. package/.versions/2.0.6/skills/planning-and-task-breakdown/SKILL.md +265 -0
  440. package/.versions/2.0.6/skills/security-and-hardening/SKILL.md +461 -0
  441. package/.versions/2.0.6/skills/spec-driven-development/SKILL.md +256 -0
  442. package/.versions/2.0.6/skills/using-agent-skills/SKILL.md +197 -0
  443. package/.versions/2.0.6/vendor/agent-skills-upstream/LICENSE +21 -0
  444. package/.versions/2.0.6/vendor/agent-skills-upstream/README.md +11 -0
  445. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
  446. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  447. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  448. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  449. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  450. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
  451. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  452. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  453. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
  454. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  455. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  456. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  457. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  458. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  459. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  460. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  461. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  462. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  463. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  464. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
  465. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
  466. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
  467. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
  468. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
  469. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
  470. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
  471. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
  472. package/.versions/2.0.6/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
  473. package/CHANGELOG.md +23 -0
  474. package/README.md +12 -14
  475. package/bin/catalog/harness-runtime-closure.json +1 -6
  476. package/bin/lib/desired.js +2 -2
  477. package/bin/lib/features.js +8 -1
  478. package/bin/snapshot-version.js +1 -2
  479. package/codex/fleet-session-client/SKILL.md +34 -0
  480. package/codex/fleet-session-client.zip +0 -0
  481. package/docs/ARCHITECTURE.md +4 -4
  482. package/docs/MIGRATION-agent-fleet.md +2 -2
  483. package/docs/assets/branding/README.md +33 -0
  484. package/docs/assets/branding/agent-fleet-logo-v1.png +0 -0
  485. package/docs/assets/branding/agent-fleet-logo-white-v1.png +0 -0
  486. package/docs/codex-session-bridge.md +219 -0
  487. package/docs/coms-hermes-bridge.md +4 -5
  488. package/docs/getting-started.md +2 -0
  489. package/docs/npm-install.md +3 -1
  490. package/docs/pi-setup.md +2 -0
  491. package/hermes/README.md +1 -1
  492. package/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +19 -16
  493. package/install-manifest.json +54 -72
  494. package/justfile +0 -42
  495. package/manifest-meta.json +50 -43
  496. package/package.json +10 -7
  497. package/scripts/coms-cli.ts +2 -61
  498. package/scripts/fleet-codex-client.ts +69 -0
  499. package/scripts/fleet-codex-read.py +146 -0
  500. package/scripts/fleet.ts +0 -6
  501. package/scripts/lib/fleet-codex-catalog.ts +63 -0
  502. package/scripts/lib/fleet-codex-operations.ts +190 -0
  503. package/scripts/lib/fleet-codex-session.ts +166 -0
  504. package/scripts/lib/fleet-codex-transport.ts +124 -0
  505. package/scripts/lib/fleet-command.ts +5 -23
  506. package/scripts/lib/team-project.ts +15 -50
  507. package/scripts/team-up.ts +6 -34
  508. package/codex/CONDUCTOR.md +0 -148
  509. package/docs/codex-remote-conductor.md +0 -170
  510. package/scripts/codex-conductor.ts +0 -41
  511. package/scripts/codex-remote-control.ts +0 -167
  512. package/scripts/lib/codex-conductor.ts +0 -88
  513. package/scripts/lib/codex-remote-control.ts +0 -482
  514. package/systemd/user/agent-fleet-codex-remote-control.service.in +0 -23
@@ -0,0 +1,561 @@
1
+ # Agent Fleet — Project Files
2
+
3
+ agent-fleet keeps a few small files in a project's `.ai/` directory. They have
4
+ different readers and different lifetimes, so they are kept separate.
5
+
6
+ | File | Read by | When |
7
+ |------|---------|------|
8
+ | `.ai/agent-fleet-overrides.md` | `spec-driven-development`, `planning-and-task-breakdown`, `browser-testing-with-devtools`, `git-workflow-and-versioning`, `compound-learning` (the `rules:`/`docs:` keys of `## agent-hub`), `agent-hub` pi harness | Every run of those skills / every session start of the harness |
9
+ | `.ai/agent-fleet.json` | the deterministic `agent-fleet` lifecycle (`setup`) — human-owned desired state (preset/features); intended to be committed | Every setup plan; created/updated when setup persists desired state or migrates legacy installs |
10
+ | `.ai/agent-fleet-state.json` | the deterministic `agent-fleet` lifecycle (`setup`, `doctor`, `uninstall`) | Every lifecycle plan and apply |
11
+ | `.ai/agent-fleet-setup.md` | humans — rendered from the state file, never parsed back | Rewritten on every setup apply |
12
+ | `.ai/agent-fleet-transaction.json` | the deterministic lifecycle (`setup`, `doctor --fix`) — crash-recovery journal for in-flight file transactions | Written during apply; recovered or discarded by setup/doctor; removed when the transaction commits or is cleaned up |
13
+ | `.ai/stt.json` *(optional)* | `pi-voice-stt` extension | Every pi session start, when the extension is installed |
14
+
15
+ The `.ai/stt.json` file is present only when the optional `pi-voice-stt` voice-dictation
16
+ extension has been configured (by deterministic setup or by hand). Like the overrides file it holds
17
+ **no secrets** — it names the env vars (`apiKeyEnv`, plus the Azure endpoint var) whose values
18
+ live in a gitignored root `.env`. See [pi-voice-stt config](#ai-sttjson) below.
19
+
20
+ Keep them split: the overrides file is loaded into context constantly, so it
21
+ must stay minimal; the install record is read only by the CLI, so it can be
22
+ large.
23
+
24
+ ## Unified Fleet runtime configuration
25
+
26
+ A Pi workspace has one public runtime entry point. Bare Fleet loads Fleet Core
27
+ plus Agent Hub in **operator** work mode, in the current terminal, with no native
28
+ specialists active:
29
+
30
+ ```bash
31
+ just fleet
32
+ just fleet --project af
33
+ ```
34
+
35
+ Work mode, native roster, and peer topology are separate controls:
36
+
37
+ ```bash
38
+ # Direct tools plus an available native roster.
39
+ just fleet --work-mode operator --agents frontend --project af
40
+
41
+ # A roster implies orchestrator when work mode is not explicit.
42
+ just fleet --agents frontend --project af
43
+
44
+ # Herdr Hub-only and Hub-plus-peer topologies.
45
+ just fleet --herdr --project af
46
+ just fleet --agents frontend --peers frontend --project af
47
+ ```
48
+
49
+ Startup precedence is deterministic: explicit `--work-mode` wins; otherwise an
50
+ explicit `--agents` roster implies `orchestrator`; otherwise work mode is
51
+ `operator`. An orchestrator startup must name a roster. `--herdr` affects only
52
+ placement, while `--peers <preset>` implies Herdr and starts the selected peer
53
+ preset. Neither topology option selects a native roster.
54
+
55
+ `--project <name>` selects one coms namespace for the Hub and every standing or
56
+ dynamically spawned peer. Dynamic peer tools deliberately expose no project
57
+ override, so an agent cannot cross that boundary. The default project is
58
+ `default`; use an explicit project when multiple fleets share a machine.
59
+
60
+ The configuration files have distinct ownership:
61
+
62
+ | File | Controls |
63
+ | --- | --- |
64
+ | `.pi/agents/teams.yaml` | Named **native rosters** of Pi personas available to `dispatch_agent`. Bare Fleet ignores YAML ordering and starts empty; select one with `--agents`, `/af-agents-team`, or add individuals with `/af-agents-add`. |
65
+ | `.pi/agents/peers.yaml` | Named **standing peer presets** and each peer's runner (`pi` or `claude-code`), persona, model, extensions, and optional declared `env_file`. Select a preset with `--peers`; dynamic `herdr_spawn_peer` uses the same declaration resolver. |
66
+ | `.pi/agents/dispatch-policy.yaml` | Routing used only when `dispatch_agent.backend` is `auto`: native/coms preference, fallback, grace period, and peer reply timeout. |
67
+ | `.ai/agent-fleet-overrides.md` (`## agent-hub`) | Project-specific Hub language, model overrides, rule/doc roots, budget ceilings, watchdog, and related execution policy. It does not choose startup work mode or topology. |
68
+
69
+ For deterministic routing, `backend: "native"` always starts the local Pi
70
+ specialist even if a same-name peer is visible. `backend: "coms"` requires a
71
+ visible same-name peer and refuses without native fallback. The default
72
+ `backend: "auto"` follows `dispatch-policy.yaml` and preserves its configured
73
+ fallback behavior.
74
+
75
+ Capability packs load automatically—do not run an activation command. Explicit task intent activates the matching ready surface; readiness alone never exposes coms or Herdr tools to the model. Ambiguous fleet/peer/workspace intent gets one confirmation before its first side effect, and active task packs persist until the explicit `set_task_tier(new_task: true)` reset.
76
+
77
+ Capability flags and runtime gates fail closed:
78
+
79
+ - `--no-coms` keeps operator direct tools and native dispatch available, but
80
+ peer dispatch, `coms_send`/`coms_await`, and `/af-handoff` refuse actionably.
81
+ - `--herdr` and `--peers` require a running [Herdr](https://herdr.dev) server.
82
+ Without Herdr, bare Fleet still works and dynamic pane tools stay inactive.
83
+ - `--browser` adds the browser extension surface and `--all-extensions` opts
84
+ into the complete approved extension set. Missing optional dependencies do
85
+ not grant tools merely because a flag was supplied.
86
+ - Hub-owned slash commands remain registered in both work modes. A missing coms
87
+ runtime, Herdr connection, target peer, or native roster produces a
88
+ capability refusal rather than a missing command.
89
+
90
+ During the migration release, `just fleet hub`, `just fleet team <preset>`,
91
+ `just fleet team <preset> --no-hub`, and `--solo` remain accepted and print a
92
+ canonical replacement. New automation should use `just fleet` with
93
+ `--agents`, `--peers`, `--herdr`, and `--no-coms`; compatibility does not imply
94
+ that the deprecated grammar will remain indefinitely.
95
+
96
+ ### Resume and recovery
97
+
98
+ The Hub distinguishes the **pre-turn surface** (stable replacement prompt, volatile state capsule,
99
+ and active tool schemas) from **intra-turn pressure** (conversation and tool results accumulated in
100
+ the live model window). `/af-context` shows both. At 80% live usage the Hub warns and transiently makes
101
+ compaction support available; at 90% it blocks the next provider continuation and requests a
102
+ single automatic compaction after the current result is persisted. A prompt submitted during
103
+ startup/recovery is retained in memory and replayed once after success.
104
+
105
+ If automatic recovery fails, the prompt remains retained. Pi's built-in command is the bare-runtime
106
+ fallback:
107
+
108
+ ```text
109
+ /compact Preserve the current goal, decisions, modified files, pending operations, blockers, and next step.
110
+ ```
111
+
112
+ You can also switch to a larger-context model. Do not try to make room by editing the session file.
113
+ The JSONL shown by `/session` under `~/.pi/agent/sessions/` is Pi's authoritative append-only record;
114
+ resume with `/resume`, `pi -c`, or `pi --session <path|id>`. Never edit, truncate, reorder, or add
115
+ synthetic entries to recover from context pressure.
116
+
117
+ A resumed orchestrator session may instead be blocked because its persisted team name no longer
118
+ resolves against the current `.pi/agents/teams.yaml` and persona files. This is a fail-closed roster
119
+ recovery gate: orchestrator work mode and its direct-tool restrictions remain in force. Choose a valid
120
+ team with `/af-agents-team`, restart publicly with `just fleet --agents <name>`, or explicitly choose
121
+ operator work mode with `/af-work-mode operator` / `just fleet --work-mode operator`. Direct Pi launches
122
+ use `--agent-team <name>` or `--work-mode operator`. Explicit startup flags win over persisted state;
123
+ fix missing or renamed team/persona declarations before selecting them.
124
+
125
+ ## The overrides file — `.ai/agent-fleet-overrides.md`
126
+
127
+ Some skills and pi harnesses need facts specific to each project — where specs
128
+ and plans are saved, how to start a dev server, whether the agent may create
129
+ branches, or which user-facing language a dispatcher should use. Each reader
130
+ ships a sensible **default**; a project that needs something different declares
131
+ it here, and the reader picks it up.
132
+
133
+ - **Location:** `.ai/agent-fleet-overrides.md` at the project root.
134
+ - **Format:** Markdown. One `## <section-name>` section per skill or harness reader, with terse
135
+ `key: value` lines. Block values use the `key: |` multi-line form. No prose
136
+ and no install detail — readers parse it by key and load it on every run/session start.
137
+ - **Commit it.** Shared project configuration belongs in version control. Make
138
+ sure no `.gitignore` rule (for example a broad `.env*` pattern) excludes it.
139
+ - **No secrets.** For anything sensitive (test-account credentials), reference
140
+ the **name** of an environment variable; the real value lives in a gitignored
141
+ `.env`.
142
+ - If the file is absent, or a reader has no section in it, that reader uses its
143
+ built-in default.
144
+ - **Validation.** Because an unknown section or key silently falls back to the
145
+ default, typos are invisible at runtime. `agent-fleet doctor` (and the
146
+ runtime's Agent Fleet doctor command) validates the file — unknown sections,
147
+ unknown keys in known sections, invalid values for the mechanically parsed
148
+ `agent-hub` keys, missing `rules:` folders, missing `append-prompt:` files,
149
+ unknown `poll-panel:` names, and unset `## env` vars — as
150
+ **advisory, warn-only findings**; it never edits the file.
151
+
152
+ ### `spec-driven-development`
153
+
154
+ | Key | Default | Meaning |
155
+ |-----|---------|---------|
156
+ | `spec-dir` | `docs/prds/{area}` | Directory specs are written to |
157
+ | `naming` | `PRD{n}-{topic}` | File name pattern; `{n}` = next free PRD number, `{topic}` = kebab-case slug |
158
+
159
+ Default output: `docs/prds/{area}/PRD{n}-{topic}.md`.
160
+
161
+ ### `planning-and-task-breakdown`
162
+
163
+ | Key | Default | Meaning |
164
+ |-----|---------|---------|
165
+ | `plan-dir` | `docs/plans/{area}` | Directory plans are written to |
166
+ | `naming` | `PLAN-{prd-name}-{phase}` | File name pattern; `{phase}` suffix only when a plan spans multiple files |
167
+ | `todo` | `embedded` | `embedded` keeps the task list inside the plan; `separate` writes a standalone `todo.md` |
168
+
169
+ Default output: `docs/plans/{area}/PLAN-{prd-name}-{phase}.md`, task list embedded.
170
+
171
+ ### `browser-testing-with-devtools`
172
+
173
+ This skill has **no default** — the section is required for browser testing,
174
+ because dev-server commands and login flows cannot be guessed.
175
+
176
+ | Key | Meaning |
177
+ |-----|---------|
178
+ | `dev-server` | Command to start the local dev server |
179
+ | `ready-check` | How to confirm the server is up |
180
+ | `base-url` | Root URL for navigation |
181
+ | `auth-flow` | Steps to log in (multi-line `|` block) |
182
+ | `roles` | Test account per privilege level, referenced by env-var name |
183
+ | `notes` | Anything else the agent should know (certs, seed data, ...) |
184
+
185
+ ### `git-workflow-and-versioning`
186
+
187
+ | Key | Default | Meaning |
188
+ |-----|---------|---------|
189
+ | `branching` | `never` | `never` = agent works in the current branch and never creates or switches branches; `allow` = agent may create feature branches |
190
+
191
+ ### `agent-hub`
192
+
193
+ Read by the `.pi/harnesses/agent-hub/` pi harness on every session start. The canonical
194
+ section name is `## agent-hub`; the harness also accepts the legacy `## agent-team` name
195
+ (from before the standalone `agent-team` harness was retired), so existing project
196
+ override files keep working unchanged. When both sections are present their keys merge,
197
+ with later lines winning.
198
+
199
+ The `rules:` and `docs:` keys are also read outside the harness: the `compound-learning`
200
+ skill (and the `/af-compound` agent-hub command built on it) resolves them as the
201
+ targets an end-of-session compound pass writes lessons to.
202
+
203
+ | Key | Default | Meaning |
204
+ |-----|---------|---------|
205
+ | `language` | `English` | User-facing language the dispatcher uses for every `ask_user` question, every `context` field, and every summary. Specialist task strings always stay in English regardless. |
206
+ | `persona-gate` | — | **Removed.** Ignored with a doctor warning; dispatcher flavor is no longer selectable. Use `/af-work-mode` for operator vs orchestrator. Delete the key. |
207
+ | `model.<persona>` | persona frontmatter `model:` | Replaces the named persona's default model for this project (a full pi model spec). If the override reports a model/provider error or aborted request before producing text or starting a tool (including a local-model memory-limit failure), agent-hub restores the child session and retries once with the original frontmatter model; it does not fallback after work starts, cancellation, timeout, drift stop, or process-spawn failure. |
208
+ | `models.<persona>` | persona frontmatter `models:` | Replaces the named persona's model-candidate list for `/af-agent-model` and `/af-models` profiles (comma-separated pi model specs). |
209
+ | `thinking.<persona>` | persona frontmatter `thinking:` | Replaces the named persona's pi `--thinking` reasoning level for this project: one of `off`, `minimal`, `low`, `medium`, `high`, `xhigh`. Switchable at runtime with `/af-agent-model-thinking <persona>`. An invalid value is ignored with a session-start warning. |
210
+ | `subagents.<persona>.<role>` | persona frontmatter `subagents:` | Replaces or adds one delegate sub-role for this project: `<model>[, tools=<caps>][, thinking=<off\|minimal\|low\|medium\|high\|xhigh>]`. Other declared roles keep their frontmatter values. Existing roles retain their original frontmatter model as the same one-shot, pre-work-only runtime fallback; model-only overrides retain the declared tool cap. An invalid `thinking=` value is ignored with a session-start warning and the role stays at `off` unless frontmatter already set a valid level. |
211
+ | `delegate-depth.<persona>` | persona frontmatter `delegate_depth:` (default/max 1) | Replaces the persona's delegation depth budget: `0` makes its delegate tool refuse (delegation off for this project), `1` lets it spawn terminal children. Values above 1 are clamped to 1; children at remaining depth 0 do not receive delegate tooling. |
212
+ | `rules` | none | Comma-separated repo-relative folders holding the project's own rule files (HOW — implementation patterns the work must comply with). Resolution is **index-first**: when a folder has a top-level `README.md`/`index.md`, personas read it first and follow its loading manifest (session bundles, conditional-load lists) instead of bulk-reading the tree; a folder without an index is searched **recursively** through all subfolders. The harness tells every dispatched specialist where the rules live and how to resolve them; the planner and code-reviewer personas read the relevant rules, validate their subject against them, and pass them on (cited in plan acceptance criteria / handed to delegate sub-reviewers). Missing folders produce a session-start warning. |
213
+ | `docs` | none | Comma-separated repo-relative documentation **entry points** (WHAT/WHY — architecture, standards, decisions): canonical files (e.g. `Docs/AGENTS.md`) or doc folders (personas start from a folder's `README.md`/index). Unlike `rules`, docs orient rather than bind: every dispatched specialist and research helper is told to read the entry points relevant to its task and follow their links instead of bulk-reading doc trees; the code-reviewer flags changes that alter documented behavior without a doc update; the documenter treats the entry points and the trees they link as the docs it maintains. Missing paths produce a session-start warning. |
214
+ | `research-keep` | — | **Removed.** Ignored with a session-start warning; live research helpers disappear from the Fleet Dashboard (`Alt+A`) on every terminal outcome. Session, transcript, and findings files plus `/af-agents-history` records remain. Delete the key. |
215
+ | `recon-search-timeout-s` | `120` | Parent-side deadline, in seconds, for each `read`, `grep`, `find`, or `ls` call made by a native research helper or nested delegate child. Accepts an integer `1`–`3600` or `off`; invalid input warns and falls back to `120`. This is **not** an agent/turn deadline: non-tool work can run indefinitely. On timeout the hub returns `tool_timeout` with call metadata, sends SIGTERM to its owned process group, escalates to SIGKILL after a finite grace period, and settles even if the child never closes or a descendant holds a pipe. If that bounded cleanup cannot confirm child/process-group death, the metadata reports `terminationConfirmed: false`; this prevents a parent hang but may indicate an uninterruptible OS-level process needing operator attention. |
216
+ | `mode` | — | **Removed.** Ignored with a warning; budgets follow task tier. Delete the key. |
217
+ | `max-dispatches-per-turn` | tier default (1/2/8/12) | Ceiling on `dispatch_agent` calls per user turn (`min` with the task-tier envelope). Positive integer or `off` (stays at the tier). |
218
+ | `max-research-per-turn` | tier default (1/2/4/6) | Ceiling on dispatcher-initiated `spawn_research` calls per user turn. The automatic `NEEDS_RESEARCH:` pipe is exempt from the turn budget but still counts against the task research envelope. Positive integer or `off` (stays at the tier). |
219
+ | `turn-wall-time-s` | tier default (900/900/3600/5400) | Active-time ceiling, in seconds, per user turn; time blocked in `ask_user` is excluded. Once exceeded, further dispatch/research calls refuse until the one-click continuation is accepted or a new user turn begins. Positive integer or `off` (stays at the tier). |
220
+ | `agent-turn-timeout-s` | tier default (600/600/1800/1800) | Whole-run deadline, in seconds, for each spawned specialist, research helper, and nested delegate child (unlike `recon-search-timeout-s`, this bounds the entire run). On expiry the run terminates as `turn_timeout` (exit 124) with partial output preserved. Positive integer or `off` (stays at the tier). |
221
+ | `session-recycle-runs` | tier default (3/3/5/5) | Recycle a specialist's accumulated session (fresh spawn instead of `-c` resume) after this many resumed runs. Context is also always recycled at ≥60% measured context (input + cacheRead + cacheWrite). Positive integer or `off` (stays at the tier recycle count; context threshold still applies). |
222
+ | `watchdog` | `auto` | Drift watchdog default for dispatched specialists: `auto`/`on` arm the in-flight rules (out-of-scope writes, tool-call loops, repeated failures, tool-call cap) with LLM-judge escalation; `off` disarms. Orchestrator work mode auto-arms when the setting is `auto`/`on` and ignores a dispatch `watchdog: false`. Overridable live per hub (`/af-watchdog on\|off\|auto`) and per agent (`/af-watchdog <agent> on\|off\|clear`). A DRIFTING/STUCK verdict terminates the run as `drift_stop` (exit 125) with partial output preserved. |
223
+ | `watchdog-judge-model` | researcher persona's model | pi model spec for the one-shot drift judge (e.g. `openai-codex/gpt-5.3-codex-spark`). Falls back to the researcher persona's resolved model, then the dispatcher's. |
224
+ | `poll-panel` | none | Default panel name for `/af-poll` when `--panel` is omitted. Must match a panel in `.pi/agents/voices.yaml` when that file exists. Missing `--panel` and missing this key is a refusal. |
225
+ | `append-prompt` | none | Comma-separated repo-relative files appended to the system prompt of every dispatched persona. Listed files must exist. Enable the communication contract with `append-prompt: references/communication-contract.md`. |
226
+
227
+ Example — switch the dispatcher to Bulgarian, pin the builder to sonnet, raise the
228
+ code-reviewer's thinking level, move the code-reviewer's docs sub-reviewer to a
229
+ different model, and point the team at the project's rule folders and doc entry
230
+ points:
231
+
232
+ ```markdown
233
+ ## agent-hub
234
+ language: Bulgarian
235
+ model.builder: github-copilot/claude-sonnet-4.6
236
+ models.builder: github-copilot/claude-sonnet-4.6, github-copilot/claude-haiku-4.5
237
+ thinking.code-reviewer: xhigh
238
+ subagents.code-reviewer.docs: github-copilot/claude-sonnet-4.6, tools=read,grep, thinking=medium
239
+ delegate-depth.code-reviewer: 1
240
+ recon-search-timeout-s: 120 # or off to disable the per-tool watchdog
241
+ poll-panel: default
242
+ append-prompt: references/communication-contract.md
243
+ rules: docs/rules, .ai/rules
244
+ docs: Docs/AGENTS.md, Docs/architecture/ARCHITECTURE_OVERVIEW.md
245
+ ```
246
+
247
+ ### `env` (optional, read by the doctor)
248
+
249
+ The overrides file references environment variables by **name** — test-account
250
+ credentials for `browser-testing-with-devtools`, the `pi-voice-stt` API key —
251
+ while the values live in a gitignored root `.env`. The optional `## env`
252
+ section declares which names the project's readers expect, so a fresh clone
253
+ can find out what's missing *before* a skill fails mid-run:
254
+
255
+ | Key | Meaning |
256
+ |-----|---------|
257
+ | `required` | Comma-separated env-var **names** (never values) the project's sections reference |
258
+
259
+ ```markdown
260
+ ## env
261
+ required: APP_TEST_ADMIN_USER, APP_TEST_ADMIN_PASS, AZURE_SPEECH_KEY
262
+ ```
263
+
264
+ No skill or harness loads this section. Its only reader is `agent-fleet doctor`
265
+ (and the runtime's Agent Fleet doctor command), which warns when a declared name is neither set in
266
+ the environment nor declared in the workspace root `.env`.
267
+
268
+ ### Per-peer env files (`env_file:` in peers.yaml)
269
+
270
+ Fleet peers spawned through `--peers`, `just fleet peer`, or the Hub's
271
+ constrained dynamic peer tool can carry their own environment: an `env_file:`
272
+ entry in `.pi/agents/peers.yaml` names a
273
+ **repo-relative** KEY=VALUE file (same format as `.env`, no shell evaluation)
274
+ that herdr injects into the peer's pane before the command runs — no `source`,
275
+ no leaking into sibling panes. The file must exist at spawn (team-up refuses
276
+ otherwise, never mid-run), and its **values never appear in `--dry-run`
277
+ output** — only the path. Keep these files gitignored exactly like the root
278
+ `.env` this section describes.
279
+
280
+ ## The install record — `.ai/agent-fleet-state.json` and `.ai/agent-fleet-setup.md`
281
+
282
+ Two files, one source of truth. `.ai/agent-fleet-state.json` is what the
283
+ installer writes and the only thing it reads back: agent, method, package
284
+ version, source root, and one entry per installed item with a per-file sha256
285
+ (or, in symlink mode, the resolved link target). `.ai/agent-fleet-setup.md` is
286
+ **rendered from it** on every apply and never parsed back, so the two cannot
287
+ disagree — it exists for humans and for older readers that still look for
288
+ `version:` and `agent:`.
289
+
290
+ Ownership is the point of the state file. An entry means "agent-fleet installed
291
+ this"; anything not listed is never removed or overwritten. That lookup is what
292
+ replaced the prose ownership rule the setup skill used to carry.
293
+
294
+ | State-file field | Meaning |
295
+ |---|---|
296
+ | `agent`, `method`, `sourceRoot` | How and from where this workspace was installed |
297
+ | `packageVersion` | The version that performed the last apply — provenance for reconciliation and legacy three-way compatibility |
298
+ | `items` | One entry per installed artifact: strategy, method, files with hashes, JSON key paths |
299
+ | `externalPackages` | Packages the user was told to install; recorded, never installed for them |
300
+ | `events` | Last few applies (verb, version, action count, conflicts) |
301
+
302
+ **No secrets, ever.** Only env-var *names* may appear — for example in the
303
+ `pi-voice-stt` record. A test asserts nothing value-shaped is persisted.
304
+
305
+ ### The recorded version and the three-way merge
306
+
307
+ The recorded `packageVersion` gives every comparison a baseline. For each
308
+ recorded artifact, the engine compares *source@recorded* from the package's
309
+ `.versions/<x.y.z>/` snapshot tree, the installed copy on disk, and
310
+ *source@current*. Deterministic `setup` is the public reconciliation command.
311
+
312
+ | Outcome | What `setup` does |
313
+ |---|---|
314
+ | Neither moved | Kept |
315
+ | Only the source moved | Clean refresh |
316
+ | Only your copy moved | **Refreshed — your edit is overwritten.** Reported in the plan as *"locally modified — selecting it overwrites your edits"*, so `--dry-run` shows it before it happens |
317
+ | Both moved, to different content | **Conflict**: the run exits `3` before writing anything. Resolve with `--on-conflict theirs` or `--on-conflict ours` |
318
+ | Retired upstream | Kept by `setup`; the deprecated `upgrade` proposes removal by name, subject to the ownership rule |
319
+
320
+ Reconciling toward the package is the point of `setup`: the workspace is meant
321
+ to match the version it records. That is why editing a shipped artifact in place
322
+ is not a supported customization route — use `.ai/agent-fleet-overrides.md`, add
323
+ artifacts under names Agent Fleet does not ship, or leave the item out of the
324
+ selection (`setup` never removes what it does not select, so an unselected item
325
+ stays installed and frozen). The deprecated `upgrade` verb preserves local edits
326
+ instead of overwriting them; if you have relied on that, it is the behavioural
327
+ difference to plan for.
328
+
329
+ If the snapshot is missing (an unpublished local build, or a version older than
330
+ `.versions/` retention), the comparison degrades to two-way, the installed copy
331
+ is treated as canonical, and the read-only auxiliary `verify` command reports it
332
+ as an advisory finding rather than pretending a diff exists.
333
+
334
+ ### Pre-engine workspaces
335
+
336
+ A workspace with only `.ai/agent-fleet-setup.md` and no state file predates the
337
+ installer engine. `setup --migrate --dry-run` previews what it can infer from
338
+ that markdown (`agent:`, `version:`) without adopting unrecorded paths. To
339
+ mutate a legacy workspace, use `setup --migrate` with an explicit preset,
340
+ features, and `--yes`. A workspace with no `version:` at all has no recorded
341
+ baseline, so no three-way merge is attempted.
342
+
343
+ Commit these files if the team should share install state — keep paths relative
344
+ so they stay portable. A self-referencing checkout (agent-fleet itself) may
345
+ instead `.gitignore` them, since their recorded paths are local to one machine.
346
+
347
+ ## Coms-backed team members
348
+
349
+ A team member the `agent-hub` harness dispatches (`.pi/agents/teams.yaml`) can be
350
+ served by a live coms peer of the same name instead of a freshly spawned native
351
+ subagent. With the default `backend: "auto"`,
352
+ `.pi/agents/dispatch-policy.yaml` decides that per member at dispatch time;
353
+ explicit `native` bypasses substitution, while explicit `coms` requires the
354
+ peer and never falls back. `.pi/agents/peers.yaml` decides *how* each peer runs.
355
+ A peer with `runner: claude-code` is an interactive Claude Code pane plus its
356
+ bridge — the one way Claude Code takes part in a fleet. See
357
+ [claude-code-coms-bridge.md](claude-code-coms-bridge.md).
358
+
359
+ Installing `skill:peer-coms` pulls `hook:coms-stop-hook` in as a companion, which
360
+ is what gives a bridged pane exact turn text instead of scraped output.
361
+ Registering that hook in `.claude/settings.json` stays the user's step — the
362
+ installer writes files, and another tool's settings file is not its to merge.
363
+
364
+ ## Templates
365
+
366
+ ### `.ai/agent-fleet-overrides.md`
367
+
368
+ Copy this in and delete the sections you don't need — anything absent falls
369
+ back to that reader's default.
370
+
371
+ ```markdown
372
+ # Agent Fleet — Project Overrides
373
+ #
374
+ # Each section is applied ON TOP of the skill's built-in defaults.
375
+ # Keys not listed keep the default. Absent file/section → pure defaults.
376
+
377
+ ## spec-driven-development
378
+ spec-dir: docs/prds/{area}
379
+ naming: PRD{n}-{topic}
380
+
381
+ ## planning-and-task-breakdown
382
+ plan-dir: docs/plans/{area}
383
+ naming: PLAN-{prd-name}-{phase}
384
+ todo: embedded
385
+
386
+ ## browser-testing-with-devtools
387
+ dev-server: <command to start the local dev server>
388
+ ready-check: <url or check that confirms the server is up>
389
+ base-url: <root url>
390
+ auth-flow: |
391
+ 1. Navigate to <login url>
392
+ 2. Submit credentials for the role needed by the screen under test
393
+ roles:
394
+ admin: env APP_TEST_ADMIN_USER / APP_TEST_ADMIN_PASS
395
+ player: env APP_TEST_PLAYER_USER / APP_TEST_PLAYER_PASS
396
+ notes: |
397
+ <anything else: self-signed certs, required seed data, ...>
398
+
399
+ ## git-workflow-and-versioning
400
+ branching: never
401
+
402
+ # Optional for pi agent-hub; omit this section to keep default English.
403
+ # (`## agent-team` is still accepted as a legacy alias for this section.)
404
+ ## agent-hub
405
+ language: <language name>
406
+ rules: <repo-relative rule folder>[, <another folder>]
407
+ docs: <repo-relative doc entry point>[, <another file or folder>]
408
+
409
+ # Optional; names (never values) of env vars the sections above reference.
410
+ # Only `agent-fleet doctor` reads this — it warns when one is unset.
411
+ ## env
412
+ required: <ENV_VAR_NAME>[, <ANOTHER_NAME>]
413
+ ```
414
+
415
+ ### `.ai/agent-fleet-setup.md`
416
+
417
+ Rendered from `.ai/agent-fleet-state.json` by every apply, for humans to read.
418
+ Edit the workspace, not this file — the next apply overwrites it.
419
+
420
+ ```markdown
421
+ # Agent Fleet — Workspace Setup
422
+ #
423
+ # Generated from .ai/agent-fleet-state.json by `agent-fleet setup`.
424
+ # Edit the workspace, not this file: it is rewritten on every apply.
425
+
426
+ ## workspace-summary
427
+ agent: pi
428
+ method: copy
429
+ version: 1.4.2
430
+ source: /home/you/.npm/_npx/<hash>/node_modules/@chankov/agent-fleet
431
+
432
+ ## install-status
433
+ skills: [spec-driven-development, test-driven-development, code-review-and-quality]
434
+ commands: [spec, plan, build]
435
+ personas: [code-reviewer]
436
+ extensions: []
437
+ harnesses: []
438
+ companions: [skills-internal-grilling]
439
+ external: []
440
+ updated: 2026-05-22
441
+
442
+ ## verification
443
+ - 21 item(s) recorded; run `agent-fleet doctor` for diagnostics.
444
+ - No secrets are stored in this file or in .ai/agent-fleet-state.json.
445
+ ```
446
+
447
+ ### `.ai/stt.json`
448
+
449
+ Optional. Present only when the `pi-voice-stt` extension is installed and configured. Read by
450
+ the extension on every pi session start, ahead of the global `~/.pi/agent/stt.json`. Holds the
451
+ non-secret provider config; the API key (and Azure endpoint) live in a gitignored root `.env`
452
+ as named env vars, which the `justfile`'s `dotenv-load` exposes to the session.
453
+
454
+ ```json
455
+ {
456
+ "language": "bg-BG",
457
+ "provider": {
458
+ "type": "azure",
459
+ "apiKeyEnv": "AZURE_SPEECH_KEY",
460
+ "locales": ["bg-BG", "en-US"]
461
+ }
462
+ }
463
+ ```
464
+
465
+ Corresponding gitignored `.env` at the repo root:
466
+
467
+ ```sh
468
+ AZURE_SPEECH_ENDPOINT=https://<resource>.cognitiveservices.azure.com
469
+ AZURE_SPEECH_KEY=<your-resource-key>
470
+ ```
471
+
472
+ For the OpenAI-compatible backend, `provider.type` is `openai` with `baseUrl` / `model` and an
473
+ `OPENAI_API_KEY` env var instead. Full schema: [.pi/extensions/pi-voice-stt/README.md](../.pi/extensions/pi-voice-stt/README.md).
474
+
475
+ ### Complete model profiles
476
+
477
+ `/af-models <name>` reads `.pi/agents/model-profiles.yaml`. Flat persona-to-model
478
+ maps remain supported and keep their declared-candidate validation. A `version: 2`
479
+ profile declares the whole execution model set independently of
480
+ `.ai/agent-fleet-overrides.md`:
481
+
482
+ ```yaml
483
+ local-duo:
484
+ version: 2
485
+ defaults:
486
+ model: &qwen36 omlx/Qwen3.6-35B-A3B-4bit
487
+ thinking: off
488
+ allowed-models:
489
+ - *qwen36
490
+ - &qwen omlx/Qwen3.8-9B-heretic-uncensored-5bit-MLX
491
+ fallback: none
492
+ routing: native
493
+ dispatcher: *qwen36
494
+ agents:
495
+ documenter: *qwen
496
+ # all other shipped personas inherit *qwen36 (see .pi/agents/model-profiles.yaml)
497
+ subagents:
498
+ code-reviewer:
499
+ docs: *qwen
500
+ plan-reviewer:
501
+ deps: *qwen
502
+ planner:
503
+ voice-2: *qwen
504
+ test-engineer:
505
+ conventions: *qwen
506
+ # recon, preflight, feasibility, scout, rules, sweeps, coverage stay on *qwen36
507
+ services:
508
+ watchdog: *qwen36
509
+ return-extractor: *qwen
510
+ panel:
511
+ - { name: qwen36, model: *qwen36, integrator: true }
512
+ - { name: qwen, model: *qwen }
513
+ ```
514
+
515
+ - `defaults` supplies **every persona and every declared child**, including future
516
+ personas, research helpers and team changes. `agents` and `subagents` contain
517
+ exceptions. Each selection accepts a model string or `{model, thinking}`.
518
+ Unspecified thinking inherits defaults, then `off`. Tool caps and delegation
519
+ depth remain unchanged. Unknown persona/child names are rejected.
520
+ - `dispatcher` changes the current Pi session's model and thinking. It defaults
521
+ to `defaults`; an `orchestrator` persona entry alone is not the live dispatcher.
522
+ - `services` sets the watchdog and structured-return extractor independently;
523
+ unspecified services use defaults. `panel` supplies 2–5 poll/debate voices and
524
+ an optional single integrator. `/af-poll` and `/af-debate` select the active
525
+ profile's panel automatically. Explicit other panel names are refused while
526
+ the complete profile is active. Without `panel`, two default-model voices are used.
527
+ - `routing: native` (default) keeps Hub-owned work on native Pi subprocesses.
528
+ Without `allowed-models` it still refuses explicit coms dispatch, handoff,
529
+ `coms_send` and peer spawning. With `allowed-models`, those peer actions are
530
+ allowed only when the peer's advertised or planned model is on the list
531
+ (exact `provider/model`, or a unique provider-less suffix match); a foreign,
532
+ missing, or `unknown` model is refused, and `claude-code` peers are refused
533
+ because their models cannot be allowlisted. Existing peer processes are not
534
+ reconfigured or stopped. `routing: configured` opts into the existing dispatch
535
+ policy and cannot be combined with `allowed-models`, since a peer's nested
536
+ children cannot be verified by this hub.
537
+ - `fallback: none` (default) disables automatic original-model fallback, including
538
+ nested children and workflows. `declared` retains it. Optional `allowed-models`
539
+ is an exact provider/model allowlist checked before actual child spawns and
540
+ fallback attempts. Manual model pickers and session substitutions respect it.
541
+ This governs Fleet model execution; it is not an OS/network sandbox for arbitrary
542
+ shell commands or unrelated applications.
543
+
544
+ Activation validates the complete profile and Pi availability of its referenced
545
+ models before changing settings. Missing models leave the previous configuration
546
+ in place. Busy dispatchers, agents and poll/debate runs refuse switching: wait for
547
+ completion first. On leaving a complete profile, the previous dispatcher, thinking
548
+ and manual model/sub-role/substitution settings are restored before applying the
549
+ next profile. A fresh Pi session clears the active profile; select it again there.
550
+
551
+ The profile is passed through the owned process tree. Workflow commands started
552
+ from that session inherit its persona models, thinking, panel and fallback policy.
553
+ Separately started fleet sessions/standing peers retain their own configuration.
554
+ The bundled `local-duo` profile explicitly covers all shipped child roles and needs
555
+ no project model overrides. The 35B Qwen is the default (dispatcher, specialists,
556
+ recon/sweeps, watchdog). The 9B Qwen is reserved for narrow helpers: `documenter`,
557
+ `code-reviewer.docs`, `plan-reviewer.deps`, `test-engineer.conventions`,
558
+ `planner.voice-2`, and `return-extractor`. Both exact model IDs must be registered
559
+ in Pi and served locally by oMLX. Selecting a profile does not download or register
560
+ models. The `omlx` provider has a default concurrency limit of two per Pi process;
561
+ `AGENT_HUB_PROVIDER_LIMITS` can override it if both weights should run in parallel.