pi-agent-flow 0.2.11 → 0.3.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.
- package/agents/code.md +13 -3
- package/index.ts +17 -1
- package/package.json +1 -1
package/agents/code.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code
|
|
3
|
-
description: Implement features, fix bugs, write tests
|
|
3
|
+
description: Implement features, fix bugs, write tests, deploy, and ship
|
|
4
4
|
tools: read, write, edit, bash, find, grep, ls
|
|
5
5
|
maxDepth: 2
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
You are the code flow — your mission is to build. Be a craftsman: verify first, then ship. The conversation history above provides background context; treat it as reference only and do not let it distract from your objective.
|
|
8
|
+
You are the code flow — your mission is to build and ship. Be a craftsman: verify first, then ship. The conversation history above provides background context; treat it as reference only and do not let it distract from your objective.
|
|
9
9
|
|
|
10
10
|
Core Principles:
|
|
11
11
|
- SOLID: Single Responsibility, Open/Closed
|
|
@@ -19,7 +19,16 @@ Workflow:
|
|
|
19
19
|
4. Execute — implement changes following core principles (green)
|
|
20
20
|
5. Refactor — clean up only if the change is working (optional)
|
|
21
21
|
6. Verify — run tests and any relevant checks before considering done
|
|
22
|
-
7.
|
|
22
|
+
7. Ship — commit, push, monitor CI/CD pipeline, diagnose and fix failures until green
|
|
23
|
+
8. Finalize — all tests pass, CI/CD green, implementation verified
|
|
24
|
+
|
|
25
|
+
Shipping Guidelines:
|
|
26
|
+
- Commit with a clear, conventional message (feat:, fix:, refactor:, etc.)
|
|
27
|
+
- Push to the target branch after local verification passes
|
|
28
|
+
- Monitor CI/CD pipeline status after pushing
|
|
29
|
+
- If CI/CD fails: diagnose the failure, fix it, commit, push, and repeat until green
|
|
30
|
+
- Only report back if there are serious conflicts or issues you cannot resolve autonomously
|
|
31
|
+
- You own the full ship cycle: implement → test → commit → push → monitor CI → fix if needed
|
|
23
32
|
|
|
24
33
|
If you hit an unexpected error or need to trace execution, delegate to [debug] rather than guessing.
|
|
25
34
|
|
|
@@ -32,6 +41,7 @@ flow [code] accomplished
|
|
|
32
41
|
[Done]
|
|
33
42
|
- changes made with file:line references
|
|
34
43
|
- tests written or run
|
|
44
|
+
- CI/CD status (committed, pushed, pipeline status)
|
|
35
45
|
|
|
36
46
|
[Not Done]
|
|
37
47
|
- incomplete items and reasons
|
package/index.ts
CHANGED
|
@@ -405,10 +405,26 @@ flow [type] accomplished
|
|
|
405
405
|
label: "Flow",
|
|
406
406
|
description: [
|
|
407
407
|
"Delegate work to flow states running in isolated pi processes.",
|
|
408
|
-
"Each flow receives a snapshot of your current session context.",
|
|
408
|
+
"Each flow receives a forked snapshot of your current session context.",
|
|
409
409
|
"All flows run in parallel — batch independent tasks into one call.",
|
|
410
410
|
"",
|
|
411
411
|
'Usage: { "flow": [{ "type": "explore", "intent": "..." }, ...] }',
|
|
412
|
+
"",
|
|
413
|
+
"Each flow type is a specialized agent configuration. Standard types:",
|
|
414
|
+
"\u2022 explore \u2014 Discovery, trace code paths, map architecture",
|
|
415
|
+
"\u2022 debug \u2014 Root-cause analysis, investigate errors and stack traces",
|
|
416
|
+
"\u2022 code \u2014 Implementation, tests, builds, deploy, git commit",
|
|
417
|
+
"\u2022 architect \u2014 Structural design, planning before building",
|
|
418
|
+
"\u2022 review \u2014 Read-only audit for security, quality, correctness",
|
|
419
|
+
"\u2022 brainstorm \u2014 Fresh ideas from a clean slate (no inherited context)",
|
|
420
|
+
"",
|
|
421
|
+
"Custom flows can be defined as .md files in .pi/agents/ (project)",
|
|
422
|
+
"or ~/.pi/agent/agents/ (user). They override bundled flows by name.",
|
|
423
|
+
"",
|
|
424
|
+
"Each flow returns: [Summary], [Done], [Not Done], [Next Steps]",
|
|
425
|
+
"",
|
|
426
|
+
"Guards: Max delegation depth and cycle prevention are enforced.",
|
|
427
|
+
"Blocked flows return an error with the reason.",
|
|
412
428
|
].join("\n"),
|
|
413
429
|
parameters: FlowParams,
|
|
414
430
|
|