pi-messenger 0.7.3

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.
Files changed (45) hide show
  1. package/ARCHITECTURE.md +244 -0
  2. package/CHANGELOG.md +418 -0
  3. package/README.md +394 -0
  4. package/banner.png +0 -0
  5. package/config-overlay.ts +172 -0
  6. package/config.ts +178 -0
  7. package/crew/agents/crew-docs-scout.md +55 -0
  8. package/crew/agents/crew-gap-analyst.md +105 -0
  9. package/crew/agents/crew-github-scout.md +111 -0
  10. package/crew/agents/crew-interview-generator.md +79 -0
  11. package/crew/agents/crew-plan-sync.md +64 -0
  12. package/crew/agents/crew-practice-scout.md +62 -0
  13. package/crew/agents/crew-repo-scout.md +65 -0
  14. package/crew/agents/crew-reviewer.md +58 -0
  15. package/crew/agents/crew-web-scout.md +85 -0
  16. package/crew/agents/crew-worker.md +95 -0
  17. package/crew/agents.ts +200 -0
  18. package/crew/handlers/interview.ts +211 -0
  19. package/crew/handlers/plan.ts +358 -0
  20. package/crew/handlers/review.ts +341 -0
  21. package/crew/handlers/status.ts +257 -0
  22. package/crew/handlers/sync.ts +232 -0
  23. package/crew/handlers/task.ts +511 -0
  24. package/crew/handlers/work.ts +289 -0
  25. package/crew/id-allocator.ts +44 -0
  26. package/crew/index.ts +229 -0
  27. package/crew/state.ts +116 -0
  28. package/crew/store.ts +480 -0
  29. package/crew/types.ts +164 -0
  30. package/crew/utils/artifacts.ts +65 -0
  31. package/crew/utils/config.ts +104 -0
  32. package/crew/utils/discover.ts +170 -0
  33. package/crew/utils/install.ts +373 -0
  34. package/crew/utils/progress.ts +107 -0
  35. package/crew/utils/result.ts +16 -0
  36. package/crew/utils/truncate.ts +79 -0
  37. package/crew-overlay.ts +259 -0
  38. package/handlers.ts +799 -0
  39. package/index.ts +591 -0
  40. package/lib.ts +232 -0
  41. package/overlay.ts +687 -0
  42. package/package.json +20 -0
  43. package/skills/pi-messenger-crew/SKILL.md +140 -0
  44. package/store.ts +1068 -0
  45. package/tsconfig.json +19 -0
