@deathbeam/pi-delegate 0.0.45 → 0.0.46

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.
Files changed (2) hide show
  1. package/index.ts +3 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -70,6 +70,7 @@ const EXPLORATION_TOOLS = new Set(["read", "grep", "find", "ls", "bash", "powers
70
70
  const FIRST_REMINDER_AT = 5;
71
71
  const DELEGATE_SESSION_DIR = join(getAgentDir(), "sessions", "delegates");
72
72
  const INTERRUPTED_MESSAGE = "delegate-interrupted";
73
+ const SKILL_PROMPT = "If your task names a skill, read its SKILL.md before starting and follow it.";
73
74
 
74
75
  function argText(value: unknown): string {
75
76
  return typeof value === "string" ? value : "";
@@ -319,6 +320,7 @@ export default function (pi: ExtensionAPI) {
319
320
  ];
320
321
  if (thinking) args.push("--thinking", thinking);
321
322
  if (agent.prompt) args.push("--append-system-prompt", agent.prompt);
323
+ args.push("--append-system-prompt", SKILL_PROMPT);
322
324
  const cwd = isolation ? cloneCwd(isolation, ctx.cwd) : ctx.cwd;
323
325
  if (isolation)
324
326
  args.push(
@@ -490,7 +492,7 @@ export default function (pi: ExtensionAPI) {
490
492
  "Available agents:",
491
493
  ...agentList,
492
494
  "",
493
- "A delegate gets the project instructions but not this conversation. Write `task` as a self-contained brief: the goal and why it matters, what you know (paths, symbols, errors), scope and constraints, whether to edit or only report, and what to return (format, length, path:line evidence).",
495
+ 'A delegate gets the project instructions but not this conversation. Write `task` as a self-contained brief: the goal and why it matters, what you know (paths, symbols, errors), scope and constraints, whether to edit or only report, and what to return (format, length, path:line evidence). When a listed skill fits the work, name it in the brief ("load the <name> skill first"); the delegate sees the same skill list but not the request that matched it.',
494
496
  "",
495
497
  "With isolated: true, the delegate runs in a git clone at .pi/worktrees/<job id>, starting from the main tree as it is now, uncommitted and untracked files included. It never touches the main tree and may commit freely; delegate_apply brings its changes back, delegate_discard drops them.",
496
498
  "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathbeam/pi-delegate",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "description": "Minimal extension for delegating tasks to subagents.",
5
5
  "type": "module",
6
6
  "license": "MIT",