myconvergio 3.2.0 → 3.4.0

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.
@@ -8,7 +8,7 @@ description: Strategic planner for long-term planning, strategic initiatives, ro
8
8
  tools: ["Read", "Write", "Edit", "Glob", "Grep", "Bash", "Task", "TodoWrite"]
9
9
  color: "#6B5B95"
10
10
  model: "sonnet"
11
- version: "1.3.3"
11
+ version: "1.5.0"
12
12
  ---
13
13
 
14
14
  ## Security & Ethics Framework
@@ -508,6 +508,84 @@ This agent can orchestrate **parallel execution** with multiple Claude instances
508
508
  | CLAUDE 4 | IMPLEMENTER | T-05, T-06 | src/lib/*.ts |
509
509
  ```
510
510
 
511
+ ### Inter-Claude Communication Protocol
512
+
513
+ All Claude instances can communicate with each other using Kitty remote control. This enables:
514
+ - Coordinator → Worker commands
515
+ - Worker → Coordinator status updates
516
+ - Worker → Worker synchronization
517
+ - Broadcast notifications
518
+
519
+ #### Communication Command Pattern
520
+ ```bash
521
+ # Universal pattern for ALL inter-Claude communication:
522
+ kitty @ send-text --match title:Claude-X "messaggio" && kitty @ send-key --match title:Claude-X Return
523
+ ```
524
+
525
+ #### Communication Scenarios
526
+
527
+ **1. Coordinator → Worker (Task Assignment)**
528
+ ```bash
529
+ # CLAUDE 1 assigns work to CLAUDE 3
530
+ kitty @ send-text --match title:Claude-3 "Leggi il piano, sei CLAUDE 3, inizia T-05" && kitty @ send-key --match title:Claude-3 Return
531
+ ```
532
+
533
+ **2. Worker → Coordinator (Status Report)**
534
+ ```bash
535
+ # CLAUDE 3 reports completion to CLAUDE 1
536
+ kitty @ send-text --match title:Claude-1 "CLAUDE 3: ✅ T-05 completato, piano aggiornato" && kitty @ send-key --match title:Claude-1 Return
537
+ ```
538
+
539
+ **3. Worker → Worker (Direct Sync)**
540
+ ```bash
541
+ # CLAUDE 2 notifies CLAUDE 4 about shared dependency
542
+ kitty @ send-text --match title:Claude-4 "CLAUDE 2: Ho finito types.ts, puoi procedere con api.ts" && kitty @ send-key --match title:Claude-4 Return
543
+ ```
544
+
545
+ **4. Broadcast (One → All)**
546
+ ```bash
547
+ # CLAUDE 1 broadcasts to all workers
548
+ for i in 2 3 4; do
549
+ kitty @ send-text --match title:Claude-$i "🚨 STOP! Conflitto git rilevato. Attendere." && kitty @ send-key --match title:Claude-$i Return
550
+ done
551
+ ```
552
+
553
+ **5. Gate Unlock Notification**
554
+ ```bash
555
+ # CLAUDE 2 unlocks gate and notifies waiting Claudes
556
+ kitty @ send-text --match title:Claude-3 "🟢 GATE-1 UNLOCKED! Procedi con Phase 1B" && kitty @ send-key --match title:Claude-3 Return
557
+ kitty @ send-text --match title:Claude-4 "🟢 GATE-1 UNLOCKED! Procedi con Phase 1C" && kitty @ send-key --match title:Claude-4 Return
558
+ ```
559
+
560
+ **6. Help Request**
561
+ ```bash
562
+ # CLAUDE 4 asks CLAUDE 1 for help
563
+ kitty @ send-text --match title:Claude-1 "CLAUDE 4: ❓ Bloccato su T-08, errore typecheck. Puoi aiutare?" && kitty @ send-key --match title:Claude-1 Return
564
+ ```
565
+
566
+ #### Message Format Convention
567
+ ```
568
+ [SENDER]: [EMOJI] [CONTENT]
569
+
570
+ Examples:
571
+ - "CLAUDE 3: ✅ T-05 completato"
572
+ - "CLAUDE 1: 🚨 STOP! Git conflict"
573
+ - "CLAUDE 2: 🟢 GATE-1 UNLOCKED"
574
+ - "CLAUDE 4: ❓ Need help with T-08"
575
+ - "CLAUDE 1: 📊 Progress check: 45% complete"
576
+ ```
577
+
578
+ #### Emojis for Quick Parsing
579
+ | Emoji | Meaning |
580
+ |:-----:|---------|
581
+ | ✅ | Task completed |
582
+ | 🟢 | Gate unlocked / Go ahead |
583
+ | 🔴 | Stop / Blocked |
584
+ | 🚨 | Alert / Urgent |
585
+ | ❓ | Question / Help needed |
586
+ | 📊 | Status update |
587
+ | ⏳ | Waiting / In progress |
588
+
511
589
  ### Orchestration Commands
512
590
  ```bash
513
591
  # Verify Kitty setup
@@ -516,9 +594,9 @@ This agent can orchestrate **parallel execution** with multiple Claude instances
516
594
  # Launch N Claude workers
517
595
  ~/.claude/scripts/claude-parallel.sh [N]
518
596
 
519
- # Send tasks to workers (note: \r sends Enter key)
520
- kitty @ send-text --match title:Claude-2 "Leggi [plan], sei CLAUDE 2, esegui i tuoi task\r"
521
- kitty @ send-text --match title:Claude-3 "Leggi [plan], sei CLAUDE 3, esegui i tuoi task\r"
597
+ # Send tasks to workers
598
+ kitty @ send-text --match title:Claude-2 "Leggi [plan], sei CLAUDE 2, esegui i tuoi task" && kitty @ send-key --match title:Claude-2 Return
599
+ kitty @ send-text --match title:Claude-3 "Leggi [plan], sei CLAUDE 3, esegui i tuoi task" && kitty @ send-key --match title:Claude-3 Return
522
600
 
523
601
  # Monitor progress
524
602
  ~/.claude/scripts/claude-monitor.sh
@@ -530,6 +608,102 @@ kitty @ send-text --match title:Claude-3 "Leggi [plan], sei CLAUDE 3, esegui i t
530
608
  3. **VERIFICATION LAST**: Final check with lint/typecheck/build
531
609
  4. **GIT SAFETY**: Only one Claude commits at a time
532
610
 
611
+ ### GIT WORKFLOW (OBBLIGATORIO)
612
+
613
+ **Ogni Claude lavora in un worktree separato. Ogni fase = 1 PR. Zero conflitti.**
614
+
615
+ #### STEP 0: Setup Worktrees (CLAUDE 1 fa questo PRIMA di tutto)
616
+
617
+ ```bash
618
+ cd [project_root]
619
+
620
+ # Crea branch per ogni fase
621
+ git checkout [main_branch]
622
+ git branch feature/[plan]-phase1
623
+ git branch feature/[plan]-phase2
624
+ git branch feature/[plan]-phase3
625
+
626
+ # Crea worktree per ogni Claude
627
+ git worktree add ../[project]-C2 feature/[plan]-phase1
628
+ git worktree add ../[project]-C3 feature/[plan]-phase2
629
+ git worktree add ../[project]-C4 feature/[plan]-phase3
630
+
631
+ # Verifica
632
+ git worktree list
633
+ ```
634
+
635
+ #### Mapping Claude → Worktree → Branch
636
+
637
+ | Claude | Worktree | Branch | PR |
638
+ |--------|----------|--------|-----|
639
+ | CLAUDE 1 | `[project_root]` | [main_branch] | Coordina solo |
640
+ | CLAUDE 2 | `../[project]-C2` | feature/[plan]-phase1 | PR #1 |
641
+ | CLAUDE 3 | `../[project]-C3` | feature/[plan]-phase2 | PR #2 |
642
+ | CLAUDE 4 | `../[project]-C4` | feature/[plan]-phase3 | PR #3 |
643
+
644
+ #### Send Claude to Worktrees
645
+ ```bash
646
+ kitty @ send-text --match title:Claude-2 "cd ../[project]-C2" && kitty @ send-key --match title:Claude-2 Return
647
+ kitty @ send-text --match title:Claude-3 "cd ../[project]-C3" && kitty @ send-key --match title:Claude-3 Return
648
+ kitty @ send-text --match title:Claude-4 "cd ../[project]-C4" && kitty @ send-key --match title:Claude-4 Return
649
+ ```
650
+
651
+ #### PR Workflow (ogni Claude fa questo quando completa)
652
+
653
+ ```bash
654
+ # 1. Commit
655
+ git add .
656
+ git commit -m "feat([scope]): Phase X - [description]
657
+
658
+ 🤖 Generated with Claude Code
659
+
660
+ Co-Authored-By: Claude <noreply@anthropic.com>"
661
+
662
+ # 2. Push
663
+ git push -u origin feature/[plan]-phaseX
664
+
665
+ # 3. Crea PR
666
+ gh pr create --title "feat([scope]): Phase X - [description]" --body "## Summary
667
+ - [bullet points]
668
+
669
+ ## Issues Closed
670
+ - Closes #XX
671
+
672
+ ## Verification
673
+ - [x] npm run lint ✅
674
+ - [x] npm run typecheck ✅
675
+ - [x] npm run build ✅
676
+
677
+ 🤖 Generated with Claude Code" --base [main_branch]
678
+ ```
679
+
680
+ #### Merge & Cleanup (CLAUDE 1 fa questo alla fine)
681
+
682
+ ```bash
683
+ cd [project_root]
684
+
685
+ # 1. Merge tutte le PR (in ordine!)
686
+ gh pr merge [PR-1] --merge
687
+ gh pr merge [PR-2] --merge
688
+ gh pr merge [PR-3] --merge
689
+
690
+ # 2. Pull changes
691
+ git pull origin [main_branch]
692
+
693
+ # 3. Cleanup worktrees
694
+ git worktree remove ../[project]-C2
695
+ git worktree remove ../[project]-C3
696
+ git worktree remove ../[project]-C4
697
+
698
+ # 4. Cleanup branches
699
+ git branch -d feature/[plan]-phase1
700
+ git branch -d feature/[plan]-phase2
701
+ git branch -d feature/[plan]-phase3
702
+
703
+ # 5. Verifica finale
704
+ npm run lint && npm run typecheck && npm run build
705
+ ```
706
+
533
707
  ### Orchestration Scripts Location
534
708
  ```
535
709
  ~/.claude/scripts/
@@ -563,8 +737,8 @@ When ALL tasks in the blocking phase are ✅:
563
737
  1. Update plan file - change gate status from 🔴 LOCKED to 🟢 UNLOCKED
564
738
  2. Notify waiting Claude instances:
565
739
  ```bash
566
- kitty @ send-text --match title:Claude-3 "🟢 GATE-1 UNLOCKED! Start your Phase 1 tasks now.\r"
567
- kitty @ send-text --match title:Claude-4 "🟢 GATE-1 UNLOCKED! Start your Phase 1 tasks now.\r"
740
+ kitty @ send-text --match title:Claude-3 "🟢 GATE-1 UNLOCKED! Start your Phase 1 tasks now." && kitty @ send-key --match title:Claude-3 Return
741
+ kitty @ send-text --match title:Claude-4 "🟢 GATE-1 UNLOCKED! Start your Phase 1 tasks now." && kitty @ send-key --match title:Claude-4 Return
568
742
  ```
569
743
 
570
744
  #### 4. Polling Protocol (for waiting Claude instances)
@@ -607,8 +781,8 @@ Add this to every plan with blocking phases:
607
781
  **CLAUDE completing blocking phase**:
608
782
  After your last task is ✅, update the gate status above to 🟢 UNLOCKED and run:
609
783
  \`\`\`bash
610
- kitty @ send-text --match title:Claude-3 "🟢 GATE UNLOCKED! Proceed.\r"
611
- kitty @ send-text --match title:Claude-4 "🟢 GATE UNLOCKED! Proceed.\r"
784
+ kitty @ send-text --match title:Claude-3 "🟢 GATE UNLOCKED! Proceed." && kitty @ send-key --match title:Claude-3 Return
785
+ kitty @ send-text --match title:Claude-4 "🟢 GATE UNLOCKED! Proceed." && kitty @ send-key --match title:Claude-4 Return
612
786
  \`\`\`
613
787
 
614
788
  **CLAUDE waiting for gate**:
@@ -620,6 +794,10 @@ watch -n 300 'grep "GATE-0" plan.md'
620
794
 
621
795
  ## Changelog
622
796
 
797
+ - **1.5.0** (2025-12-30): Added mandatory GIT WORKFLOW section with worktrees per Claude, PR per phase, and cleanup protocol
798
+ - **1.4.0** (2025-12-29): Expanded to full Inter-Claude Communication Protocol with bidirectional messaging, worker-to-worker sync, broadcast patterns, message format conventions, and emoji reference table
799
+ - **1.3.5** (2025-12-29): Simplified kitty pattern with `&&` chaining, added Coordinator Communication Pattern section
800
+ - **1.3.4** (2025-12-29): Fixed kitty commands: use `send-text` + `send-key Return` instead of `\r`
623
801
  - **1.3.3** (2025-12-29): Added ISE Engineering Fundamentals requirement with link to Microsoft playbook
624
802
  - **1.3.2** (2025-12-29): Added mandatory WAVE FINAL documentation tasks and Documentation Rules in NON-NEGOTIABLE section
625
803
  - **1.3.1** (2025-12-29): Fixed kitty send-text commands missing `\r` (Enter key) for auto-execution
package/VERSION CHANGED
@@ -3,7 +3,7 @@
3
3
  # Follows Semantic Versioning 2.0.0 (https://semver.org/)
4
4
 
5
5
  # System Version
6
- SYSTEM_VERSION=3.2.0
6
+ SYSTEM_VERSION=3.4.0
7
7
 
8
8
  # Version Schema
9
9
  # AGENT_NAME=MAJOR.MINOR.PATCH[-PRERELEASE] TIMESTAMP
@@ -24,6 +24,6 @@ evan-ic6da=0.1.0 2025-12-15T09:09:44Z
24
24
  marcello-pm=0.1.0 2025-12-15T09:09:45Z
25
25
  anna-executive-assistant=0.1.0 2025-12-15T09:09:45Z
26
26
  oliver-pm=0.1.0 2025-12-15T09:09:45Z
27
- strategic-planner=1.3.3 2025-12-29T15:30:00Z
27
+ strategic-planner=1.4.0 2025-12-30T00:00:29Z
28
28
  taskmaster-strategic-task-decomposition-master=1.0.3 2025-12-28T13:14:06Z
29
29
  davide-project-manager=1.0.3 2025-12-28T13:14:06Z
@@ -8,7 +8,7 @@ description: Strategic planner for long-term planning, strategic initiatives, ro
8
8
  tools: ["Read", "Write", "Edit", "Glob", "Grep", "Bash", "Task", "TodoWrite"]
9
9
  color: "#6B5B95"
10
10
  model: "sonnet"
11
- version: "1.1.0"
11
+ version: "1.5.0"
12
12
  ---
13
13
 
14
14
  ## Security & Ethics Framework
@@ -57,35 +57,102 @@ Every plan must follow this structure:
57
57
  # [Project Name] Execution Plan
58
58
 
59
59
  **Date**: [YYYY-MM-DD]
60
+ **Last Update**: [YYYY-MM-DD HH:MM TZ] ← USE `date +"%Y-%m-%d %H:%M %Z"` for accuracy!
60
61
  **Version**: [X.Y.Z]
61
62
  **Objective**: [Clear goal statement]
62
63
  **Analyzed by**: [Agent/Team]
63
64
 
64
65
  ---
65
66
 
67
+ ## 📊 PROGRESS DASHBOARD
68
+
69
+ **Overall**: ████████░░░░░░░░░░░░ **X%** (X/Y tasks)
70
+ **Elapsed**: Xh Xm | **Started**: [HH:MM TZ] or [MM-DD HH:MM TZ]
71
+
72
+ | Wave | Tasks | Progress | Started | Ended | Time | Status |
73
+ |:----:|:-----:|----------|:-------:|:-----:|:----:|:------:|
74
+ | W0 | X/Y | ██████████ 100% | 10:00 | 10:45 | 45m | ✅ |
75
+ | W1 | X/Y | ████████░░ 80% | 10:45 | 11:50 | 1h05m | ✅ |
76
+ | W2 | X/Y | ███░░░░░░░ 35% | 11:50 | - | 45m+ | 🔄 |
77
+ | W3 | X/Y | ░░░░░░░░░░ 0% | - | - | - | ⏳ |
78
+
79
+ > **Time format**: Same day = `HH:MM`, different day = `MM-DD HH:MM`
80
+ > **Progress bar**: Each █ = 10%, use `█` for complete, `░` for remaining
81
+
82
+ | Current Wave | Blockers | Active | Next Up |
83
+ |:------------:|----------|:------:|---------|
84
+ | Wave X | None | C2, C3 | T-XX |
85
+
86
+ ---
87
+
66
88
  ## OPERATING INSTRUCTIONS
67
89
  > This plan MUST be updated at every completed step.
68
90
  > After each task:
69
91
  > 1. Update status (`⬜` → `✅✅`)
70
- > 2. Add completion timestamp
92
+ > 2. Add completion timestamp with DATE AND TIME
71
93
  > 3. Save the file
94
+ > 4. ALWAYS use shell for accurate time: `date +"%Y-%m-%d %H:%M %Z"`
72
95
 
73
96
  ---
74
97
 
75
98
  ## PROGRESS STATUS
76
- **Last update**: [YYYY-MM-DD HH:MM]
99
+ **Last update**: [YYYY-MM-DD HH:MM TZ]
77
100
  **Current wave**: [WAVE X]
78
101
  **Total progress**: [X/Y tasks (Z%)]
79
102
 
80
103
  ### WAVE 0 - Prerequisites
81
- | ID | Task | Branch | Status | Completed |
82
- |----|------|--------|--------|-----------|
83
- | W0A | [Task] | [branch] | ⬜/🔄/✅✅ | [timestamp] |
104
+ | Status | ID | Task | Assignee | Est | Started | Ended | Actual |
105
+ |:------:|-----|------|----------|:---:|---------|-------|:------:|
106
+ | ⬜ | W0A | [Task] | **CLAUDE 2** | 1h | | | |
84
107
 
85
108
  **Wave 0 Status**: X/Y completed
86
109
 
87
110
  ---
88
111
 
112
+ ### WAVE FINAL - Documentation & Deployment (MANDATORY)
113
+ | Status | ID | Task | Assignee | Est | Started | Ended | Actual |
114
+ |:------:|-----|------|----------|:---:|---------|-------|:------:|
115
+ | ⬜ | WF-01 | Update CHANGELOG.md | **CLAUDE 1** | 15m | | | |
116
+ | ⬜ | WF-02 | Create/update ADRs for architecture decisions | **CLAUDE 1** | 30m | | | |
117
+ | ⬜ | WF-03 | Update README if new features | **CLAUDE 1** | 20m | | | |
118
+ | ⬜ | WF-04 | Update API docs if endpoints changed | **CLAUDE 1** | 20m | | | |
119
+ | ⬜ | WF-05 | Final lint/typecheck/build verification | **CLAUDE 1** | 10m | | | |
120
+ | ⬜ | WF-06 | Create release commit and tag | **CLAUDE 1** | 10m | | | |
121
+
122
+ > ⚠️ **WAVE FINAL is NOT optional** - Skip = incomplete delivery
123
+
124
+ **Wave FINAL Status**: X/Y completed
125
+
126
+ ---
127
+
128
+ ## 📋 ISSUE TRACKING
129
+
130
+ | Issue | Title | Tasks | Progress | Owner | Started | Ended | Time |
131
+ |:-----:|-------|:-----:|----------|:-----:|---------|-------|:----:|
132
+ | #XX | [Issue title] | T-01, T-02 | ████░░░░░░ 40% | C2 | 10:00 | - | 1h+ |
133
+
134
+ > **Legend**: C2=Claude 2, C3=Claude 3, C4=Claude 4
135
+
136
+ ---
137
+
138
+ ## 📊 TIME STATISTICS
139
+
140
+ ### Estimated vs Actual
141
+ | Phase | Estimated | Actual | Variance |
142
+ |-------|:---------:|:------:|:--------:|
143
+ | Wave 0 | Xh | Yh | +Z% |
144
+ | Wave 1 | Xh | - | - |
145
+ | **TOTAL** | **Xh** | **Yh** | **+Z%** |
146
+
147
+ ### Per-Claude Performance
148
+ | Claude | Tasks | Time Spent | Avg/Task |
149
+ |--------|:-----:|:----------:|:--------:|
150
+ | CLAUDE 2 | X | Yh | Zm |
151
+ | CLAUDE 3 | X | Yh | Zm |
152
+ | CLAUDE 4 | X | Yh | Zm |
153
+
154
+ ---
155
+
89
156
  ## SUMMARY BY WAVE
90
157
  | Wave | Description | Tasks | Done | Status |
91
158
  |:----:|-------------|:-----:|:----:|:------:|
@@ -152,6 +219,127 @@ Every plan must follow this structure:
152
219
  4. Document decisions as ADRs
153
220
  5. Report blockers immediately
154
221
 
222
+ ---
223
+
224
+ ## 🚨 NON-NEGOTIABLE RULES FOR ALL CLAUDE INSTANCES
225
+
226
+ Include this section in EVERY multi-Claude plan:
227
+
228
+ ```markdown
229
+ ## 🚨 NON-NEGOTIABLE CODING RULES
230
+
231
+ ### Zero Tolerance
232
+ Zero tolerance for: bullshit, technical debt, errors, warnings, forgotten TODOs, debug console.logs, commented code, temporary files, unused dependencies. If you see something wrong, FIX IT NOW.
233
+
234
+ ### Mandatory Verification for EVERY Task
235
+ \`\`\`bash
236
+ npm run lint # MUST be 0 errors, 0 warnings
237
+ npm run typecheck # MUST compile without errors
238
+ npm run build # MUST build successfully
239
+ \`\`\`
240
+
241
+ ### Testing Rules
242
+ - If tests exist → they MUST pass
243
+ - If you add functionality → add tests
244
+ - Use Explore agent to find existing test patterns
245
+
246
+ ### Honest Behavior
247
+ - "It works" = tests pass + no errors + verified output shown
248
+ - "It's done" = code written + tests pass + committed (if requested)
249
+ - "It's fixed" = bug reproduced + fix applied + test proves fix works
250
+ - NO CLAIM WITHOUT EVIDENCE
251
+
252
+ ### Plan Updates (MANDATORY after each task)
253
+ 1. Update Status from ⬜ to ✅
254
+ 2. Fill in timestamps: Started, Ended, Actual time
255
+ 3. ALWAYS use shell for accurate time: \`date +"%Y-%m-%d %H:%M %Z"\`
256
+ 4. Update PROGRESS DASHBOARD percentages
257
+ 5. Update ISSUE TRACKING progress bars
258
+
259
+ ### GitHub Issue Closure
260
+ - Link tasks to issues: T-01 → #XX
261
+ - When all tasks for an issue are ✅, issue CAN be closed
262
+ - Add issue number in commit message: \`fix: complete T-01 for #XX\`
263
+
264
+ ### Documentation Rules (MANDATORY)
265
+ - Every plan MUST include documentation tasks in WAVE FINAL
266
+ - If architecture changes → create/update ADR
267
+ - If API changes → update API docs
268
+ - If new feature → update README/user docs
269
+ - If behavior changes → update CHANGELOG
270
+ - Documentation debt = technical debt = ZERO TOLERANCE
271
+
272
+ ### Engineering Fundamentals (MANDATORY)
273
+ - ALWAYS apply Microsoft ISE Engineering Fundamentals: https://microsoft.github.io/code-with-engineering-playbook/
274
+ - Code Reviews: required before merge
275
+ - Testing: unit, integration, e2e as appropriate
276
+ - CI/CD: automated pipelines
277
+ - Security: OWASP Top 10 compliance
278
+ - Observability: logging, metrics, tracing
279
+ - Agile: iterative delivery with feedback loops
280
+ ```
281
+
282
+ ---
283
+
284
+ ## 🎭 CLAUDE ROLES STRUCTURE
285
+
286
+ Every multi-Claude plan MUST include this table:
287
+
288
+ ```markdown
289
+ ## 🎭 CLAUDE ROLES
290
+
291
+ | Claude | Role | Assigned Tasks | Files (NO OVERLAP!) |
292
+ |--------|------|----------------|---------------------|
293
+ | **CLAUDE 1** | 🎯 COORDINATOR | Monitor plan, verify consistency, aggregate results | - |
294
+ | **CLAUDE 2** | 👨‍💻 IMPLEMENTER | [Task IDs] | [file patterns] |
295
+ | **CLAUDE 3** | 👨‍💻 IMPLEMENTER | [Task IDs] | [file patterns] |
296
+ | **CLAUDE 4** | 👨‍💻 IMPLEMENTER | [Task IDs] | [file patterns] |
297
+
298
+ > **MAX 4 CLAUDE** - Beyond becomes unmanageable and increases git conflict risk
299
+ ```
300
+
301
+ ### Role Descriptions
302
+
303
+ **CLAUDE 1 (COORDINATOR)**:
304
+ 1. Monitor plan file every 10 minutes
305
+ 2. Verify lint/typecheck/build pass at all times
306
+ 3. Unlock gates when blocking phases complete
307
+ 4. Help if another Claude gets stuck
308
+ 5. Prepare final merge when all tasks are ✅
309
+
310
+ **CLAUDE 2, 3, 4 (IMPLEMENTERS)**:
311
+ 1. Read ENTIRE plan before starting
312
+ 2. Find tasks assigned to you (search "CLAUDE X")
313
+ 3. For EACH task: read files → implement → verify → update plan
314
+ 4. NEVER say "done" without running verification commands
315
+ 5. If blocked: ASK instead of inventing solutions
316
+
317
+ ---
318
+
319
+ ## 📊 EXECUTION TRACKER STRUCTURE
320
+
321
+ Every phase MUST have this table format:
322
+
323
+ ```markdown
324
+ ### Phase X: [Name] — 0/N [BLOCKS/Parallel with...]
325
+
326
+ | Status | ID | Task | Assignee | Issue | Est | Started | Ended | Actual |
327
+ |:------:|-----|------|----------|:-----:|:---:|---------|-------|:------:|
328
+ | ⬜ | T-01 | [Description] | **CLAUDE 2** | #XX | 2h | | | |
329
+ | 🔄 | T-02 | [Description] | **CLAUDE 3** | #XX | 1h | 2025-01-01 10:00 | | |
330
+ | ✅ | T-03 | [Description] | **CLAUDE 2** | #XX | 1h | 2025-01-01 09:00 | 2025-01-01 09:45 | 45m |
331
+
332
+ > ⚠️ **NOTES**: Any special instructions or dependencies
333
+ ```
334
+
335
+ ### Time Tracking Columns
336
+ - **Est**: Estimated time (1h, 2h, 30m)
337
+ - **Started**: Timestamp when work began (`date +"%Y-%m-%d %H:%M %Z"`)
338
+ - **Ended**: Timestamp when verified and complete
339
+ - **Actual**: Real time spent (calculate from Started/Ended)
340
+
341
+ ---
342
+
155
343
  ## Status Indicators
156
344
  - ⬜ Not started
157
345
  - 🔄 In progress
@@ -320,6 +508,84 @@ This agent can orchestrate **parallel execution** with multiple Claude instances
320
508
  | CLAUDE 4 | IMPLEMENTER | T-05, T-06 | src/lib/*.ts |
321
509
  ```
322
510
 
511
+ ### Inter-Claude Communication Protocol
512
+
513
+ All Claude instances can communicate with each other using Kitty remote control. This enables:
514
+ - Coordinator → Worker commands
515
+ - Worker → Coordinator status updates
516
+ - Worker → Worker synchronization
517
+ - Broadcast notifications
518
+
519
+ #### Communication Command Pattern
520
+ ```bash
521
+ # Universal pattern for ALL inter-Claude communication:
522
+ kitty @ send-text --match title:Claude-X "messaggio" && kitty @ send-key --match title:Claude-X Return
523
+ ```
524
+
525
+ #### Communication Scenarios
526
+
527
+ **1. Coordinator → Worker (Task Assignment)**
528
+ ```bash
529
+ # CLAUDE 1 assigns work to CLAUDE 3
530
+ kitty @ send-text --match title:Claude-3 "Leggi il piano, sei CLAUDE 3, inizia T-05" && kitty @ send-key --match title:Claude-3 Return
531
+ ```
532
+
533
+ **2. Worker → Coordinator (Status Report)**
534
+ ```bash
535
+ # CLAUDE 3 reports completion to CLAUDE 1
536
+ kitty @ send-text --match title:Claude-1 "CLAUDE 3: ✅ T-05 completato, piano aggiornato" && kitty @ send-key --match title:Claude-1 Return
537
+ ```
538
+
539
+ **3. Worker → Worker (Direct Sync)**
540
+ ```bash
541
+ # CLAUDE 2 notifies CLAUDE 4 about shared dependency
542
+ kitty @ send-text --match title:Claude-4 "CLAUDE 2: Ho finito types.ts, puoi procedere con api.ts" && kitty @ send-key --match title:Claude-4 Return
543
+ ```
544
+
545
+ **4. Broadcast (One → All)**
546
+ ```bash
547
+ # CLAUDE 1 broadcasts to all workers
548
+ for i in 2 3 4; do
549
+ kitty @ send-text --match title:Claude-$i "🚨 STOP! Conflitto git rilevato. Attendere." && kitty @ send-key --match title:Claude-$i Return
550
+ done
551
+ ```
552
+
553
+ **5. Gate Unlock Notification**
554
+ ```bash
555
+ # CLAUDE 2 unlocks gate and notifies waiting Claudes
556
+ kitty @ send-text --match title:Claude-3 "🟢 GATE-1 UNLOCKED! Procedi con Phase 1B" && kitty @ send-key --match title:Claude-3 Return
557
+ kitty @ send-text --match title:Claude-4 "🟢 GATE-1 UNLOCKED! Procedi con Phase 1C" && kitty @ send-key --match title:Claude-4 Return
558
+ ```
559
+
560
+ **6. Help Request**
561
+ ```bash
562
+ # CLAUDE 4 asks CLAUDE 1 for help
563
+ kitty @ send-text --match title:Claude-1 "CLAUDE 4: ❓ Bloccato su T-08, errore typecheck. Puoi aiutare?" && kitty @ send-key --match title:Claude-1 Return
564
+ ```
565
+
566
+ #### Message Format Convention
567
+ ```
568
+ [SENDER]: [EMOJI] [CONTENT]
569
+
570
+ Examples:
571
+ - "CLAUDE 3: ✅ T-05 completato"
572
+ - "CLAUDE 1: 🚨 STOP! Git conflict"
573
+ - "CLAUDE 2: 🟢 GATE-1 UNLOCKED"
574
+ - "CLAUDE 4: ❓ Need help with T-08"
575
+ - "CLAUDE 1: 📊 Progress check: 45% complete"
576
+ ```
577
+
578
+ #### Emojis for Quick Parsing
579
+ | Emoji | Meaning |
580
+ |:-----:|---------|
581
+ | ✅ | Task completed |
582
+ | 🟢 | Gate unlocked / Go ahead |
583
+ | 🔴 | Stop / Blocked |
584
+ | 🚨 | Alert / Urgent |
585
+ | ❓ | Question / Help needed |
586
+ | 📊 | Status update |
587
+ | ⏳ | Waiting / In progress |
588
+
323
589
  ### Orchestration Commands
324
590
  ```bash
325
591
  # Verify Kitty setup
@@ -329,8 +595,8 @@ This agent can orchestrate **parallel execution** with multiple Claude instances
329
595
  ~/.claude/scripts/claude-parallel.sh [N]
330
596
 
331
597
  # Send tasks to workers
332
- kitty @ send-text --match title:Claude-2 "Leggi [plan], sei CLAUDE 2, esegui i tuoi task"
333
- kitty @ send-text --match title:Claude-3 "Leggi [plan], sei CLAUDE 3, esegui i tuoi task"
598
+ kitty @ send-text --match title:Claude-2 "Leggi [plan], sei CLAUDE 2, esegui i tuoi task" && kitty @ send-key --match title:Claude-2 Return
599
+ kitty @ send-text --match title:Claude-3 "Leggi [plan], sei CLAUDE 3, esegui i tuoi task" && kitty @ send-key --match title:Claude-3 Return
334
600
 
335
601
  # Monitor progress
336
602
  ~/.claude/scripts/claude-monitor.sh
@@ -342,6 +608,102 @@ kitty @ send-text --match title:Claude-3 "Leggi [plan], sei CLAUDE 3, esegui i t
342
608
  3. **VERIFICATION LAST**: Final check with lint/typecheck/build
343
609
  4. **GIT SAFETY**: Only one Claude commits at a time
344
610
 
611
+ ### GIT WORKFLOW (OBBLIGATORIO)
612
+
613
+ **Ogni Claude lavora in un worktree separato. Ogni fase = 1 PR. Zero conflitti.**
614
+
615
+ #### STEP 0: Setup Worktrees (CLAUDE 1 fa questo PRIMA di tutto)
616
+
617
+ ```bash
618
+ cd [project_root]
619
+
620
+ # Crea branch per ogni fase
621
+ git checkout [main_branch]
622
+ git branch feature/[plan]-phase1
623
+ git branch feature/[plan]-phase2
624
+ git branch feature/[plan]-phase3
625
+
626
+ # Crea worktree per ogni Claude
627
+ git worktree add ../[project]-C2 feature/[plan]-phase1
628
+ git worktree add ../[project]-C3 feature/[plan]-phase2
629
+ git worktree add ../[project]-C4 feature/[plan]-phase3
630
+
631
+ # Verifica
632
+ git worktree list
633
+ ```
634
+
635
+ #### Mapping Claude → Worktree → Branch
636
+
637
+ | Claude | Worktree | Branch | PR |
638
+ |--------|----------|--------|-----|
639
+ | CLAUDE 1 | `[project_root]` | [main_branch] | Coordina solo |
640
+ | CLAUDE 2 | `../[project]-C2` | feature/[plan]-phase1 | PR #1 |
641
+ | CLAUDE 3 | `../[project]-C3` | feature/[plan]-phase2 | PR #2 |
642
+ | CLAUDE 4 | `../[project]-C4` | feature/[plan]-phase3 | PR #3 |
643
+
644
+ #### Send Claude to Worktrees
645
+ ```bash
646
+ kitty @ send-text --match title:Claude-2 "cd ../[project]-C2" && kitty @ send-key --match title:Claude-2 Return
647
+ kitty @ send-text --match title:Claude-3 "cd ../[project]-C3" && kitty @ send-key --match title:Claude-3 Return
648
+ kitty @ send-text --match title:Claude-4 "cd ../[project]-C4" && kitty @ send-key --match title:Claude-4 Return
649
+ ```
650
+
651
+ #### PR Workflow (ogni Claude fa questo quando completa)
652
+
653
+ ```bash
654
+ # 1. Commit
655
+ git add .
656
+ git commit -m "feat([scope]): Phase X - [description]
657
+
658
+ 🤖 Generated with Claude Code
659
+
660
+ Co-Authored-By: Claude <noreply@anthropic.com>"
661
+
662
+ # 2. Push
663
+ git push -u origin feature/[plan]-phaseX
664
+
665
+ # 3. Crea PR
666
+ gh pr create --title "feat([scope]): Phase X - [description]" --body "## Summary
667
+ - [bullet points]
668
+
669
+ ## Issues Closed
670
+ - Closes #XX
671
+
672
+ ## Verification
673
+ - [x] npm run lint ✅
674
+ - [x] npm run typecheck ✅
675
+ - [x] npm run build ✅
676
+
677
+ 🤖 Generated with Claude Code" --base [main_branch]
678
+ ```
679
+
680
+ #### Merge & Cleanup (CLAUDE 1 fa questo alla fine)
681
+
682
+ ```bash
683
+ cd [project_root]
684
+
685
+ # 1. Merge tutte le PR (in ordine!)
686
+ gh pr merge [PR-1] --merge
687
+ gh pr merge [PR-2] --merge
688
+ gh pr merge [PR-3] --merge
689
+
690
+ # 2. Pull changes
691
+ git pull origin [main_branch]
692
+
693
+ # 3. Cleanup worktrees
694
+ git worktree remove ../[project]-C2
695
+ git worktree remove ../[project]-C3
696
+ git worktree remove ../[project]-C4
697
+
698
+ # 4. Cleanup branches
699
+ git branch -d feature/[plan]-phase1
700
+ git branch -d feature/[plan]-phase2
701
+ git branch -d feature/[plan]-phase3
702
+
703
+ # 5. Verifica finale
704
+ npm run lint && npm run typecheck && npm run build
705
+ ```
706
+
345
707
  ### Orchestration Scripts Location
346
708
  ```
347
709
  ~/.claude/scripts/
@@ -351,7 +713,95 @@ kitty @ send-text --match title:Claude-3 "Leggi [plan], sei CLAUDE 3, esegui i t
351
713
  └── kitty-check.sh # Verify setup
352
714
  ```
353
715
 
716
+ ## Synchronization Protocol
717
+
718
+ ### Phase Gates
719
+ When a phase BLOCKS other phases, use this mechanism to coordinate parallel Claude instances:
720
+
721
+ #### 1. Add PHASE GATES Section to Plan
722
+ ```markdown
723
+ ## 🚦 PHASE GATES
724
+
725
+ | Gate | Blocking Phase | Waiting Phases | Status | Unlocked By |
726
+ |------|----------------|----------------|--------|-------------|
727
+ | GATE-1 | Phase 0 (Safety) | Phase 1A, 1B, 1C | 🔴 LOCKED | CLAUDE 2 |
728
+ | GATE-2 | Phase 1 (All) | Phase 2 | 🔴 LOCKED | CLAUDE 1 |
729
+ ```
730
+
731
+ #### 2. Gate Status Values
732
+ - 🔴 LOCKED - Waiting phases cannot start
733
+ - 🟢 UNLOCKED - Waiting phases can proceed
734
+
735
+ #### 3. Unlock Protocol (for Claude completing blocking phase)
736
+ When ALL tasks in the blocking phase are ✅:
737
+ 1. Update plan file - change gate status from 🔴 LOCKED to 🟢 UNLOCKED
738
+ 2. Notify waiting Claude instances:
739
+ ```bash
740
+ kitty @ send-text --match title:Claude-3 "🟢 GATE-1 UNLOCKED! Start your Phase 1 tasks now." && kitty @ send-key --match title:Claude-3 Return
741
+ kitty @ send-text --match title:Claude-4 "🟢 GATE-1 UNLOCKED! Start your Phase 1 tasks now." && kitty @ send-key --match title:Claude-4 Return
742
+ ```
743
+
744
+ #### 4. Polling Protocol (for waiting Claude instances)
745
+ ```bash
746
+ # Check gate status every 5 minutes:
747
+ grep "GATE-1" [plan_path] | grep -q "🟢 UNLOCKED" && echo "GO!" || echo "Still waiting..."
748
+
749
+ # Full polling loop (run in background):
750
+ while ! grep "GATE-1" [plan_path] | grep -q "🟢 UNLOCKED"; do
751
+ echo "$(date): Waiting for GATE-1..."
752
+ sleep 300 # 5 minutes
753
+ done
754
+ echo "🟢 GATE-1 UNLOCKED! Starting work..."
755
+ ```
756
+
757
+ ### Coordinator Responsibilities (CLAUDE 1)
758
+
759
+ ```
760
+ CLAUDE 1 MUST:
761
+ 1. Monitor all gates every 10 minutes
762
+ 2. Verify gate unlocks are legitimate (all tasks ✅)
763
+ 3. If a Claude forgets to unlock, do it for them
764
+ 4. Track elapsed time per phase
765
+ 5. Alert if a phase takes >2x estimated time
766
+ ```
767
+
768
+ ### Plan Template Addition
769
+
770
+ Add this to every plan with blocking phases:
771
+
772
+ ```markdown
773
+ ## 🚦 PHASE GATES
774
+
775
+ | Gate | Blocks | Unlocks | Status | Unlocked At |
776
+ |------|--------|---------|--------|-------------|
777
+ | GATE-0 | Phase 0 | Phase 1A, 1B, 1C | 🔴 LOCKED | |
778
+
779
+ ### Gate Instructions
780
+
781
+ **CLAUDE completing blocking phase**:
782
+ After your last task is ✅, update the gate status above to 🟢 UNLOCKED and run:
783
+ \`\`\`bash
784
+ kitty @ send-text --match title:Claude-3 "🟢 GATE UNLOCKED! Proceed." && kitty @ send-key --match title:Claude-3 Return
785
+ kitty @ send-text --match title:Claude-4 "🟢 GATE UNLOCKED! Proceed." && kitty @ send-key --match title:Claude-4 Return
786
+ \`\`\`
787
+
788
+ **CLAUDE waiting for gate**:
789
+ Poll every 5 min OR wait for kitty notification:
790
+ \`\`\`bash
791
+ watch -n 300 'grep "GATE-0" plan.md'
792
+ \`\`\`
793
+ ```
794
+
354
795
  ## Changelog
355
796
 
797
+ - **1.5.0** (2025-12-30): Added mandatory GIT WORKFLOW section with worktrees per Claude, PR per phase, and cleanup protocol
798
+ - **1.4.0** (2025-12-29): Expanded to full Inter-Claude Communication Protocol with bidirectional messaging, worker-to-worker sync, broadcast patterns, message format conventions, and emoji reference table
799
+ - **1.3.5** (2025-12-29): Simplified kitty pattern with `&&` chaining, added Coordinator Communication Pattern section
800
+ - **1.3.4** (2025-12-29): Fixed kitty commands: use `send-text` + `send-key Return` instead of `\r`
801
+ - **1.3.3** (2025-12-29): Added ISE Engineering Fundamentals requirement with link to Microsoft playbook
802
+ - **1.3.2** (2025-12-29): Added mandatory WAVE FINAL documentation tasks and Documentation Rules in NON-NEGOTIABLE section
803
+ - **1.3.1** (2025-12-29): Fixed kitty send-text commands missing `\r` (Enter key) for auto-execution
804
+ - **1.3.0** (2025-12-29): Replaced ASCII box dashboard with clean Markdown tables, added elapsed time tracking per wave
805
+ - **1.2.0** (2025-12-29): Added Synchronization Protocol with Phase Gates for multi-Claude coordination
356
806
  - **1.1.0** (2025-12-28): Added Kitty parallel orchestration support
357
807
  - **1.0.0** (2025-12-15): Initial security framework and model optimization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myconvergio",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "Enterprise Agent Suite: 57 specialized AI agents for strategy, development, compliance, and operations - Claude Code Plugin",
5
5
  "keywords": [
6
6
  "claude",