@tt-a1i/hive 2.1.0 → 2.1.3

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 (93) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.en.md +5 -460
  3. package/README.md +338 -187
  4. package/README.zh.md +389 -0
  5. package/dist/src/cli/hive-update.d.ts +3 -2
  6. package/dist/src/cli/hive-update.js +20 -60
  7. package/dist/src/cli/hive.js +5 -1
  8. package/dist/src/server/agent-manager-support.js +16 -9
  9. package/dist/src/server/agent-runtime-contract.d.ts +4 -0
  10. package/dist/src/server/agent-runtime.js +27 -0
  11. package/dist/src/server/agent-stdin-dispatcher.d.ts +3 -0
  12. package/dist/src/server/agent-stdin-dispatcher.js +3 -0
  13. package/dist/src/server/diagnostics-support-bundle.d.ts +3 -0
  14. package/dist/src/server/diagnostics-support-bundle.js +3 -0
  15. package/dist/src/server/hive-team-guidance.js +34 -4
  16. package/dist/src/server/message-log-store.d.ts +1 -0
  17. package/dist/src/server/message-log-store.js +13 -0
  18. package/dist/src/server/orchestrator-autostart.d.ts +2 -0
  19. package/dist/src/server/orchestrator-autostart.js +30 -11
  20. package/dist/src/server/post-start-input-writer.d.ts +1 -0
  21. package/dist/src/server/post-start-input-writer.js +80 -12
  22. package/dist/src/server/role-templates.d.ts +8 -1
  23. package/dist/src/server/role-templates.js +102 -48
  24. package/dist/src/server/route-types.d.ts +6 -0
  25. package/dist/src/server/routes-scenarios.d.ts +2 -1
  26. package/dist/src/server/routes-scenarios.js +11 -6
  27. package/dist/src/server/routes-team.js +21 -15
  28. package/dist/src/server/routes-workspaces.js +22 -2
  29. package/dist/src/server/runtime-store-contract.d.ts +2 -0
  30. package/dist/src/server/runtime-store-helpers.d.ts +11 -2
  31. package/dist/src/server/runtime-store-helpers.js +29 -5
  32. package/dist/src/server/runtime-store-workflows.js +20 -0
  33. package/dist/src/server/runtime-store.js +2 -0
  34. package/dist/src/server/scenario-presets.d.ts +3 -1
  35. package/dist/src/server/scenario-presets.js +12 -1
  36. package/dist/src/server/spawn-worker-defaults.d.ts +2 -0
  37. package/dist/src/server/spawn-worker-defaults.js +10 -5
  38. package/dist/src/server/team-operations.d.ts +3 -0
  39. package/dist/src/server/team-operations.js +97 -29
  40. package/dist/src/server/terminal-input-profile.d.ts +2 -0
  41. package/dist/src/server/update-install-plan.d.ts +20 -0
  42. package/dist/src/server/update-install-plan.js +151 -0
  43. package/dist/src/server/version-service.d.ts +5 -0
  44. package/dist/src/server/version-service.js +17 -13
  45. package/dist/src/server/workflow-agent-call-executor.d.ts +81 -0
  46. package/dist/src/server/workflow-agent-call-executor.js +259 -0
  47. package/dist/src/server/workflow-dag-layer-tracker.d.ts +14 -0
  48. package/dist/src/server/workflow-dag-layer-tracker.js +37 -0
  49. package/dist/src/server/workflow-dag.d.ts +8 -0
  50. package/dist/src/server/workflow-dag.js +65 -0
  51. package/dist/src/server/workflow-dispatch-awaiter.d.ts +7 -1
  52. package/dist/src/server/workflow-dispatch-awaiter.js +60 -9
  53. package/dist/src/server/workflow-runner.d.ts +5 -38
  54. package/dist/src/server/workflow-runner.js +113 -445
  55. package/dist/src/server/workflow-script-host-dispatcher.d.ts +14 -0
  56. package/dist/src/server/workflow-script-host-dispatcher.js +42 -0
  57. package/dist/src/server/workflow-script-loader.d.ts +2 -2
  58. package/dist/src/server/workflow-script-loader.js +2 -2
  59. package/dist/src/server/workflow-script-worker.d.ts +14 -0
  60. package/dist/src/server/workflow-script-worker.js +81 -0
  61. package/dist/src/server/workflow-vm-worker-source.d.ts +1 -0
  62. package/dist/src/server/workflow-vm-worker-source.js +1 -0
  63. package/dist/src/server/workflow-vm-worker.cjs +238 -0
  64. package/dist/src/server/workspace-ui-language.d.ts +7 -0
  65. package/dist/src/server/workspace-ui-language.js +9 -0
  66. package/dist/src/shared/scenario-presets.d.ts +6 -1
  67. package/dist/src/shared/scenario-presets.js +80 -28
  68. package/dist/src/shared/types.d.ts +11 -7
  69. package/dist/src/shared/ui-language.d.ts +4 -0
  70. package/dist/src/shared/ui-language.js +3 -0
  71. package/package.json +4 -2
  72. package/web/dist/assets/{AddWorkerDialog-DBLhwb91.js → AddWorkerDialog-DHwOZ75i.js} +2 -2
  73. package/web/dist/assets/AddWorkspaceFlow-qOI1CmqC.js +1 -0
  74. package/web/dist/assets/{FirstRunWizard-DlEPnWWw.js → FirstRunWizard-D5kGMD_V.js} +1 -1
  75. package/web/dist/assets/{MarketplaceDrawer-CfSiRi8e.js → MarketplaceDrawer-BuCbtqFk.js} +1 -1
  76. package/web/dist/assets/TaskGraphDrawer-e_bg3f5u.js +1 -0
  77. package/web/dist/assets/{WhatsNewDialog-vP7buLos.js → WhatsNewDialog-BB9ieq3T.js} +1 -1
  78. package/web/dist/assets/{WorkerModal-CSorwcdP.js → WorkerModal-CGeWO3Dg.js} +1 -1
  79. package/web/dist/assets/{WorkflowsDrawer-BXS3w9Uq.js → WorkflowsDrawer-CVvGxxdR.js} +1 -1
  80. package/web/dist/assets/WorkspaceMemoryDrawer-BamHuJEp.js +1 -0
  81. package/web/dist/assets/WorkspaceTaskDrawer-CqntbH9-.js +1 -0
  82. package/web/dist/assets/index-BOpmn5Ij.js +84 -0
  83. package/web/dist/assets/index-rPYd0MUk.css +1 -0
  84. package/web/dist/assets/{search-BZw4T67h.js → search-DKgM9IgX.js} +1 -1
  85. package/web/dist/assets/{square-terminal-B7E57In1.js → square-terminal-DMWazpEv.js} +1 -1
  86. package/web/dist/index.html +2 -2
  87. package/web/dist/sw.js +1 -1
  88. package/web/dist/assets/AddWorkspaceFlow-cxvhVAsT.js +0 -1
  89. package/web/dist/assets/TaskGraphDrawer-C2JufcPs.js +0 -1
  90. package/web/dist/assets/WorkspaceMemoryDrawer-D71ivohr.js +0 -1
  91. package/web/dist/assets/WorkspaceTaskDrawer-CGCTSHKa.js +0 -1
  92. package/web/dist/assets/index-BcwN8cCw.js +0 -79
  93. package/web/dist/assets/index-StXTPHls.css +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,46 @@
