@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.
|
|
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
|
}
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genie",
|
|
3
|
-
"version": "4.260324.
|
|
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.
|
|
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.
|
|
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
|
|
24
|
+
Read `.genie/wishes/<slug>/WISH.md`. Note the slug and count total execution groups.
|
|
25
25
|
|
|
26
|
-
## Phase 2 —
|
|
27
|
-
|
|
26
|
+
## Phase 2 — Dispatch + Monitor
|
|
27
|
+
|
|
28
|
+
### Step 1: Dispatch current wave
|
|
28
29
|
```bash
|
|
29
30
|
genie work <slug>
|
|
30
31
|
```
|
|
31
|
-
This
|
|
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
|
-
|
|
34
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
71
|
-
-
|
|
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>
|