pair-planning

pair-planning is a skill for Claude Code from bengous/claude-code-plugins. It costs 78 tokens per session (2,041 once invoked), scanned C, original, MIT.

A planning process in which Claude and Codex independently plan the same task, review each other’s open questions, and agree on one implementation plan. It does not write code.

In plain words
What is it for?
Use it at the start of a coding task to compare plans, resolve disagreements, and produce a shared plan for implementation.
Why use it?
It reduces the chance that one planning perspective misses an important issue before implementation begins.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the agents-bridge plugin — 6 skills shipped together

Good fit Use it at the start of a coding task to compare plans, resolve disagreements, and produce a shared plan for implementation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add bengous/claude-code-plugins
Claude Code
/plugin install agents-bridge

Made for: Claude Code.

Or install agents-bridge, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pair-planning

README.md
[![agentmods](https://agentmods.dev/badge/skills/bengous/claude-code-plugins/pair-planning/github.svg)](https://agentmods.dev/skills/bengous/claude-code-plugins/pair-planning)
Your own site
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/pair-planning"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/pair-planning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pair-planning

Your own site · 80×15
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/pair-planning"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/pair-planning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,041 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.02041
Opus 5.5 $0.00031 $0.00816
Sonnet 5.5 $0.00016 $0.00408
Haiku 4.5 $0.00008 $0.00204

Measured 14d ago against content hash 0a833ea4a62c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

pair-planning scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- No cleanup needed — each run uses a unique directory; never `rm -rf` session dirs.
agents-bridge/skills/pair-planning/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pair-Planning: symmetric plan-to-consensus with Codex

Two frontier models plan the same task independently, then converge. You (Claude) hold the session context and orchestrate; Codex is the fresh pair of eyes. The deliverable is a single agreed plan — read-only, no implementation.

All Codex round-trips go through codex-run.ts, never codex directly:

"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" start  <dir> --prompt-file <dir>/prompt-r0.md --role audit --wait 0   # start the session
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" wait   <dir>                                                          # collect a running round
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" resume <dir> --prompt-file <dir>/prompt-r<n>.md                       # continue the thread

Run each codex-run.ts command alone, as written: a ;, && or echo $? added to it asks for permission, and the envelope's status already gives the exit code.

It runs Codex read-only on one thread, replays the first round's model and effort on every resume, prints Codex's reply after a --- final message --- line, and keeps each round under <dir>/turn-<n>/ (round r0 is turn-1). Role audit runs at xhigh; pass --effort high to a resume when a round is light, or --effort max for a genuinely hard one. Planning is reasoning-heavy — don't downgrade the model tier.

Exit codes: 0 reply ready, 10 Codex still working (run wait <dir> again), 1 failed (report the envelope's error), 2 usage error.

1. Setup + launch Codex in the background

Action 0, the moment you're invoked — get Codex planning before you do, so the two plans are written in parallel and neither side anchors on the other.

  1. Create the session directory:
    "${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" new pair-planning
    
    Use the printed path literally wherever <dir> appears below — shell variables do not survive between Bash calls.
  2. Pre-flight — clarify only real blockers. Default to proceeding. Escalate with one minimal AskUserQuestion only when a genuine blocker would make the two sides plan different tasks — ambiguous objective/scope, or an irreversible high-stakes direction. Never run an upfront questionnaire. (Judgment, not a rigid gate.)
  3. Write the brief to <dir>/task.md: the user's task verbatim, needed repo context, and a short Assumptions block (scope, constraints, out of scope). Both sides plan from this identical brief, so interpretation gaps cannot resurface later as phantom OPEN-points.
  4. Write the Codex round-0 prompt to <dir>/prompt-r0.md: tell it to read <dir>/task.md, inspect the repo read-only, and produce its own independent implementation plan (files to touch, approach, risks). Anti-anchoring: round 0 points at task.md only — never reference your plan here; it does not exist for Codex yet.
  5. Start Codex from the repository being planned; --wait 0 returns at once while Codex plans:
    "${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" start <dir> --prompt-file <dir>/prompt-r0.md --role audit --wait 0
    

Read the full file on GitHub · 159 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · -3 lines 0a833ea4a62c
  2. 1mo ago Changed · +1 lines f2e8a456af41
  3. 1mo ago First seen · 161 lines · 78 tokens per session scan C 0e7e4599f7c0

Subscribe to this mod's changes

pair-planning is a skill published in the GitHub repository bengous/claude-code-plugins (5 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 2,041 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.