Skip to content

Commit 3732acb

Browse files
committed
update and restore
1 parent 83c8030 commit 3732acb

32 files changed

Lines changed: 3489 additions & 4707 deletions

.beads/issues.jsonl

Lines changed: 0 additions & 69 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

.hive/issues.jsonl

Lines changed: 69 additions & 0 deletions
Large diffs are not rendered by default.

AGENTS.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ The `opencode-swarm-plugin` provides type-safe, context-preserving wrappers. Alw
129129

130130
### Other Custom Tools
131131

132+
- **swarm_review, swarm_review_feedback** - Coordinator reviews worker output (3-strike rule)
133+
134+
132135
- **typecheck** - TypeScript check with grouped errors
133136
- **git-context** - Branch, status, commits, ahead/behind in one call
134137
- **find-exports** - Find where symbols are exported
@@ -1210,3 +1213,61 @@ ubs_doctor(fix=true)
12101213
- Scope to changed files: `ubs_scan(path="src/file.ts")` (< 1s)
12111214
- Full scan is slow: `ubs_scan(path=".")` (30s+)
12121215
- Use `--staged` or `--diff` for incremental checks
1216+
1217+
## Swarm Coordinator Checklist (MANDATORY)
1218+
1219+
When coordinating a swarm, you MUST monitor workers and review their output.
1220+
1221+
### Monitor Loop
1222+
1223+
```
1224+
┌─────────────────────────────────────────────────────────────┐
1225+
│ COORDINATOR MONITOR LOOP │
1226+
├─────────────────────────────────────────────────────────────┤
1227+
│ │
1228+
│ 1. CHECK INBOX │
1229+
│ swarmmail_inbox() │
1230+
│ swarmmail_read_message(message_id=N) │
1231+
│ │
1232+
│ 2. CHECK STATUS │
1233+
│ swarm_status(epic_id, project_key) │
1234+
│ │
1235+
│ 3. REVIEW COMPLETED WORK │
1236+
│ swarm_review(project_key, epic_id, task_id, files) │
1237+
│ → Generates review prompt with epic context + diff │
1238+
│ │
1239+
│ 4. SEND FEEDBACK │
1240+
│ swarm_review_feedback( │
1241+
│ project_key, task_id, worker_id, │
1242+
│ status="approved|needs_changes", │
1243+
│ issues="[{file, line, issue, suggestion}]" │
1244+
│ ) │
1245+
│ │
1246+
│ 5. INTERVENE IF NEEDED │
1247+
│ - Blocked >5min → unblock or reassign │
1248+
│ - File conflicts → mediate │
1249+
│ - Scope creep → approve or reject │
1250+
│ - 3 review failures → escalate to human │
1251+
│ │
1252+
└─────────────────────────────────────────────────────────────┘
1253+
```
1254+
1255+
### Review Tools
1256+
1257+
| Tool | Purpose |
1258+
|------|---------|
1259+
| `swarm_review` | Generate review prompt with epic context, dependencies, and git diff |
1260+
| `swarm_review_feedback` | Send approval/rejection to worker (tracks 3-strike rule) |
1261+
1262+
### Review Criteria
1263+
1264+
- Does work fulfill subtask requirements?
1265+
- Does it serve the overall epic goal?
1266+
- Does it enable downstream tasks?
1267+
- Type safety, no obvious bugs?
1268+
1269+
### 3-Strike Rule
1270+
1271+
After 3 review rejections, task is marked **blocked**. This signals an architectural problem, not "try harder."
1272+
1273+
**NEVER skip the review step.** Workers complete faster when they get feedback.

0 commit comments

Comments
 (0)