@phi-code-admin/phi-code 0.58.7 → 0.58.9
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.
|
@@ -187,9 +187,14 @@ export default function orchestratorExtension(pi: ExtensionAPI) {
|
|
|
187
187
|
// The actual task
|
|
188
188
|
taskPrompt += `---\n\n# Your Task\n\n**${task.title}**\n\n${task.description}`;
|
|
189
189
|
if (task.subtasks && task.subtasks.length > 0) {
|
|
190
|
-
taskPrompt += "\n\
|
|
190
|
+
taskPrompt += "\n\n## Sub-tasks\n" + task.subtasks.map((st, i) => `${i + 1}. ${st}`).join("\n");
|
|
191
191
|
}
|
|
192
|
-
taskPrompt +=
|
|
192
|
+
taskPrompt += `\n\n---\n\n## Instructions\n`;
|
|
193
|
+
taskPrompt += `- You are an isolated agent with your own context. Work independently.\n`;
|
|
194
|
+
taskPrompt += `- Use the project context and dependency results above to inform your work.\n`;
|
|
195
|
+
taskPrompt += `- Follow the output format defined in your system prompt.\n`;
|
|
196
|
+
taskPrompt += `- Be precise. Reference specific file paths and line numbers.\n`;
|
|
197
|
+
taskPrompt += `- Report exactly what you did, what worked, and what didn't.\n`;
|
|
193
198
|
|
|
194
199
|
const args: string[] = [];
|
|
195
200
|
if (phiBin === "npx") args.push("@phi-code-admin/phi-code");
|
|
@@ -197,7 +202,7 @@ export default function orchestratorExtension(pi: ExtensionAPI) {
|
|
|
197
202
|
args.push("--print");
|
|
198
203
|
if (model && model !== "default") args.push("--model", model);
|
|
199
204
|
if (agentDef?.systemPrompt) args.push("--system-prompt", agentDef.systemPrompt);
|
|
200
|
-
args.push("--no-
|
|
205
|
+
args.push("--no-session");
|
|
201
206
|
args.push(taskPrompt);
|
|
202
207
|
|
|
203
208
|
const cmd = phiBin === "npx" ? "npx" : "node";
|
|
@@ -449,7 +454,7 @@ export default function orchestratorExtension(pi: ExtensionAPI) {
|
|
|
449
454
|
promptSnippet: "Plan + execute projects in parallel waves. Each sub-agent gets isolated context + model. Use prompt-architect patterns for structured task descriptions.",
|
|
450
455
|
promptGuidelines: [
|
|
451
456
|
"When asked to plan or build a project: analyze the request thoroughly, then call the orchestrate tool. It plans AND executes automatically.",
|
|
452
|
-
"CRITICAL: Each task description must be SELF-CONTAINED. The sub-agent has NO
|
|
457
|
+
"CRITICAL: Each task description must be SELF-CONTAINED. The sub-agent has NO access to this conversation. It receives: (1) project context (title, description, spec summary) automatically, (2) outputs from its dependency tasks automatically, (3) your task description. So include specific details: file paths, expected behavior, code patterns, success criteria. Don't repeat the project description — that's injected automatically.",
|
|
453
458
|
"Structure each task description using the prompt-architect pattern: [CONTEXT] what exists and why → [TASK] what to do specifically → [FORMAT] expected output → [CONSTRAINTS] rules and limitations.",
|
|
454
459
|
"Assign agent types strategically: 'explore' (read-only analysis, codebase understanding), 'plan' (architecture, design decisions), 'code' (implementation, file creation/modification), 'test' (write + run tests, validate behavior), 'review' (security audit, quality check, read-only).",
|
|
455
460
|
"Set dependencies to maximize parallelism: tasks without dependencies run simultaneously in the same wave. Only add dependencies when a task truly needs another task's output.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phi-code-admin/phi-code",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.9",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"piConfig": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"phi-code-ai": "^0.56.3",
|
|
59
59
|
"phi-code-tui": "^0.56.3",
|
|
60
60
|
"proper-lockfile": "^4.1.2",
|
|
61
|
-
"sigma-agents": "^0.1.
|
|
61
|
+
"sigma-agents": "^0.1.3",
|
|
62
62
|
"sigma-memory": "^0.1.0",
|
|
63
63
|
"sigma-skills": "^0.1.0",
|
|
64
64
|
"strip-ansi": "^7.1.0",
|