@anyswarm/core 0.5.2 → 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 (210) hide show
  1. package/AGENTS.md +19 -4
  2. package/README.md +68 -61
  3. package/dist/examples/README.md +134 -84
  4. package/dist/examples/autoresearch/README.md +106 -21
  5. package/dist/examples/autoresearch/REQUIREMENTS.zh.md +14 -6
  6. package/dist/examples/autoresearch/config.d.ts +48 -5
  7. package/dist/examples/autoresearch/config.js +57 -23
  8. package/dist/examples/autoresearch/demo.d.ts +12 -4
  9. package/dist/examples/autoresearch/demo.js +65 -22
  10. package/dist/examples/autoresearch/frontiercs2-config.d.ts +2 -2
  11. package/dist/examples/autoresearch/frontiercs2-config.js +13 -2
  12. package/dist/examples/autoresearch/frontiercs2.d.ts +18 -1
  13. package/dist/examples/autoresearch/frontiercs2.js +71 -14
  14. package/dist/examples/autoresearch/prepare-demo.js +34 -3
  15. package/dist/examples/autoresearch/prepare.d.ts +105 -53
  16. package/dist/examples/autoresearch/prepare.js +126 -57
  17. package/dist/examples/autoresearch/project.d.ts +6 -1
  18. package/dist/examples/autoresearch/project.js +130 -26
  19. package/dist/examples/autoresearch/research-service.d.ts +16 -1
  20. package/dist/examples/autoresearch/research-service.js +84 -44
  21. package/dist/examples/code/config.d.ts +1 -0
  22. package/dist/examples/first-harness/AGENTS.md +25 -0
  23. package/dist/examples/first-harness/README.md +136 -0
  24. package/dist/examples/first-harness/config.d.ts +9 -8
  25. package/dist/examples/first-harness/config.js +33 -26
  26. package/dist/examples/first-harness/eject.json +14 -0
  27. package/dist/examples/first-harness/handoff.js +3 -3
  28. package/dist/examples/first-harness/harness.d.ts +14 -18
  29. package/dist/examples/first-harness/harness.js +102 -77
  30. package/dist/examples/first-harness/input/README.md +7 -0
  31. package/dist/examples/first-harness/session.js +2 -1
  32. package/dist/examples/first-harness/tsconfig.json +2 -1
  33. package/dist/examples/harness-session/README.md +1 -1
  34. package/dist/examples/lead-worker/README.md +1 -1
  35. package/dist/examples/lead-worker/project-config.d.ts +1 -0
  36. package/dist/examples/messages/README.md +2 -2
  37. package/dist/examples/notes/README.md +2 -2
  38. package/dist/examples/notes/config.d.ts +1 -0
  39. package/dist/examples/parallel-swarm/AGENTS.md +32 -0
  40. package/dist/examples/parallel-swarm/README.md +136 -0
  41. package/dist/examples/parallel-swarm/board-service.js +25 -8
  42. package/dist/examples/parallel-swarm/board.d.ts +31 -1
  43. package/dist/examples/parallel-swarm/board.js +98 -13
  44. package/dist/examples/parallel-swarm/config.d.ts +11 -0
  45. package/dist/examples/parallel-swarm/config.js +39 -0
  46. package/dist/examples/parallel-swarm/eject.json +5 -0
  47. package/dist/examples/parallel-swarm/harness.d.ts +26 -20
  48. package/dist/examples/parallel-swarm/harness.js +77 -76
  49. package/dist/examples/parallel-swarm/report.d.ts +12 -0
  50. package/dist/examples/parallel-swarm/report.js +30 -0
  51. package/dist/examples/peermesh/README.md +1 -1
  52. package/dist/examples/peermesh/project-config.d.ts +1 -0
  53. package/dist/examples/services/agent-control/README.md +1 -1
  54. package/dist/examples/services/mathlib-search/README.md +1 -1
  55. package/dist/examples/services/mcp-managed/README.md +1 -1
  56. package/dist/examples/services/persistent-board/README.md +1 -1
  57. package/dist/examples/subagents/AGENTS.md +35 -0
  58. package/dist/examples/subagents/README.md +129 -93
  59. package/dist/examples/subagents/config.d.ts +2 -10
  60. package/dist/examples/subagents/config.js +8 -15
  61. package/dist/examples/subagents/eject.json +17 -0
  62. package/dist/examples/subagents/handoff-config.d.ts +41 -0
  63. package/dist/examples/subagents/handoff-config.js +13 -0
  64. package/dist/examples/subagents/model.d.ts +3 -0
  65. package/dist/examples/subagents/model.js +19 -0
  66. package/dist/examples/substrate/README.md +12 -6
  67. package/dist/examples/substrate/config.d.ts +1 -0
  68. package/dist/examples/substrate/project-config.d.ts +1 -0
  69. package/dist/examples/taskpool/README.md +1 -1
  70. package/dist/examples/taskpool/config.d.ts +1 -0
  71. package/dist/examples/taskpool/deploy/service-hosts/service-authority-snapshot.d.ts +4 -4
  72. package/dist/scripts/anyswarm-progress.js +36 -5
  73. package/dist/scripts/build-provenance.json +1 -1
  74. package/dist/scripts/generate-architecture-coverage.js +1 -1
  75. package/dist/scripts/generate-architecture-prompts.js +18 -10
  76. package/dist/scripts/local-environment.d.ts +3 -3
  77. package/dist/scripts/local-environment.js +6 -1
  78. package/dist/scripts/local-setup.js +25 -18
  79. package/dist/scripts/pack-release.js +27 -3
  80. package/dist/src/core/index.js +1 -1
  81. package/dist/src/core/sandbox/opensandbox-backend.js +10 -4
  82. package/dist/src/core/sandbox/sandbox-connection.d.ts +9 -2
  83. package/dist/src/core/sandbox/sandbox-connection.js +22 -7
  84. package/dist/src/harness/project-harness.js +3 -2
  85. package/dist/src/harness/project-rpc-client.js +19 -0
  86. package/dist/src/harness/typescript-loader.d.ts +2 -0
  87. package/dist/src/harness/typescript-loader.js +26 -8
  88. package/dist/src/trace-viewer/command.mjs +6 -3
  89. package/dist/src/trace-viewer/public/app.js +239 -59
  90. package/dist/src/trace-viewer/public/index.html +5 -0
  91. package/dist/src/trace-viewer/public/style.css +22 -0
  92. package/dist/src/trace-viewer/reader.mjs +242 -26
  93. package/dist/src/trace-viewer/run-root.d.mts +1 -0
  94. package/dist/src/trace-viewer/run-root.mjs +7 -0
  95. package/dist/src/trace-viewer/server.mjs +3 -1
  96. package/docs/INDEX.md +9 -8
  97. package/docs/architecture/06-observability-experiments.md +21 -7
  98. package/docs/architecture/07-run-configuration.md +97 -12
  99. package/docs/architecture/08-prompts.md +21 -2
  100. package/docs/architecture/10-service-api-reference.md +12 -5
  101. package/docs/architecture/12-code-coverage.md +129 -86
  102. package/docs/architecture/15-core-runtime.md +1 -1
  103. package/docs/architecture/16-pi-opensandbox-backend.md +2 -0
  104. package/docs/architecture/17-harness-reporting.md +78 -0
  105. package/docs/architecture/22-website.md +53 -18
  106. package/docs/architecture/23-project-harness.md +63 -16
  107. package/docs/architecture/28-autoresearch.md +16 -22
  108. package/docs/architecture/prompts/11-first-sdk-harness.md +9 -9
  109. package/docs/architecture/prompts/16-parallel-swarm.md +46 -13
  110. package/docs/architecture/prompts/22-autoresearch.md +9 -2
  111. package/docs/architecture/prompts/source-manifest.json +78 -54
  112. package/docs/architecture/source-map.json +396 -36
  113. package/docs/designs/core-harness/06-project-harness.md +1 -1
  114. package/docs/en/autoresearch.md +41 -0
  115. package/docs/en/blog/100b-tokens.md +157 -0
  116. package/docs/en/build-your-harness.md +47 -22
  117. package/docs/en/changelog.md +22 -1
  118. package/docs/en/first-harness.md +40 -32
  119. package/docs/en/harnesses/index.md +23 -23
  120. package/docs/en/harnesses/subagents.md +8 -29
  121. package/docs/en/latest.md +26 -5
  122. package/docs/en/overview.md +22 -22
  123. package/docs/en/quickstart.md +55 -21
  124. package/docs/en/reference/api.md +1 -1
  125. package/docs/en/trace-viewer.md +32 -12
  126. package/docs/operations/trace-viewer.md +25 -10
  127. package/docs/workflows/development.md +160 -120
  128. package/docs/workflows/release-and-docs-versioning.md +207 -55
  129. package/docs/workflows/release-cli-acceptance.md +124 -47
  130. package/docs/zh/autoresearch.md +41 -0
  131. package/docs/zh/blog/100b-tokens.md +102 -0
  132. package/docs/zh/build-your-harness.md +48 -23
  133. package/docs/zh/changelog.md +22 -1
  134. package/docs/zh/first-harness.md +43 -35
  135. package/docs/zh/harnesses/index.md +23 -23
  136. package/docs/zh/harnesses/subagents.md +8 -29
  137. package/docs/zh/latest.md +26 -5
  138. package/docs/zh/overview.md +23 -23
  139. package/docs/zh/quickstart.md +51 -21
  140. package/docs/zh/reference/api.md +1 -1
  141. package/docs/zh/trace-viewer.md +32 -12
  142. package/examples/README.md +134 -84
  143. package/examples/autoresearch/README.md +106 -21
  144. package/examples/autoresearch/REQUIREMENTS.zh.md +14 -6
  145. package/examples/autoresearch/config.ts +64 -25
  146. package/examples/autoresearch/demo.ts +75 -22
  147. package/examples/autoresearch/frontiercs2-config.ts +13 -2
  148. package/examples/autoresearch/frontiercs2.ts +64 -11
  149. package/examples/autoresearch/prepare-demo.ts +32 -3
  150. package/examples/autoresearch/prepare.ts +134 -60
  151. package/examples/autoresearch/project.ts +119 -26
  152. package/examples/autoresearch/research-service.ts +91 -41
  153. package/examples/first-harness/AGENTS.md +25 -0
  154. package/examples/first-harness/README.md +136 -0
  155. package/examples/first-harness/config.ts +41 -27
  156. package/examples/first-harness/eject.json +14 -0
  157. package/examples/first-harness/handoff.ts +3 -3
  158. package/examples/first-harness/harness.ts +104 -72
  159. package/examples/first-harness/input/README.md +7 -0
  160. package/examples/first-harness/session.ts +2 -1
  161. package/examples/first-harness/tsconfig.json +2 -1
  162. package/examples/harness-session/README.md +1 -1
  163. package/examples/lead-worker/README.md +1 -1
  164. package/examples/messages/README.md +2 -2
  165. package/examples/notes/README.md +2 -2
  166. package/examples/parallel-swarm/AGENTS.md +32 -0
  167. package/examples/parallel-swarm/README.md +136 -0
  168. package/examples/parallel-swarm/board-service.ts +28 -9
  169. package/examples/parallel-swarm/board.ts +107 -13
  170. package/examples/parallel-swarm/config.ts +47 -0
  171. package/examples/parallel-swarm/eject.json +5 -0
  172. package/examples/parallel-swarm/harness.ts +83 -71
  173. package/examples/parallel-swarm/report.ts +33 -0
  174. package/examples/peermesh/README.md +1 -1
  175. package/examples/services/agent-control/README.md +1 -1
  176. package/examples/services/mathlib-search/README.md +1 -1
  177. package/examples/services/mcp-managed/README.md +1 -1
  178. package/examples/services/persistent-board/README.md +1 -1
  179. package/examples/subagents/AGENTS.md +35 -0
  180. package/examples/subagents/README.md +129 -93
  181. package/examples/subagents/config.ts +8 -15
  182. package/examples/subagents/eject.json +17 -0
  183. package/examples/subagents/handoff-config.ts +14 -0
  184. package/examples/subagents/model.ts +20 -0
  185. package/examples/substrate/README.md +12 -6
  186. package/examples/taskpool/README.md +1 -1
  187. package/npm-shrinkwrap.development.json +9 -2
  188. package/npm-shrinkwrap.json +9 -2
  189. package/package.development.json +2 -1
  190. package/package.json +2 -1
  191. package/scripts/anyswarm-progress.ts +36 -6
  192. package/scripts/generate-architecture-coverage.ts +1 -1
  193. package/scripts/generate-architecture-prompts.ts +21 -10
  194. package/scripts/local-environment.ts +8 -1
  195. package/scripts/local-setup.ts +22 -17
  196. package/scripts/pack-release.ts +24 -3
  197. package/src/core/index.ts +1 -1
  198. package/src/core/sandbox/opensandbox-backend.ts +10 -4
  199. package/src/core/sandbox/sandbox-connection.ts +22 -7
  200. package/src/harness/project-harness.ts +3 -2
  201. package/src/harness/project-rpc-client.ts +23 -0
  202. package/src/harness/typescript-loader.ts +28 -8
  203. package/src/trace-viewer/command.mjs +6 -3
  204. package/src/trace-viewer/public/app.js +239 -59
  205. package/src/trace-viewer/public/index.html +5 -0
  206. package/src/trace-viewer/public/style.css +22 -0
  207. package/src/trace-viewer/reader.mjs +242 -26
  208. package/src/trace-viewer/run-root.d.mts +1 -0
  209. package/src/trace-viewer/run-root.mjs +7 -0
  210. package/src/trace-viewer/server.mjs +3 -1
