pan-wizard 3.8.0 → 3.10.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.
Files changed (49) hide show
  1. package/README.md +4 -1
  2. package/agents/pan-conductor.md +1 -2
  3. package/agents/pan-counterfactual.md +1 -2
  4. package/agents/pan-debugger.md +1 -2
  5. package/agents/pan-distiller.md +1 -2
  6. package/agents/pan-document_code.md +1 -0
  7. package/agents/pan-executor.md +1 -0
  8. package/agents/pan-experiment-runner.md +1 -2
  9. package/agents/pan-hardener.md +1 -2
  10. package/agents/pan-integration-checker.md +1 -2
  11. package/agents/pan-knowledge.md +1 -2
  12. package/agents/pan-meta-reviewer.md +1 -2
  13. package/agents/pan-optimizer.md +1 -0
  14. package/agents/pan-phase-researcher.md +1 -0
  15. package/agents/pan-plan-checker.md +1 -2
  16. package/agents/pan-planner.md +1 -0
  17. package/agents/pan-previewer.md +1 -2
  18. package/agents/pan-project-researcher.md +6 -0
  19. package/agents/pan-research-synthesizer.md +7 -0
  20. package/agents/pan-reviewer.md +2 -3
  21. package/agents/pan-roadmapper.md +1 -0
  22. package/agents/pan-verifier.md +1 -2
  23. package/bin/install-lib.cjs +661 -46
  24. package/bin/install.js +722 -116
  25. package/commands/pan/experiment.md +2 -0
  26. package/commands/pan/profile.md +2 -0
  27. package/hooks/dist/pan-cost-logger.js +22 -7
  28. package/package.json +5 -4
  29. package/pan-wizard-core/bin/lib/commands-learnings.cjs +544 -0
  30. package/pan-wizard-core/bin/lib/commands.cjs +12 -523
  31. package/pan-wizard-core/bin/lib/core.cjs +69 -0
  32. package/pan-wizard-core/bin/lib/cost.cjs +62 -8
  33. package/pan-wizard-core/bin/lib/git.cjs +6 -1
  34. package/pan-wizard-core/bin/lib/lock.cjs +108 -0
  35. package/pan-wizard-core/bin/lib/milestone.cjs +3 -2
  36. package/pan-wizard-core/bin/lib/phase-remove.cjs +392 -0
  37. package/pan-wizard-core/bin/lib/phase.cjs +4 -369
  38. package/pan-wizard-core/bin/lib/runner.cjs +5 -0
  39. package/pan-wizard-core/bin/lib/state.cjs +10 -1
  40. package/pan-wizard-core/bin/lib/verify-deploy.cjs +181 -0
  41. package/pan-wizard-core/bin/lib/verify-drift.cjs +255 -0
  42. package/pan-wizard-core/bin/lib/verify-preflight.cjs +261 -0
  43. package/pan-wizard-core/bin/lib/verify-retro.cjs +177 -0
  44. package/pan-wizard-core/bin/lib/verify.cjs +10 -797
  45. package/pan-wizard-core/bin/pan-tools.cjs +10 -0
  46. package/pan-wizard-core/workflows/plan-phase.md +11 -0
  47. package/scripts/build-plugin.js +105 -0
  48. package/scripts/install-git-hooks.js +64 -0
  49. package/scripts/release-check.js +13 -2
package/README.md CHANGED
@@ -117,7 +117,7 @@ npx pan-wizard --claude --local # Install to ./.claude/
117
117
  # OpenCode (open source, free models)
118
118
  npx pan-wizard --opencode --global # Install to ~/.config/opencode/
119
119
 
120
- # Gemini CLI
120
+ # Gemini CLI (enterprise — see note below)
121
121
  npx pan-wizard --gemini --global # Install to ~/.gemini/
122
122
 
123
123
  # Codex (skills-first)
@@ -134,6 +134,9 @@ npx pan-wizard --all --global # Install to all directories
134
134
 
135
135
  Use `--global` (`-g`) or `--local` (`-l`) to skip the location prompt.
136
136
  Use `--claude`, `--opencode`, `--gemini`, `--codex`, `--copilot`, or `--all` to skip the runtime prompt.
137
+ Add `--unified-skills` to install commands as one shared `.agents/skills/` tree read natively by every runtime (and Antigravity CLI) instead of per-runtime formats — see the User Guide for details.
138
+
139
+ > **Gemini CLI note:** from June 18, 2026, Google's Gemini CLI serves Gemini Code Assist (Standard/Enterprise) customers; individual free / AI Pro / Ultra accounts are directed to Antigravity CLI instead. PAN's `--gemini` target installs for Gemini CLI. Antigravity CLI is not yet a PAN install target, but it reads the shared `.agents/skills/` tree natively — install with `--unified-skills` and PAN's commands are usable from Antigravity in the same project.
137
140
 
138
141
  </details>
139
142
 
@@ -3,8 +3,7 @@ name: pan-conductor
3
3
  description: Hierarchical orchestrator for /pan:exec-phase --hierarchical. Decomposes a phase, spawns sub-agents in sequence (executors, reviewers, verifiers), tracks audit trail via bus.cjs, enforces safety caps. Claude + Opus 4.7 only.
