@anyswarm/core 0.5.1 → 0.6.0

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 (301) hide show
  1. package/AGENTS.md +20 -5
  2. package/README.md +69 -55
  3. package/dist/examples/README.md +138 -77
  4. package/dist/examples/authoring/README.md +4 -4
  5. package/dist/examples/autoresearch/README.md +108 -16
  6. package/dist/examples/autoresearch/REQUIREMENTS.zh.md +13 -12
  7. package/dist/examples/autoresearch/config.d.ts +48 -5
  8. package/dist/examples/autoresearch/config.js +57 -23
  9. package/dist/examples/autoresearch/demo.d.ts +12 -4
  10. package/dist/examples/autoresearch/demo.js +65 -22
  11. package/dist/examples/autoresearch/eject.json +2 -0
  12. package/dist/examples/autoresearch/frontiercs2-config.d.ts +2 -0
  13. package/dist/examples/autoresearch/frontiercs2-config.js +14 -0
  14. package/dist/examples/autoresearch/frontiercs2.d.ts +18 -1
  15. package/dist/examples/autoresearch/frontiercs2.js +71 -14
  16. package/dist/examples/autoresearch/prepare-demo.d.ts +1 -0
  17. package/dist/examples/autoresearch/prepare-demo.js +46 -0
  18. package/dist/examples/autoresearch/prepare.d.ts +105 -53
  19. package/dist/examples/autoresearch/prepare.js +126 -57
  20. package/dist/examples/autoresearch/project.d.ts +6 -95
  21. package/dist/examples/autoresearch/project.js +131 -45
  22. package/dist/examples/autoresearch/research-service.d.ts +16 -1
  23. package/dist/examples/autoresearch/research-service.js +84 -44
  24. package/dist/examples/code/README.md +25 -17
  25. package/dist/examples/code/REQUIREMENTS.zh.md +3 -3
  26. package/dist/examples/code/config.d.ts +1 -0
  27. package/dist/examples/first-harness/AGENTS.md +25 -0
  28. package/dist/examples/first-harness/README.md +136 -0
  29. package/dist/examples/first-harness/config.d.ts +9 -8
  30. package/dist/examples/first-harness/config.js +33 -26
  31. package/dist/examples/first-harness/eject.json +14 -0
  32. package/dist/examples/first-harness/handoff.js +3 -3
  33. package/dist/examples/first-harness/harness.d.ts +14 -18
  34. package/dist/examples/first-harness/harness.js +102 -77
  35. package/dist/examples/first-harness/input/README.md +7 -0
  36. package/dist/examples/first-harness/session.js +2 -1
  37. package/dist/examples/first-harness/tsconfig.json +2 -1
  38. package/dist/examples/harness-session/README.md +4 -4
  39. package/dist/examples/lead-worker/README.md +1 -1
  40. package/dist/examples/lead-worker/project-config.d.ts +1 -0
  41. package/dist/examples/messages/README.md +2 -2
  42. package/dist/examples/notes/README.md +5 -5
  43. package/dist/examples/notes/config.d.ts +1 -0
  44. package/dist/examples/parallel-swarm/AGENTS.md +32 -0
  45. package/dist/examples/parallel-swarm/README.md +136 -0
  46. package/dist/examples/parallel-swarm/board-service.js +25 -8
  47. package/dist/examples/parallel-swarm/board.d.ts +31 -1
  48. package/dist/examples/parallel-swarm/board.js +98 -13
  49. package/dist/examples/parallel-swarm/config.d.ts +11 -0
  50. package/dist/examples/parallel-swarm/config.js +39 -0
  51. package/dist/examples/parallel-swarm/eject.json +5 -0
  52. package/dist/examples/parallel-swarm/harness.d.ts +26 -20
  53. package/dist/examples/parallel-swarm/harness.js +77 -76
  54. package/dist/examples/parallel-swarm/report.d.ts +12 -0
  55. package/dist/examples/parallel-swarm/report.js +30 -0
  56. package/dist/examples/peermesh/README.md +1 -1
  57. package/dist/examples/peermesh/project-config.d.ts +1 -0
  58. package/dist/examples/services/agent-control/README.md +1 -1
  59. package/dist/examples/services/mathlib-search/README.md +1 -1
  60. package/dist/examples/services/mcp-managed/README.md +1 -1
  61. package/dist/examples/services/persistent-board/README.md +6 -3
  62. package/dist/examples/subagents/AGENTS.md +35 -0
  63. package/dist/examples/subagents/README.md +129 -93
  64. package/dist/examples/subagents/config.d.ts +2 -10
  65. package/dist/examples/subagents/config.js +9 -16
  66. package/dist/examples/subagents/eject.json +17 -0
  67. package/dist/examples/subagents/handoff-config.d.ts +41 -0
  68. package/dist/examples/subagents/handoff-config.js +13 -0
  69. package/dist/examples/subagents/model.d.ts +3 -0
  70. package/dist/examples/subagents/model.js +19 -0
  71. package/dist/examples/substrate/README.md +12 -6
  72. package/dist/examples/substrate/config.d.ts +1 -0
  73. package/dist/examples/substrate/project-config.d.ts +1 -0
  74. package/dist/examples/super/README.md +34 -22
  75. package/dist/examples/super/actions.d.ts +1 -1
  76. package/dist/examples/super/actions.js +11 -11
  77. package/dist/examples/super/config.js +3 -3
  78. package/dist/examples/super/eject.json +1 -1
  79. package/dist/examples/super/location.js +1 -1
  80. package/dist/examples/super/operator.d.ts +1 -0
  81. package/dist/examples/super/operator.js +31 -0
  82. package/dist/examples/super/project.d.ts +0 -107
  83. package/dist/examples/super/project.js +1 -3
  84. package/dist/examples/taskpool/README.md +1 -1
  85. package/dist/examples/taskpool/config.d.ts +1 -0
  86. package/dist/examples/taskpool/deploy/service-hosts/service-authority-snapshot.d.ts +4 -4
  87. package/dist/scripts/anyswarm-arguments.d.ts +7 -25
  88. package/dist/scripts/anyswarm-arguments.js +69 -97
  89. package/dist/scripts/anyswarm-eject.js +1 -1
  90. package/dist/scripts/anyswarm-harnesses.d.ts +0 -1
  91. package/dist/scripts/anyswarm-harnesses.js +1 -22
  92. package/dist/scripts/anyswarm-installation.d.ts +7 -40
  93. package/dist/scripts/anyswarm-installation.js +17 -291
  94. package/dist/scripts/anyswarm-launch.d.ts +6 -36
  95. package/dist/scripts/anyswarm-launch.js +32 -81
  96. package/dist/scripts/anyswarm-progress.d.ts +6 -0
  97. package/dist/scripts/anyswarm-progress.js +133 -0
  98. package/dist/scripts/anyswarm-project.d.ts +1 -9
  99. package/dist/scripts/anyswarm-project.js +40 -127
  100. package/dist/scripts/anyswarm-source-runner.js +9 -41
  101. package/dist/scripts/anyswarm.js +6 -26
  102. package/dist/scripts/build-provenance.json +1 -1
  103. package/dist/scripts/generate-architecture-coverage.js +1 -1
  104. package/dist/scripts/generate-architecture-prompts.js +18 -10
  105. package/dist/scripts/local-environment.d.ts +13 -7
  106. package/dist/scripts/local-environment.js +73 -21
  107. package/dist/scripts/local-setup.d.ts +3 -0
  108. package/dist/scripts/local-setup.js +153 -118
  109. package/dist/scripts/pack-release.js +31 -4
  110. package/dist/src/core/index.js +1 -1
  111. package/dist/src/core/sandbox/opensandbox-backend.js +10 -4
  112. package/dist/src/core/sandbox/sandbox-connection.d.ts +9 -2
  113. package/dist/src/core/sandbox/sandbox-connection.js +22 -7
  114. package/dist/src/core/worker-image.js +1 -1
  115. package/dist/src/harness/project-harness.d.ts +1 -0
  116. package/dist/src/harness/project-harness.js +5 -4
  117. package/dist/src/harness/project-rpc-client.js +19 -0
  118. package/dist/src/harness/project-runtime.js +3 -1
  119. package/dist/src/harness/typescript-loader.d.ts +2 -0
  120. package/dist/src/harness/typescript-loader.js +26 -8
  121. package/dist/src/trace-viewer/command.mjs +6 -3
  122. package/dist/src/trace-viewer/public/app.js +239 -59
  123. package/dist/src/trace-viewer/public/index.html +5 -0
  124. package/dist/src/trace-viewer/public/style.css +22 -0
  125. package/dist/src/trace-viewer/reader.mjs +242 -26
  126. package/dist/src/trace-viewer/run-root.d.mts +1 -0
  127. package/dist/src/trace-viewer/run-root.mjs +7 -0
  128. package/dist/src/trace-viewer/server.mjs +3 -1
  129. package/docs/INDEX.md +11 -9
  130. package/docs/architecture/04-services.md +1 -1
  131. package/docs/architecture/06-observability-experiments.md +21 -7
  132. package/docs/architecture/07-run-configuration.md +118 -19
  133. package/docs/architecture/08-prompts.md +21 -2
  134. package/docs/architecture/10-service-api-reference.md +12 -5
  135. package/docs/architecture/12-code-coverage.md +157 -115
  136. package/docs/architecture/15-core-runtime.md +1 -1
  137. package/docs/architecture/16-pi-opensandbox-backend.md +2 -0
  138. package/docs/architecture/17-harness-reporting.md +79 -1
  139. package/docs/architecture/22-website.md +52 -20
  140. package/docs/architecture/23-project-harness.md +109 -37
  141. package/docs/architecture/26-code.md +20 -5
  142. package/docs/architecture/27-personal.md +23 -8
  143. package/docs/architecture/28-autoresearch.md +18 -12
  144. package/docs/architecture/INDEX.md +1 -2
  145. package/docs/architecture/prompts/11-first-sdk-harness.md +9 -9
  146. package/docs/architecture/prompts/16-parallel-swarm.md +46 -13
  147. package/docs/architecture/prompts/22-autoresearch.md +9 -2
  148. package/docs/architecture/prompts/source-manifest.json +76 -52
  149. package/docs/architecture/source-map.json +445 -105
  150. package/docs/designs/core-harness/01-core.md +2 -2
  151. package/docs/designs/core-harness/06-project-harness.md +3 -3
  152. package/docs/designs/core-harness/README.md +2 -2
  153. package/docs/en/agents.md +1 -1
  154. package/docs/en/autoresearch.md +41 -0
  155. package/docs/en/blog/100b-tokens.md +157 -0
  156. package/docs/en/build-your-harness.md +47 -22
  157. package/docs/en/changelog.md +29 -1
  158. package/docs/en/first-harness.md +40 -32
  159. package/docs/en/harnesses/index.md +23 -23
  160. package/docs/en/harnesses/lead-worker.md +1 -1
  161. package/docs/en/harnesses/peermesh.md +2 -2
  162. package/docs/en/harnesses/subagents.md +10 -31
  163. package/docs/en/harnesses/substrate.md +4 -4
  164. package/docs/en/harnesses/taskpool.md +2 -2
  165. package/docs/en/latest.md +30 -5
  166. package/docs/en/overview.md +22 -22
  167. package/docs/en/quickstart.md +69 -56
  168. package/docs/en/reference/api.md +1 -1
  169. package/docs/en/reference/cli.md +47 -85
  170. package/docs/en/sandbox.md +3 -3
  171. package/docs/en/trace-viewer.md +32 -12
  172. package/docs/operations/trace-viewer.md +26 -11
  173. package/docs/third-party-notices.md +0 -1
  174. package/docs/workflows/development.md +160 -118
  175. package/docs/workflows/release-and-docs-versioning.md +207 -54
  176. package/docs/workflows/release-cli-acceptance.md +162 -0
  177. package/docs/zh/agents.md +1 -1
  178. package/docs/zh/autoresearch.md +41 -0
  179. package/docs/zh/blog/100b-tokens.md +102 -0
  180. package/docs/zh/build-your-harness.md +48 -23
  181. package/docs/zh/changelog.md +29 -1
  182. package/docs/zh/first-harness.md +43 -35
  183. package/docs/zh/harnesses/index.md +23 -23
  184. package/docs/zh/harnesses/lead-worker.md +1 -1
  185. package/docs/zh/harnesses/peermesh.md +2 -2
  186. package/docs/zh/harnesses/subagents.md +10 -31
  187. package/docs/zh/harnesses/substrate.md +4 -4
  188. package/docs/zh/harnesses/taskpool.md +2 -2
  189. package/docs/zh/latest.md +30 -5
  190. package/docs/zh/overview.md +23 -23
  191. package/docs/zh/quickstart.md +66 -57
  192. package/docs/zh/reference/api.md +1 -1
  193. package/docs/zh/reference/cli.md +19 -79
  194. package/docs/zh/sandbox.md +3 -3
  195. package/docs/zh/trace-viewer.md +32 -12
  196. package/examples/README.md +138 -77
  197. package/examples/authoring/README.md +4 -4
  198. package/examples/autoresearch/README.md +108 -16
  199. package/examples/autoresearch/REQUIREMENTS.zh.md +13 -12
  200. package/examples/autoresearch/config.ts +64 -25
  201. package/examples/autoresearch/demo.ts +75 -22
  202. package/examples/autoresearch/eject.json +2 -0
  203. package/examples/autoresearch/frontiercs2-config.ts +15 -0
  204. package/examples/autoresearch/frontiercs2.ts +64 -11
  205. package/examples/autoresearch/prepare-demo.ts +44 -0
  206. package/examples/autoresearch/prepare.ts +134 -60
  207. package/examples/autoresearch/project.ts +120 -44
  208. package/examples/autoresearch/research-service.ts +91 -41
  209. package/examples/code/README.md +25 -17
  210. package/examples/code/REQUIREMENTS.zh.md +3 -3
  211. package/examples/first-harness/AGENTS.md +25 -0
  212. package/examples/first-harness/README.md +136 -0
  213. package/examples/first-harness/config.ts +41 -27
  214. package/examples/first-harness/eject.json +14 -0
  215. package/examples/first-harness/handoff.ts +3 -3
  216. package/examples/first-harness/harness.ts +104 -72
  217. package/examples/first-harness/input/README.md +7 -0
  218. package/examples/first-harness/session.ts +2 -1
  219. package/examples/first-harness/tsconfig.json +2 -1
  220. package/examples/harness-session/README.md +4 -4
  221. package/examples/lead-worker/README.md +1 -1
  222. package/examples/messages/README.md +2 -2
  223. package/examples/notes/README.md +5 -5
  224. package/examples/parallel-swarm/AGENTS.md +32 -0
  225. package/examples/parallel-swarm/README.md +136 -0
  226. package/examples/parallel-swarm/board-service.ts +28 -9
  227. package/examples/parallel-swarm/board.ts +107 -13
  228. package/examples/parallel-swarm/config.ts +47 -0
  229. package/examples/parallel-swarm/eject.json +5 -0
  230. package/examples/parallel-swarm/harness.ts +83 -71
  231. package/examples/parallel-swarm/report.ts +33 -0
  232. package/examples/peermesh/README.md +1 -1
  233. package/examples/services/agent-control/README.md +1 -1
  234. package/examples/services/mathlib-search/README.md +1 -1
  235. package/examples/services/mcp-managed/README.md +1 -1
  236. package/examples/services/persistent-board/README.md +6 -3
  237. package/examples/subagents/AGENTS.md +35 -0
  238. package/examples/subagents/README.md +129 -93
  239. package/examples/subagents/config.ts +9 -15
  240. package/examples/subagents/eject.json +17 -0
  241. package/examples/subagents/handoff-config.ts +14 -0
  242. package/examples/subagents/model.ts +20 -0
  243. package/examples/substrate/README.md +12 -6
  244. package/examples/super/README.md +34 -22
  245. package/examples/super/actions.ts +11 -11
  246. package/examples/super/config.ts +3 -3
  247. package/examples/super/eject.json +1 -1
  248. package/examples/super/location.ts +1 -1
  249. package/examples/super/operator.ts +28 -0
  250. package/examples/super/project.ts +1 -3
  251. package/examples/taskpool/README.md +1 -1
  252. package/npm-shrinkwrap.development.json +46 -1538
  253. package/npm-shrinkwrap.json +10 -43
  254. package/package.development.json +3 -6
  255. package/package.json +3 -5
  256. package/scripts/anyswarm-arguments.ts +67 -96
  257. package/scripts/anyswarm-eject.ts +1 -1
  258. package/scripts/anyswarm-harnesses.ts +1 -18
  259. package/scripts/anyswarm-installation.ts +18 -294
  260. package/scripts/anyswarm-launch.ts +30 -102
  261. package/scripts/anyswarm-progress.ts +125 -0
  262. package/scripts/anyswarm-project.ts +31 -123
  263. package/scripts/anyswarm-source-runner.ts +9 -36
  264. package/scripts/anyswarm.ts +4 -24
  265. package/scripts/generate-architecture-coverage.ts +1 -1
  266. package/scripts/generate-architecture-prompts.ts +21 -10
  267. package/scripts/local-environment.ts +79 -21
  268. package/scripts/local-setup.ts +150 -105
  269. package/scripts/pack-release.ts +28 -4
  270. package/src/core/index.ts +1 -1
  271. package/src/core/sandbox/opensandbox-backend.ts +10 -4
  272. package/src/core/sandbox/sandbox-connection.ts +22 -7
  273. package/src/core/worker-image.ts +1 -1
  274. package/src/harness/project-harness.ts +5 -4
  275. package/src/harness/project-rpc-client.ts +23 -0
  276. package/src/harness/project-runtime.ts +2 -1
  277. package/src/harness/typescript-loader.ts +28 -8
  278. package/src/trace-viewer/command.mjs +6 -3
  279. package/src/trace-viewer/public/app.js +239 -59
  280. package/src/trace-viewer/public/index.html +5 -0
  281. package/src/trace-viewer/public/style.css +22 -0
  282. package/src/trace-viewer/reader.mjs +242 -26
  283. package/src/trace-viewer/run-root.d.mts +1 -0
  284. package/src/trace-viewer/run-root.mjs +7 -0
  285. package/src/trace-viewer/server.mjs +3 -1
  286. package/dist/scripts/anyswarm-applications.d.ts +0 -19
  287. package/dist/scripts/anyswarm-applications.js +0 -19
  288. package/dist/scripts/anyswarm-tui-config.d.ts +0 -36
  289. package/dist/scripts/anyswarm-tui-config.js +0 -189
  290. package/dist/scripts/anyswarm-tui-session.d.ts +0 -66
  291. package/dist/scripts/anyswarm-tui-session.js +0 -304
  292. package/dist/scripts/anyswarm-tui-terminal.d.ts +0 -41
  293. package/dist/scripts/anyswarm-tui-terminal.js +0 -154
  294. package/dist/scripts/anyswarm-tui.d.ts +0 -2
  295. package/dist/scripts/anyswarm-tui.js +0 -1012
  296. package/docs/architecture/25-foreground-tui.md +0 -51
  297. package/scripts/anyswarm-applications.ts +0 -39
  298. package/scripts/anyswarm-tui-config.ts +0 -174
  299. package/scripts/anyswarm-tui-session.ts +0 -295
  300. package/scripts/anyswarm-tui-terminal.ts +0 -147
  301. package/scripts/anyswarm-tui.ts +0 -912
