@prestyj/cli 5.38.0 → 5.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/README.md +92 -42
  2. package/dist/app-sidecar/fleet-adapter.d.ts +138 -0
  3. package/dist/app-sidecar/fleet-adapter.js +356 -0
  4. package/dist/app-sidecar/fleet-adapter.js.map +1 -0
  5. package/dist/app-sidecar/fleet-routes.d.ts +4 -0
  6. package/dist/app-sidecar/fleet-routes.js +109 -0
  7. package/dist/app-sidecar/fleet-routes.js.map +1 -0
  8. package/dist/app-sidecar/goal-routes.d.ts +20 -0
  9. package/dist/app-sidecar/goal-routes.js +42 -1
  10. package/dist/app-sidecar/goal-routes.js.map +1 -1
  11. package/dist/app-sidecar.js +5 -0
  12. package/dist/app-sidecar.js.map +1 -1
  13. package/dist/cli/cloud.d.ts +45 -0
  14. package/dist/cli/cloud.js +241 -0
  15. package/dist/cli/cloud.js.map +1 -0
  16. package/dist/cli/command-routing.d.ts +3 -2
  17. package/dist/cli/command-routing.js +24 -3
  18. package/dist/cli/command-routing.js.map +1 -1
  19. package/dist/cli/fleet.d.ts +19 -3
  20. package/dist/cli/fleet.js +107 -33
  21. package/dist/cli/fleet.js.map +1 -1
  22. package/dist/cli/goals.d.ts +11 -0
  23. package/dist/cli/goals.js +115 -0
  24. package/dist/cli/goals.js.map +1 -0
  25. package/dist/cli/node.d.ts +18 -1
  26. package/dist/cli/node.js +303 -33
  27. package/dist/cli/node.js.map +1 -1
  28. package/dist/cli.js +6 -0
  29. package/dist/cli.js.map +1 -1
  30. package/dist/core/agent-session.d.ts +8 -0
  31. package/dist/core/agent-session.js +18 -1
  32. package/dist/core/agent-session.js.map +1 -1
  33. package/dist/core/cloud/claude.d.ts +128 -0
  34. package/dist/core/cloud/claude.js +836 -0
  35. package/dist/core/cloud/claude.js.map +1 -0
  36. package/dist/core/cloud/cloud-agent.d.ts +136 -0
  37. package/dist/core/cloud/cloud-agent.js +783 -0
  38. package/dist/core/cloud/cloud-agent.js.map +1 -0
  39. package/dist/core/cloud/codex.d.ts +154 -0
  40. package/dist/core/cloud/codex.js +622 -0
  41. package/dist/core/cloud/codex.js.map +1 -0
  42. package/dist/core/cloud/config.d.ts +69 -0
  43. package/dist/core/cloud/config.js +86 -0
  44. package/dist/core/cloud/config.js.map +1 -0
  45. package/dist/core/cloud/git.d.ts +15 -0
  46. package/dist/core/cloud/git.js +33 -0
  47. package/dist/core/cloud/git.js.map +1 -0
  48. package/dist/core/cloud/registry.d.ts +13 -0
  49. package/dist/core/cloud/registry.js +64 -0
  50. package/dist/core/cloud/registry.js.map +1 -0
  51. package/dist/core/cloud/runner.d.ts +46 -0
  52. package/dist/core/cloud/runner.js +99 -0
  53. package/dist/core/cloud/runner.js.map +1 -0
  54. package/dist/core/cloud/snapshot.d.ts +23 -0
  55. package/dist/core/cloud/snapshot.js +98 -0
  56. package/dist/core/cloud/snapshot.js.map +1 -0
  57. package/dist/core/cloud/types.d.ts +139 -0
  58. package/dist/core/cloud/types.js +28 -0
  59. package/dist/core/cloud/types.js.map +1 -0
  60. package/dist/core/fleet/client.d.ts +106 -6
  61. package/dist/core/fleet/client.js +352 -20
  62. package/dist/core/fleet/client.js.map +1 -1
  63. package/dist/core/fleet/cloud-jobs.d.ts +59 -0
  64. package/dist/core/fleet/cloud-jobs.js +131 -0
  65. package/dist/core/fleet/cloud-jobs.js.map +1 -0
  66. package/dist/core/fleet/discovery.d.ts +2 -0
  67. package/dist/core/fleet/discovery.js +3 -1
  68. package/dist/core/fleet/discovery.js.map +1 -1
  69. package/dist/core/fleet/fleet-scheduler.d.ts +4 -0
  70. package/dist/core/fleet/fleet-scheduler.js +11 -1
  71. package/dist/core/fleet/fleet-scheduler.js.map +1 -1
  72. package/dist/core/fleet/git.d.ts +7 -0
  73. package/dist/core/fleet/git.js +22 -1
  74. package/dist/core/fleet/git.js.map +1 -1
  75. package/dist/core/fleet/machines.d.ts +112 -0
  76. package/dist/core/fleet/machines.js +219 -0
  77. package/dist/core/fleet/machines.js.map +1 -0
  78. package/dist/core/fleet/node/agents.d.ts +2 -0
  79. package/dist/core/fleet/node/agents.js +195 -9
  80. package/dist/core/fleet/node/agents.js.map +1 -1
  81. package/dist/core/fleet/node/config.d.ts +37 -3
  82. package/dist/core/fleet/node/config.js +201 -40
  83. package/dist/core/fleet/node/config.js.map +1 -1
  84. package/dist/core/fleet/node/context.d.ts +19 -1
  85. package/dist/core/fleet/node/docker.d.ts +13 -5
  86. package/dist/core/fleet/node/docker.js +132 -66
  87. package/dist/core/fleet/node/docker.js.map +1 -1
  88. package/dist/core/fleet/node/doctor.d.ts +29 -0
  89. package/dist/core/fleet/node/doctor.js +202 -0
  90. package/dist/core/fleet/node/doctor.js.map +1 -0
  91. package/dist/core/fleet/node/env.d.ts +7 -0
  92. package/dist/core/fleet/node/env.js +51 -0
  93. package/dist/core/fleet/node/env.js.map +1 -0
  94. package/dist/core/fleet/node/gc.d.ts +46 -0
  95. package/dist/core/fleet/node/gc.js +140 -0
  96. package/dist/core/fleet/node/gc.js.map +1 -0
  97. package/dist/core/fleet/node/goals.d.ts +43 -0
  98. package/dist/core/fleet/node/goals.js +418 -0
  99. package/dist/core/fleet/node/goals.js.map +1 -0
  100. package/dist/core/fleet/node/jobs.d.ts +37 -2
  101. package/dist/core/fleet/node/jobs.js +236 -15
  102. package/dist/core/fleet/node/jobs.js.map +1 -1
  103. package/dist/core/fleet/node/local-client.d.ts +9 -0
  104. package/dist/core/fleet/node/local-client.js +29 -0
  105. package/dist/core/fleet/node/local-client.js.map +1 -0
  106. package/dist/core/fleet/node/ops-routes.d.ts +15 -0
  107. package/dist/core/fleet/node/ops-routes.js +84 -0
  108. package/dist/core/fleet/node/ops-routes.js.map +1 -0
  109. package/dist/core/fleet/node/pair-code-route.d.ts +14 -0
  110. package/dist/core/fleet/node/pair-code-route.js +76 -0
  111. package/dist/core/fleet/node/pair-code-route.js.map +1 -0
  112. package/dist/core/fleet/node/secrets.d.ts +43 -0
  113. package/dist/core/fleet/node/secrets.js +184 -0
  114. package/dist/core/fleet/node/secrets.js.map +1 -0
  115. package/dist/core/fleet/node/server.d.ts +22 -1
  116. package/dist/core/fleet/node/server.js +210 -21
  117. package/dist/core/fleet/node/server.js.map +1 -1
  118. package/dist/core/fleet/node/state.d.ts +24 -1
  119. package/dist/core/fleet/node/state.js +12 -3
  120. package/dist/core/fleet/node/state.js.map +1 -1
  121. package/dist/core/fleet/node/tls.d.ts +17 -0
  122. package/dist/core/fleet/node/tls.js +49 -0
  123. package/dist/core/fleet/node/tls.js.map +1 -0
  124. package/dist/core/fleet/node/uninstall.d.ts +27 -0
  125. package/dist/core/fleet/node/uninstall.js +100 -0
  126. package/dist/core/fleet/node/uninstall.js.map +1 -0
  127. package/dist/core/fleet/node/update.d.ts +28 -0
  128. package/dist/core/fleet/node/update.js +62 -0
  129. package/dist/core/fleet/node/update.js.map +1 -0
  130. package/dist/core/fleet/node/workspace.d.ts +4 -0
  131. package/dist/core/fleet/node/workspace.js +38 -9
  132. package/dist/core/fleet/node/workspace.js.map +1 -1
  133. package/dist/core/fleet/node-load.d.ts +4 -0
  134. package/dist/core/fleet/node-load.js +62 -0
  135. package/dist/core/fleet/node-load.js.map +1 -0
  136. package/dist/core/fleet/project-config.d.ts +10 -0
  137. package/dist/core/fleet/project-config.js +39 -1
  138. package/dist/core/fleet/project-config.js.map +1 -1
  139. package/dist/core/fleet/prompt-hint.d.ts +11 -0
  140. package/dist/core/fleet/prompt-hint.js +47 -0
  141. package/dist/core/fleet/prompt-hint.js.map +1 -0
  142. package/dist/core/fleet/propose-config.d.ts +26 -0
  143. package/dist/core/fleet/propose-config.js +95 -0
  144. package/dist/core/fleet/propose-config.js.map +1 -0
  145. package/dist/core/fleet/protocol.d.ts +97 -1
  146. package/dist/core/fleet/protocol.js +10 -1
  147. package/dist/core/fleet/protocol.js.map +1 -1
  148. package/dist/core/fleet/registry.d.ts +12 -1
  149. package/dist/core/fleet/registry.js +39 -7
  150. package/dist/core/fleet/registry.js.map +1 -1
  151. package/dist/core/fleet/remote-agent-nodes.d.ts +56 -8
  152. package/dist/core/fleet/remote-agent-nodes.js +162 -22
  153. package/dist/core/fleet/remote-agent-nodes.js.map +1 -1
  154. package/dist/core/fleet/remote-agent.d.ts +52 -1
  155. package/dist/core/fleet/remote-agent.js +220 -40
  156. package/dist/core/fleet/remote-agent.js.map +1 -1
  157. package/dist/core/fleet/service.d.ts +95 -3
  158. package/dist/core/fleet/service.js +762 -35
  159. package/dist/core/fleet/service.js.map +1 -1
  160. package/dist/core/fleet/store.js +22 -5
  161. package/dist/core/fleet/store.js.map +1 -1
  162. package/dist/core/fleet/types.d.ts +36 -1
  163. package/dist/core/fleet/types.js +12 -2
  164. package/dist/core/fleet/types.js.map +1 -1
  165. package/dist/core/goal-controller.d.ts +1 -0
  166. package/dist/core/goal-controller.js +1 -1
  167. package/dist/core/goal-controller.js.map +1 -1
  168. package/dist/core/goal-fleet.d.ts +117 -0
  169. package/dist/core/goal-fleet.js +441 -0
  170. package/dist/core/goal-fleet.js.map +1 -0
  171. package/dist/core/goal-headless.d.ts +45 -0
  172. package/dist/core/goal-headless.js +177 -0
  173. package/dist/core/goal-headless.js.map +1 -0
  174. package/dist/core/goal-remote-worker.d.ts +45 -0
  175. package/dist/core/goal-remote-worker.js +157 -0
  176. package/dist/core/goal-remote-worker.js.map +1 -0
  177. package/dist/core/goal-store.d.ts +36 -0
  178. package/dist/core/goal-store.js +69 -1
  179. package/dist/core/goal-store.js.map +1 -1
  180. package/dist/core/goal-verifier.d.ts +5 -0
  181. package/dist/core/goal-verifier.js +10 -0
  182. package/dist/core/goal-verifier.js.map +1 -1
  183. package/dist/core/goal-worker.d.ts +12 -0
  184. package/dist/core/goal-worker.js +162 -8
  185. package/dist/core/goal-worker.js.map +1 -1
  186. package/dist/core/subagent-manager.d.ts +12 -5
  187. package/dist/core/subagent-manager.js +15 -10
  188. package/dist/core/subagent-manager.js.map +1 -1
  189. package/dist/core/validation/backends.d.ts +34 -5
  190. package/dist/core/validation/backends.js +45 -5
  191. package/dist/core/validation/backends.js.map +1 -1
  192. package/dist/core/validation/cloud-backend.d.ts +77 -0
  193. package/dist/core/validation/cloud-backend.js +343 -0
  194. package/dist/core/validation/cloud-backend.js.map +1 -0
  195. package/dist/core/validation/config.js +9 -2
  196. package/dist/core/validation/config.js.map +1 -1
  197. package/dist/core/validation/node-backend.d.ts +2 -0
  198. package/dist/core/validation/node-backend.js +5 -0
  199. package/dist/core/validation/node-backend.js.map +1 -1
  200. package/dist/core/validation/scheduler.d.ts +11 -0
  201. package/dist/core/validation/scheduler.js +34 -7
  202. package/dist/core/validation/scheduler.js.map +1 -1
  203. package/dist/core/validation/service.d.ts +6 -0
  204. package/dist/core/validation/service.js +51 -13
  205. package/dist/core/validation/service.js.map +1 -1
  206. package/dist/core/validation/types.d.ts +14 -0
  207. package/dist/modes/acp-mode.d.ts +3 -1
  208. package/dist/modes/acp-mode.js +2 -1
  209. package/dist/modes/acp-mode.js.map +1 -1
  210. package/dist/system-prompt.d.ts +5 -0
  211. package/dist/system-prompt.js +3 -0
  212. package/dist/system-prompt.js.map +1 -1
  213. package/dist/tools/fleet.d.ts +40 -4
  214. package/dist/tools/fleet.js +228 -17
  215. package/dist/tools/fleet.js.map +1 -1
  216. package/dist/tools/goals.d.ts +4 -1
  217. package/dist/tools/goals.js +45 -5
  218. package/dist/tools/goals.js.map +1 -1
  219. package/dist/tools/index.d.ts +7 -0
  220. package/dist/tools/index.js +6 -1
  221. package/dist/tools/index.js.map +1 -1
  222. package/dist/tools/steroids.d.ts +1 -1
  223. package/dist/tools/subagent-control.js +1 -1
  224. package/dist/tools/subagent-control.js.map +1 -1
  225. package/dist/tools/validate.js +1 -1
  226. package/dist/tools/validate.js.map +1 -1
  227. package/dist/ui/App.js +2 -0
  228. package/dist/ui/App.js.map +1 -1
  229. package/package.json +6 -4
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ![ezcoder](screenshots/ezcoder.png)
2
2
 