2
2
 
3
3
  All notable user-facing changes will be documented in this file.
4
4
 
5
+ ## 2.1.3 - 2026-06-18
6
+
7
+ Issue backlog polish for onboarding, dispatch, demo, and release readiness.
8
+
9
+ - Holds Hive startup instruction injection while first-run CLI setup prompts are
10
+ visible, avoiding collisions with trust/login/confirmation onboarding screens.
11
+ - Adds a first-dispatch guide on the Orchestrator pane for non-scenario flows,
12
+ and makes user-input delivery truthful when the Orchestrator PTY is offline.
13
+ - Adds language-aware built-in role contracts and scenario/spawn defaults so
14
+ English workspaces no longer receive zh-only worker prompts.
15
+ - Replaces the external demo video with a local self-running Hive replay that
16
+ shows task progress, worker states, and team dispatch flow.
17
+ - Adds a local CLI compatibility report for native modules and Tier-1 agent
18
+ CLIs, wired into release verification.
19
+ - Surfaces local-only retention diagnostics in Settings and adds candidate
20
+ memory review controls to the Memory drawer.
21
+ - Re-verifies the existing `team recall` route, CLI, and remote relay path.
22
+
23
+ ## 2.1.2 - 2026-06-16
24
+
25
+ Spawned-worker dispatch reliability.
26
+
27
+ - Fixes `team spawn` followed by `team send`: newly spawned workers now wake for
28
+ their first task instead of leaving the dispatch parked in the stopped queue.
29
+ - Keeps stopped-worker semantics intact after that first run: if a spawned
30
+ worker is later stopped manually, new sends stay queued until the worker is
31
+ started again.
32
+ - Makes Windows Claude Code sessions more tolerant of large Hive startup and
33
+ dispatch injections, reducing premature submit/input residue during agent
34
+ startup.
35
+
36
+ ## 2.1.1 - 2026-06-14
37
+
38
+ Codex terminal input polish and Action Center mobile refinements.
39
+
40
+ - Makes Codex terminal input smoother and more reliable during pasted or
41
+ programmatically injected prompts.
42
+ - Polishes the Action Center layout and interaction details, especially on
43
+ narrower and mobile-sized screens.
44
+
5
45
  ## 2.1.0 - 2026-06-13