@@ -17,7 +17,7 @@ npm install @anyswarm/core
17
17
 
18
18
  Import the SDK from `@anyswarm/core`. The same install exposes the project-local CLI through `npm exec -- anyswarm`. To run `anyswarm` directly from any directory, use a [global CLI install](../quickstart.md#1-install-anyswarm).
19
19
 
20
- For a verified [source build](../quickstart.md#build-and-install-from-source-main), install its archive with the command below. The [release page](../latest.md#v050) shows how to pin the released SDK.
20
+ For a verified [source build](../quickstart.md#build-and-install-from-source-main), install its archive with the command below. The [release page](../latest.md#v052) shows how to pin the released SDK.
21
21
 
22
22
  ```bash
23
23
  npm install --ignore-scripts /path/to/verified-anyswarm.tgz
@@ -5,100 +5,62 @@ section: REFERENCE
5
5
  order: 16
6
6
  ---
7
7
 
8
- `@anyswarm/core` ships the synonymous host commands **`anyswarm`** and **`anys`**, plus **`swarm`** inside Worker containers for Service calls over the Bridge. Host aliases share installation, update, help and version behavior.
8
+ The host command is `anyswarm`. Run it without arguments for Quickstart, or add
9
+ `--help` to a command for its options. The Worker image separately supplies
10
+ `swarm` for Agent calls to Services over the Bridge.
9
11
 
10
- The streaming terminal, generic loader, `run` and `eject` below are available in the [current source build](../quickstart.md#build-and-install-from-source-main). See the [v0.5.0 CLI reference](https://github.com/AnySwarm/anyswarm/blob/v0.5.0/docs/en/reference/cli.md) for the published package.
12
+ ## Host commands
11
13
 
12
- ## Host CLI (`anyswarm`)
13
-
14
- ### Commands overview
15
-
16
- | Command | Purpose |
17
- | --- | --- |
18
- | `anyswarm` / `anys` | Opens the streaming composer in an interactive terminal |
19
- | `anys -u <harness> [prompt]` | Selects a built-in, installed package, or local Harness |
20
- | `anys -u <harness> --headless [prompt]` | Streams Session activity and the final result as JSONL |
21
- | `anys -u <harness> --rpc` | Opens the stdio HarnessSession RPC protocol |
22
- | `anys -u <harness> --cmd "/action [args]"` | Runs a module's standalone Slash Action |
23
- | `anys run ./harness.ts [arguments]` | Runs trusted TypeScript source with multi-file imports and SDK dependencies |
24
- | `anys eject <code\|autoresearch\|super\|example> --dir <target>` | Exports editable TypeScript sources and binds their SDK provenance |
25
- | `anyswarm --version` | Prints the installed `@anyswarm/core` version |
26
- | `anyswarm setup [--mode existing\|local] [--endpoint <url>] [--public-url <url>] [--backend pi\|codex] [--backend-path <executable>] [--backend-version <version>] [--config <module>]` | Starts a managed local OpenSandbox with auto-generated credentials (`--mode local`), or validates and saves an existing service (`--mode existing`); local mode also prepares and probes the selected Worker image |
27
- | `anyswarm doctor [--config <module>] [--smoke]` | Read-only configuration and Lifecycle auth diagnostics; pass `--smoke` for a live Pi/Codex Worker end-to-end probe |
28
- | `anyswarm update` | Verifies, stages and activates the latest stable CLI in a managed installation. Global npm users receive an npm command for their install prefix |
29
- | `anyswarm --harness <module> --prompt <text> [options]` | Runs a built-in, local TypeScript/ESM, or package Harness in foreground against a project directory |
30
- | `anyswarm --harness <module> --mode rpc [options]` | Runs a Harness over JSONL `stdin`/`stdout` with `ready`, `run`, `status`, `stop`, and member controls |
31
- | `anyswarm recover --run-dir <dir> --config <module>` | Performs cleanup-only recovery on a durable Run under same-host, same-boot ownership and prints the receipt |
32
- | `anyswarm trace [--root] <runs-dir> [--port 8787] [--open]` | Starts the built-in browser [Trace Viewer](../trace-viewer.md) on `127.0.0.1` |
33
-
34
- ### Streaming terminal
35
-
36
- Run `anys` and type `/use <harness> [prompt]`. Use `/code`, `/super` or `/autoresearch` when the corresponding application is bundled. You can also select a trusted local file such as `/use ./harness.ts`, or a package installed in your invocation directory. `anys -u ./harness.ts "task"` selects and submits the first prompt together. `--config ./config.ts` selects trusted configuration, and `/config` and `/doctor` help diagnose startup.
37
-
38
- On a Linux host, run `anys -u code [prompt]` in a project to edit it with one coding Agent. Ask it in chat to delegate a task when you want a child Agent to work in parallel. In an active Code session, `/diff` streams the latest paths, patch preview and retained patch location. Use `/agents` for the roster, `@<editor> <message>` to steer an active editor, and `/stop <editor>` to stop an editor. Use `/y` or `/n` for inline confirmations and `/reply <id> <answer>` for questions. [Code quickstart](../../../examples/code/README.md)
39
-
40
- The status rows show the Run's phase, Agent counts and workspace or Harness summary above the scrolling messages. The input area stays at the bottom, with the current Harness and selected Agent in its border. Resizing the terminal rewraps the text and keeps your draft. Press Enter to submit, Alt+Enter for a newline, and Tab for command completion.
41
-
42
- | In the composer | What it does |
14
+ | Workflow | Commands |
43
15
  | --- | --- |
44
- | `/use <harness> [prompt]` | Switches modes. Confirm with `/y` to stop and clean up active foreground work before switching. |
45
- | `/agents`, `/target <agent\|main>` | Lists members and their controls. Use the arrow keys and Enter to choose a target or target one directly. |
46
- | `@agent message`, `/to agent message` | Steers that member. Use `/to agent --follow-up message` to queue a follow-up. |
47
- | `/stop [agent]`, Ctrl+C | Stops one member or the whole Run. Ctrl+C interrupts the selected Agent turn or dismisses a pending selection. |
48
- | `/y`, `/n`, `/reply [id] <answer>` | Answers inline decisions. Use `/approve <id>` or `/reject <id>` when multiple confirms are pending. |
49
- | `/status` | Shows the Run and artifact paths. |
50
- | `/trace [records-directory]` | Opens the local Trace Viewer and prints its URL. Use a directory to switch the Viewer to those records. The default foreground output root includes successive Runs. |
51
- | `/quit` | Exits after foreground cleanup. In background observation, this disconnects the terminal and the background Session continues. You can also submit `q`. |
52
-
53
- When stdin or stdout is redirected, `-u` automatically selects headless JSONL output. Bare non-TTY invocation prints usage guidance. Explicit `--harness H --mode foreground` and `--mode rpc` retain their transport formats. `anys run <harness> [prompt]` selects the same terminal when interactive. Plain TypeScript scripts can still receive ordinary argv. In a pipe, a local task Harness launched without arguments or with the legacy `--prompt` flag prints a single foreground JSON result. In an ejected project, `npm install` and `npm run start` use the matching project-local CLI.
54
-
55
- A Harness can suggest slash names through `inputDescriptor.commands`. Unmatched slash input in an active terminal Session goes to its input handler as text. To provide a command before any Session exists, export `slashActions`, for example `export const slashActions = { prepare: ({ args }) => ({ prepared: args }) }`. Invoke it in the composer or with `anys -u H --cmd '/prepare example'`. See the [application module contract](../../architecture/25-foreground-tui.md).
56
-
57
- ### Personal GitHub inbox
58
-
59
- Select `/super` in the composer, then run `/setup --repo owner/project`, `/start` and `/jobs`. Use `/ask #123 <text>` or `@router #123 <text>` for a task. The terminal displays Router questions and verified patches with Reviewer summaries. Use `/answer #123 <text>`, `/approve #123` or `/reject #123 [reason]`, or an unambiguous work ID prefix. The same actions run noninteractively through `anys -u super --cmd '/jobs #123'`. See the [Personal quickstart](../../../examples/super/README.md) for credentials, permissions, stop and export.
60
-
61
- ### Running Harnesses (`anyswarm --harness`)
62
-
63
- ```bash
64
- # Foreground run against the current directory
65
- anyswarm --harness subagents --prompt "Fix the parser and add regression tests"
66
-
67
- # Explicit target directory, custom config module, and output root
68
- anyswarm --harness taskpool \
69
- --cwd ./my-project \
70
- --config ./taskpool.config.ts \
71
- --output-dir ./runs \
72
- --prompt "Resolve all failing unit tests"
73
-
74
- # Local custom TypeScript Harness module
75
- anyswarm --harness ./review-harness.ts --prompt "Audit error handling"
76
-
77
- # JSONL RPC mode (send {"id":"1","operation":"run","input":{"cwd":"...","prompt":"..."}} after ready)
78
- anyswarm --harness subagents --mode rpc --output-dir ./runs
79
- ```
80
-
81
- - **Built-in Harness names**: `subagents`, `taskpool`, `peermesh`, `substrate`, `lead-worker`, `notes`, `messages`.
82
- - **Module resolution**: pass a built-in name, an explicit `.ts` / `.mts` or ESM path, or an installed npm package name (resolved from the invocation directory).
83
- - **RPC protocol (`--rpc` or `--mode rpc`)**: emits JSONL frames on `stdout` and diagnostics on `stderr`. Wait for `ready`, then send a `run` request containing `cwd` and `prompt`.
84
-
85
- ### Session options and controls
86
-
87
- - **Lifetime (`--lifetime task|interactive`)**: defaults to single-task `task` mode. Harnesses that support ongoing sessions (such as Subagents) accept `interactive`, keeping the session alive until a configured deadline or explicit `stop`.
88
- - **User questions (`--interaction none|questions`)**: defaults to `none`. Set `questions` when the client can answer authorized mid-Run questions from Agents.
89
- - **Control channel**: foreground invocations with `--prompt` start immediately; when `interactive` or `questions` is enabled, subsequent commands flow over JSONL. `--rpc` or `--mode rpc` waits for a `run` command before starting.
90
- - **Supported operations**: `describe` (discover capabilities), `status` (read snapshot), `answer` (respond by `questionId`), and `stop` (close the Run); native member queries and controls include `agent.getState`, `agent.getStats`, `agent.getMessages`, plus `agent.configure`, `agent.compact`, `agent.abortRetry`, `agent.clearQueue`, `agent.send`, `agent.interrupt`, and `agent.stop` (each Harness and executor decides which operations are permitted). The final result records report-save status and cleanup facts separately.
16
+ | Prepare and verify local execution | `anyswarm setup`, `anyswarm doctor --smoke` |
17
+ | Upgrade the installed CLI | `anyswarm update` prints the npm command for the current global installation. Run the printed command from the same Node/npm environment. |
18
+ | Run an editable Harness | `anyswarm run ./project.ts --cwd ./input --config ./config.ts --prompt "Inspect the project"` |
19
+ | Run a built-in Harness or connect a client | `anyswarm --harness subagents --prompt "Read README.md" --output-dir ./runs`, or `anyswarm --harness subagents --mode rpc` |
20
+ | Export source and the exact SDK | `anyswarm eject example --dir ./my-harness` |
21
+ | Inspect records or recover pending cleanup | `anyswarm trace --root ./runs --port 8787 --open`, `anyswarm recover --run-dir <dir> --config <module>` |
22
+
23
+ `anyswarm --version` prints the installed package version. See [Quickstart](../quickstart.md) for local setup, explicit existing OpenSandbox connections and npm installation.
24
+
25
+ ## Run a Harness
26
+
27
+ Pick a built-in name, an explicit TypeScript or ESM module, or an installed npm
28
+ package resolved from the invocation directory. Built-ins are `subagents`,
29
+ `autoresearch`, `taskpool`, `peermesh`, `substrate`, `lead-worker`, `notes` and
30
+ `messages`. The project defaults to the invocation directory. `--config`
31
+ selects a trusted module and `--output-dir` selects the Run records root.
32
+ Set `--cwd` to capture a different project.
33
+
34
+ A one-shot Run starts from the supplied prompt. `run` supplies a default prompt
35
+ when a source Harness is launched without one. On a terminal, stdout shows Run
36
+ and Agent milestones, visible Service changes, exported artifact paths, cleanup,
37
+ and the command to view Trace. Redirect stdout for a single JSON result or
38
+ launch error. Source and Harness diagnostics go to stderr. `run` also executes
39
+ ordinary trusted source scripts with their original arguments.
40
+
41
+ For multiple turns, start `--mode rpc`, wait for the JSONL `ready` frame, and
42
+ send a `run` request with `cwd` and `prompt`. Use `--lifetime interactive` if
43
+ the Harness supports it and `--interaction questions` if the client can answer.
44
+ The stream carries replies, events and the final result on stdout. Use
45
+ `describe` for available controls and `stop` to initiate cleanup. [HarnessSession example](../../../examples/harness-session/README.md)
46
+
47
+ After ejecting, run `npm install` inside the export and start the editable
48
+ entry with its local CLI, for example `npm run start -- --prompt "Inspect the project"`.
49
+ See [Code](../../../examples/code/README.md) and [Personal](../../../examples/super/README.md)
50
+ for advanced SDK examples.
91
51
 
92
52
  ### AutoResearch
93
53
 
54
+ AutoResearch is the non-interactive research showcase. It starts equal
55
+ peers in private Sandboxes, coordinates them through the research Service,
56
+ and records train, candidate and final evidence for [Trace Viewer](../trace-viewer.md).
57
+
94
58
  ```sh
95
- anys -u autoresearch --cmd /prepare
96
- anys -u autoresearch
59
+ anyswarm --harness autoresearch --config ./research.ts --prompt "Your objective" --output-dir ./runs
97
60
  ```
98
61
 
99
- Enter `/demo frontiercs2` in the terminal. The demo runs four equal Kimi K3 peers and shows activity and the live Trace URL in the composer. Use `@peer-2 <suggestion>`, `/interrupt peer-2` or `/stop peer-2` during the Run. To run headlessly, use `anys -u autoresearch --cmd '/demo frontiercs2'`.
100
-
101
- Use `anys -u autoresearch --config ./research.ts "Your objective"` for a custom trusted evaluator, and `anys eject autoresearch` to export the source. [Quickstart](../../../examples/autoresearch/README.md)
62
+ Use [the AutoResearch guide](../../../examples/autoresearch/README.md) to prepare the
63
+ pinned FrontierCS-2 demo or export and edit the Harness.
102
64
 
103
65
  ## Unified environment variables
104
66
 
@@ -23,10 +23,10 @@ export OPEN_SANDBOX_API_KEY='<operator-provided-key>'
23
23
  anyswarm setup --mode existing \
24
24
  --endpoint https://sandbox.example.net \
25
25
  --public-url https://runtime.example.net/anyswarm
26
- anyswarm doctor --smoke
26
+ anyswarm doctor --mode existing --smoke
27
27
  ```
28
28
 
29
- Existing mode verifies your management API key and saves the connection in owner-only user config without launching a container. Running `anyswarm doctor --smoke` then creates and deletes a temporary sandbox to verify host-to-worker access, Runtime callbacks, file export, and cleanup.
29
+ Existing mode verifies your management API key and saves the connection in owner-only user config without launching a container. Running `anyswarm doctor --mode existing --smoke` then creates and deletes a temporary sandbox to verify host-to-worker access, Runtime callbacks, file export, and cleanup.
30
30
 
31
31
  In remote mode, the OpenSandbox operator supplies the Worker image, which you select with `ANYSWARM_WORKER_IMAGE`; your host machine running `anyswarm` only needs Node.js and network access. Protect credentials with TLS (HTTPS) or a trusted private network.
32
32
 
@@ -49,7 +49,7 @@ const remote = createSandbox({
49
49
 
50
50
  Configuration precedence is: **explicit SDK/CLI options → environment variables → saved user config (owner-only permissions) → local defaults**. `createSandbox()` validates and snapshots settings without launching containers; allocation starts only when you call `runtime.spawn()`.
51
51
 
52
- When sandboxes run on a remote host or behind a reverse proxy, pass `connection: { publicUrl: 'https://runtime.example.net/anyswarm' }` to `createRuntime()` to advertise a single reachable callback URL (reverse-proxy path prefixes are preserved; use `bindHost` and `bindPort` only when you need custom listener binding). `anyswarm doctor` reports the active callback origin, and `anyswarm doctor --smoke` points to the callback address, port, and proxy routes if sandboxes cannot call back. Configure OpenSandbox to publish reachable container endpoints and required headers.
52
+ When sandboxes run on a remote host or behind a reverse proxy, pass `connection: { publicUrl: 'https://runtime.example.net/anyswarm' }` to `createRuntime()` to advertise a single reachable callback URL (reverse-proxy path prefixes are preserved; use `bindHost` and `bindPort` only when you need custom listener binding). `anyswarm doctor --mode existing` reports the active callback origin, and `anyswarm doctor --mode existing --smoke` points to the callback address, port, and proxy routes if sandboxes cannot call back. Configure OpenSandbox to publish reachable container endpoints and required headers.
53
53
 
54
54
  ## 4. Resources and migration from v0.2.0
55
55
 
@@ -5,27 +5,41 @@ section: CORE BUILDING BLOCKS
5
5
  order: 8
6
6
  ---
7
7
 
8
- Every `anyswarm` Run writes structured evidence under `outputDir/<runtimeId>/`. The built-in **Trace Viewer** (`anyswarm trace`) lets you inspect completed or live Runs right in your browser with **zero extra frontend dependencies**.
8
+ Standard Harness sessions save a Run report, and each Runtime they create writes its own structured trace. The built-in **Trace Viewer** (`anyswarm trace`) lets you inspect recorded Runtime activity right in your browser with **zero extra frontend dependencies**. A Harness can finish or fail before creating a Runtime; see the version note below for viewing that report.
9
9
 
10
- The widget above is a **real, live Trace Viewer swimlane** backed by the bundled `release-notes` (`Subagents`) Run — try it right here without nested scrolling:
10
+ The widget replays a saved Subagents run on [p-limit at `a8a6fbec`](https://github.com/sindresorhus/p-limit/tree/a8a6fbec4e0e866d6d779b10889bb4f5567e70eb). Root and two children made 28 GPT-6.1 Sol requests in an independent VM with Pi and OpenSandbox. The public replay selects input, model and Service metadata from that run. It leaves out message bodies, prompts, tool events, and private Runtime files.
11
11
 
12
- - **Switch panels cleanly**: use the outer bar above to switch between **Swimlane Timeline**, **Collaboration**, and **Files & Results**, or click **Open full viewer ↗** for the full Run sidebar and raw event ledger.
12
+ Open **Files & Results** for the original 12,093-byte `report.md` and its SHA-256. The independent VM check confirmed the export bytes and cleanup. The generic Harness recorded acceptance as `not-run`, so assess the report's conclusions against the source. [VM acceptance record](https://github.com/AnySwarm/anyswarm/issues/358#issuecomment-7385075753)
13
+
14
+ Try the controls without installing anything.
15
+
16
+ - **Switch panels cleanly**: use the outer bar above to switch between **Swimlane Timeline**, **Recorded Events**, and **Files & Results**, or click **Open full viewer ↗** for the Run sidebar and search.
13
17
  - **Zoom & pan**: scroll your mouse wheel over the swimlanes to zoom around your cursor, drag the swimlanes or overview minimap to pan, or press `W`/`S` (zoom), `A`/`D` (pan), and `0` (fit).
14
- - **Hover & inspect**: hover any span for live timing and metadata; click any bar to open the slide-over **Evidence Inspector** (**Structured** or **Raw JSON**).
18
+ - **Hover & inspect**: hover any span for recorded timing and metadata; click any bar to open the slide-over **Evidence Inspector** (**Structured** or **Raw JSON**).
15
19
 
16
20
  ## 1. Launch `anyswarm trace` locally
17
21
 
18
- Point `anyswarm trace` at a parent output directory (auto-discovers all Runs, including new ones) or a single Run folder:
22
+ The standard CLI and `createHarnessSession()` default to `${XDG_STATE_HOME:-$HOME/.local/state}/anyswarm/runs`. From a project with the SDK installed, point its local CLI at that directory:
19
23
 
20
24
  ```bash
21
- # Inspect all Runs under ./runs
22
- anyswarm trace --root ./runs --port 8787 --open
25
+ # Inspect the standard Harness output root
26
+ ./node_modules/.bin/anyswarm trace --root "${XDG_STATE_HOME:-$HOME/.local/state}/anyswarm/runs" --port 8787 --open
23
27
 
24
- # Or pass the directory as a positional argument
25
- anyswarm trace ./runs --port 8787
28
+ # If the Run explicitly used --output-dir ./runs or outputRoot: './runs'
29
+ ./node_modules/.bin/anyswarm trace ./runs --port 8787
26
30
  ```
27
31
 
28
- Open `http://127.0.0.1:8787`. Trace Viewer reads only saved files — **no Docker, OpenSandbox, or model keys required** — and live-streams active Runs over SSE.
32
+ With a global installation, use `anyswarm` in place of `./node_modules/.bin/anyswarm`. `--output-dir` on the CLI and `outputRoot` on a Harness session override the default. If the default directory is unavailable or falls inside the captured workspace, the Harness may use a private temporary directory. Follow the actual printed replay command, or pass the directory containing the saved `reportPath` as `--root`.
33
+
34
+ Open `http://127.0.0.1:8787`. Trace Viewer reads saved files and needs **no Docker, OpenSandbox, or model keys**. `--port 0` chooses an available port; use the URL printed at startup. In the published npm **0.5.2**, the root must already exist, new Runs require refreshing the Run list, and discovery requires `runtime.json`. A selected Runtime can receive live updates over SSE. If a Run has only `project-run.json`, read that report directly in 0.5.2.
35
+
36
+ ### Run discovery in 0.6.0
37
+
38
+ Version 0.6.0 includes the Run discovery and report improvements from [#360](https://github.com/AnySwarm/anyswarm/issues/360).
39
+
40
+ - `anyswarm trace` without a root uses the standard Harness state directory. A missing directory becomes a waiting state, and the page displays the directory being read.
41
+ - The visible page checks for new Runs about every two seconds. List updates preserve the selected Run, filters, time window and keyboard focus. Read errors keep the last successful list visible with an error message.
42
+ - A valid `project-run.json` can be opened when no matching Runtime association is confirmed. **Files & results** shows its recorded outcome, reason, failure, result, verification, export and cleanup facts. The gap explains missing identities, unavailable records or an association that cannot be confirmed; it does not imply that no Runtime exists elsewhere. The Viewer does not invent Agent counts, timelines, costs or durations. A consistent, unique Runtime association provides an explicit link.
29
43
 
30
44
  ## 2. Viewing runs on a remote Linux server (SSH)
31
45
 
@@ -41,7 +55,11 @@ ssh -N -L 8787:127.0.0.1:8787 user@your-linux-host
41
55
 
42
56
  Then open `http://127.0.0.1:8787` locally. Keep Run traces private behind SSH — they contain prompts, code, and full transcripts.
43
57
 
44
- ## 3. What lives inside `outputDir/<runtimeId>/`
58
+ ## 3. Saved reports and Runtime files
59
+
60
+ A standard Harness saves `project-run.json` at `<root>/<runId>/`. When it uses that directory as its Runtime output root, the Runtime files are under `<root>/<runId>/<runtimeId>/`.
61
+
62
+ Direct SDK calls to `createRuntime()` still require an explicit `outputDir` and write to `<outputDir>/<runtimeId>/`. Open those records with `./node_modules/.bin/anyswarm trace --root <outputDir>`; the Harness state-directory default does not choose a direct SDK output directory. The following paths are relative to a Runtime directory:
45
63
 
46
64
  | Path | Contents |
47
65
  | --- | --- |
@@ -52,10 +70,12 @@ Then open `http://127.0.0.1:8787` locally. Keep Run traces private behind SSH
52
70
  | `service-state.<id>.<uuid>.json` | Optional public state exported on close or retirement, plus Service-provided capture facts and display hints |
53
71
  | `model-trace/` | Raw forwarded Responses or Chat Completions requests and streamed responses from Model Gateway |
54
72
  | `<agentId>/session/` & `artifacts/` | Archived Pi / Codex native sessions and files collected via `Profile.collect` |
55
- | `harness-report.json` | Business outcome and verification report written by built-in Harness launchers |
73
+ | `harness-report.json` | Business outcome and verification report, when written by the Harness |
56
74
 
57
75
  Open **Service states** in the Run header or select a Service call to inspect its exported state. The inspector shows export status, instance identity and the framework export window. Service capture time and business revision appear only when the Service supplies them. Missing hooks, failed exports, truncated content and missing files have distinct statuses. The recorded close/retirement snapshot retains its own observation window beside an earlier call. A Service can provide a data-only summary or table, and the original JSON remains available. The persistent Board example supplies a count and an Entries table. [Run the Board example](../../examples/services/persistent-board/README.md).
58
76
 
77
+ In **Files & results**, opening an archived file with a recorded SHA-256 checks that version. **Load next 64 KB** continues from the prior byte boundary, and **Copy** includes all currently loaded text. A website replay may end its file preview before the original file ends. Open the original Run in the installed Viewer to inspect the remaining bytes.
78
+
59
79
  ## 4. Search a long Run
60
80
 
61
81
  The header's **Model / Service / Tool** counts cover the full Run, even when the timeline displays a smaller range. Each model request, Service attempt or tool execution counts once; its start and end records are not two calls. Historical Runs without native tool boundaries use archived Session tool results, including results without timestamps.
@@ -16,11 +16,33 @@ Open [the demo Run](http://127.0.0.1:8787/#run=release-notes). The synthetic Sub
16
16
  The Trace Viewer is bundled directly inside `@anyswarm/core` (`src/trace-viewer/`) with zero extra dependencies:
17
17
 
18
18
  ```bash
19
- curl -fsSL https://anyswarm.github.io/anyswarm/install.sh | sh
19
+ npm install -g @anyswarm/core
20
20
  anyswarm trace /path/to/private/runs --port 8787 --open
21
21
  ```
22
22
 
23
- Open `http://127.0.0.1:8787`. A configured root (passed via `--root <dir>` or as a positional argument) may be a Core Run directory containing `runtime.json` or a parent output directory. The Viewer opens on an empty parent directory and discovers new Runs there. It needs the saved Run files and Node.js. Core, the executing Harness, Sandbox services and model credentials are independent.
23
+ Open `http://127.0.0.1:8787`. A configured root (passed via `--root <dir>` or as a positional argument) may be a Runtime directory containing `runtime.json` or a parent output directory. The Viewer needs the saved files and Node.js; it can replay them without the executing Harness, Docker, OpenSandbox or model credentials. `--port 0` selects an available port; use the printed URL.
24
+
25
+ The published npm **0.5.2** requires an explicit, existing root and discovers Runs through `runtime.json`. It can open an empty parent directory, but the browser's Run list needs a manual refresh after a new Run appears. A selected Runtime can receive live updates over SSE.
26
+
27
+ ### Standard Harness and direct SDK output roots
28
+
29
+ CLI `--output-dir` and `createHarnessSession(..., { outputRoot })` select the standard Harness root. Without an override, that root is `${XDG_STATE_HOME:-$HOME/.local/state}/anyswarm/runs`. A project installation includes its own Viewer:
30
+
31
+ ```bash
32
+ ./node_modules/.bin/anyswarm trace --root "${XDG_STATE_HOME:-$HOME/.local/state}/anyswarm/runs" --port 8787
33
+ ```
34
+
35
+ The Harness saves `<root>/<runId>/project-run.json`; a Runtime created with that Run directory as its output root writes `<root>/<runId>/<runtimeId>/runtime.json` and its adjacent evidence. If the default root is unavailable or inside the captured workspace, the Harness may choose a private temporary root. Use the actual printed replay command, or pass the directory containing the result's `reportPath` as `--root`. An admitted Run that fails before creating a Runtime can still have a project report; in npm 0.5.2, read that file directly.
36
+
37
+ Direct `createRuntime()` calls require their own explicit `outputDir` and write `<outputDir>/<runtimeId>/`. Use `./node_modules/.bin/anyswarm trace --root <outputDir>` for that program. The standard Harness default does not supply the SDK argument.
38
+
39
+ ### Unreleased source candidate: #360
40
+
41
+ The source candidate for [#360](https://github.com/AnySwarm/anyswarm/issues/360) adds the behavior below. It is **not part of the published npm 0.5.2 package**.
42
+
43
+ - Omitting the root selects the standard Harness state directory. A root that does not yet exist is shown as a waiting state, with its actual path visible.
44
+ - The visible page polls for Runs about every two seconds, retaining the selected Run, filters, time window and keyboard focus. Failed reads preserve the last successful list and show the error.
45
+ - Valid `project-run.json` reports can be opened when no matching Runtime association is confirmed. **Files & results** shows recorded outcome, reason, result, failure, verification, export and cleanup. The gap distinguishes missing or invalid identity, no matching record, conflicting identities, multiple matches and directory mismatches. It does not establish zero Agents, zero cost or successful cleanup; Runtime timelines and metrics are not synthesized from the report. A consistent, unique Runtime association gives an explicit link, and existing report links remain usable after the list shows the associated Runtime.
24
46
 
25
47
  ## Server launch and local browser
26
48
 
@@ -40,16 +62,9 @@ Open [the forwarded Viewer](http://127.0.0.1:8787) in your browser. The browser
40
62
 
41
63
  ## Examples
42
64
 
43
- Use the example's configured `outputDir`. The default output roots are relative to the directory that launched the example.
65
+ Built-in examples launched through `anyswarm --harness ...` use the standard Harness root described above, unless `--output-dir` overrides it. Check the actual Run report or replay command rather than inferring a folder from the Harness name.
44
66
 
45
- | Example | Default root |
46
- | --- | --- |
47
- | [Notes](../../examples/notes/README.md) | `./notes-runs` |
48
- | [Subagents](../../examples/subagents/README.md) | `./subagents-runs` |
49
- | [PeerMesh](../../examples/peermesh/README.md) | `./peermesh-runs` |
50
- | [Substrate](../../examples/substrate/README.md) | `./substrate-runs`. The FATE launcher uses `./experiments/substrate-fate` by default |
51
- | [Lead-Worker](../../examples/lead-worker/README.md) | `./lead-worker-runs` |
52
- | TaskPool foreground Harness | `outputDir` from the host configuration |
67
+ Standalone example configurations can choose a different `outputDir`: [Notes](../../examples/notes/config.ts) uses `./notes-runs`, [Subagents](../../examples/subagents/config.ts) uses `./subagents-runs`, and [Substrate](../../examples/substrate/config.ts) uses `./substrate-runs`. Those relative paths are resolved from the program's working directory. For other direct SDK or lower-level Harness calls, use the `outputDir` passed by that program. These standalone settings do not change the standard CLI's Run root.
53
68
 
54
69
  Service calls appear across Harnesses. Subagents adds caller and destination links backed by the saved evidence. Read the [Architecture chapter](../architecture/06-observability-experiments.md) for the timing and status semantics.
55
70
 
@@ -6,7 +6,6 @@ The terms in [LICENSE](../LICENSE) cover AnySwarm's original code and documentat
6
6
  | --- | --- |
7
7
  | Codex CLI in the Worker image | Apache-2.0. The image installs `@openai/codex` 0.172.0 from OpenAI. [Upstream license](https://github.com/openai/codex/blob/3d86e43b075adeba2193ec5c22ac92f55afd82e6/LICENSE) at the `rust-v0.172.0` revision. |
8
8
  | OpenSandbox JavaScript SDK | Apache-2.0. The Controller installs `@alibaba-group/opensandbox` 1.2.1. [Upstream license](https://github.com/opensandbox-group/OpenSandbox/blob/db708c218771a8d311356f0e96552c15df6e097a/LICENSE) |
9
- | Pi terminal primitives | MIT. The host CLI installs `@earendil-works/pi-tui` 1.3.0. [Package and license metadata](https://www.npmjs.com/package/@earendil-works/pi-tui/v/1.3.0) |
10
9
  | Lean module replay driver | Apache-2.0. The [driver notice](../examples/taskpool/services/judge/lean-module-verify.NOTICE.md) identifies the upstream source, copyright and local modifications. [Upstream license copy](../examples/taskpool/services/judge/lean-module-verify.LICENSE.txt) |
11
10
  | Agensh Board schema fixture (source-checkout tests) | MIT. [Source attribution and license copy](../test/fixtures/agensh-board-schema.LICENSE.txt) |
12
11
  | Agensh reference implementation | Separate Git submodule. See the [upstream license](https://github.com/microsoft/Agensh/blob/2dae4e14a653da48549fd9aa093f834841475d6c/LICENSE) at the recorded revision. |