3
3
  <p align="center">
4
- <strong>The fast, lean coding agent. Twelve providers plus local models. Zero bloat.</strong>
4
+ <strong>The lean coding agent you can walk away from. 13 providers plus local models. Tests in the background. Your other computers on call.</strong>
5
5
  </p>
6
6
 
7
7
  <p align="center">
@@ -12,7 +12,7 @@
12
12
  <a href="https://github.com/Gahroot"><img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="GitHub"></a>
13
13
  </p>
14
14
 
15
- A coding agent that ships only what the model needs to work — a tiny system prompt, no bundled MCPs, and a focused tool set. Switch between Anthropic, OpenAI, Gemini, xAI, Moonshot, GLM, MiniMax, Xiaomi, DeepSeek, Sakana, OpenRouter, Hugging Face, and your own local models mid-conversation. Run it on its own, or let [`@prestyj/boss`](../ezboss/README.md) drive a fleet of `ezcoder` workers across many projects from a single chat.
15
+ A coding agent that ships only what the model needs to work — a tiny system prompt, no bundled MCPs, and a focused tool set. Switch between Anthropic, OpenAI, Gemini, xAI, Moonshot, GLM, MiniMax, Xiaomi, DeepSeek, Sakana, OpenRouter, Hugging Face, OpenCode and your own local models mid-conversation. Validation runs in the background against exact commits, so testing never holds up a session, and the fleet sends builds, renders, local AI and whole agents to your other machines. Run it on its own, or let [`@prestyj/boss`](../boss/README.md) drive many `ezcoder` workers across projects from a single chat.
16
16
 
