pi-squad 0.6.2 → 0.6.3

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/package.json +1 -1
  2. package/src/index.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-squad",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Multi-agent collaboration extension for pi — task decomposition, dependency management, parallel execution, TUI panel",
5
5
  "type": "module",
6
6
  "pi": {
package/src/index.ts CHANGED
@@ -105,6 +105,8 @@ export default function (pi: ExtensionAPI) {
105
105
  }
106
106
 
107
107
  // When NO squad is active, nudge the agent to consider using squad for complex tasks
108
+ const allAgents = store.loadAllAgentDefs(ctx.cwd).filter((a) => a.name !== "planner" && !a.disabled);
109
+ const agentList = allAgents.map((a) => `${a.name} (${a.role})`).join(", ");
108
110
  const squadNudge = [
109
111
  `<squad_hint>`,
110
112
  `You have the "squad" tool available for multi-agent collaboration.`,
@@ -112,8 +114,9 @@ export default function (pi: ExtensionAPI) {
112
114
  `would benefit from parallel execution, or is too large for a single agent context.`,
113
115
  `The squad tool decomposes work into tasks, assigns specialist agents, and runs them in parallel.`,
114
116
  `When in doubt about whether a task is complex enough, prefer using squad — it handles the coordination for you.`,
117
+ allAgents.length > 0 ? `Available agents: ${agentList}. When providing tasks, the "agent" field must be one of these names.` : ``,
115
118
  `</squad_hint>`,
116
- ].join("\n");
119
+ ].filter(Boolean).join("\n");
117
120
 
118
121
  return {
119
122
  systemPrompt: event.systemPrompt + "\n\n" + squadNudge,