@deathbeam/pi-delegate 0.0.7 → 0.0.9
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/index.ts +4 -4
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -284,7 +284,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
284
284
|
event.systemPromptOptions.sections.agents = [
|
|
285
285
|
"Available agents:",
|
|
286
286
|
...agents.map((agent) => `- ${agent.name}: ${agent.description}`),
|
|
287
|
-
"Delegation is authorized here
|
|
287
|
+
"Delegation is authorized here. Before context-heavy work, identify independent scopes and delegate them in parallel. Keep brief checks, decisions, and synthesis in the parent; agents work in isolated contexts and return follow-up reports.",
|
|
288
288
|
].join("\n");
|
|
289
289
|
});
|
|
290
290
|
|
|
@@ -545,8 +545,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
545
545
|
"Delegate one focused task to a background Pi agent using a named Markdown agent definition. Returns immediately; the agent's result arrives later as a follow-up message. `description` labels the delegation in the transcript; `task` is the full instruction the child receives.",
|
|
546
546
|
promptSnippet: "Delegate a focused task to a background agent; the result arrives later as a follow-up message",
|
|
547
547
|
promptGuidelines: [
|
|
548
|
-
"While delegates run,
|
|
549
|
-
"Read every required delegate report before claiming the task is done. Never sleep or
|
|
548
|
+
"While delegates run, stay outside their scopes; delegate any new context-heavy investigation before tracing it yourself. When a report is the next dependency, end your turn with a brief waiting status. Completion will wake you.",
|
|
549
|
+
"Read every required delegate report before claiming the task is done. Never sleep, poll, or call any tool solely to wait (including `bash` with `true`, `echo`, or `sleep 0`). Use delegate_list only for a one-time status check.",
|
|
550
550
|
],
|
|
551
551
|
parameters: Type.Object({
|
|
552
552
|
agent: Type.String({ description: "Agent name, one of the agents listed in the <agents> prompt section." }),
|
|
@@ -636,7 +636,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
636
636
|
content: [
|
|
637
637
|
{
|
|
638
638
|
type: "text",
|
|
639
|
-
text: `Started agent "${job.agent}" in the background (job ${job.id}). Steer it with delegate_steer or stop it with delegate_cancel. Do not
|
|
639
|
+
text: `Started agent "${job.agent}" in the background (job ${job.id}). Steer it with delegate_steer or stop it with delegate_cancel. Do not call tools solely to wait, even no-op bash commands; when its report is your next dependency, end your turn and it will arrive automatically unless cancelled.`,
|
|
640
640
|
},
|
|
641
641
|
],
|
|
642
642
|
details,
|