17
17
  Built on [`@prestyj/ai`](../ai/README.md) and [`@prestyj/agent`](../agent/README.md). Part of the [EZCoder Framework](../../README.md) monorepo.
18
18
 
@@ -63,25 +63,26 @@ You can still add your own MCPs in `~/.ezcoder/mcp.json` or `.ezcoder/mcp.json`.
63
63
 
64
64
  ---
65
65
 
66
- ## Twelve providers, one agent
66
+ ## 13 providers, one agent
67
67
 
68
68
  Switch mid-conversation with `/model`. Not locked to anyone.
69
69
 
70
- | Provider | Models | Auth |
71
- | ----------------- | ------------------------------------------------------------------------------ | ---------------- |
72
- | **Anthropic** | Claude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5 | OAuth |
73
- | **OpenAI** | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna | OAuth |
74
- | **Gemini** | Gemini 3.1 Pro (Preview), 3.8 Flash, 3.5 Flash, 3.5 Flash Lite, 3.1 Flash Lite | OAuth |
75
- | **xAI (Grok)** | Grok 4.7 | OAuth or API key |
76
- | **Moonshot** | Kimi K3, K2.8 Preview (Kimi sign-in), K2.7 Code, K2.7 Code HighSpeed | OAuth or API key |
77
- | **Z.AI (GLM)** | GLM-5.3, GLM-5.3-Flash | API key |
78
- | **MiniMax** | MiniMax M3 | API key |
79
- | **Xiaomi (MiMo)** | MiMo-V2.6-Pro, MiMo-V2.6-Flash, MiMo-V2.6-Pro-UltraSpeed | API key |
80
- | **DeepSeek** | DeepSeek V4 Pro, V4.1 Flash | API key |
81
- | **Sakana (Fugu)** | Fugu, Fugu Max, Fugu Ultra | API key |
82
- | **OpenRouter** | Qwen3.8 Max | API key |
83
- | **Hugging Face** | Kimi K2.7 Code, DeepSeek V4.1 Flash, GPT-OSS 120B (Inference Providers router) | API key |
84
- | **Local** | Any model on an OpenAI-compatible server: Ollama, LM Studio, llama.cpp, vLLM | None |
70
+ | Provider | Models | Auth |
71
+ | ----------------- | ----------------------------------------------------------------------------------------------------------------- | ---------------- |
72
+ | **Anthropic** | Claude Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 (Fable and Opus have Fast variants) | OAuth |
73
+ | **OpenAI** | GPT-6.2 Sol, GPT-6.2 Astra, GPT-6.1 Terra, GPT-6 Luna (each with a Fast variant) | OAuth |
74
+ | **Gemini** | Gemini 4 Hydrogen, Argon, Carbon, Gemini 3.1 Pro (Preview), 3.8 Flash, 3.6 Flash, 3.5 Flash, 3.5 / 3.1 Flash Lite | OAuth |
75
+ | **xAI (Grok)** | Grok 4.7 | OAuth or API key |
76
+ | **Moonshot** | Kimi K3, K2.8 Preview (Kimi sign-in), K2.7 Code, K2.7 Code HighSpeed | OAuth or API key |
77
+ | **Z.AI (GLM)** | GLM-5.3, GLM-5.3-Flash | API key |
78
+ | **MiniMax** | MiniMax M3, M3.1 Flash | API key |
79
+ | **Xiaomi (MiMo)** | MiMo-V2.6-Pro, MiMo-V2.6-Flash, MiMo-V2.6-Pro-UltraSpeed | API key |
80
+ | **DeepSeek** | DeepSeek V4 Pro, V4.1 Flash | API key |
81
+ | **Sakana (Fugu)** | Fugu, Fugu Max, Fugu Ultra | API key |
82
+ | **OpenRouter** | Qwen3.8 Max | API key |
83
+ | **Hugging Face** | Kimi K2.7 Code, DeepSeek V4.1 Flash, GPT-OSS 120B (Inference Providers router) | API key |
84
+ | **OpenCode** | Kimi K3, GLM-5.3, GLM-5.3-Flash (OpenCode Go subscription or pay-as-you-go) | Sign-in |
85
+ | **Local** | Any OpenAI-compatible server: Ollama, LM Studio, llama.cpp, vLLM, or a model your fleet runs on a GPU machine | None |
85
86
 