6
46
 
7
47
  Sentinel patrol role, one-click team assembly, visible memory consolidation, and remote/dispatch reliability.
package/README.en.md CHANGED
@@ -1,464 +1,9 @@
1
- <p align="center">
2
- <img src="./assets/logo.png" width="120" alt="Hive logo" />
3
- </p>
1
+ # Hive English README
4
2
 
5
- # Hive
3
+ The English README is now the default GitHub entry point:
6
4
 
7
- <p align="center">
8
- <img src="./assets/hive-hero.png" alt="Hive local-first multi-agent collaboration workspace hero image" />
9
- </p>
5
+ [README.md](./README.md)
10
6
 
11
- **Hive is a browser-native workbench where a team of agents works together — one orchestrates, the rest execute, all on your laptop.** The orchestrator
12
- is a real `agy` / `claude` / `codex` / `opencode` / `gemini` / `hermes` / `qwen` process — not you, and
13
- not a script — and so are the workers it dispatches to. Every agent runs as
14
- a real PTY on your machine, talks through a small `team` protocol that Hive
15
- injects into each agent's shell, and shares a markdown task graph at
16
- `<workspace>/.hive/tasks.md`.
7
+ Chinese documentation is available here:
17
8
 
18
- Code, research, drafts, translations — if a team can split the work, a hive can take it on.
19
-
20
- [![npm](https://img.shields.io/npm/v/@tt-a1i/hive.svg)](https://www.npmjs.com/package/@tt-a1i/hive)
21
- [![ci](https://img.shields.io/github/actions/workflow/status/tt-a1i/hive/release.yml?branch=main&label=ci)](https://github.com/tt-a1i/hive/actions/workflows/release.yml)
22
- [![Website](https://img.shields.io/badge/website-hivehq.dev-5a8a8a.svg)](https://hivehq.dev)
23
- [![Node](https://img.shields.io/badge/node-%3E%3D22-3c873a.svg)](https://nodejs.org/)
24
- [![License](https://img.shields.io/badge/license-BUSL--1.1-orange.svg)](./LICENSE.BSL)
25
- [![Platforms](https://img.shields.io/badge/platforms-macOS%20%C2%B7%20Linux%20%C2%B7%20Windows%20(best--effort)-lightgrey.svg)](#platform-support)
26
-
27
- 🌐 **Website**: [hivehq.dev/en/](https://hivehq.dev/en/) · [中文](https://hivehq.dev/)
28
-
29
- English · [简体中文](./README.md)
30
-
31
- > Hive is local-first, runs on `127.0.0.1`, and is intended for anyone who
32
- > already runs CLI agents. The latest stable release is on
33
- > [npm](https://www.npmjs.com/package/@tt-a1i/hive) and the badge above resolves
34
- > to it.
35
-
36
- <p align="center">
37
- <img src="./assets/hive-team-view.png" alt="Hive workbench with a 4-agent team — orchestrator dispatching while workers run" />
38
- </p>
39
-
40
- ## Why Hive
41
-
42
- CLI agents are powerful, but coordinating several of them manually is
43
- awkward:
44
-
45
- - Long-running sessions are spread across terminals.
46
- - Splitting work across agents — implementation/review/testing,
47
- research/drafting/fact-checking, or any other division of labor — needs a
48
- routing layer you don't have.
49
- - Worker progress disappears into scrollback.
50
- - Restart recovery depends on each CLI's native session behavior.
51
-
52
- Hive adds the coordination layer without replacing the CLIs. Agents stay as
53
- real terminal processes on your machine; Hive just manages the shell around
54
- them.
55
-
56
- ## Try the demo first
57
-
58
- Don't have an agent CLI installed yet? Run `hive`, open the printed URL, and
59
- click **Try Demo** in the first-run wizard. The current demo is a walkthrough
60
- video hosted on Bilibili (network access required to play it) plus a sample
61
- team in the sidebar, so you can see the orchestrator dispatching and workers
62
- reporting without installing or signing in to any real CLI agent. Useful for
63
- deciding whether to install a real CLI.
64
-
65
- ## Quick Start
66
-
67
- Prerequisites:
68
-
69
- - Node.js 22 or newer.
70
- - At least one supported agent CLI installed, authenticated, and available on
71
- `PATH`.
72
-
73
- Install and start Hive:
74
-
75
- ```bash
76
- npm install -g @tt-a1i/hive
77
- hive
78
- ```
79
-
80
- If npm prints `npm warn allow-scripts` or `prebuild-install@7.1.3 deprecated`
81
- during install, first check whether the command ends with `added ... packages`.
82
- Those warnings usually come from npm's install-script review plus native
83
- binary setup for `node-pty`, `better-sqlite3`, and `esbuild`; they do not mean
84
- Hive failed to install. The troubleshooting section below breaks them down.
85
-
86
- Open the printed local URL, usually `http://127.0.0.1:3000/`. Use
87
- `hive --port 4010` when you need a specific local port.
88
-
89
- To upgrade in place:
90
-
91
- ```bash
92
- hive update
93
- ```
94
-
95
- `hive update` runs `npm install -g @tt-a1i/hive@latest` in place. Restart any
96
- in-flight Hive process to pick up the new version. If you installed Hive with
97
- pnpm or yarn, upgrade through the same package manager — otherwise the new
98
- npm copy will shadow your existing install.
99
-
100
- Install Hive as an app (optional):
101
-
102
- Open `http://127.0.0.1:3000/` in Chrome, Edge, or Brave and click the install
103
- icon at the right edge of the browser's omnibox. The PWA launches in its own
104
- dock-anchored window without browser chrome and shows **Add Workspace** /
105
- **Try Demo** shortcuts from the dock right-click menu. Firefox and Safari
106
- currently don't implement the install-prompt protocol, so the omnibox icon
107
- only appears in Chromium-based browsers.
108
-
109
- The Hive daemon must still be running for the PWA to do anything; if the
110
- runtime isn't reachable when you launch the app, you'll see a "Hive runtime
111
- is not running" page that auto-reloads once `hive` is back on `127.0.0.1`.
112
- The PWA install scope is keyed by origin, so `hive --port 4011` installs as
113
- a separate app from `hive --port 3000`. To uninstall, visit `chrome://apps`,
114
- right-click the Hive tile, and choose **Remove from Chrome…**.
115
-
116
- Hive asks the browser to confirm before closing the tab or PWA window so an
117
- accidental close shortcut (Cmd-W on macOS, Ctrl-W on Windows/Linux) doesn't
118
- drop your session. Modern browsers gate that prompt on prior page interaction
119
- — if you open the PWA and immediately press the close shortcut without
120
- clicking or typing anywhere first, it still closes cleanly. That's a browser
121
- policy, not a Hive bug.
122
-
123
- First-run flow:
124
-
125
- 1. Create a workspace from a project folder.
126
- 2. Choose an Orchestrator preset.
127
- 3. Hive creates `<workspace>/.hive/tasks.md`, starts the Orchestrator PTY, and
128
- injects the internal `team` command into the agent session.
129
- 4. Add workers from the Team Members panel.
130
- 5. Ask the Orchestrator to delegate work. It sends tasks with
131
- `team send <worker-name> "<task>"`; workers report back with `team report`.
132
-
133
- If you want the Orchestrator to size the team itself, leave **Auto-staff**
134
- enabled (it is on by default). It can `team spawn` the right temporary mix of
135
- coders, testers, and reviewers for the task, then Hive dismisses those
136
- temporary workers when their work is done.
137
-
138
- For stronger automation, enable the experimental **Workflows** toggle in
139
- settings. The Orchestrator can then author and run multi-agent workflows that
140
- fan out across implementation, review, testing, or other stages. The topbar
141
- **Workflows** panel shows runs, phase results, logs, schedules, and stop
142
- controls. The same panel also lets you choose which CLI workflow-created
143
- agents use by default and which CLIs they are allowed to use.
144
-
145
- ## How It Works
146
-
147
- ```text
148
- Browser UI on 127.0.0.1
149
- tasks, team, terminals, reports
150
- |
151
- | HTTP + WebSocket
152
- v
153
- Hive runtime
154
- SQLite metadata, PTY lifecycle, task dispatch
155
- |
156
- +-- Orchestrator PTY
157
- | can call: team send, team list, team report
158
- |
159
- +-- Worker PTY
160
- | can call: team report
161
- |
162
- +-- Worker PTY
163
- can call: team report
164
-
165
- Workspace task graph:
166
- <workspace>/.hive/tasks.md
167
- ```
168
-
169
- Three details matter:
170
-
171
- - Agents are real CLI processes, not simulated subagents.
172
- - `team` is injected only inside Hive-managed agent sessions by prepending the
173
- package's internal bin directory to `PATH`; it is not installed as a global
174
- command.
175
- - The task graph is a markdown file in the workspace, so you can inspect or
176
- edit it outside the app.
177
-
178
- ## Agent Presets
179
-
180
- | Preset | Command expected on `PATH` | Default bypass mode | Session resume |
181
- | --- | --- | --- | --- |
182
- | Antigravity CLI | `agy` | `--dangerously-skip-permissions` | `--conversation <session_id>` |
183
- | Claude Code | `claude` | `--dangerously-skip-permissions`, `--permission-mode=bypassPermissions` | `--resume <session_id>` |
184
- | Codex | `codex` | `--dangerously-bypass-approvals-and-sandbox` | `resume <session_id>` |
185
- | OpenCode | `opencode` | Config-driven in `~/.config/opencode/opencode.json` | `--session <session_id>` |
186
- | Gemini | `gemini` | `--yolo` | `--resume <session_id>` |
187
- | Hermes | `hermes` | `--yolo` | `--resume <session_id>` |
188
- | Qwen Code | `qwen` | `--approval-mode yolo` | `--resume <session_id>` |
189
- | Cursor CLI | `cursor` | `--force` | Session id capture not wired yet |
190
- | Grok Build | `grok` | `--always-approve` | Session id capture not wired yet |
191
- | Custom | Any executable | User configured | User configured |
192
-
193
- Hive does not install these CLIs for you. Install and authenticate them in the
194
- same shell environment you use to start Hive.
195
-
196
- ## What Hive Provides
197
-
198
- - Workspace sidebar for switching between local projects.
199
- - Orchestrator and worker terminals backed by real PTYs.
200
- - Add Worker flow with role presets for coder, reviewer, tester, and fully
201
- custom prompts and commands — wire any CLI agent into the role you need.
202
- - Auto-staff (experimental, on by default): the Orchestrator can create
203
- temporary coders, testers, and reviewers based on the task, and Hive cleans
204
- them up after their dispatch reports back.
205
- - Workflows (experimental, off by default): the Orchestrator can run
206
- multi-stage, multi-agent workflows while Hive shows runs, logs, results,
207
- schedules, and stop controls in the Workflows panel.
208
- - Workflow CLI policy: choose the default CLI for workflow-created agents and
209
- restrict which CLIs workflow scripts may launch.
210
- - `.hive/tasks.md` editor with external-file conflict handling.
211
- - Background PTY preservation and best-effort native session resume.
212
- - A What's New dialog after upgrades with curated release highlights.
213
- - Local SQLite metadata under `%APPDATA%\hive` on Windows and `~/.config/hive`
214
- on macOS / Linux by default, or `$HIVE_DATA_DIR` when set.
215
-
216
- Hive does not provide sandboxing, multi-user auth, or any bundled agent
217
- model. It coordinates the CLIs you already run locally.
218
-
219
- ## Remote Access (optional, off by default)
220
-
221
- If you want to reach your running Hive from your phone while you're away,
222
- turn on the optional **Remote access** feature. Once enabled, a phone browser
223
- logs in at a gateway with GitHub or Google, pairs once with the desktop, and
224
- then reaches the **full** Hive web UI over an end-to-end encrypted tunnel — a
225
- paired phone is a trusted device with the **same authority** as the local
226
- browser.
227
-
228
- A few things to be clear about:
229
-
230
- - **Off by default.** With it off there are no outbound connections and
231
- nothing listening — behavior is exactly what it is today.
232
- - **Requires a gateway.** The tunnel is relayed through a gateway (your
233
- local daemon dials out to it — no open ports, no router changes). The
234
- gateway URL is configurable: **self-host** a Cloudflare Workers gateway,
235
- or point at one that's already deployed. There is **no turnkey hosted
236
- service** — you stand the gateway up yourself.
237
- - **Data and execution stay local.** The gateway only does identity (OAuth
238
- login) and routing; it never sees plaintext, only relays ciphertext. If the
239
- gateway is down, everything on local `127.0.0.1` keeps working.
240
- - **End-to-end encrypted.** Every data frame between the phone and the daemon
241
- is end-to-end encrypted; the gateway sees only ciphertext and routing
242
- headers. The honest caveat: the phone's crypto code is served by the gateway
243
- (the classic limit of web-delivered E2E, like Proton or WhatsApp Web),
244
- mitigated by SRI, versioned bundles, and PWA caching that forms a TOFU
245
- baseline. We don't claim "secure even if the gateway is compromised."
246
- - **Trust root stays on the desktop.** Pairing a new device must be confirmed
247
- in person at the computer (a desktop dialog plus a 6-digit SAS check); a
248
- paired phone can't approve new devices on its own. Devices can be revoked at
249
- any time.
250
-
251
- See [docs/remote-access.md](docs/remote-access.md) for the full enable,
252
- login (`hive remote login`), pairing, revoke, and self-host-gateway walkthrough.
253
-
254
- ## Platform Support
255
-
256
- | Platform | Status | Notes |
257
- | --- | --- | --- |
258
- | macOS | Tier 1 | Main development and release verification target. |
259
- | Linux | Tier 1 | CI verified. Native folder picking expects `zenity`; manual path entry works without it. |
260
- | Windows | Tier 2 | CI runs a Windows test subset and a packaged-install smoke. Workspace selection uses Hive's in-browser server filesystem picker by default, starting at "This PC" so other drives are visible; the package includes `team.cmd`. Treat as best-effort — full Windows verification before each release is manual. |
261
-
262
- All platforms require Node.js 22+. Hive depends on native packages
263
- (`node-pty` and `better-sqlite3`), so native install tooling may be required
264
- when prebuilt binaries are unavailable.
265
-
266
- ## Safety Model
267
-
268
- Hive is a local development tool, not a hosted service.
269
-
270
- - The runtime binds to `127.0.0.1`. Do not expose the Hive port through a public
271
- tunnel, reverse proxy, or shared network interface.
272
- - Built-in presets intentionally use each CLI's non-interactive or bypass mode
273
- where available. Treat workers as able to run arbitrary shell commands inside
274
- the selected workspace.
275
- - Open only trusted workspaces. A worker has the same filesystem access as the
276
- shell account running Hive.
277
- - Agent tokens are session scoped, generated by the local runtime, injected into
278
- agent process environments, and not intended as internet-facing credentials.
279
- - Hive has no multi-user authentication boundary. Treat same-machine processes
280
- that can reach the local port as trusted local access.
281
- - The browser UI token is a local session guard, not protection against other
282
- processes already running as your OS user.
283
-
284
- Read [SECURITY.md](SECURITY.md) before using Hive with sensitive repositories.
285
-
286
- ## Data Locations
287
-
288
- | Data | Location |
289
- | --- | --- |
290
- | Runtime metadata | Windows: `%APPDATA%\hive`; macOS / Linux: `~/.config/hive`; or `$HIVE_DATA_DIR` |
291
- | Workspace tasks | `<workspace>/.hive/tasks.md` |
292
- | Internal `team` command | Packaged under `dist/bin/`, injected into PTYs |
293
- | Web UI assets | Served by the runtime from the packaged `web/dist` build |
294
-
295
- ## Troubleshooting
296
-
297
- **Agent CLI not found**
298
-
299
- Check that the selected command is installed, authenticated, executable from the
300
- same shell, and available on `PATH`.
301
-
302
- **Port already in use**
303
-
304
- Start Hive with another local port:
305
-
306
- ```bash
307
- hive --port 4020
308
- ```
309
-
310
- **Native package install fails**
311
-
312
- Hive depends on `node-pty` and `better-sqlite3`, which use native binaries. Use
313
- Node.js 22+, keep your package manager cache clean, and verify your platform
314
- build tools are available.
315
-
316
- When install succeeds but npm prints warnings, read them by source:
317
-
318
- | warning | Source | What to do |
319
- | --- | --- | --- |
320
- | `allow-scripts @tt-a1i/hive` | Hive's postinstall fixes executable bits for packaged native / PTY helpers. | Safe to ignore after a successful install. |
321
- | `allow-scripts better-sqlite3` | SQLite native bindings download a prebuilt binary, then fall back to local build. | Safe to ignore after success; check build tools only if install fails. |
322
- | `allow-scripts node-pty` | The terminal PTY binding prepares platform binaries. | Safe to ignore after success; check build tools only if install fails. |
323
- | `allow-scripts esbuild` | esbuild verifies/selects the binary package for the current platform. | Safe to ignore after a successful install. |
324
-
325
- This is npm 11's install-script review notice. The current npm release still
326
- treats it as advisory; future npm versions may require explicit approval. To
327
- review the list yourself, run `npm approve-scripts --allow-scripts-pending`.
328
-
329
- If npm prints a deprecated warning for `prebuild-install@7.1.3`, it is safe to
330
- ignore. The warning comes from `better-sqlite3`'s native binary download chain;
331
- it is an upstream installer maintenance notice, not a Hive install failure, and
332
- does not affect runtime behavior.
333
-
334
- **Folder picker does not open on Linux**
335
-
336
- Install `zenity`, or paste the workspace path manually.
337
-
338
- **Folder picker on Windows**
339
-
340
- Hive uses the in-browser server filesystem browser by default on Windows
341
- instead of launching the PowerShell native folder picker. This avoids the
342
- system dialog getting hidden behind the browser window. The browser starts at
343
- "This PC" and lists accessible drives, so `C:\`, `D:\`, and other drives are
344
- reachable. If the target directory is not visible in the browser list, expand
345
- "Advanced: paste path" and enter the absolute path directly.
346
-
347
- **Tasks file conflict banner appears**
348
-
349
- Hive detected a newer `.hive/tasks.md` on disk. Use `Reload` to accept the file
350
- from disk, or `Keep Local` to keep the editor contents and save again.
351
-
352
- **Worker appears stuck in `working`**
353
-
354
- Hive does not guess task completion from process activity. Workers move back to
355
- `idle` when they call `team report`. If a worker is blocked, stop or restart it
356
- from the UI.
357
-
358
- ## Development
359
-
360
- ```bash
361
- pnpm install
362
- pnpm dev
363
- ```
364
-
365
- Development mode runs the runtime on `127.0.0.1:4010`; Vite runs on
366
- `127.0.0.1:5180` and proxies API and WebSocket traffic to the runtime.
367
-
368
- Useful checks:
369
-
370
- ```bash
371
- pnpm check
372
- pnpm build
373
- pnpm test
374
- ```
375
-
376
- Production-style local run:
377
-
378
- ```bash
379
- pnpm build
380
- node dist/src/cli/hive.js --port 4010
381
- ```
382
-
383
- The production server serves the built web UI directly. No Vite server is
384
- needed after `pnpm build`.
385
-
386
- ## Release
387
-
388
- Maintainer dry run:
389
-
390
- ```bash
391
- pnpm release:dry
392
- ```
393
-
394
- See [docs/release.md](docs/release.md) for the full tagged release checklist,
395
- including manual Windows smoke steps.
396
-
397
- Tag pushes matching `v*` run the GitHub Actions release workflow. The workflow
398
- verifies macOS, Ubuntu, and Windows, then publishes to npm with `NPM_TOKEN`.
399
-
400
- ## Status
401
-
402
- Hive is in alpha. The core flow is usable today; current work focuses on
403
- polishing the multi-agent collaboration workflow, Windows support, and clearer
404
- orchestration observability. Try it out and open issues — feedback shapes what
405
- gets prioritized next.
406
-
407
- ## On the roadmap: cross-agent long-term memory
408
-
409
- <p align="center">
410
- <a href="https://github.com/EverMind-AI/EverOS">
411
- <img src="https://avatars.githubusercontent.com/EverMind-AI" width="72" alt="EverMind / EverOS" />
412
- </a>
413
- </p>
414
-
415
- Single-agent memory already exists, but the styles diverge:
416
-
417
- - **Claude Code's [Auto Dream](https://claudefa.st/blog/guide/mechanics/auto-dream)** is **batch / offline** — invoked via `/dream` (or on a 24h timer), Claude consolidates JSONL session logs in the cloud, merges duplicates, extracts patterns, and proposes a new memory file for you to review and adopt. REM-sleep style, with a clean wake/sleep separation.
418
- - **Hermes Agent** runs the opposite playbook — **embedded and in-stride**. Every N turns it forks a background sub-agent to review the recent exchange and writes directly into a **multi-organ local store**: `MEMORY.md` (facts/rules) · `USER.md` (who-you-are) · SQLite + FTS5 (episodic search) · Honcho (third-person model) · `skills/` (procedural memory). The agent is allowed to edit its own skill files in stride — memory and capability are the same thing.
419
-
420
- But these are all **per-agent** memories. Hive coordinates *teams* of agents, so the next step is wiring them together: let the whole team **share one long-term memory store** — what Worker A learned today becomes context the Orchestrator can dispatch to Worker B tomorrow.
421
-
422
- We're planning to back this with **[EverOS](https://github.com/EverMind-AI/EverOS)**
423
- — an open-source long-term memory OS from [EverMind](https://evermind.ai/),
424
- currently SOTA on the LoCoMo / LongMemEval / HaluMem memory benchmarks.
425
- Its four-layer architecture (Agentic / Memory / Index / API+MCP) maps
426
- cleanly onto Hive's multi-PTY model: each agent keeps its in-CLI memory,
427
- team-level facts flow through EverOS, and the Orchestrator joins both
428
- when dispatching.
429
-
430
- Track progress at [#6](https://github.com/tt-a1i/hive/issues/6) — drop a
431
- +1 or comment with your use case to influence priority.
432
-
433
- ## A different form factor: squad
434
-
435
- If you'd rather have **pure CLI, zero background process, and the ability to
436
- run on a remote SSH box**, [squad](https://github.com/mco-org/squad) takes the
437
- same idea down a different path — SQLite as the protocol layer, one terminal
438
- per agent. The two projects don't replace each other; pick by workflow:
439
-
440
- - **Hive** — visual workbench, one-click restart, workspace sidebar, easier to demo to a team
441
- - **squad** — lives in tmux, SSH remote dev, no extra background process, Windows servers
442
-
443
- ## Acknowledgements
444
-
445
- The built-in template marketplace ships snapshots of two community-maintained prompt libraries, both distributed under their upstream MIT licenses:
446
-
447
- - English (used when the UI is set to EN): [`msitarzewski/agency-agents`](https://github.com/msitarzewski/agency-agents)
448
- - Chinese (used when the UI is set to 中文): [`jnMetaCode/agency-agents-zh`](https://github.com/jnMetaCode/agency-agents-zh)
449
-
450
- Upstream content is mirrored verbatim, license files are kept under `vendor/marketplace/<lang>/LICENSE`, and snapshots are refreshed by `pnpm sync:marketplace` before each Hive release.
451
-
452
- ## License
453
-
454
- Hive is **source-available under the Business Source License 1.1 (BUSL-1.1)**. It is **not** open source as defined by the OSI, and we don't describe it as such.
455
-
456
- ### License FAQ
457
-
458
- **Why isn't it OSI open source?** BUSL-1.1 places one restriction on production use (next answer), which keeps it outside the Open Source Definition — the BUSL license text itself states it "is not an Open Source license". Rather than blur that line, we say source-available plainly.
459
-
460
- **Does it affect personal or team use?** No. The Additional Use Grant in [LICENSE.BSL](LICENSE.BSL) explicitly allows production use; the only carve-out is offering Hive to third parties — hosted or embedded, on a paid basis or under any other revenue-generating arrangement (including paid support) — in a way that competes with Hive's multi-CLI-agent orchestration product. Personal use, internal deployment within your organization, embedding into a non-competitive product, and non-commercial forks are all fine.
461
-
462
- **Will it become open source later?** Yes. Each version converts to the **Apache License 2.0** on the Change Date (2030-05-16) or four years after that version's first public release, whichever comes first.
463
-
464
- See [LICENSE.BSL](LICENSE.BSL) for the exact terms. Forks and redistributions must preserve [NOTICE](NOTICE), [LICENSE.BSL](LICENSE.BSL), and the applicable license files. The Hive name, logo, and visual identity are not licensed by the source license; see [TRADEMARK.md](TRADEMARK.md) for brand usage boundaries.
9
+ [README.zh.md](./README.zh.md)