@arhen/pi-core-subagent 1.3.13 → 1.3.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arhen/pi-core-subagent",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
4
4
  "type": "module",
5
5
  "description": "pi extension: fast in-process subagents with a dependency-graph scheduler (needs edges gate tasks and carry upstream output into dependent prompts), plus background runs, intercom and agent-to-agent mailbox. Leader defines agents inline.",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -201,9 +201,7 @@ export default function (pi: ExtensionAPI) {
201
201
  const id = t.id ?? `task_${i + 1}`;
202
202
  const edge = t.needs?.length ? theme.fg("muted", ` ← ${t.needs.join(", ")}`) : "";
203
203
  const mark = t.write ? theme.fg("warning", " ✎") : "";
204
- const meta = [t.model ? t.model : "", t.thinking ? t.thinking : ""]
205
- .filter(Boolean)
206
- .join(" ");
204
+ const meta = [t.model ? t.model : "", t.thinking ? t.thinking : ""].filter(Boolean).join(" ");
207
205
  // Plain clip, not truncateText — that one appends a multi-line session-file notice.
208
206
  const flat = String(t.task ?? "")
209
207
  .replace(/\s+/g, " ")
package/src/manager.ts CHANGED
@@ -654,8 +654,8 @@ export class SubagentManager {
654
654
  const key = `${run.id}:${task.id}`;
655
655
  try {
656
656
  const subagentInstruction = run.allowIntercom
657
- ? `You are running as a subagent. Do not call subagent/delegation tools unless the parent explicitly asks. Return a concise final answer. You MAY use ask_parent only when truly blocked on information only the parent has; notify_parent for one-way updates; send_agent_message/poll_agent_messages to coordinate with siblings. Your mailbox address and siblings: ${task.roster ?? "(none)"}. Use the exact task ids (e.g. task_2) as send_agent_message targets.`
658
- : "You are running as a subagent. Do not call subagent/delegation tools unless the parent explicitly asks. Return a concise final answer for the parent agent.";
657
+ ? `You are running as a subagent. Your bash tool already executes in the project working directory — never prefix commands with \`cd\`. Do not call subagent/delegation tools unless the parent explicitly asks. Return a concise final answer. You MAY use ask_parent only when truly blocked on information only the parent has; notify_parent for one-way updates; send_agent_message/poll_agent_messages to coordinate with siblings. Your mailbox address and siblings: ${task.roster ?? "(none)"}. Use the exact task ids (e.g. task_2) as send_agent_message targets.`
658
+ : `You are running as a subagent. Your bash tool already executes in the project working directory — never prefix commands with \`cd\`. Do not call subagent/delegation tools unless the parent explicitly asks. Return a concise final answer for the parent agent.`;
659
659
 
660
660
  const loader = new DefaultResourceLoader({
661
661
  cwd: task.cwd,