codingbuddy-rules 4.4.0 → 4.5.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.
|
@@ -523,6 +523,45 @@ Each workflow mode activates different specialist agents:
|
|
|
523
523
|
|
|
524
524
|
**Important:** Specialists from one mode do NOT carry over to the next mode. Each mode has its own recommended specialist set.
|
|
525
525
|
|
|
526
|
+
### Execution Strategy Selection (MANDATORY)
|
|
527
|
+
|
|
528
|
+
When `parse_mode` returns `availableStrategies`:
|
|
529
|
+
|
|
530
|
+
1. **Check `availableStrategies`** in the response
|
|
531
|
+
2. **If both strategies available** (`["subagent", "taskmaestro"]`), ask user with AskUserQuestion:
|
|
532
|
+
- Option A: "SubAgent (background agents, fast)" (Recommended)
|
|
533
|
+
- Option B: "TaskMaestro (tmux parallel panes, visual monitoring)"
|
|
534
|
+
3. **If only `["subagent"]`** and `taskmaestroInstallHint` present:
|
|
535
|
+
- Ask: "TaskMaestro is not installed. Would you like to install it for tmux-based parallel execution?"
|
|
536
|
+
- Yes → invoke `/taskmaestro` skill to guide installation, then re-check
|
|
537
|
+
- No → proceed with subagent
|
|
538
|
+
4. **Call `dispatch_agents`** with chosen `executionStrategy` parameter:
|
|
539
|
+
- `dispatch_agents({ mode, specialists, executionStrategy: "subagent" })` — existing Agent tool flow
|
|
540
|
+
- `dispatch_agents({ mode, specialists, executionStrategy: "taskmaestro" })` — returns tmux assignments
|
|
541
|
+
5. **Execute** based on strategy:
|
|
542
|
+
- **subagent**: Use `dispatchParams` with Agent tool (`run_in_background: true`)
|
|
543
|
+
- **taskmaestro**: Follow `executionHint` — start panes, assign prompts, monitor, collect results
|
|
544
|
+
|
|
545
|
+
### TaskMaestro Execution Flow
|
|
546
|
+
|
|
547
|
+
When `executionStrategy: "taskmaestro"` is chosen, `dispatch_agents` returns:
|
|
548
|
+
|
|
549
|
+
```json
|
|
550
|
+
{
|
|
551
|
+
"taskmaestro": {
|
|
552
|
+
"sessionName": "eval-specialists",
|
|
553
|
+
"paneCount": 5,
|
|
554
|
+
"assignments": [
|
|
555
|
+
{ "name": "security-specialist", "displayName": "Security Specialist", "prompt": "..." },
|
|
556
|
+
{ "name": "performance-specialist", "displayName": "Performance Specialist", "prompt": "..." }
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
"executionHint": "1. /taskmaestro start --panes 5\n2. ..."
|
|
560
|
+
}
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
Execute by following the `executionHint` commands sequentially.
|
|
564
|
+
|
|
526
565
|
## PR All-in-One Skill
|
|
527
566
|
|
|
528
567
|
Unified commit and PR workflow that:
|
package/.ai-rules/rules/core.md
CHANGED
|
@@ -546,7 +546,8 @@ To preserve this implementation session for future reference:
|
|
|
546
546
|
- All implementations must follow the Primary Developer Agent's code quality checklist
|
|
547
547
|
- Respond in the language specified in the agent's communication.language setting
|
|
548
548
|
- Execute one step at a time, verify tests after each step
|
|
549
|
-
-
|
|
549
|
+
- On recoverable errors (file not found, command failure, path issues), try alternatives immediately
|
|
550
|
+
- Only return to PLAN on unrecoverable blockers (missing dependencies, architectural conflicts)
|
|
550
551
|
|
|
551
552
|
**Verification:**
|
|
552
553
|
- Agent name should appear as `## Agent : [Primary Developer Agent Name]` in response
|
|
@@ -563,6 +564,21 @@ To preserve this implementation session for future reference:
|
|
|
563
564
|
|
|
564
565
|
---
|
|
565
566
|
|
|
567
|
+
### Error Recovery (ACT mode)
|
|
568
|
+
|
|
569
|
+
- On recoverable errors (file not found, command failure, path issues), try alternatives immediately
|
|
570
|
+
- Do not wait for user confirmation on recoverable errors — recover immediately
|
|
571
|
+
- Only report to user on unrecoverable errors (auth failure, critical data loss risk)
|
|
572
|
+
- Never break the workflow on error — try alternatives and continue
|
|
573
|
+
|
|
574
|
+
### Path Safety (monorepo)
|
|
575
|
+
|
|
576
|
+
- Always verify current directory (pwd) or use absolute paths before git add/commit
|
|
577
|
+
- In monorepo subdirectories, use git -C "$REPO_ROOT" flag for git commands
|
|
578
|
+
- After using cd, ensure relative paths are not double-applied in subsequent commands
|
|
579
|
+
|
|
580
|
+
---
|
|
581
|
+
|
|
566
582
|
### Eval Mode
|
|
567
583
|
|
|
568
584
|
**Important:**
|