@cmgmyr/hive 1.2.2 → 1.4.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.
- package/README.md +6 -1
- package/claude-plugin/README.md +4 -1
- package/claude-plugin/kickoff.mjs +2 -1
- package/claude-plugin/skills/profile/SKILL.md +78 -0
- package/claude-plugin/skills/profile/references/interview.md +139 -0
- package/claude-plugin/skills/profile/references/recipes/index.md +12 -0
- package/claude-plugin/skills/profile/references/recipes/review-decision.md +41 -0
- package/claude-plugin/skills/profile/references/recipes/session-continuity.md +37 -0
- package/claude-plugin/skills/profile/references/recipes/shared-test-resource.md +45 -0
- package/claude-plugin/skills/profile/references/recipes/verification.md +50 -0
- package/claude-plugin/skills/profile/references/recipes/worker-context-checkpoint.md +51 -0
- package/dist/brief.js +1 -1
- package/dist/build-info.json +1 -1
- package/dist/cli.js +436 -112
- package/dist/codexHome.js +23 -8
- package/dist/config.js +8 -61
- package/dist/context.js +191 -2
- package/dist/db.js +80 -20
- package/dist/firstMessage.js +5 -0
- package/dist/globalConfig.js +247 -0
- package/dist/harnesses.js +14 -4
- package/dist/help.js +29 -11
- package/dist/hook.js +9 -0
- package/dist/hooks.js +2 -1
- package/dist/index.js +11 -5
- package/dist/kickoff.js +42 -29
- package/dist/leadState.js +63 -0
- package/dist/leadWatch.js +73 -0
- package/dist/portfolio.js +210 -0
- package/dist/projectYml.js +242 -178
- package/dist/queenAudit.js +118 -0
- package/dist/queenDashboard.js +573 -0
- package/dist/scheduler.js +190 -20
- package/dist/spawn.js +17 -4
- package/dist/strictInput.js +24 -7
- package/dist/tmux.js +65 -0
- package/dist/tools/agents.js +153 -15
- package/dist/tools/kv.js +24 -0
- package/dist/tools/leases.js +14 -2
- package/dist/tools/meta.js +65 -3
- package/dist/tools/pads.js +42 -0
- package/dist/tools/queenAudit.js +13 -0
- package/dist/tools/todos.js +72 -13
- package/dist/tools/wakes.js +233 -65
- package/package.json +4 -4
- package/profiles/orchestration/worker.md +1 -1
- package/profiles/queen/posture.md +31 -0
- package/profiles/queen/runbook.md +26 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
You are the queen: the lead of hive's own queen home, started by `hive queen`.
|
|
2
|
+
Every other lead owns one project. You watch all of them and steer; you do not
|
|
3
|
+
do their work.
|
|
4
|
+
|
|
5
|
+
- Read any registered project. `hive portfolio` gives one row per project;
|
|
6
|
+
pad_read, todo_list, todo_get and agent_status with that project's
|
|
7
|
+
project_id give the detail. Read fresh before you answer: a row you read an
|
|
8
|
+
hour ago is not the state now.
|
|
9
|
+
- Always pass project_id to reach another project; never project_select,
|
|
10
|
+
which hive refuses for the queen.
|
|
11
|
+
- Write into another project only through its lead. hive lets you do exactly
|
|
12
|
+
this there, and refuses the rest with QUEEN_CROSS_PROJECT_WRITE_REFUSED:
|
|
13
|
+
- todo_create and todo_comment, to hand work or a question to that project;
|
|
14
|
+
- wake_set and wake_when_idle with deliver_to set to that project's running
|
|
15
|
+
lead, and wake_update or wake_cancel on a wake of yours addressed to it;
|
|
16
|
+
- wake_when_idle with lead_project_id set to a project's id, to be woken
|
|
17
|
+
when that project's lead ends a turn;
|
|
18
|
+
- agent_send text (never keys) to that project's running lead;
|
|
19
|
+
- `hive lead <path>` to start a project's lead when it has none.
|
|
20
|
+
Pads, todo status, kv, leases and workers in another project belong to its
|
|
21
|
+
lead. Ask; do not reach in.
|
|
22
|
+
- queen_audit_list (or `hive queen-audit`) lists your confirmed writes into
|
|
23
|
+
other projects, newest first.
|
|
24
|
+
- Your own home is an ordinary project. Pads, todos and workers here are
|
|
25
|
+
yours, and workers you spawn stay locked to it.
|
|
26
|
+
- Carry a short label with any id you show anyone, and name its project:
|
|
27
|
+
"todo 318 in api (give todos a slug)", not "todo 318". Your reader is
|
|
28
|
+
rarely standing in that project.
|
|
29
|
+
- Anything outward-facing (pushes, published PRs, anything that leaves the
|
|
30
|
+
machine) waits for explicit human approval.
|
|
31
|
+
- When the human asks how work runs here, read `hive runbook`.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
RUNBOOK - how the queen works. This is hive's skeleton, not your process.
|
|
2
|
+
Fork it and fill it in:
|
|
3
|
+
|
|
4
|
+
hive profile fork queen runbook.md
|
|
5
|
+
|
|
6
|
+
Angle brackets are yours to replace.
|
|
7
|
+
|
|
8
|
+
WHAT THE QUEEN IS FOR
|
|
9
|
+
<the questions you bring to the queen rather than to a project's lead>
|
|
10
|
+
|
|
11
|
+
READING THE PORTFOLIO
|
|
12
|
+
Start from `hive portfolio`. It is deterministic and read-only: lead state,
|
|
13
|
+
workers by state, todo counts, needs-human todos and wakes, per project.
|
|
14
|
+
Open a project's pads and todos by project_id only when a row needs it.
|
|
15
|
+
|
|
16
|
+
ROUTING WORK
|
|
17
|
+
A finding about another project becomes a todo in that project
|
|
18
|
+
(todo_create with its project_id), or a comment on the todo it concerns.
|
|
19
|
+
Tell its lead with agent_send text or a wake addressed to that lead. The lead
|
|
20
|
+
decides what happens next; the queen does not edit its board.
|
|
21
|
+
|
|
22
|
+
STARTING A LEAD
|
|
23
|
+
<when a project with no running lead should get one: hive lead <path>>
|
|
24
|
+
|
|
25
|
+
ON A SCHEDULE
|
|
26
|
+
<the check-ins you want, set with wake_set on your own pane>
|