package/docs/en/latest.md CHANGED
@@ -5,27 +5,48 @@ section: RELEASES
5
5
  order: 15
6
6
  ---
7
7
 
8
- ## v0.5.1
8
+ ## v0.6.0
9
+
10
+ This distribution includes editable Harness exports, live and saved Trace improvements, and Node 26 TypeScript support. See the [v0.6.0 changelog](changelog.md#v060). When the version is available in the public registry, install it with npm:
11
+
12
+ ```sh
13
+ npm install -g @anyswarm/core@0.6.0
14
+ anyswarm --version
15
+ ```
9
16
 
10
- v0.5.1 adds the streaming terminal, Code, Personal, AutoResearch, and native macOS setup. See the [v0.5.1 changelog](changelog.md#v051) for platform requirements and verification status.
17
+ In your project directory, install the SDK:
18
+
19
+ ```sh
20
+ npm install @anyswarm/core@0.6.0
21
+ ```
22
+
23
+ For a prepublication candidate, follow the [source installation instructions](quickstart.md#build-and-install-from-source-main).
24
+
25
+ ## v0.5.2
26
+
27
+ v0.5.2 makes npm the installation and upgrade path. Running `anyswarm` without arguments prints Quickstart. One-shot Harness runs show progress and a browser Trace command. See the [v0.5.2 changelog](changelog.md#v052) for migration instructions.
11
28
 
12
29
  Install the CLI globally with npm and check the installed version.
13
30
 
14
31
  ```sh
15
- npm install -g @anyswarm/core@0.5.1
32
+ npm install -g @anyswarm/core@0.5.2
16
33
  anyswarm --version
17
34
  ```
18
35
 
19
- The [v0.5.1 GitHub Release](https://github.com/AnySwarm/anyswarm/releases/tag/v0.5.1) also includes the npm archive.
36
+ The [v0.5.2 GitHub Release](https://github.com/AnySwarm/anyswarm/releases/tag/v0.5.2) also includes the npm archive.
20
37
 
21
38
  To add the SDK as a dependency, run this command in your project.
22
39
 
23
40
  ```sh
24
- npm install @anyswarm/core@0.5.1
41
+ npm install @anyswarm/core@0.5.2
25
42
  ```
26
43
 
27
44
  See [Install the SDK](reference/api.md#install-the-sdk) for SDK imports and the project-local CLI.
28
45
 
46
+ ## v0.5.1
47
+
48
+ See the [v0.5.1 changelog](changelog.md#v051) for the previous CLI and platform support.
49
+
29
50
  ## v0.5.0
30
51
 
31
52
  v0.5.0 was the first supported release of `@anyswarm/core`. See the [v0.5.0 changelog](changelog.md#v050) for that release.
@@ -1,35 +1,35 @@
1
1
  ---
2
2
  title: Overview
3
- description: Learn what AnySwarm solves, how the docs follow the six core building blocks, and where to jump in.
3
+ description: Run useful multi-agent workflows, inspect their evidence, and adapt collaboration with the AnySwarm TypeScript SDK.
4
4
  section: GET STARTED
5
5
  order: 0
6
6
  ---
7
7
 
8
- **`anyswarm`** (`@anyswarm/core`) is a local-first framework for building, isolating, and observing multi-agent systems.
8
+ AnySwarm is a TypeScript SDK and CLI for teams of Agents that need isolated workspaces, shared state, and inspectable results. A **Harness** defines the roles, collaboration and stopping rules. A **Runtime** runs the team, authenticates its Service calls and collects its records and artifacts.
9
9
 
10
- It cleanly separates **how your agents collaborate** from **how they are isolated and run**:
10
+ ## Start from a job
11
11
 
12
- - **You write the Harness** — deciding the roles, shared coordination Services, and orchestration logic.
13
- - **AnySwarm provides the foundation** — isolated containers (Sandboxes), the run control plane (Runtime), the trusted Host Gateway, and the built-in browser Trace Viewer.
12
+ | Job | How members work | What to inspect |
13
+ | --- | --- | --- |
14
+ | [Repository handoff](quickstart.md) | Root delegates independent source inspection to children, checks their references and writes `report.md`. | The children’s file reads, returned findings and exported report. Generic Subagents does not independently certify its conclusions. |
15
+ | [AutoResearch](autoresearch.md) | Peers explore and review patches; a host-controlled Evaluator scores frozen candidates. | Candidate identities, reviews, training feedback and final evaluation. The editable two-peer FrontierCS-2 example has its own model, evaluator and resource requirements. |
14
16
 
15
- The TypeScript SDK, host `anyswarm` CLI, in-sandbox `swarm` CLI, and `anyswarm trace` all ship in one `@anyswarm/core` package.
17
+ Open the [recorded p-limit handoff](https://anyswarm.github.io/anyswarm/trace-demo/index.html?run=p-limit-handoff) without installing anything. Choose **Files & Results** to read the original report.
16
18
 
17
- ## How the docs are organized
19
+ ## Three paths through the examples
18
20
 
19
- The guide walks through the **six building blocks** from the homepage one by one, then puts them together in two hands-on tutorials:
21
+ 1. **Tier 1 — run a task or learn the SDK.** Use [Quickstart](quickstart.md) on your repository. To author a Harness, follow [First Harness](first-harness.md) → [Parallel Swarm](build-your-harness.md). The SDK tutorials use 0.6.0 or a matching source build.
22
+ 2. **Tier 2 — applications and collaboration references.** Read [AutoResearch](autoresearch.md), then study [Subagents](harnesses/subagents.md), [TaskPool](harnesses/taskpool.md) or [Substrate](harnesses/substrate.md). These three topology entrypoints create their business Services locally, on top of the shared Runtime setup.
23
+ 3. **Tier 3 — advanced source and integrations.** `super`, `code`, `harness-session` and individual Service examples are developer references. Code development is paused. [PeerMesh](harnesses/peermesh.md) requires Gitea, Mattermost, MySQL and its Board process; [Lead-Worker](harnesses/lead-worker.md) requires Gitea. See the [complete example catalog](../../examples/README.md).
20
24
 
21
- 1. **Get Started**: [Quickstart](quickstart.md) (install and run your first swarm) → [Core Concepts](concepts.md) (the big picture in 2 minutes).
22
- 2. **Core Building Blocks**:
23
- - [Sandboxes](sandbox.md) — per-Agent sandboxes, network policies, resource limits, and Kubernetes deployment.
24
- - [Runtime](runtime.md) — creating a run, syncing files, subscribing to events, live updates, clean shutdown, and durable recovery.
25
- - [Agents & Profiles](agents.md) — role templates, persistent sessions, sending messages, interrupts, session controls, and compaction hooks.
26
- - [Host Gateway](gateway.md) — how Service Bridge and Model Gateway guard identity, schemas, callbacks, and API keys.
27
- - [Services & Permissions](services.md) — why coordination uses host Services instead of local tools, wrapping your own classes or HTTP APIs, and static/dynamic permissions.
28
- - [Trace Viewer](trace-viewer.md) — interactive swimlane demo right in the docs, plus launching `anyswarm trace` locally or over SSH.
29
- 3. **Tutorials**:
30
- - [Build Your First SDK Harness](first-harness.md) — build a two-Agent interactive handoff app using the standard `Harness` contract.
31
- - [Build a Swarm Harness](build-your-harness.md) — build a parallel multi-agent Research Swarm step by step.
32
- 4. **Built-in Harnesses**: [Choose a Harness](harnesses/index.md) — run or adapt `Subagents`, `TaskPool`, `PeerMesh`, `Substrate`, and `Lead-Worker`.
33
- 5. **Reference & Releases**: [SDK & API Reference](reference/api.md) · [CLI Reference](reference/cli.md) · [Types & Source Map](reference/types.md) · [Releases](latest.md) · [Changelog](changelog.md).
25
+ ## Understand the building blocks
34
26
 
35
- > Looking for internal implementation details or maintainer specs? See the repository's [Architecture Manual](https://github.com/AnySwarm/anyswarm/blob/main/docs/architecture/INDEX.md).
27
+ Read [Core Concepts](concepts.md), then use the reference you need: [Sandboxes](sandbox.md), [Runtime](runtime.md), [Agents & Profiles](agents.md), [Host Gateway](gateway.md), [Services & Permissions](services.md), or [Trace Viewer](trace-viewer.md). An ordinary multi-agent Harness uses one Runtime for the team; Agents do not require separate host applications.
28
+
29
+ Local input is captured at the beginning of a Run and copied into private Sandboxes. Collaboration Services make shared state explicit. Exported artifacts and cleanup receipts are separate from business acceptance, and outputs do not automatically overwrite the input directory.
30
+
31
+ ## Customize with your coding agent
32
+
33
+ The [copyable author prompt](build-your-harness.md#coding-agent-prompt) exports a real `parallel-swarm` project, reads its consumer `AGENTS.md` and installed SDK types, then adapts the workflow to your requirements. It does not use the AnySwarm maintainer instructions as your application guide.
34
+
35
+ Exact APIs and supported flags are in [SDK & API Reference](reference/api.md), [CLI Reference](reference/cli.md) and [Types & Source Map](reference/types.md). Check [Releases](latest.md) for published behavior. The [Architecture Manual](../architecture/INDEX.md) explains the implementation and its boundaries.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Quickstart
3
- description: Prepare Linux or macOS prerequisites, install AnySwarm, initialize OpenSandbox and the Worker image, and run a first Sandbox and file-reading check.
3
+ description: Prepare the shared Runtime, then use Subagents to inspect a real repository and export an engineering handoff report.
4
4
  section: GET STARTED
5
5
  order: 1
6
6
  ---
@@ -9,14 +9,17 @@ To build an application with the TypeScript SDK, follow [Build your first SDK Ha
9
9
 
10
10
  AnySwarm ships its CLI and TypeScript SDK in one package and runs Agents inside [OpenSandbox](sandbox.md) containers. This guide runs OpenSandbox and Workers on your machine using Docker.
11
11
 
12
- This guide covers [AnySwarm v0.5.1](latest.md#v051).
12
+ On GitHub's `main` branch and in the site's **Next** channel, this guide follows
13
+ current development. Use the [stable Quickstart](https://anyswarm.github.io/anyswarm/docs/quickstart/)
14
+ for the supported published package. The stable site's version label identifies
15
+ its package; Next documentation can be ahead of the last npm preview.
13
16
 
14
17
  ## Prerequisites
15
18
 
16
19
  | Dependency | Requirement | Verify |
17
20
  | --- | --- | --- |
18
21
  | **Linux or macOS** | Controller host (e.g., Ubuntu, Debian, or macOS with Docker Desktop) | `uname -s` |
19
- | **Node.js** | `>= 22.19` (install LTS from [nodejs.org](https://nodejs.org/en/download); Ubuntu 24.04 and Debian 13 repos ship older versions) | `node --version` |
22
+ | **Node.js** | `>= 22.19`; Node.js 24 is recommended (install LTS from [nodejs.org](https://nodejs.org/en/download); Ubuntu 24.04 and Debian 13 repos ship older versions) | `node --version` |
20
23
  | **npm** | Install with Node.js | `npm --version` |
21
24
  | **Git** | Required for the source checkout and project capture | `git --version` |
22
25
  | **Docker Engine** | A running local Linux container engine ([install guide](https://docs.docker.com/engine/install/)) | `docker info` |
@@ -28,6 +31,8 @@ sudo apt-get update && sudo apt-get install -y docker.io git ca-certificates
28
31
  sudo systemctl enable --now docker.service
29
32
  ```
30
33
 
34
+ Linux rootless Docker needs Engine 29.5 or newer for the host-network port used by managed OpenSandbox. An existing endpoint is also supported. [Docker rootless networking](https://docs.docker.com/engine/security/rootless/troubleshoot/#--nethost-doesnt-listen-ports-on-the-host-network-namespace)
35
+
31
36
  If the Docker socket denies access, an administrator can run `sudo usermod -aG docker alice`, replacing `alice` with the account that runs AnySwarm. Sign in again as that account and run `id` and `docker info`. The [`docker` group grants root-equivalent access](https://docs.docker.com/engine/install/linux-postinstall/).
32
37
 
33
38
  ### Docker on macOS
@@ -42,7 +47,7 @@ docker context show
42
47
  docker info --format '{{.OSType}}/{{.Architecture}}'
43
48
  ```
44
49
 
45
- If the wrong context is selected, run `docker context use <local-context>` and check whether `DOCKER_CONTEXT` or `DOCKER_HOST` overrides it. The expected daemon is Linux ARM64 on Apple Silicon, or Linux x86-64 on Intel; setup does not use emulation. If a separately installed Docker client reports `docker-credential-desktop` not found, put Docker Desktop's CLI tools on PATH in its settings, or add `/Applications/Docker.app/Contents/Resources/bin` to PATH. Use Node.js 24 LTS for TypeScript author commands; Node.js 26 removed the transform mode they currently use.
50
+ If the wrong context is selected, run `docker context use <local-context>` and check whether `DOCKER_CONTEXT` or `DOCKER_HOST` overrides it. The expected daemon is Linux ARM64 on Apple Silicon, or Linux x86-64 on Intel; setup does not use emulation. If a separately installed Docker client reports `docker-credential-desktop` not found, put Docker Desktop's CLI tools on PATH in its settings, or add `/Applications/Docker.app/Contents/Resources/bin` to PATH.
46
51
 
47
52
  The v0.5.1 release supports native macOS setup with a supported backend. The controlled-model macOS checks for [#339](https://github.com/AnySwarm/anyswarm/issues/339) use Apple Silicon and Docker Desktop, with npm Pi 1.3.0 and 1.7.0 and standalone Codex 0.173.0. Intel and other container engines need separate verification.
48
53
 
@@ -61,6 +66,22 @@ The `-g` flag installs the command into npm's global bin directory. If your shel
61
66
 
62
67
  If you are writing a Harness in TypeScript, follow [Install the SDK](reference/api.md#install-the-sdk) to add it as a project dependency.
63
68
 
69
+ ### Opt into a published preview (`next`)
70
+
71
+ Use this channel only when you want to test unreleased changes:
72
+
73
+ ```bash
74
+ npm install -g @anyswarm/core@next
75
+ anyswarm --version
76
+ ```
77
+
78
+ Record the resolved prerelease version when reporting a problem. For a project
79
+ SDK, use `npm install --save-exact @anyswarm/core@next` and keep the lockfile.
80
+ The Next website follows `main`, so use the installed package's examples and
81
+ bundled docs when its source differs from the current page. Return to stable
82
+ with `npm install -g @anyswarm/core@latest` using the same npm prefix. Preview
83
+ publication is deliberate; a change on `main` may not yet be available on `next`.
84
+
64
85
  ### Build and install from source (`main`)
65
86
 
66
87
  Run these commands from the repository root. `npm run pack:release` builds the distribution archive. The last command installs the archive into the selected npm prefix.
@@ -75,10 +96,12 @@ export PATH="$HOME/.local/bin:$PATH"
75
96
  anyswarm --version
76
97
  ```
77
98
 
78
- The candidate can share its package version with the release. Record the source commit and the tarball SHA-256 to identify it. Keep the candidate tarball if you want to install the same SDK in an [independent example project](../../examples/README.md).
99
+ For a source-only tutorial or an unmerged change, check out its reviewed branch or commit before packaging; the default `main` checkout contains only merged work. The candidate can share its package version with the release. Record the source commit and the tarball SHA-256 to identify it. Keep the candidate tarball if you want to install the same SDK in an [independent example project](../../examples/README.md).
79
100
 
80
101
  ### Update the CLI
81
102
 
103
+ Use the same npm prefix for both channels. `anyswarm update` prints the stable update command. To stay on the preview channel, explicitly install `@anyswarm/core@next` again.
104
+
82
105
  Run `npm install -g @anyswarm/core@latest` to update or `npm uninstall -g @anyswarm/core` to uninstall. Use the same Node.js installation and npm prefix. If npm reports `EACCES`, switch to a user-owned Node installation or install to a writable prefix, for example `npm install -g --prefix "$HOME/.local" @anyswarm/core`. Add `$HOME/.local/bin` to PATH and reuse that prefix for updates and removal.
83
106
 
84
107
  If you used the old shell installer for v0.5.0 or v0.5.1, check the `anyswarm`, `anys`, and `swarm` links in `$(npm prefix -g)/bin`. Clear only links that point into the old AnySwarm installation under `lib/anyswarm/current`, then install with npm. AnySwarm configuration lives outside the CLI installation.
@@ -113,38 +136,49 @@ Setup prints the image it is preparing and reports elapsed time while a phase is
113
136
 
114
137
  For a local Worker, read the reported build phase and retry after fixing its prerequisite. Setup reports the SDK version and content, the selected executable and its identity, the Worker image ID, and whether it built or reused the image.
115
138
 
116
- ## 3. Run a Sandbox and file-reading check
139
+ ## 3. Prepare an engineering handoff for your repository
117
140
 
118
- The setup smoke uses a controlled model response. This example uses your actual upstream and runs one Agent. The [browser replay](https://anyswarm.github.io/anyswarm/trace-demo/) is available without a model credential.
141
+ Use AnySwarm 0.6.0 or a [matching source build](#build-and-install-from-source-main) to export the same settings used for the [recorded p-limit run](https://github.com/AnySwarm/anyswarm/issues/358#issuecomment-7385075753). The command uses a small, pinned public repository. Once you have tried it, replace the input path with a focused directory in your own project.
119
142
 
120
- Export any streaming OpenAI Responses-compatible endpoint and API key (OpenAI shown below), then run the built-in `subagents` Harness in a fresh directory:
143
+ Set your streaming model endpoint and credentials before running. The example below uses OpenAI Responses. The recorded VM Run used GPT-6.1 Sol through its configured Responses provider. See the [CLI Reference](reference/cli.md) for protocol and executor options.
121
144
 
122
145
  ```bash
123
146
  export ANYSWARM_MODEL_URL='https://api.openai.com/v1/responses'
124
147
  export ANYSWARM_MODEL_ID='gpt-5-mini'
125
148
  export ANYSWARM_MODEL_TOKEN='<your-api-key>'
126
149
 
127
- mkdir -p anyswarm-first-example && cd anyswarm-first-example
128
- printf '# Hello from AnySwarm\n' > README.md
129
- anyswarm --harness subagents --prompt 'Read README.md and report its heading.' --output-dir ./runs
150
+ git clone https://github.com/sindresorhus/p-limit.git ./handoff-input
151
+ git -C ./handoff-input checkout --detach a8a6fbec4e0e866d6d779b10889bb4f5567e70eb
152
+ anyswarm eject subagents --dir ./handoff
153
+ (
154
+ cd ./handoff
155
+ npm install
156
+ npm start -- --config ./handoff-config.ts --cwd ../handoff-input \
157
+ --prompt 'Prepare an engineering handoff for this repository. Assign two different children: ask one to find its public entry points, exported types and how to run the repository checks, and ask the other to identify scheduling flow, core state and test coverage. Have both return independent concrete findings to Root with file paths and line numbers. Wait for both; cross-check their citations. Write a useful report.md with the architecture, verified commands, risks and open questions. Only create report.md; do not modify source, install dependencies or claim to have run checks you only read about.' \
158
+ --output-dir ../runs
159
+ )
130
160
  ```
131
161
 
132
- Expect exit code 0, `outcome: "completed"`, the heading `# Hello from AnySwarm` in the business output, and `cleanup.status: "complete"`. Trace Viewer can show the `read` tool result.
162
+ The handoff configuration allows 360 seconds of work, 70 seconds per model request and 60 seconds for cleanup. It sets room for Root and two immediate children and requires one `report.md` of up to 1 MiB. These are limits. Running time depends on the model, environment and input. The generic built-in Harness keeps its own shorter defaults. The host captures a snapshot, each Agent works in a private copy, and the result is exported under `./runs`. Follow the printed artifact path to the report.
133
163
 
134
- See the [CLI Reference](reference/cli.md) for other model providers and executor options (such as Codex).
135
-
136
- ## 4. Inspect the run in Trace Viewer
164
+ ## 4. Inspect the report and the work behind it
137
165
 
138
166
  ```bash
139
- anyswarm trace --root ./runs --port 8787 --open
167
+ anyswarm trace --root ./runs --port 8787
140
168
  ```
141
169
 
142
- From your local machine, reuse the SSH destination and options you used to sign in. For example, if you connect with `ssh -p 2222 dev@vm-host`, use `ssh -p 2222 -N -L 8787:127.0.0.1:8787 dev@vm-host`, then open `http://127.0.0.1:8787`. In **Files & results**, check the business result and cleanup status for the same Run.
170
+ Open the printed local URL. For a remote host, use SSH forwarding, for example `ssh -N -L 8787:127.0.0.1:8787 user@host`, then open `http://127.0.0.1:8787` locally.
171
+
172
+ For the same Run, check:
173
+
174
+ - **Work:** Root created the requested children, they inspected different parts of the repository, and Root received their findings. The timeline shows whether their work actually overlapped.
175
+ - **Report:** find `report.md` through the final artifact paths or **Files & results**. Check cited paths and line ranges against the captured files. Commands that were only found in documentation must be distinguished from commands actually executed.
176
+ - **Status:** read business outcome, artifact export and cleanup separately. A completed Agent turn is not an independent check of report quality. Generic Subagents reports `acceptance.status: "not-run"`; the conclusions still need review. Missing files, incomplete export or pending cleanup require attention even when a final answer exists.
143
177
 
144
- Use the same model to [verify parent-child delegation](harnesses/subagents.md#verify-parent-child-delegation) in Trace Viewer. The [two-Agent SDK Harness](first-harness.md) also checks a Service handoff and a delivery file that reflects your terminal reply.
178
+ Open the [recorded p-limit handoff](./trace-viewer.md) to inspect how Root and two children worked on a public repository and to read their exported `report.md`. The replay needs no installation or credentials.
145
179
 
146
180
  ## Next steps
147
181
 
148
- - [Core Concepts](concepts.md) — understand the six building blocks in two minutes.
149
- - [Choose a Harness](harnesses/index.md) — compare all five built-in multi-agent patterns.
150
- - [Build a Swarm Harness](build-your-harness.md) — write your own coordination loop with the [TypeScript SDK](reference/api.md).
182
+ - [Choose an example](harnesses/index.md) — applications, collaboration references and advanced integrations in three tiers.
183
+ - [First SDK Harness](first-harness.md) → [Parallel Swarm](build-your-harness.md) — learn the Service handoff, byte checks, parallel review and synthesis.
184
+ - [AutoResearch](autoresearch.md) — understand the current research application and its evaluator requirements.
@@ -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#v051) 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,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.
@@ -20,7 +20,29 @@ 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