@ferris1225/pi-subagents 0.26.0 → 0.26.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 +2 -3
- package/package.json +1 -1
- package/src/prompt.ts +5 -4
- package/src/setup.ts +0 -5
package/README.md
CHANGED
|
@@ -434,9 +434,8 @@ When the config already exists, re-running `/subagents-setup` opens a menu whose
|
|
|
434
434
|
model and thinking strength — so changing a single agent no longer walks every enabled
|
|
435
435
|
agent. After one agent's model + strength picks, the wizard returns to the agent picker
|
|
436
436
|
so several agents can be configured in one pass; Esc at any step ends the pass and keeps
|
|
437
|
-
every agent already configured.
|
|
438
|
-
|
|
439
|
-
idle timeout; **Full re-setup** re-runs the whole first-time wizard.
|
|
437
|
+
every agent already configured. The rest of the menu toggles injection, scope, concurrency,
|
|
438
|
+
fix rounds, and idle timeout; **Full re-setup** re-runs the whole first-time wizard.
|
|
440
439
|
|
|
441
440
|
```json
|
|
442
441
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ferris1225/pi-subagents",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"description": "Focused sub-agent delegation for pi: explore / worker / reviewer agents in isolated context, with proactive dispatch injection and per-agent model selection.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/prompt.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { formatCatalogEntry } from "./agents.ts";
|
|
|
16
16
|
|
|
17
17
|
/** Compact role routing hints, emitted only for roles that are enabled. */
|
|
18
18
|
const ROLE_ROUTING: Record<string, string> = {
|
|
19
|
-
explore: "explore — broad/open-ended
|
|
19
|
+
explore: "explore — codebase reconnaissance: broad/open-ended search, multi-file lookups, mapping unfamiliar code, tracing symbols/dependencies (read-only, cheap fast model); NOT for one-line lookups.",
|
|
20
20
|
worker: "worker — implement/fix/refactor/test a self-contained task worth a separate context (full tools; plans internally).",
|
|
21
21
|
reviewer: "reviewer — adversarial pre-commit review of a diff (read-only; independent context).",
|
|
22
22
|
};
|
|
@@ -49,9 +49,10 @@ Available agents:
|
|
|
49
49
|
${catalog}
|
|
50
50
|
|
|
51
51
|
${routing ? `Routing:\n${routing}\n` : ""}Dispatch discipline:
|
|
52
|
-
- Handle SIMPLE work INLINE with direct tools: a
|
|
53
|
-
-
|
|
54
|
-
-
|
|
52
|
+
- Handle SIMPLE work INLINE with direct tools: a one-line lookup, single edit, or quick question is a grep/read/edit in the main context — never a sub-agent. Sub-agents cost startup time, tokens, and a context switch.
|
|
53
|
+
- Use \`explore\` PROACTIVELY for codebase reconnaissance: mapping an unfamiliar area, multi-file lookups, tracing symbols across modules, or any "where is X / which files reference Y" question that would take several greps or reading multiple files. It runs on a fast cheap model and returns compressed findings, so delegating recon costs little.
|
|
54
|
+
- Delegate only when isolation genuinely pays: a self-contained implementation/fix with its own validation (worker), or a fresh-context review gate (reviewer).
|
|
55
|
+
- When in doubt, start with a direct tool call in the main context; escalate to \`explore\` as soon as the search turns broad or crosses multiple files.
|
|
55
56
|
- For an already-known or trivial target, use a direct search/read tool (e.g. grep/find/read) — do not over-delegate a one-line lookup.
|
|
56
57
|
${hasMultiple ? "- Run INDEPENDENT tasks in parallel: one subagent call with a `tasks` array, and track them with your todo list. Let the automatically resumed main agent launch dependent work only after its prerequisite result arrives (e.g. explore, then worker, then reviewer).\n" : ""}- Brief each sub-agent as self-contained: goal, exact paths, constraints, expected output. It has NO memory of this conversation.
|
|
57
58
|
- Treat delegated agents as leaf workers: do not ask a sub-agent to dispatch another sub-agent; child processes do not have this tool.
|
package/src/setup.ts
CHANGED
|
@@ -391,7 +391,6 @@ async function runMenu(ctx: ExtensionCommandContext, configPath: string, config:
|
|
|
391
391
|
const choice = await ctx.ui.select("pi-subagents is already configured. What would you like to change?", [
|
|
392
392
|
"Enable/disable agents",
|
|
393
393
|
"Configure an agent (model + thinking)",
|
|
394
|
-
"Change default thinking strength",
|
|
395
394
|
"Toggle proactive injection",
|
|
396
395
|
"Change agent scope",
|
|
397
396
|
"Change max concurrent sub-agents",
|
|
@@ -437,10 +436,6 @@ async function runMenu(ctx: ExtensionCommandContext, configPath: string, config:
|
|
|
437
436
|
}
|
|
438
437
|
if (!configuredAny) return notifyCancelled(ctx);
|
|
439
438
|
next.agentModels = repairStaleModels(ctx, next.agentModels);
|
|
440
|
-
} else if (choice.startsWith("Change default thinking")) {
|
|
441
|
-
const thinkingLevel = await pickThinkingLevel(ctx, config.thinkingLevel);
|
|
442
|
-
if (thinkingLevel === undefined) return notifyCancelled(ctx);
|
|
443
|
-
next.thinkingLevel = thinkingLevel;
|
|
444
439
|
} else if (choice.startsWith("Toggle")) {
|
|
445
440
|
const injection = await pickInjection(ctx, config.proactiveInjection);
|
|
446
441
|
if (injection === undefined) return notifyCancelled(ctx);
|