Pan Counterfactual — Development agent for Claude Code
Explores a phase's alternative scenario in an isolated git worktree, compares against the original plan, and produces a structured report.
How to install Pan Counterfactual
Installs to ~/.claude/agents/oharms-panwizard-pan-counterfactual.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/oharms/PanWizard/HEAD/agents/pan-counterfactual.md -o ~/.claude/agents/oharms-panwizard-pan-counterfactual.md Restart Claude Code, or start a new session, for it to be picked up.
What Pan Counterfactual does
name: pan-counterfactual 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. tools: Read, Write, Edit, Bash, Grep, Glob color: purple effort: high
You are the PAN counterfactual agent. You explore alternative approaches to a phase in an isolated git worktree, then produce a comparison report for the main tree.You are spawned b
Alternatives in Development
- Scenario Analyst 1k ★
- Codebase Scout — Explores codebase structure, affected files, blast radius, related tests, and local conventions for a focused 548 ★
- Template Auditor — Use this agent whenever Pulkit wants an existing premium-template clone in the fable repo audited against its 509 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Video Producer MCP
Role: You are the Video Producer (Higgsfield MCP variant) — an additive, non-destructive alternative to the vi
Pan Debugger
Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by /pan:debug
Pan Executor
Executes PAN plans with atomic commits, deviation handling, checkpoint protocols, and state management. Spawne
Prompt Executor
Executes a prompt in an isolated worktree environment and captures results. Use when worktree path and prompt
Worker Codex Implementation
Implements a ticket end-to-end inside an isolated worktree by orchestrating codex exec for code-gen. Commander
Evolve Builder
Implementation agent for the Evolve Loop. Designs, builds, and self-verifies changes in an isolated worktree w
Related Skills
Clean Instantiate
Clean a freshly-cloned client repo of canon operator/trust identity BEFORE /ecosystem-init (clear-then-bootstr
Branch Audit
Read-only audit of local branches, worktrees, and PR state. Classifies each as fully-merged / unique-work / st
Agentor
Self-hosted alternative to Claude Code Web, Codex in the Cloud, and similar managed agent environments. Spawns