pan-wizard 3.7.10 → 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.
- package/README.md +24 -2
- package/agents/pan-conductor.md +1 -2
- package/agents/pan-counterfactual.md +1 -2
- package/agents/pan-debugger.md +1 -2
- package/agents/pan-distiller.md +1 -2
- package/agents/pan-document_code.md +1 -0
- package/agents/pan-executor.md +1 -0
- package/agents/pan-experiment-runner.md +1 -2
- package/agents/pan-hardener.md +1 -2
- package/agents/pan-integration-checker.md +1 -2
- package/agents/pan-knowledge.md +1 -2
- package/agents/pan-meta-reviewer.md +1 -2
- package/agents/pan-optimizer.md +1 -0
- package/agents/pan-phase-researcher.md +1 -0
- package/agents/pan-plan-checker.md +1 -2
- package/agents/pan-planner.md +1 -0
- package/agents/pan-previewer.md +1 -2
- package/agents/pan-project-researcher.md +6 -0
- package/agents/pan-research-synthesizer.md +7 -0
- package/agents/pan-reviewer.md +2 -3
- package/agents/pan-roadmapper.md +1 -0
- package/agents/pan-verifier.md +1 -2
- package/bin/install-lib.cjs +661 -46
- package/bin/install.js +722 -116
- package/commands/pan/experiment.md +2 -0
- package/commands/pan/links.md +102 -0
- package/commands/pan/profile.md +2 -0
- package/hooks/dist/pan-cost-logger.js +22 -7
- package/package.json +5 -4
- package/pan-wizard-core/bin/lib/codebase.cjs +2 -0
- package/pan-wizard-core/bin/lib/commands-learnings.cjs +544 -0
- package/pan-wizard-core/bin/lib/commands.cjs +12 -523
- package/pan-wizard-core/bin/lib/core.cjs +69 -0
- package/pan-wizard-core/bin/lib/cost.cjs +62 -8
- package/pan-wizard-core/bin/lib/experiment.cjs +1 -0
- package/pan-wizard-core/bin/lib/git.cjs +6 -1
- package/pan-wizard-core/bin/lib/links.cjs +549 -0
- package/pan-wizard-core/bin/lib/lock.cjs +108 -0
- package/pan-wizard-core/bin/lib/milestone.cjs +3 -2
- package/pan-wizard-core/bin/lib/phase-remove.cjs +392 -0
- package/pan-wizard-core/bin/lib/phase.cjs +4 -369
- package/pan-wizard-core/bin/lib/runner.cjs +6 -0
- package/pan-wizard-core/bin/lib/state.cjs +10 -1
- package/pan-wizard-core/bin/lib/verify-deploy.cjs +181 -0
- package/pan-wizard-core/bin/lib/verify-drift.cjs +255 -0
- package/pan-wizard-core/bin/lib/verify-preflight.cjs +261 -0
- package/pan-wizard-core/bin/lib/verify-retro.cjs +177 -0
- package/pan-wizard-core/bin/lib/verify.cjs +33 -797
- package/pan-wizard-core/bin/pan-tools.cjs +35 -1
- package/pan-wizard-core/workflows/plan-phase.md +11 -0
- package/scripts/build-plugin.js +105 -0
- package/scripts/git-hooks/pre-commit +40 -0
- package/scripts/install-git-hooks.js +64 -0
- 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
|
|
|
@@ -451,6 +454,24 @@ The orchestrator never does heavy lifting. It spawns agents, waits, integrates r
|
|
|
451
454
|
|
|
452
455
|
**The result:** You can run an entire phase — deep research, multiple plans created and verified, thousands of lines of code written across parallel executors, automated verification against goals — and your main context window stays at 30-40%. The work happens in fresh subagent contexts. Your session stays fast and responsive.
|
|
453
456
|
|
|
457
|
+
### Reasoning-Trace Handoff
|
|
458
|
+
|
|
459
|
+
When agents hand work off via files, only OUTPUTS get passed by default — not the reasoning that produced them. Per Cognition's "Don't build multi-agents" research (June 2025), silent decisions force downstream agents to reconcile contradictions blindly. PAN passes the reasoning explicitly:
|
|
460
|
+
|
|
461
|
+
- Plans carry a `## Plan Decisions` section (Locked / Open / Considered+rejected buckets) — the executor reads it before coding so it doesn't re-argue settled choices.
|
|
462
|
+
- Summaries carry an `## Implementation Decisions` section — the verifier reads it to understand WHY the executor deviated from the plan, not just THAT it did.
|
|
463
|
+
|
|
464
|
+
The plan-checker enforces this with two dedicated dimensions (Spec Sufficiency for Handoff, Decision Trace Completeness). Schema lives in `pan-wizard-core/references/handoff-decisions.md`.
|
|
465
|
+
|
|
466
|
+
### Self-Improving Learnings
|
|
467
|
+
|
|
468
|
+
PAN runs autonomous experiments in isolated folders, harvests the resulting telemetry, and promotes generalizable findings into a shipped patterns store at `pan-wizard-core/learnings/`:
|
|
469
|
+
|
|
470
|
+
- `learnings/universal/<topic>.md` — patterns that ship to every install (atomic-state, concurrency, idempotency, secret-handling, test-patterns, …). Loaded by planner / executor / verifier agents during their work.
|
|
471
|
+
- `learnings/internal/<topic>.md` — PAN-development patterns; source-only (stripped at install).
|
|
472
|
+
- `learnings/index.json` — topic→agent-relevance map. Workflows call `pan-tools learn topics-for --agent <role> --token-budget N` to load only relevant patterns instead of skim-everything (avoids the distractor-density anti-pattern).
|
|
473
|
+
- `pan-tools learn lint` — integrity check (duplicate IDs, dangling refs, scope leaks). Wired into `/check`.
|
|
474
|
+
|
|
454
475
|
### Atomic Git Commits
|
|
455
476
|
|
|
456
477
|
Each task gets its own commit immediately after completion:
|
|
@@ -553,7 +574,8 @@ PAN is not a replacement for your IDE or AI agent — it's the orchestration lay
|
|
|
553
574
|
| `/pan:todo-check` | List pending todos |
|
|
554
575
|
| `/pan:debug [desc]` | Systematic debugging with persistent state |
|
|
555
576
|
| `/pan:quick [--full]` | Execute ad-hoc task with PAN guarantees (`--full` adds plan-checking and verification) |
|
|
556
|
-
| `/pan:health [--repair] [--standards]` | Validate `.planning/` directory integrity
|
|
577
|
+
| `/pan:health [--repair] [--standards] [--full] [--drift] [--links]` | Validate `.planning/` directory integrity. `--repair` auto-fixes; `--standards` checks compliance; `--full` runs tests + build; `--drift` runs convention drift; `--links` attaches doc-code link-graph summary |
|
|
578
|
+
| `/pan:links [--strict]` | Validate the doc-code link graph: inline `[[<id>]]` refs, `// @pan:` source anchors, `require-code-mention` contracts (ADR-0027, v3.8.0+) |
|
|
557
579
|
| `/pan:phase-tests [N]` | Generate tests for a completed phase based on UAT criteria |
|
|
558
580
|
| `/pan:milestone-cleanup` | Archive accumulated phase directories from completed milestones |
|
|
559
581
|
| `/pan:retro` | Milestone retrospective — estimation accuracy, verification patterns, gap analysis |
|
package/agents/pan-conductor.md
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
7
|
-
thinking_budget: 6000
|
|
6
|
+
effort: high
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
<role>
|
package/agents/pan-debugger.md
CHANGED
|
@@ -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
|
-
|
|
7
|
-
thinking_budget: 8000
|
|
6
|
+
effort: xhigh
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
<role>
|
package/agents/pan-distiller.md
CHANGED
|
@@ -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
|
-
|
|
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>
|
package/agents/pan-executor.md
CHANGED
|
@@ -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
|
-
|
|
7
|
-
thinking_budget: 6000
|
|
6
|
+
effort: high
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
<role>
|
package/agents/pan-hardener.md
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
7
|
-
thinking_budget: 6000
|
|
6
|
+
effort: high
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
<role>
|
package/agents/pan-knowledge.md
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
7
|
-
thinking_budget: 4000
|
|
6
|
+
effort: medium
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
<role>
|
package/agents/pan-optimizer.md
CHANGED
|
@@ -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
|
-
|
|
7
|
-
thinking_budget: 8000
|
|
6
|
+
effort: xhigh
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
<role>
|
package/agents/pan-planner.md
CHANGED
|
@@ -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>
|
package/agents/pan-previewer.md
CHANGED
|
@@ -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
|
-
|
|
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>
|
package/agents/pan-reviewer.md
CHANGED
|
@@ -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
|
-
|
|
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
|
-
-
|
|
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>
|
package/agents/pan-roadmapper.md
CHANGED
|
@@ -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>
|
package/agents/pan-verifier.md
CHANGED
|
@@ -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
|
-
|
|
7
|
-
thinking_budget: 6000
|
|
6
|
+
effort: high
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
<role>
|