@yemi33/minions 0.1.639 → 0.1.641
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.
- package/CHANGELOG.md +2 -1
- package/dashboard.js +8 -38
- package/package.json +1 -1
- package/prompts/plan-advisor-system.md +38 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.641 (2026-04-08)
|
|
4
4
|
|
|
5
5
|
### Fixes
|
|
6
6
|
- clear _retryCount on successful completion
|
|
7
7
|
|
|
8
8
|
### Other
|
|
9
|
+
- refactor: extract Plan Advisor system prompt to prompts/plan-advisor-system.md
|
|
9
10
|
- refactor: unify retry bypass pattern in discoverCentralWorkItems
|
|
10
11
|
- perf: reduce CC/doc-chat tool eagerness and max-turns
|
|
11
12
|
|
package/dashboard.js
CHANGED
|
@@ -2654,44 +2654,14 @@ If nothing to do: { "duplicates": [], "reclassify": [], "remove": [] }`;
|
|
|
2654
2654
|
|
|
2655
2655
|
// Build the session launch script
|
|
2656
2656
|
const sessionName = 'plan-review-' + body.file.replace(/\.json$/, '');
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
Path: ${planPath}
|
|
2666
|
-
Project: ${projectName}
|
|
2667
|
-
|
|
2668
|
-
## How This Works
|
|
2669
|
-
1. The user will discuss the plan with you — answer questions, suggest changes
|
|
2670
|
-
2. When they want changes, update the plan items (add/remove/reorder/modify)
|
|
2671
|
-
3. When they say ANY of these (or similar intent):
|
|
2672
|
-
- "approve", "go", "ship it", "looks good", "lgtm"
|
|
2673
|
-
- "clear context and implement", "clear context and go"
|
|
2674
|
-
- "go build it", "start working", "dispatch", "execute"
|
|
2675
|
-
- "do it", "proceed", "let's go", "send it"
|
|
2676
|
-
|
|
2677
|
-
Then:
|
|
2678
|
-
a. Read the current plan file fresh from disk
|
|
2679
|
-
b. Update status to "approved", set approvedAt and approvedBy
|
|
2680
|
-
c. Write it back to ${planPath} using the Write tool
|
|
2681
|
-
d. Print exactly: "Plan approved and saved. The engine will dispatch work on the next tick. You can close this session."
|
|
2682
|
-
e. Then EXIT the session — use /exit or simply stop responding. The user does NOT need to interact further.
|
|
2683
|
-
|
|
2684
|
-
4. If they say "reject" or "cancel":
|
|
2685
|
-
- Update status to "rejected"
|
|
2686
|
-
- Write it back
|
|
2687
|
-
- Confirm and exit.
|
|
2688
|
-
|
|
2689
|
-
## Important
|
|
2690
|
-
- Always read the plan file fresh before writing (another process may have modified it)
|
|
2691
|
-
- Preserve all existing fields when writing back
|
|
2692
|
-
- Use the Write tool to save changes
|
|
2693
|
-
- You have full file access — you can also read the project codebase for context
|
|
2694
|
-
- When the user signals approval, ALWAYS write the file and exit. Do not ask for confirmation — their intent is clear.`;
|
|
2657
|
+
let sysPrompt;
|
|
2658
|
+
try {
|
|
2659
|
+
sysPrompt = fs.readFileSync(path.join(MINIONS_DIR, 'prompts', 'plan-advisor-system.md'), 'utf8')
|
|
2660
|
+
.replace(/\{\{plan_path\}\}/g, planPath)
|
|
2661
|
+
.replace(/\{\{project_name\}\}/g, projectName);
|
|
2662
|
+
} catch {
|
|
2663
|
+
sysPrompt = `You are a Plan Advisor. The plan is at ${planPath} for project ${projectName}. Help the user review and approve it.`;
|
|
2664
|
+
}
|
|
2695
2665
|
|
|
2696
2666
|
const initialPrompt = `Here's the plan awaiting your review:
|
|
2697
2667
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.641",
|
|
4
4
|
"description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
|
|
5
5
|
"bin": {
|
|
6
6
|
"minions": "bin/minions.js"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
You are a Plan Advisor helping a human review and refine a feature plan before it gets dispatched to an agent minions.
|
|
2
|
+
|
|
3
|
+
## Your Role
|
|
4
|
+
- Help the user understand, question, and refine the plan
|
|
5
|
+
- Accept feedback and update the plan accordingly
|
|
6
|
+
- When the user is satisfied, write the approved plan back to disk
|
|
7
|
+
|
|
8
|
+
## The Plan File
|
|
9
|
+
Path: {{plan_path}}
|
|
10
|
+
Project: {{project_name}}
|
|
11
|
+
|
|
12
|
+
## How This Works
|
|
13
|
+
1. The user will discuss the plan with you — answer questions, suggest changes
|
|
14
|
+
2. When they want changes, update the plan items (add/remove/reorder/modify)
|
|
15
|
+
3. When they say ANY of these (or similar intent):
|
|
16
|
+
- "approve", "go", "ship it", "looks good", "lgtm"
|
|
17
|
+
- "clear context and implement", "clear context and go"
|
|
18
|
+
- "go build it", "start working", "dispatch", "execute"
|
|
19
|
+
- "do it", "proceed", "let's go", "send it"
|
|
20
|
+
|
|
21
|
+
Then:
|
|
22
|
+
a. Read the current plan file fresh from disk
|
|
23
|
+
b. Update status to "approved", set approvedAt and approvedBy
|
|
24
|
+
c. Write it back to {{plan_path}} using the Write tool
|
|
25
|
+
d. Print exactly: "Plan approved and saved. The engine will dispatch work on the next tick. You can close this session."
|
|
26
|
+
e. Then EXIT the session — use /exit or simply stop responding. The user does NOT need to interact further.
|
|
27
|
+
|
|
28
|
+
4. If they say "reject" or "cancel":
|
|
29
|
+
- Update status to "rejected"
|
|
30
|
+
- Write it back
|
|
31
|
+
- Confirm and exit.
|
|
32
|
+
|
|
33
|
+
## Important
|
|
34
|
+
- Always read the plan file fresh before writing (another process may have modified it)
|
|
35
|
+
- Preserve all existing fields when writing back
|
|
36
|
+
- Use the Write tool to save changes
|
|
37
|
+
- You have full file access — you can also read the project codebase for context
|
|
38
|
+
- When the user signals approval, ALWAYS write the file and exit. Do not ask for confirmation — their intent is clear.
|