4
4
  tools: Read, Write, Bash, Glob, Grep, Task
5
5
  color: orange
6
- thinking: enabled
7
- thinking_budget: 8000
6
+ effort: xhigh
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,8 +3,7 @@ name: pan-counterfactual
3
3
  description: Explores a phase's alternative scenario in an isolated git worktree, compares against the original plan, and produces a structured report. Destructive-operation gated. Spawned by /pan:what-if.
4
4
  tools: Read, Write, Edit, Bash, Grep, Glob
5
5
  color: purple
6
- thinking: enabled
7
- thinking_budget: 6000
6
+ effort: high
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,8 +3,7 @@ name: pan-debugger
3
3
  description: Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by /pan:debug orchestrator.
4
4
  tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch
5
5
  color: orange
6
- thinking: enabled
7
- thinking_budget: 8000
6
+ effort: xhigh
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,8 +3,7 @@ name: pan-distiller
3
3
  description: AI code-bloat detection and rewrite agent. Receives flagged code spans, classifies them by safety tier, and proposes minimal rewrites that preserve behavior.
4
4
  tools: Read, Grep, Glob
5
5
  color: cyan
6
- thinking: enabled
7
- thinking_budget: 4000
6
+ effort: medium
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,6 +3,7 @@ name: pan-document_code
3
3
  description: Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, arch, quality, concerns, relationships, practices). Writes documents directly to reduce orchestrator context load.
4
4
  tools: Read, Bash, Grep, Glob, Write
5
5
  color: cyan
6
+ effort: low
6
7
  ---
7
8
 
8
9
  <role>
@@ -3,6 +3,7 @@ name: pan-executor
3
3
  description: Executes PAN plans with atomic commits, deviation handling, checkpoint protocols, and state management. Spawned by execute-phase orchestrator or execute-plan command.
4
4
  tools: Read, Write, Edit, Bash, Grep, Glob
5
5
  color: yellow
6
+ effort: high
6
7
  ---
7
8
 
8
9
  <role>
@@ -3,8 +3,7 @@ name: pan-experiment-runner
3
3
  description: Drives an external AI coding session against an experiment folder. Observation-only — read-only relative to PAN source; writes only to the experiment folder's .planning/. Spawns the external runtime, watches its progress, decides when to declare the run done / failed / timed out. Used by the v3.7.0 self-improvement loop.
4
4
  tools: Read, Bash, Glob, Grep
5
5
  color: orange
6
- thinking: enabled
7
- thinking_budget: 6000
6
+ effort: high
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,8 +3,7 @@ name: pan-hardener
3
3
  description: Security audit agent — OWASP Top 10 + STRIDE threat modeling across files changed in a phase. Read-only. Spawned by /pan:review-deep.
4
4
  tools: Read, Grep, Glob, Bash
5
5
  color: red
6
- thinking: enabled
7
- thinking_budget: 6000
6
+ effort: high
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,8 +3,7 @@ name: pan-integration-checker
3
3
  description: Verifies cross-phase integration and E2E flows. Checks that phases connect properly and user workflows complete end-to-end.
4
4
  tools: Read, Bash, Grep, Glob
5
5
  color: blue
6
- thinking: enabled
7
- thinking_budget: 6000
6
+ effort: high
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,8 +3,7 @@ name: pan-knowledge
3
3
  description: Knowledge agent for grounded Q&A, multi-turn discussion, and playbook generation. Single agent, three modes (ask/discuss/playbook). Spawned by /pan:knowledge.
4
4
  tools: Read, Grep, Glob, Bash, Write
5
5
  color: cyan
6
- thinking: enabled
7
- thinking_budget: 4000
6
+ effort: medium
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,8 +3,7 @@ name: pan-meta-reviewer
3
3
  description: Reviews the reviewer + hardener output. Flags things both missed, disputes findings that look overstated, and surfaces conflicts for human resolution. Spawned by /pan:review-deep.
4
4
  tools: Read, Grep, Glob, Bash
5
5
  color: magenta
6
- thinking: enabled
7
- thinking_budget: 4000
6
+ effort: medium
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,6 +3,7 @@ name: pan-optimizer
3
3
  description: Circular optimization analyst. Reads execution trace data, identifies error/gap/redundancy patterns, and produces a structured optimization report with auto-applicable memory entries and manual review suggestions.
4
4
  tools: Read, Glob, Grep
5
5
  color: cyan
6
+ effort: high
6
7
  ---
7
8
 
8
9
  <role>
@@ -3,6 +3,7 @@ name: pan-phase-researcher
3
3
  description: Researches how to implement a phase before planning. Produces research.md consumed by pan-planner. Spawned by /pan:plan-phase orchestrator.
4
4
  tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*
5
5
  color: cyan
6
+ effort: medium
6
7
  ---
7
8
 
8
9
  <role>
@@ -3,8 +3,7 @@ name: pan-plan-checker
3
3
  description: Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by /pan:plan-phase orchestrator.
