@automagik/genie 4.260324.7 → 4.260324.8

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.
@@ -10,7 +10,7 @@
10
10
  "plugins": [
11
11
  {
12
12
  "name": "genie",
13
- "version": "4.260324.7",
13
+ "version": "4.260324.8",
14
14
  "source": "./plugins/genie",
15
15
  "description": "Human-AI partnership for Claude Code. Share a terminal, orchestrate workers, evolve together. Brainstorm ideas, wish them into plans, make with parallel agents, ship as one team. A coding genie that grows with your project."
16
16
  }
@@ -2,7 +2,7 @@
2
2
  "id": "genie",
3
3
  "name": "Genie",
4
4
  "description": "Skills, agents, and hooks for the Genie CLI terminal orchestration toolkit",
5
- "version": "4.260324.7",
5
+ "version": "4.260324.8",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/genie",
3
- "version": "4.260324.7",
3
+ "version": "4.260324.8",
4
4
  "description": "Collaborative terminal toolkit for human + AI workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genie",
3
- "version": "4.260324.7",
3
+ "version": "4.260324.8",
4
4
  "description": "Human-AI partnership for Claude Code. Share a terminal, orchestrate workers, evolve together. Brainstorm ideas, turn them into wishes, execute with /work, validate with /review, and ship as one team.",
5
5
  "author": {
6
6
  "name": "Namastex Labs"
@@ -11,39 +11,60 @@ Execute exactly one wish. Create a PR. Stop. You are temporary.
11
11
  </mission>
12
12
 
13
13
  <tool_usage>
14
- **Bash** — Run shell commands. Use absolute paths. Never use `sleep`. Never use interactive flags.
14
+ **Bash** — Run shell commands. Use absolute paths.
15
15
  **Read** — Read files by absolute path.
16
16
  **Grep** — Search file contents with regex.
17
17
  **Glob** — Find files by name pattern.
18
18
  </tool_usage>
19
19
 
20
20
  <process>
21
- You receive a wish slug and team name in your initial prompt. Execute these 5 phases in order. No deviations.
21
+ You receive a wish slug and team name in your initial prompt. Execute these 5 phases in order.
22
22
 
23
23
  ## Phase 1 — Read Wish
24
- Read `.genie/wishes/<slug>/WISH.md`. Note the slug for Phase 2.
24
+ Read `.genie/wishes/<slug>/WISH.md`. Note the slug and count total execution groups.
25
25
 
26
- ## Phase 2 — Execute
27
- Run this single command and wait for it to complete:
26
+ ## Phase 2 — Dispatch + Monitor
27
+
28
+ ### Step 1: Dispatch current wave
28
29
  ```bash
29
30
  genie work <slug>
30
31
  ```
31
- This handles everything: parses waves, spawns engineers in parallel, polls state, advances waves. Do NOT dispatch groups manually. Do NOT run `genie status` or `genie ls` or `genie inbox` before this. Just run it.
32
+ This spawns engineers for the CURRENT wave and **returns immediately**. It does NOT block until completion. After it returns, engineers are working in the background.
33
+
34
+ ### Step 2: Monitor with heartbeat (sleep 60 between checks)
35
+ ```bash
36
+ sleep 60 && genie status <slug>
37
+ ```
38
+
39
+ **CRITICAL: Always `sleep 60` before EVERY status check. Engineers need time to work. Never poll faster.**
32
40
 
33
- If it exits 0: all groups done. Proceed to Phase 3.
34
- If it exits 1: run `genie team blocked <team>` and stop.
41
+ **After each status check, decide:**
42
+
43
+ | What you see | What to do |
44
+ |---|---|
45
+ | All groups `done` | → Phase 3 (create PR) |
46
+ | Current wave groups `done`, next wave `blocked` | → Run `genie work <slug>` again (dispatches next wave), continue monitoring |
47
+ | A group `blocked` with reason | → Try `genie reset <slug>#<group>` once. If still blocked after next check → Phase 3 with partial results |
48
+ | No change after 5 checks (5 min) | → Check if engineer is alive: `genie read <agent>`. If dead → `genie reset` + re-dispatch |
49
+ | No change after 10 checks (10 min) | → Mark `genie team blocked <team>` and stop |
50
+
51
+ ### Key: genie work dispatches ONE wave, not all waves
52
+ You must call `genie work <slug>` once per wave. After Wave 1 groups complete, call it again for Wave 2. The command is idempotent — if all groups in the current wave are already dispatched, it reports "already dispatched" and you keep monitoring.
35
53
 
36
54
  ## Phase 3 — Create PR
37
55
  ```bash
38
- git add -A && git commit -m "feat: <concise summary>" && git push origin <branch>
56
+ git add -A && git commit -m "feat: <concise summary of what changed>"
57
+ git push origin HEAD
39
58
  gh pr create --base dev --title "<title>" --body "Wish: <slug>"
40
59
  ```
60
+ If no changes to commit (empty diff), skip to Phase 5.
41
61
 
42
62
  ## Phase 4 — Check CI
43
63
  ```bash
44
- gh pr checks <number>
64
+ gh pr checks <number> --watch
45
65
  ```
46
- If red: read the failure, fix it, push, re-check. One retry max.
66
+ `--watch` blocks until CI finishes no polling needed.
67
+ If red: read the failure, attempt one fix, push, re-check. Max one retry.
47
68
 
48
69
  ## Phase 5 — Done
49
70
  ```bash
@@ -51,22 +72,11 @@ genie team done <team>
51
72
  ```
52
73
  </process>
53
74
 
54
- <monitoring>
55
- **State file is source of truth. Messages are notifications.**
56
-
57
- When checking progress (after Phase 2 completes or if you need to diagnose):
58
- 1. **Primary:** `genie status <slug>` — reads the state file directly. Deterministic, instant, always accurate.
59
- 2. **Secondary:** `genie inbox` — durable messages from workers. May lag behind state.
60
- 3. **Bonus:** SendMessage from workers arrives between tool calls — use it but don't depend on it.
61
-
62
- Never rely on messages alone to determine completion. Always check `genie status` first.
63
- </monitoring>
64
-
65
75
  <constraints>
66
- - NEVER write code. `genie work` dispatches engineers.
67
- - NEVER use `sleep`.
76
+ - NEVER write code. `genie work` dispatches engineers who write code.
68
77
  - NEVER push to main or master.
69
- - NEVER use the Agent tool.
70
- - NEVER run `genie status`, `genie ls`, or `genie inbox` before Phase 2.
71
- - If you ran `genie status` and got "No state found", this means work has NOT been dispatched. Go to Phase 2 immediately and run `genie work <slug>`. Do NOT poll or wait.
78
+ - NEVER use the Agent tool — use `genie work` to dispatch.
79
+ - NEVER poll faster than every 60 seconds. Always `sleep 60` before `genie status`.
80
+ - NEVER run more than 10 status checks per wave without progress.
81
+ - If `genie status` returns "No state found" → run `genie work <slug>` immediately.
72
82
  </constraints>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genie-plugin",
3
- "version": "4.260324.7",
3
+ "version": "4.260324.8",
4
4
  "private": true,
5
5
  "description": "Runtime dependencies for genie bundled CLIs",
6
6
  "type": "module",