86
87
  Every hosted model above except GLM-5.3, DeepSeek V4 Pro, and GPT-OSS 120B accepts images.
87
88
 
@@ -91,9 +92,54 @@ The same conversation, the same tools, the same project context — only the mod
91
92
 
92
93
  ---
93
94
 
95
+ ## ⚡ Background validation
96
+
97
+ Testing never holds up a session. `validate` queues the checks for an exact commit and returns at once; the agent keeps working and gets a notification when they pass or fail.
98
+
99
+ ```bash
100
+ ezcoder validate run # queue the required stages for HEAD
101
+ ezcoder validate status # where every job is
102
+ ezcoder validate workers # every machine, its slots, CPU, memory and load
103
+ ezcoder validate gate # exits non-zero until every required stage passed
104
+ ```
105
+
106
+ - **Exact commits, real gates.** Results are bound to the commit they tested, so a stale result can't approve newer code. Each required stage can post a GitHub commit status (`ezcoder/<stage>`) for branch protection and releases.
107
+ - **Automatic defaults.** Test commands, Docker setup and stages are inferred from the project; `.ezcoder/validation.json` overrides them. Quick checks run locally, heavy ones go to workers.
108
+ - **Any number of workers.** GitHub Actions self-hosted runners (Linux, Windows WSL2, macOS), GitHub-hosted runners, and fleet nodes. Jobs go to whichever machine has a free slot and enough CPU and memory; adding a machine never changes a project.
109
+ - **Cloud overflow, zero setup.** Signed in to Claude? When your machines are busy, full or off, stages and jobs spill over to Claude Code cloud sandboxes on your plan, with results checked against the cloud's own record of the exact command. → [Cloud capacity](docs/cloud.md)
110
+ - **Bounded and durable.** Global and per-machine concurrency limits, state saved across restarts, jobs requeued on another machine if a worker drops, and worker health shown in `validate workers`.
111
+
112
+ → [Async validation guide](docs/async-validation.md)
113
+
114
+ ---
115
+
116
+ ## 🖥️ Fleet: your other machines on call
117
+
118
+ Pair any machine running `ezcoder node` (native Linux, Windows WSL2, macOS) over Tailscale, and EZ Coder can send it far more than tests:
119
+
120
+ | | |
121
+ | -------------------- | -------------------------------------------------------------------------------------------------------------- |
122
+ | **Jobs** | Builds, Playwright and browser tests, video renders, deploys. Artifacts come back to `.ezcoder/artifacts/` |
123
+ | **Services** | Local AI on GPU machines (auto-added to `/model`), remote Playwright browsers, custom servers |
124
+ | **Dev environments** | A container with your project, from `.devcontainer` or a Dockerfile, that you or the agent can run commands in |
125
+ | **Agents** | `spawn_agent` with `machine: "auto"` runs a helper on another machine; its edits come back as a patch |
126
+
127
+ Scheduling uses each machine's free slots, CPU, memory, GPUs and labels, preferring the one with a warm cache. Jobs survive restarts and move if a machine drops. Deploys wait for the exact commit's required validation to pass, are never retried automatically, and use secrets that live only on the deploy machine. Every job gets its own workspace, container and cache, so projects never collide.
128
+
129
+ ```bash
130
+ ezcoder node init && ezcoder node install # on the other machine; prints a pairing code
131
+ ezcoder fleet add <pairing-code> # on your main machine
132
+ ezcoder fleet run build # jobs from .ezcoder/fleet.json, or automatic defaults
133
+ ezcoder fleet service up llm # start a model on a GPU machine
134
+ ```
135
+
136
+ → [Fleet](docs/fleet.md) · [Setting up a machine](docs/fleet-nodes.md) · [Agents on other machines](docs/fleet-agents.md)
137
+
138
+ ---
139
+
94
140
  ## 🤝 Pair it with ezboss
