@xynogen/pix-subagent 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -4,14 +4,16 @@ Pi extension — planner-driven sub-agents with 3 tools, live widget (model alwa
4
4
 
5
5
  ## Install
6
6
 
7
- Bundled by [`@xynogen/pix-core`](https://www.npmjs.com/package/@xynogen/pix-core) — no separate install needed.
8
-
9
- Standalone:
10
-
11
7
  ```bash
12
8
  pi install npm:@xynogen/pix-subagent
13
9
  ```
14
10
 
11
+ > Also included in [`@xynogen/pix-core`](https://www.npmjs.com/package/@xynogen/pix-core):
12
+ >
13
+ > ```bash
14
+ > pi install npm:@xynogen/pix-core
15
+ > ```
16
+
15
17
  ## What it does
16
18
 
17
19
  Gives the parent agent (planner) three tools to delegate work to isolated child sessions:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-subagent",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Pi tool — planner-driven sub-agents: spawn, fetch, steer scoped child agents",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -191,9 +191,9 @@ export default function registerPixSubagent(pi: ExtensionAPI): void {
191
191
  }
192
192
  });
193
193
 
194
- pi.on("tool_execution_start", (_event, ctx) => {
195
- widget.setUICtx(ctx.ui as Parameters<typeof widget.setUICtx>[0]);
194
+ pi.on("turn_start", (_event, ctx) => {
196
195
  widget.onTurnStart();
196
+ widget.setUICtx(ctx.ui as Parameters<typeof widget.setUICtx>[0]);
197
197
  widget.ensureTimer();
198
198
  });
199
199
 
package/src/tools.ts CHANGED
@@ -180,10 +180,10 @@ If the target is already known, use a direct tool — \`read\` for a known path,
180
180
 
181
181
  ## Usage notes
182
182
  - Always include a short (3-5 word) description summarizing what the agent will do (shown in UI).
183
- - When you launch multiple agents for independent work, send them in a single message with multiple tool uses, with run_in_background: true on each, so they run concurrently.
183
+ - When you launch multiple agents for independent work, send them in a single message with multiple tool uses, so they run concurrently.
184
184
  - When the agent is done, it returns a single message. The result is not visible to the user — to show the user, send a text message with a concise summary.
185
185
  - Trust but verify: an agent's summary describes what it intended to do, not what it did. When an agent writes or edits code, check the actual changes before reporting work as done.
186
- - Use run_in_background for work you don't need immediately. You will be notified when it completes do NOT poll or sleep waiting for it.
186
+ - Use run_in_background: true only when you explicitly do not need to see the output inline (e.g. fire-and-forget background tasks). Default is foregroundthe agent streams inline and you see its work as it runs.
187
187
  - Use resume with an agent ID to continue a previous agent's work.
188
188
  - Use agent_steer to send mid-run messages to a running background agent.
189
189
  - Use model to specify a model from the available models list above (provider/id or fuzzy e.g. "haiku").