Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"plugins": [
{
"name": "genie",
"version": "3.260317.3",
"version": "3.260317.6",
"source": "./plugins/genie",
"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."
}
Expand Down
2 changes: 1 addition & 1 deletion openclaw.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "genie",
"name": "Genie",
"description": "Skills, agents, and hooks for the Genie CLI terminal orchestration toolkit",
"version": "3.260317.3",
"version": "3.260317.6",
"configSchema": {
"type": "object",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automagik/genie",
"version": "3.260317.3",
"version": "3.260317.6",
"description": "Collaborative terminal toolkit for human + AI workflows",
"type": "module",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/genie/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genie",
"version": "3.260317.3",
"version": "3.260317.6",
"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.",
"author": {
"name": "Namastex Labs"
Expand Down
37 changes: 26 additions & 11 deletions plugins/genie/agents/team-lead.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,32 @@ Read the WISH.md at the path provided in your initial prompt. Parse execution gr

**Gate:** All groups parsed, dependency DAG understood. If wish is unparseable or missing groups, report to PM and stop.

## Phase 2 — Execute Groups
Dispatch groups whose dependencies are satisfied. `genie work` auto-initializes state on first call — do NOT run `genie status` before your first dispatch. Just dispatch immediately.
## Phase 2 — Execute Waves
Read the **Execution Strategy** section from WISH.md. It defines waves — each wave lists groups that can run in parallel. `genie work` auto-initializes state on first call — do NOT run `genie status` before your first dispatch. Just dispatch immediately.

```bash
genie work engineer <slug>#<group> # Auto-inits state, sets in_progress, spawns engineer
genie read <team>-engineer # Monitor progress
genie done <slug>#<group> # Mark group complete
genie status <slug> # Check progress (only AFTER first dispatch)
```
For each wave, in order:

1. **Dispatch all groups in the wave simultaneously:**
```bash
genie work engineer <slug>#<group> # For EACH group in the wave
```
The auto-suffix feature (`engineer` → `engineer-1`, `engineer-2`, etc.) prevents role collisions, so all groups in a wave launch at once.

2. **Monitor all workers in the wave:**
```bash
genie read <team>-engineer-<group> # Check individual worker progress
genie inbox # Read worker messages
genie status <slug> # Check overall progress (only AFTER first dispatch)
```

3. **As each group completes, mark it done:**
```bash
genie done <slug>#<group>
```

4. **When ALL groups in the current wave are done, advance to the next wave.**

One group per engineer dispatch. Wait for completion before marking done.
Independent groups within a wave run in parallel — dispatch them all, then monitor. Do not wait for one group to finish before dispatching the next group in the same wave.

**Gate:** All groups show `done` in `genie status`. If any group is stuck after 2 fix attempts, mark team blocked and stop.

Expand Down Expand Up @@ -166,8 +181,8 @@ gh api repos/{o}/{r}/pulls/{n}/comments — read PR comments
- **NEVER merge PRs to main or master.** Only humans do that.
- **NEVER create tasks for yourself or speculative tasks for others.**
- **NEVER modify files in `~/.claude/rules/` or `~/.claude/hooks/`.**
- Respect group dependency order strictly — no group starts before its dependencies complete.
- One group per engineer dispatch — do not batch multiple groups to one worker.
- Respect wave order strictly — no wave starts before the prior wave completes.
- One group per engineer dispatch — each group gets its own worker (auto-suffixed: engineer-1, engineer-2). Dispatch all groups in a wave simultaneously.
- If blocked after 2 fix rounds, run `genie team blocked <team>` and stop.
- Always push all work before exiting: `git pull --rebase && git push`.
</constraints>
37 changes: 26 additions & 11 deletions plugins/genie/agents/team-lead/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,32 @@ Read the WISH.md at the path provided in your initial prompt. Parse execution gr

**Gate:** All groups parsed, dependency DAG understood. If wish is unparseable or missing groups, report to PM and stop.

## Phase 2 — Execute Groups
Dispatch groups whose dependencies are satisfied. `genie work` auto-initializes state on first call — do NOT run `genie status` before your first dispatch. Just dispatch immediately.
## Phase 2 — Execute Waves
Read the **Execution Strategy** section from WISH.md. It defines waves — each wave lists groups that can run in parallel. `genie work` auto-initializes state on first call — do NOT run `genie status` before your first dispatch. Just dispatch immediately.

```bash
genie work engineer <slug>#<group> # Auto-inits state, sets in_progress, spawns engineer
genie read <team>-engineer # Monitor progress
genie done <slug>#<group> # Mark group complete
genie status <slug> # Check progress (only AFTER first dispatch)
```
For each wave, in order:

1. **Dispatch all groups in the wave simultaneously:**
```bash
genie work engineer <slug>#<group> # For EACH group in the wave
```
The auto-suffix feature (`engineer` → `engineer-1`, `engineer-2`, etc.) prevents role collisions, so all groups in a wave launch at once.

2. **Monitor all workers in the wave:**
```bash
genie read <team>-engineer-<group> # Check individual worker progress
genie inbox # Read worker messages
genie status <slug> # Check overall progress (only AFTER first dispatch)
```

3. **As each group completes, mark it done:**
```bash
genie done <slug>#<group>
```

4. **When ALL groups in the current wave are done, advance to the next wave.**

One group per engineer dispatch. Wait for completion before marking done.
Independent groups within a wave run in parallel — dispatch them all, then monitor. Do not wait for one group to finish before dispatching the next group in the same wave.

**Gate:** All groups show `done` in `genie status`. If any group is stuck after 2 fix attempts, mark team blocked and stop.

Expand Down Expand Up @@ -166,8 +181,8 @@ gh api repos/{o}/{r}/pulls/{n}/comments — read PR comments
- **NEVER merge PRs to main or master.** Only humans do that.
- **NEVER create tasks for yourself or speculative tasks for others.**
- **NEVER modify files in `~/.claude/rules/` or `~/.claude/hooks/`.**
- Respect group dependency order strictly — no group starts before its dependencies complete.
- One group per engineer dispatch — do not batch multiple groups to one worker.
- Respect wave order strictly — no wave starts before the prior wave completes.
- One group per engineer dispatch — each group gets its own worker (auto-suffixed: engineer-1, engineer-2). Dispatch all groups in a wave simultaneously.
- If blocked after 2 fix rounds, run `genie team blocked <team>` and stop.
- Always push all work before exiting: `git pull --rebase && git push`.
</constraints>
2 changes: 1 addition & 1 deletion plugins/genie/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genie-plugin",
"version": "3.260317.3",
"version": "3.260317.6",
"private": true,
"description": "Runtime dependencies for genie bundled CLIs",
"type": "module",
Expand Down
102 changes: 0 additions & 102 deletions plugins/genie/references/wish-template.md

This file was deleted.

10 changes: 4 additions & 6 deletions plugins/genie/scripts/smart-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@ function getUpdateChannel() {
function genieCliNeedsInstall() {
const installed = getGenieVersion();
if (!installed) return true;
// Never overwrite dev builds — dev users update manually via genie update --next
if (getUpdateChannel() === 'next') return false;
const pluginVersion = getPluginVersion();
if (!pluginVersion) return false;
return installed !== pluginVersion;
Expand Down Expand Up @@ -376,18 +374,18 @@ function installGenieCli() {
throw new Error('Bun executable not found — cannot install genie CLI');
}

const pluginVersion = getPluginVersion();
const updateChannel = getUpdateChannel();
const tag = updateChannel === 'next' ? 'next' : 'latest';
const installed = getGenieVersion();
Comment on lines +377 to 379

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Base CLI upgrade check on channel target

installGenieCli() now installs @automagik/genie by dist-tag (@latest/@next), but genieCliNeedsInstall() still determines freshness using the local plugin package version. In environments where the npm tag points to a different version than plugins/genie/package.json (common for next or lagging plugin bundles), the check never converges and this hook will attempt a global reinstall on every startup, adding repeated network work and startup latency.

Useful? React with 👍 / 👎.


if (installed) {
console.error(`Upgrading genie CLI: ${installed} → ${pluginVersion}...`);
console.error(`Upgrading genie CLI: ${installed} → @${tag}...`);
} else {
console.error('Installing genie CLI globally via bun...');
}

const bunCmd = IS_WINDOWS && bunPath.includes(' ') ? `"${bunPath}"` : bunPath;
const versionSuffix = pluginVersion ? `@${pluginVersion}` : '';
execSync(`${bunCmd} install -g @automagik/genie${versionSuffix}`, { stdio: ['pipe', 'pipe', 'inherit'], shell: IS_WINDOWS });
execSync(`${bunCmd} install -g @automagik/genie@${tag}`, { stdio: ['pipe', 'pipe', 'inherit'], shell: IS_WINDOWS });

const newVersion = getGenieVersion();
if (!newVersion) {
Expand Down
45 changes: 43 additions & 2 deletions skills/wish/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ This skill is collaborative and operates on the shared worktree:
| Scope IN / OUT | Yes | OUT cannot be empty |
| Decisions | Yes | Key choices with rationale |
| Success Criteria | Yes | Checkboxes, each testable |
| Execution Strategy | Yes | Wave-based parallel/sequential execution plan |
| Execution Groups | Yes | Goal, deliverables, acceptance criteria, validation command |
| Dependencies | No | `depends-on` / `blocks` using slug or `repo/slug` |
| QA Criteria | No | What must be verified on dev after merge |
| Assumptions / Risks | No | Flag what could invalidate the plan |

## Wish Template
Expand Down Expand Up @@ -76,6 +78,20 @@ Use this structure when writing `WISH.md`:
- [ ] Testable criterion 1
- [ ] Testable criterion 2

## Execution Strategy

### Wave 1 (parallel)
| Group | Agent | Description |
|-------|-------|-------------|
| 1 | engineer | <task description> |
| 2 | engineer | <task description> |

### Wave 2 (after Wave 1)
| Group | Agent | Description |
|-------|-------|-------------|
| 3 | engineer | <task description> |
| review | reviewer | Review Groups 1+2 |

## Execution Groups

### Group 1: <Name>
Expand All @@ -84,8 +100,8 @@ Use this structure when writing `WISH.md`:
1. Deliverable with acceptance criteria
2. Deliverable with acceptance criteria

**Acceptance criteria:**
- Criterion with validation command
**Acceptance Criteria:**
- [ ] Testable criterion

**Validation:**
```bash
Expand All @@ -96,10 +112,34 @@ Use this structure when writing `WISH.md`:

---

## QA Criteria

_What must be verified on dev after merge. The QA agent tests each criterion._

- [ ] <functional criterion — user-facing behavior works>
- [ ] <integration criterion — system works end-to-end>
- [ ] <regression criterion — existing behavior not broken>

---

## Assumptions / Risks
| Risk | Severity | Mitigation |
|------|----------|------------|
| Risk 1 | Low/Medium/High | How to handle |

---

## Review Results

_Populated by `/review` after execution completes._

---

## Files to Create/Modify

```
<list of files this wish will touch>
```
```

## Rules
Expand All @@ -108,3 +148,4 @@ Use this structure when writing `WISH.md`:
- Keep tasks bite-sized and independently shippable.
- Declare cross-wish dependencies early with `depends-on` / `blocks`.
- OUT scope must contain at least one concrete exclusion.
- Execution Strategy is mandatory — every wish must define waves, even if sequential (single wave). This forces the planner to think about ordering, parallelism, and dependencies upfront.
Loading
Loading