95
141
 
96
- `ezcoder` is the unit of work. [`ezboss`](../ezboss/README.md) is the orchestrator that drives many of them at once.
142
+ `ezcoder` is the unit of work. [`ezboss`](../boss/README.md) is the orchestrator that drives many of them at once.
97
143
 
98
144
  ```bash
99
145
  npm i -g @prestyj/boss
@@ -162,27 +208,29 @@ Plus built-in workflows that ship with the binary:
162
208
 
163
209
  EZ Coder comes with a focused set of tools. Only six core tools — `read`, `write`, `edit`, `bash`, `grep`, and `skill` — plus `tool_search` send their full schemas on every request. Everything else is listed as a one-line hint and loads the first time the agent needs it, so rarely used tools cost almost nothing.
164
210
 
165
- | Tool | What it does |
166
- | --------------------------------- | ------------------------------------------------------------------------------------------------------ |
167
- | `bash` | Run shell commands, in the foreground or background (`task_output` / `task_send` / `task_stop`) |
168
- | `read` | Read file contents |
169
- | `write` | Write files |
170
- | `edit` | Surgical string replacements |
171
- | `grep` | Search file contents (regex) |
172
- | `skill` | Load a skill's instructions |
173
- | `tool_search` | Load an on-demand tool by capability |
174
- | `find` / `ls` | Find files by glob pattern / list a directory |
175
- | `code_search` / `code_nav` | Find code by meaning / jump to exact definitions and callers |
176
- | `web_fetch` / `web_search` | Fetch a URL / search the web |
177
- | `steroids` | Find real production repos similar to yours and read how they do it |
178
- | `source_path` | Locate an installed dependency's source |
179
- | `browser` | Test a page in a real browser: clicks, forms, checks, screenshots, console and network errors |
180
- | `debug` | Drive the Node debugger |
181
- | `enter_plan` / `exit_plan` | Plan before editing, then hand the plan back for approval |
182
- | `subagent` | Run one blocking, isolated child task (backward-compatible) |
183
- | `spawn_agent` / `wait_agent` | Launch persistent child turns concurrently and collect results |
184
- | `send_message` / `followup_task` | Steer a running child or reuse an idle child's context |
185
- | `list_agents` / `interrupt_agent` | Inspect or interrupt persistent children |
211
+ | Tool | What it does |
212
+ | --------------------------------- | ----------------------------------------------------------------------------------------------- |
213
+ | `bash` | Run shell commands, in the foreground or background (`task_output` / `task_send` / `task_stop`) |
214
+ | `read` | Read file contents |
215
+ | `write` | Write files |
216
+ | `edit` | Surgical string replacements |
217
+ | `grep` | Search file contents (regex) |
218
+ | `skill` | Load a skill's instructions |
219
+ | `tool_search` | Load an on-demand tool by capability |
220
+ | `find` / `ls` | Find files by glob pattern / list a directory |
221
+ | `code_search` / `code_nav` | Find code by meaning / jump to exact definitions and callers |
222
+ | `web_fetch` / `web_search` | Fetch a URL / search the web |
223
+ | `steroids` | Find real production repos similar to yours and read how they do it |
224
+ | `source_path` | Locate an installed dependency's source |
225
+ | `browser` | Test a page in a real browser: clicks, forms, checks, screenshots, console and network errors |
226
+ | `debug` | Drive the Node debugger |
227
+ | `enter_plan` / `exit_plan` | Plan before editing, then hand the plan back for approval |
228
+ | `subagent` | Run one blocking, isolated child task (backward-compatible) |
229
+ | `spawn_agent` / `wait_agent` | Launch persistent child turns concurrently and collect results |
230
+ | `send_message` / `followup_task` | Steer a running child or reuse an idle child's context |
231
+ | `list_agents` / `interrupt_agent` | Inspect or interrupt persistent children |
232
+ | `validate` | Queue background checks for an exact commit; returns at once and notifies when done |
233
+ | `fleet` | Run jobs, services and dev environments on your other machines |
186
234
 
187
235
  The `browser` tool uses Playwright's Chromium (`npx playwright install chromium`) or an installed Google Chrome. Without either, it returns an install hint instead of failing the turn.
188
236
 
@@ -194,6 +242,8 @@ Add your own MCPs in `~/.ezcoder/mcp.json` or `.ezcoder/mcp.json` if you need mo
194
242
 
195
243
  Only GPT-6.2 Astra, GPT-6.2 Sol and GPT-6.1 Terra at **Ultra** delegate proactively. Lower Astra/Sol levels use async agents only when the user or project/skill instructions request delegation; other models receive no proactive policy.
196
244
 
245
+ Pass `machine` to `spawn_agent` to run a child on a fleet node instead of this computer.
246
+
197
247
  Children share the parent working directory by default, so parallel writes must target disjoint files or subsystems. Pass `isolate: true` to `subagent` to give a child its own copy of the repo on a new branch instead — the right choice when several children edit at once, or when a child's changes should land on a branch of their own. The copy is reclaimed automatically when the child finishes without committing; a child that did commit keeps its branch, because that branch is the deliverable. `/integrate` then merges those branches one at a time, running the suite between each. Async fan-out is one level deep, child output is bounded, idle workers reap after 10 minutes, and workers are not resumable after a CLI/app restart.
198
248
 
199
249
  Parent cancellation interrupts active children. Session disposal shuts down every worker process alongside background commands, LSP servers, and MCP connections.
@@ -264,9 +314,9 @@ MIT
264
314
  ---
265
315
 
266
316
  <p align="center">
267
- <strong>Lean prompt. Sharp tools. Real results.</strong>
317
+ <strong>Lean prompt. Sharp tools. Tests that never block.</strong>
268
318
  </p>
269
319
 
270
320
  <p align="center">
271
- <a href="https://www.npmjs.com/package/@prestyj/cli"><img src="https://img.shields.io/badge/Install-npm%20i%20--g%20%40Gahroot%2Fezcoder-blue?style=for-the-badge" alt="Install"></a>
321
+ <a href="https://www.npmjs.com/package/@prestyj/cli"><img src="https://img.shields.io/badge/Install-npm%20i%20--g%20%40prestyj%2Fcli-blue?style=for-the-badge" alt="Install"></a>
272
322
  </p>
@@ -0,0 +1,138 @@
1
+ import type { FoundNode } from "../core/fleet/discovery.js";
2
+ import { type DoctorReport, type NodeInfo, type NodePlatform } from "../core/fleet/protocol.js";
3
+ import { FleetService } from "../core/fleet/service.js";
4
+ import { type FleetJob, type FleetServiceRecord } from "../core/fleet/types.js";
5
+ export interface MachineNotice {
6
+ kind: "update" | "protocol" | "offline";
7
+ /** One plain sentence, with what to do. */
8
+ text: string;
9
+ }
10
+ export interface MachineView {
11
+ name: string;
12
+ /** Host (and port) the machine is reached at, without the token. */
13
+ address: string;
14
+ online: boolean;
15
+ platform?: NodePlatform;
16
+ version?: string;
17
+ /** Load per CPU (0..n), when known. */
18
+ load?: number;
19
+ cpus?: number;
20
+ memoryGb?: number;
21
+ gpus: {
22
+ name: string;
23
+ memoryGb: number;
24
+ }[];
25
+ slots?: number;
26
+ slotsUsed?: number;
27
+ /** What runs there right now. */
28
+ running: {
29
+ jobs: number;
30
+ services: number;
31
+ agents: number;
32
+ };
33
+ /** Our unfinished jobs placed on it (incl. ones still preparing). */
34
+ ourJobs: number;
35
+ labels: string[];
36
+ modelLogin?: boolean;
37
+ dockerOnly?: boolean;
38
+ notices: MachineNotice[];
39
+ addedAt: string;
40
+ }
41
+ export interface AddMachineResult {
42
+ name: string;
43
+ online: boolean;
44
+ /** Absent when the machine couldn't be reached (offline add). */
45
+ doctor?: DoctorReport;
46
+ }
47
+ export interface ShareAuthResult {
48
+ /** "exists": the machine already has its own login; ask before replacing it. */
49
+ status: "shared" | "exists";
50
+ providers: string[];
51
+ }
52
+ export interface FleetActivityJob {
53
+ id: string;
54
+ name: string;
55
+ kind: string;
56
+ state: FleetJob["state"];
57
+ node?: string;
58
+ summary?: string;
59
+ startedAt?: string;
60
+ finishedAt?: string;
61
+ updatedAt: string;
62
+ }
63
+ export interface FleetActivityService {
64
+ id: string;
65
+ name: string;
66
+ kind: string;
67
+ state: FleetServiceRecord["state"];
68
+ node: string;
69
+ summary?: string;
70
+ endpoints: {
71
+ name: string;
72
+ url: string;
73
+ }[];
74
+ }
75
+ export interface FleetActivity {
76
+ jobs: FleetActivityJob[];
77
+ services: FleetActivityService[];
78
+ }
79
+ /** Slots in use / total: one slot runs one job or helper agent. */
80
+ export interface Capacity {
81
+ slots: number;
82
+ slotsUsed: number;
83
+ }
84
+ export interface MachinesOverview {
85
+ machines: MachineView[];
86
+ /** This computer's own share of the work. */
87
+ local: Capacity & {
88
+ estimated?: boolean;
89
+ };
90
+ /** This computer plus every machine that's online. */
91
+ total: Capacity;
92
+ }
93
+ export interface FleetAdapter {
94
+ version(): string;
95
+ listMachines(): Promise<MachineView[]>;
96
+ /** Machines plus capacity totals (this computer and every online machine). */
97
+ overview(): Promise<MachinesOverview>;
98
+ addMachine(input: string, opts?: {
99
+ offline?: boolean;
100
+ }): Promise<AddMachineResult>;
101
+ removeMachine(name: string): Promise<boolean>;
102
+ rotateMachineToken(name: string): Promise<void>;
103
+ shareAuth(name: string, opts?: {
104
+ force?: boolean;
105
+ }): Promise<ShareAuthResult>;
106
+ doctor(name: string): Promise<DoctorReport>;
107
+ activity(cwd: string): Promise<FleetActivity>;
108
+ jobLog(id: string, tail: number): Promise<string>;
109
+ serviceLog(id: string, tail: number): Promise<string>;
110
+ }
111
+ /** A plain-words problem the app shows as-is (HTTP 400). */
112
+ export declare class FleetUserError extends Error {
113
+ constructor(message: string);
114
+ }
115
+ /** -1 / 0 / 1 comparing dotted versions (pre-release tags ignored). */
116
+ export declare function compareVersions(a: string, b: string): number;
117
+ /** Notices for one machine: older CLI, protocol out of range, unreachable. */
118
+ export declare function machineNotices(info: Pick<NodeInfo, "version" | "protocol" | "minProtocol"> | undefined, ours: string, online: boolean, error?: string): MachineNotice[];
119
+ /** A doctor report put together from /v1/info, for nodes without /v1/doctor. */
120
+ export declare function doctorFromInfo(info: NodeInfo, ours: string): DoctorReport;
121
+ export interface FleetAdapterOptions {
122
+ service?: FleetService;
123
+ /** Fetch for machines not yet paired (tests); paired ones use the service's. */
124
+ fetch?: typeof fetch;
125
+ /** auth.json with this machine's model logins. */
126
+ authFile?: string;
127
+ /** This computer's EZ Coder version. */
128
+ version?: string;
129
+ /** This computer's slots (default: the controller's `localCapacity()`). */
130
+ localCapacity?: () => Promise<Capacity & {
131
+ estimated?: boolean;
132
+ }>;
133
+ /** Tailscale discovery, for short pairing codes. */
134
+ discover?: () => Promise<FoundNode[]>;
135
+ }
136
+ export declare function createFleetAdapter(opts?: FleetAdapterOptions): FleetAdapter;
137
+ /** The adapter the sidecar routes use. */
138
+ export declare function fleetAdapter(): FleetAdapter;