@@ -0,0 +1,140 @@
1
+ ---
2
+ name: pi-messenger-crew
3
+ description: Use pi-messenger for multi-agent coordination and Crew task orchestration. Covers joining the mesh, planning from PRDs, working on tasks, file reservations, and agent messaging. Load this skill when using pi_messenger or building with Crew.
4
+ ---
5
+
6
+ # Pi-Messenger Crew Skill
7
+
8
+ Use pi-messenger for multi-agent coordination and Crew task orchestration.
9
+
10
+ ## Quick Reference
11
+
12
+ ### Join the Mesh (Required First)
13
+ ```typescript
14
+ pi_messenger({ action: "join" })
15
+ ```
16
+
17
+ ### Check Status
18
+ ```typescript
19
+ pi_messenger({ action: "status" })
20
+ pi_messenger({ action: "list" }) // See other agents
21
+ ```
22
+
23
+ ### Crew Workflow
24
+
25
+ #### 1. Install Crew Agents (one-time)
26
+ ```typescript
27
+ pi_messenger({ action: "crew.install" })
28
+ pi_messenger({ action: "crew.agents" }) // Verify 10 agents
29
+ ```
30
+
31
+ #### 2. Plan from PRD
32
+ ```typescript
33
+ // Auto-discover PRD.md in current directory
34
+ pi_messenger({ action: "plan" })
35
+
36
+ // Or specify path
37
+ pi_messenger({ action: "plan", prd: "path/to/PRD.md" })
38
+ ```
39
+
40
+ #### 3. Work on Tasks
41
+ ```typescript
42
+ // Single wave (runs ready tasks once)
43
+ pi_messenger({ action: "work" })
44
+
45
+ // Autonomous (keeps running until done/blocked)
46
+ pi_messenger({ action: "work", autonomous: true })
47
+ ```
48
+
49
+ #### 4. Task Management
50
+ ```typescript
51
+ pi_messenger({ action: "task.list" })
52
+ pi_messenger({ action: "task.ready" }) // Tasks with no pending deps
53
+ pi_messenger({ action: "task.show", id: "task-1" })
54
+ pi_messenger({ action: "task.start", id: "task-1" })
55
+ pi_messenger({ action: "task.done", id: "task-1", summary: "What was done" })
56
+ pi_messenger({ action: "task.block", id: "task-1", reason: "Why blocked" })
57
+ pi_messenger({ action: "task.unblock", id: "task-1" })
58
+ pi_messenger({ action: "task.reset", id: "task-1" })
59
+ pi_messenger({ action: "task.reset", id: "task-1", cascade: true }) // Reset dependents too
60
+ ```
61
+
62
+ #### 5. Review
63
+ ```typescript
64
+ // Review a task implementation
65
+ pi_messenger({ action: "review", target: "task-1" })
66
+
67
+ // Review the overall plan
68
+ pi_messenger({ action: "review", target: "plan", type: "plan" })
69
+ ```
70
+
71
+ ### File Coordination
72
+
73
+ ```typescript
74
+ // Reserve files before editing
75
+ pi_messenger({ action: "reserve", paths: ["src/index.ts", "src/types.ts"], reason: "Working on core" })
76
+
77
+ // Release when done
78
+ pi_messenger({ action: "release" })
79
+ ```
80
+
81
+ ### Agent Communication
82
+
83
+ ```typescript
84
+ // Rename yourself
85
+ pi_messenger({ action: "rename", name: "MyAgentName" })
86
+
87
+ // Send message to specific agent
88
+ pi_messenger({ action: "send", to: "OtherAgent", message: "Hello!" })
89
+
90
+ // Broadcast to all
91
+ pi_messenger({ action: "send", broadcast: true, message: "Announcement" })
92
+ ```
93
+
94
+ ## Typical Crew Session
95
+
96
+ ```typescript
97
+ // 1. Join
98
+ pi_messenger({ action: "join" })
99
+
100
+ // 2. Plan (spawns scouts + analyst)
101
+ pi_messenger({ action: "plan" })
102
+
103
+ // 3. Check tasks
104
+ pi_messenger({ action: "task.list" })
105
+
106
+ // 4. Work
107
+ pi_messenger({ action: "work", autonomous: true })
108
+
109
+ // 5. Status
110
+ pi_messenger({ action: "status" })
111
+ ```
112
+
113
+ ## Data Storage
114
+
115
+ Crew stores data in `.pi/messenger/crew/`:
116
+ ```
117
+ .pi/messenger/crew/
118
+ ├── config.json # Project config (concurrency, etc.)
119
+ ├── plan.json # Plan metadata
120
+ ├── plan.md # Gap analyst output
121
+ ├── tasks/
122
+ │ ├── task-1.json # Task metadata
123
+ │ ├── task-1.md # Task spec
124
+ │ └── ...
125
+ ├── blocks/
126
+ │ └── task-N.md # Block context
127
+ └── artifacts/ # Debug artifacts
128
+ ```
129
+
130
+ ## Config Options
131
+
132
+ Create `.pi/messenger/crew/config.json`:
133
+ ```json
134
+ {
135
+ "concurrency": {
136
+ "scouts": 1, // Sequential scouts (default: 4)
137
+ "workers": 3 // Max parallel workers (default: 2)
138
+ }
139
+ }
140
+ ```