@phi-code-admin/phi-code 0.61.10 โ†’ 0.62.0

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.
@@ -477,32 +477,35 @@ export default function orchestratorExtension(pi: ExtensionAPI) {
477
477
  const specFile = `spec-${ts}.md`;
478
478
  await writeFile(join(plansDir, specFile), `# ${description}\n\n**Created:** ${new Date().toLocaleString()}\n`, "utf-8");
479
479
 
480
- ctx.ui.notify(`๐Ÿ“‹ Plan created. Executing with agents...`, "info");
481
-
482
- // Load agent definitions for system prompts
483
- const agentDefs = loadAgentDefs();
484
- const phases = [
485
- { agent: "explore", label: "๐Ÿ” Exploring", instruction: `Analyze the project requirements and existing codebase. Identify what exists, what's needed, and any constraints.\n\nProject: ${description}` },
486
- { agent: "plan", label: "๐Ÿ“ Planning", instruction: `Design the architecture, file structure, and implementation approach.\n\nProject: ${description}` },
487
- { agent: "code", label: "๐Ÿ’ป Coding", instruction: `Implement the complete project. Create ALL necessary files with production-quality code.\n\nProject: ${description}\n\nCreate every file needed. Do NOT leave placeholders or TODOs. Complete implementation.` },
488
- { agent: "test", label: "๐Ÿงช Testing", instruction: `Test the implementation. Run the code, check for errors, verify it works.\n\nProject: ${description}` },
489
- { agent: "review", label: "๐Ÿ” Reviewing", instruction: `Review code quality, security, and performance. Fix any issues found.\n\nProject: ${description}` },
490
- ];
491
-
492
- // Execute each phase sequentially using sendUserMessage + waitForIdle
493
- for (const phase of phases) {
494
- const agentDef = agentDefs.get(phase.agent);
495
- const systemPromptNote = agentDef?.systemPrompt
496
- ? `\n\n[Agent: ${phase.agent}] ${agentDef.systemPrompt.slice(0, 200)}`
497
- : "";
498
-
499
- ctx.ui.notify(`\n${phase.label} (agent: ${phase.agent})...`, "info");
500
-
501
- pi.sendUserMessage(phase.instruction + systemPromptNote, { deliverAs: "followUp" });
502
- await ctx.waitForIdle();
503
- }
480
+ ctx.ui.notify(`๐Ÿ“‹ Executing project with agent workflow...`, "info");
481
+
482
+ // Build a single comprehensive prompt with all agent phases
483
+ const prompt = `# Project: ${description}
484
+
485
+ ## Your workflow (follow these phases in order):
486
+
487
+ ### Phase 1 โ€” ๐Ÿ” EXPLORE
488
+ Analyze the project requirements and any existing codebase. List what exists, what's needed, and constraints.
489
+
490
+ ### Phase 2 โ€” ๐Ÿ“ PLAN
491
+ Design the architecture, file structure, and tech choices. Be specific about file names and structure.
492
+
493
+ ### Phase 3 โ€” ๐Ÿ’ป CODE
494
+ Implement EVERYTHING. Create ALL files with complete, production-quality code. No placeholders, no TODOs, no "implement later". Every file must be fully functional.
495
+
496
+ ### Phase 4 โ€” ๐Ÿงช TEST
497
+ Run the code. Verify it works. Fix any errors you find.
498
+
499
+ ### Phase 5 โ€” ๐Ÿ” REVIEW
500
+ Check code quality. Fix any issues. Ensure everything is polished.
501
+
502
+ ## Rules
503
+ - Complete ALL 5 phases in this turn
504
+ - Create every file needed for a working project
505
+ - Announce each phase as you start it (e.g. "## Phase 1 โ€” Exploring...")
506
+ - Do NOT stop after planning โ€” implement everything`;
504
507
 
505
- ctx.ui.notify(`\nโœ… **Project complete!** Plan: \`${specFile}\``, "info");
508
+ ctx.ui.pasteToEditor(prompt);
506
509
  },
507
510
  });
508
511
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phi-code-admin/phi-code",
3
- "version": "0.61.10",
3
+ "version": "0.62.0",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "piConfig": {