4
4
  tools: Read, Bash, Glob, Grep
5
5
  color: green
6
- thinking: enabled
7
- thinking_budget: 8000
6
+ effort: xhigh
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,6 +3,7 @@ name: pan-planner
3
3
  description: Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /pan:plan-phase orchestrator.
4
4
  tools: Read, Write, Bash, Glob, Grep, WebFetch, mcp__context7__*
5
5
  color: green
6
+ effort: xhigh
6
7
  ---
7
8
 
8
9
  <role>
@@ -3,8 +3,7 @@ name: pan-previewer
3
3
  description: Read-only foresight agent. Given a phase, set of phases, or milestone, produces a structured forecast (blast radius, dependency graph, ETA). Spawned by /pan:preview.
4
4
  tools: Read, Bash, Glob, Grep, Write
5
5
  color: cyan
6
- thinking: enabled
7
- thinking_budget: 6000
6
+ effort: high
8
7
  ---
9
8
 
10
9
  <role>
@@ -3,6 +3,7 @@ name: pan-project-researcher
3
3
  description: Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /pan:new-project or /pan:milestone-new orchestrators.
4
4
  tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*
5
5
  color: cyan
6
+ effort: medium
6
7
  ---
7
8
 
8
9
  <role>
@@ -13,6 +14,11 @@ Answer "What does this domain ecosystem look like?" Write research files in `.pl
13
14
  **CRITICAL: Mandatory Initial Read**
14
15
  If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool to load every file listed there before performing any other actions. This is your primary context.
15
16
 
17
+ **CRITICAL: Write output files directly with the Write tool.** Never create
18
+ helper scripts, temp files, or scratch artifacts inside `.planning/` — the
19
+ synthesizer commits everything in research/, so any litter ships into the
20
+ project history.
21
+
16
22
  Your files feed the roadmap:
17
23
 
18
24
  | File | How Roadmap Uses It |
@@ -3,6 +3,7 @@ name: pan-research-synthesizer
3
3
  description: Synthesizes research outputs from parallel researcher agents into summary.md. Spawned by /pan:new-project after 4 researcher agents complete.
4
4
  tools: Read, Write, Bash
5
5
  color: purple
6
+ effort: medium
6
7
  ---
7
8
 
8
9
  <role>
@@ -24,6 +25,12 @@ If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool t
24
25
  - Identify confidence levels and gaps
25
26
  - Write summary.md
26
27
  - Commit ALL research files (researchers write but don't commit — you commit everything)
28
+
29
+ **CRITICAL: Write output files directly with the Write tool.** Never create
30
+ helper scripts, temp files, or scratch artifacts inside `.planning/` — your
31
+ commit step commits everything in research/, so any litter ships into the
32
+ project history. If you must use Bash for anything transient, do it outside
33
+ `.planning/` and clean up before committing.
27
34
  </role>
28
35
 
29
36
  <downstream_consumer>
@@ -3,8 +3,7 @@ name: pan-reviewer
3
3
  description: Read-only code review agent. Checks convention compliance, security patterns, and code quality for files changed during phase execution.
4
4
  tools: Read, Grep, Glob, Bash
5
5
  color: yellow
6
- thinking: enabled
7
- thinking_budget: 4000
6
+ effort: medium
8
7
  ---
9
8
 
10
9
  <role>
@@ -111,6 +110,6 @@ Return a structured review report:
111
110
  <constraints>
112
111
  - READ-ONLY: Never use Edit or Write tools. You inspect, you do not modify.
113
112
  - SCOPE: Only review files listed in the prompt or found in summary.md key-files sections.
114
- - FOCUS: Report real issues, not style preferences. Every finding must cite file and line.
113
+ - COVERAGE: Report every finding you identify, including ones you are uncertain about or judge low-severity — assign each the correct tier (ERROR / WARNING / INFO) rather than dropping it. Pure style preferences with no correctness or consistency impact belong in INFO, not omitted. Your job at this stage is coverage; the severity tiers, the verdict, and the downstream meta-reviewer (`/pan:review-deep`, which disputes overstated findings and removes duplicates) are the filter. It is better to surface a finding that later gets downgraded than to silently drop a real issue. Every finding must cite file and line.
115
114
  - EFFICIENCY: Skip files that are purely documentation (.md) unless they contain code blocks.
116
115
  </constraints>
@@ -3,6 +3,7 @@ name: pan-roadmapper
3
3
  description: Creates project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Spawned by /pan:new-project orchestrator.
4
4
  tools: Read, Write, Bash, Glob, Grep
5
5
  color: purple
6
+ effort: high
6
7
  ---
7
8
 
8
9
  <role>
@@ -3,8 +3,7 @@ name: pan-verifier
3
3
  description: Verifies phase goal achievement through goal-backward analysis. Checks codebase delivers what phase promised, not just that tasks completed. Creates verification.md report.
4
4
  tools: Read, Write, Bash, Grep, Glob
5
5
  color: green
6
- thinking: enabled
7
- thinking_budget: 6000
6
+ effort: high
8
7
  ---
9
8
 
10
9
  <role>