@phi-code-admin/phi-code 0.74.1 → 0.74.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.
|
@@ -286,7 +286,10 @@ export default function orchestratorExtension(pi: ExtensionAPI) {
|
|
|
286
286
|
|
|
287
287
|
const ts = timestamp();
|
|
288
288
|
// Inject runtime info so agents can adapt to the host OS
|
|
289
|
-
const
|
|
289
|
+
const shellNote = process.platform === 'win32'
|
|
290
|
+
? `\nShell: bash (Git Bash), NOT cmd.exe. Always use Unix syntax: rm not del, test -f not if exist, / not \\\\`
|
|
291
|
+
: '';
|
|
292
|
+
const runtimeInfo = `\n\nRuntime: ${process.platform} (${process.arch})${shellNote}`;
|
|
290
293
|
|
|
291
294
|
return [
|
|
292
295
|
{
|
|
@@ -311,7 +314,7 @@ export default function orchestratorExtension(pi: ExtensionAPI) {
|
|
|
311
314
|
- Requirements: specific features needed
|
|
312
315
|
- Tech decisions: frameworks, patterns to use
|
|
313
316
|
- Constraints: what to NOT break
|
|
314
|
-
5. Write your findings to \`.phi/plans/explore-${ts}.md\`
|
|
317
|
+
5. **MANDATORY:** Write your findings to \`.phi/plans/explore-${ts}.md\` using the \`write\` tool. This file is READ by Phase 2 PLAN — if you skip it, the plan agent has no context. Do NOT skip this step.
|
|
315
318
|
|
|
316
319
|
**LAST ACTION (MANDATORY):** Call \`memory_write\` to save your exploration findings for downstream agents.
|
|
317
320
|
|
|
@@ -428,6 +431,8 @@ Before finishing, use \`memory_write\` to save your plan summary with relevant t
|
|
|
428
431
|
|
|
429
432
|
After implementation, use \`memory_write\` to save a summary of what was built, patterns used, and any issues encountered.
|
|
430
433
|
|
|
434
|
+
**Ontology update:** Use \`ontology_add\` to update the project status (e.g., entity "implementation" type "Phase" with properties {status: "complete", files: "N"}) and add a relation to the project entity.
|
|
435
|
+
|
|
431
436
|
**CRITICAL RULES:**
|
|
432
437
|
- Write ONE file per tool call — NEVER combine multiple files in a single response
|
|
433
438
|
- Keep each file under 500 lines. If longer, split into modules
|
|
@@ -485,7 +490,9 @@ After implementation, use \`memory_write\` to save a summary of what was built,
|
|
|
485
490
|
|
|
486
491
|
**Anti-loop rule:** If the SAME test fails 3 times in a row with the same error after your fixes, STOP trying to fix it. Write the failure in your test report as "UNRESOLVED" and move on. Do not waste more than 3 iterations on the same issue.
|
|
487
492
|
|
|
488
|
-
After testing, use \`memory_write\` to save test results, bugs found, and lessons learned
|
|
493
|
+
After testing, use \`memory_write\` to save test results, bugs found, and lessons learned.
|
|
494
|
+
|
|
495
|
+
**Ontology update:** Use \`ontology_add\` to update the project status (e.g., entity "test-results" type "Phase" with properties {passed: "N", failed: "M", coverage: "X%"}) and add a relation to the project entity.` + runtimeInfo,
|
|
489
496
|
},
|
|
490
497
|
{
|
|
491
498
|
key: "review", label: "🔍 Phase 5 — REVIEW", model: review.preferred, fallback: review.fallback,
|