@agnishc/edb-subagents 0.10.4 → 0.10.5

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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.5] - 2026-05-15
4
+
5
+ ### Changed
6
+ - Added `promptSnippet` to all three tools (`Agent`, `get_subagent_result`, `steer_subagent`) so they appear in the system prompt's Available tools section
7
+
3
8
  ## [0.10.4] - 2026-05-15
4
9
 
5
10
  ## [0.10.3] - 2026-05-15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnishc/edb-subagents",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "Pi extension: Claude Code-style autonomous sub-agents with live widget, parallel execution, mid-run steering, and custom agent types",
5
5
  "keywords": [
6
6
  "pi-package",
package/src/index.ts CHANGED
@@ -812,6 +812,7 @@ Guidelines:
812
812
  ),
813
813
  ...scheduleParam,
814
814
  }),
815
+ promptSnippet: "Launch a specialized subagent to autonomously handle a complex multi-step task",
815
816
 
816
817
  // ---- Custom rendering: Claude Code style ----
817
818
 
@@ -1250,6 +1251,7 @@ Guidelines:
1250
1251
  }),
1251
1252
  ),
1252
1253
  }),
1254
+ promptSnippet: "Check status and retrieve results from a background subagent by its ID",
1253
1255
  execute: async (_toolCallId, params, _signal, _onUpdate, _ctx) => {
1254
1256
  const record = manager.getRecord(params.agent_id);
1255
1257
  if (!record) {
@@ -1326,6 +1328,7 @@ Guidelines:
1326
1328
  "The steering message to send. This will appear as a user message in the agent's conversation.",
1327
1329
  }),
1328
1330
  }),
1331
+ promptSnippet: "Send a mid-run steering message to redirect a running background subagent",
1329
1332
  execute: async (_toolCallId, params, _signal, _onUpdate, _ctx) => {
1330
1333
  const record = manager.getRecord(params.agent_id);
1331
1334
  if (!record) {
@@ -215,8 +215,6 @@ export class AgentWidget {
215
215
  private widgetRegistered = false;
216
216
  /** Cached TUI reference from widget factory callback, used for requestRender(). */
217
217
  private tui: any | undefined;
218
- /** Last status bar text, used to avoid redundant setStatus calls. */
219
- private lastStatusText: string | undefined;
220
218
 
221
219
  constructor(
222
220
  private manager: AgentManager,
@@ -231,7 +229,6 @@ export class AgentWidget {
231
229
  this.uiCtx = ctx;
232
230
  this.widgetRegistered = false;
233
231
  this.tui = undefined;
234
- this.lastStatusText = undefined;
235
232
  }
236
233
  }
237
234
 
@@ -491,10 +488,6 @@ export class AgentWidget {
491
488
  this.widgetRegistered = false;
492
489
  this.tui = undefined;
493
490
  }
494
- if (this.lastStatusText !== undefined) {
495
- this.uiCtx.setStatus("subagents", undefined);
496
- this.lastStatusText = undefined;
497
- }
498
491
  if (this.widgetInterval) {
499
492
  clearInterval(this.widgetInterval);
500
493
  this.widgetInterval = undefined;
@@ -506,20 +499,7 @@ export class AgentWidget {
506
499
  return;
507
500
  }
508
501
 
509
- // Status bar — only call setStatus when the text actually changes
510
- let newStatusText: string | undefined;
511
- if (hasActive) {
512
- const statusParts: string[] = [];
513
- if (runningCount > 0) statusParts.push(`${runningCount} running`);
514
- if (queuedCount > 0) statusParts.push(`${queuedCount} queued`);
515
- const total = runningCount + queuedCount;
516
- newStatusText = `${statusParts.join(", ")} agent${total === 1 ? "" : "s"}`;
517
- }
518
- if (newStatusText !== this.lastStatusText) {
519
- this.uiCtx.setStatus("subagents", newStatusText);
520
- this.lastStatusText = newStatusText;
521
- }
522
-
502
+ // (status bar removed widget shows agent info)
523
503
  this.widgetFrame++;
524
504
 
525
505
  // Register widget callback once; subsequent updates use requestRender()
@@ -554,10 +534,8 @@ export class AgentWidget {
554
534
  }
555
535
  if (this.uiCtx) {
556
536
  this.uiCtx.setWidget("agents", undefined);
557
- this.uiCtx.setStatus("subagents", undefined);
558
537
  }
559
538
  this.widgetRegistered = false;
560
539
  this.tui = undefined;
561
- this.lastStatusText = undefined;
562
540
  }
563
541
  }