oharms

Pan Counterfactual — Development agent for Claude Code

Development community

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

Terminal
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 Repository