the-courtroom — Claude Code plugin: planning and installation
the-courtroom is a Claude Code plugin that sends Claude's implementation plan to Codex CLI for review, then runs it after approval.
MIT ★ 8 updated 2026-04-06
/plugin marketplace add anthropics/claude-plugins-community
/plugin install the-courtroom@claude-communityWhat the-courtroom does
Claude prepares the implementation plan. Codex CLI then probes it for reasoning gaps, edge cases, and architecture or security concerns. Claude answers each objection with ACCEPT, REJECT, or COMPROMISE; Codex reviews the revised plan before the user approves or rejects the verdict. An approved plan is carried out.
The workflow has seven phases, from context gathering through execution. It filters known false-positive objections and adds review priorities for bug fixes, security work, refactors, and features. Optional modes include independent plans from both models, stricter critique, and session statistics. Codex CLI must be installed and configured for the cross-examination to work.
What it helps with
- check an implementation plan for logical flaws
- spot overlooked edge cases and security concerns
- compare separate plans from Claude and Codex
- track objection acceptance across sessions
Example prompts for the agent
- Review the auth refactor plan for
src/auth.ts:/courtroom --task "refactor auth module" --files src/auth.ts - Have both models draft separate plans for this task:
/courtroom --task "describe the task" --dual-plan - Use stricter critique and execute the approved plan:
/courtroom --task "describe the task" --strict --auto-execute
How to install the-courtroom
Plugin marketplace
/plugin marketplace add anthropics/claude-plugins-community/plugin install the-courtroom@claude-communityStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about the-courtroom
How do I install the-courtroom in Claude Code?
Run /plugin marketplace add anthropics/claude-plugins-community, then /plugin install the-courtroom@claude-community. Add the marketplace first, then install the plugin.
What does the-courtroom do?
Claude drafts an implementation plan and Codex CLI challenges it. After the models review objections, the user decides whether to approve the verdict and run the plan.
Does the-courtroom require Codex CLI?
Yes. Codex CLI must be installed and configured; it handles the plan’s cross-examination.
Source text
SKILL.md · MIT
# The Courtroom Cross-model deliberation plugin for Claude Code. Claude proposes an implementation plan, Codex cross-examines it, they debate, and the verdict gets executed. Two AI models arguing so your code doesn't have to. ## Install ```bash /plugin marketplace add JustineDaveMagnaye/the-courtroom /plugin install courtroom ``` ## Usage ```bash /courtroom --task "refactor auth module" --files src/auth.ts ``` ### Flags | Flag | Description | |------|-------------| | `--task "description"` | What to plan | | `--files path,...` | Scope to specific files | | `--rounds N` | Number of debate rounds (default: 1) | | `--strict` | Harsher critique mode | | `--quick` | Fast mode (limited to 3 files) | | `--dual-plan` | Codex generates its own plan before seeing Claude's | | `--auto-execute` | Skip user approval | | `--log` | Log session statistics | | `--stats` | Show aggregated stats | ## How It Works | Role | Model | |------|-------| | Prosecution | Claude (proposes the plan) | | Cross-Examiner | Codex CLI (challenges it) | | Judge | You (approve or reject) | **7-phase workflow:** 1. **Opening Statements** - Gather context, verify Codex CLI, parse arguments 2. **Prosecution** - Claude builds a detailed implementation plan 3. **Cross-Examination** - Codex challenges the plan (logical flaws, edge cases, architecture, security) 4. **Rebuttal** - Claude responds: ACCEPT / REJECT / COMPROMISE per objection 5. **Deliberation** - Codex reviews the revised plan as neutral arbiter 6. **Verdict** - Final plan presented for approval 7. **Execution** - Approved plan gets implemented ## Key Features - **Weak Objection Catalog** - Auto-filters 27 known false-positive patterns (style bikeshedding, YAGNI, scope creep, phantom references) - **Task-Type Checklists** - Bugfix, security, refactor, and feature-specific review priorities injected into cross-examination - **Dual-Plan Mode** - Codex generates an independent plan before seeing Claude's for comparison - **Skill Discovery** - Auto-discovers relevant skills from both Claude and Codex - **Session Logging** - Tracks objection acceptance rates across sessions ## Requirements - [Claude Code](https://claude.ai/code) - [Codex CLI](https://github.com/openai/codex) installed and configured ## License MIT
© JustineDaveMagnaye · MIT · JustineDaveMagnaye/the-courtroom