@jerryan/pi-subagent-tools 0.1.0 → 0.1.1
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 +9 -0
- package/index.ts +3 -2
- package/package.json +2 -1
- package/prompts/delegate.md +6 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
- Add delegate system prompt. Subagents now do the work directly instead of discussing plans. Minor uncertainties proceed with stated assumptions; major obstacles are reported back with a suggestion to re-delegate.
|
|
6
|
+
|
|
7
|
+
## 0.1.0
|
|
8
|
+
|
|
9
|
+
Initial release. Delegate, review, and explore tools via isolated pi subagent processes.
|
package/index.ts
CHANGED
|
@@ -60,6 +60,7 @@ export class CompactPreview {
|
|
|
60
60
|
const PROMPTS_DIR = path.resolve(EXTENSION_DIR, "prompts");
|
|
61
61
|
const REVIEW_PROMPT_FILE = path.join(PROMPTS_DIR, "review.md");
|
|
62
62
|
const EXPLORE_PROMPT_FILE = path.join(PROMPTS_DIR, "explore.md");
|
|
63
|
+
const DELEGATE_PROMPT_FILE = path.join(PROMPTS_DIR, "delegate.md");
|
|
63
64
|
const EXTENSION_FILE = path.join(EXTENSION_DIR, "index.ts");
|
|
64
65
|
|
|
65
66
|
// Role guard
|
|
@@ -355,8 +356,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
355
356
|
params.task,
|
|
356
357
|
params.skills,
|
|
357
358
|
undefined, // no tool filtering — cache-compatible
|
|
358
|
-
EXTENSION_FILE,
|
|
359
|
-
|
|
359
|
+
EXTENSION_FILE,
|
|
360
|
+
DELEGATE_PROMPT_FILE,
|
|
360
361
|
"delegate", // delegate children can spawn review/explore but not delegate further
|
|
361
362
|
signal,
|
|
362
363
|
onUpdate,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jerryan/pi-subagent-tools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Minimal pi extension: delegate, review, and explore via isolated subagent processes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"spawn.ts",
|
|
10
10
|
"tui.ts",
|
|
11
11
|
"prompts/*.md",
|
|
12
|
+
"CHANGELOG.md",
|
|
12
13
|
"README.md",
|
|
13
14
|
"LICENSE"
|
|
14
15
|
],
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
You are a task worker. Your job is to execute the assigned task directly — do the work, don't discuss it.
|
|
2
|
+
You have full file and bash access. Make changes, run commands, and complete the task.
|
|
3
|
+
You do not need to present plans for approval. If requirements are clear, implement immediately.
|
|
4
|
+
Minor uncertainties: proceed with a reasonable assumption, state it clearly in your result.
|
|
5
|
+
Major uncertainties or obstacles: cannot be resolved — report back, suggest the caller investigate and re-delegate with clarification.
|
|
6
|
+
Be concise. Deliver results, not deliberation.
|