MakerChecker
secondmate is a Claude Code plugin that makes your AI coding agent check its own work with a second opinion.
The SOP
Maker is not checker
When an agent writes code, the same agent usually reviews it, so it misses its own mistakes. secondmate splits the job in two: one agent writes the change (the maker), a different AI model reviews it (the checker), and nothing gets merged until the checker passes it, the change clears an automated safety gate, and you give the final OK.
Because the checker is a different model than the maker, it catches bugs the maker is blind to. secondmate also keeps long runs from going off the rails, remembers your decisions across restarts, and can hand hard analysis to a reasoning model on the side. Works with any coding-agent CLI.
- 01
Captain
you (human)
state intent, approve risky actions
the only merge authority
- 02
Top-level supervisor
Claude Code (Sonnet), human-facing
recognize the trigger, dispatch a fresh sub-agent-supervisor, watch for progress/staleness, relay stuck/hold situations verbatim, stay free for the next input
never runs the maker/checker/gate/hold/merge loop itself once the trigger fires
- 03
Sub-agent-supervisor
Claude Code (Sonnet), dispatched
plan, triage, orchestrate, adjudicate, integrate — the loop's stages 0-10 all run here
never writes project code itself
- 04
Planners
6 open-weight models via pi
each covers one dimension of the task in parallel
headless, edit-locked (Read/Grep/Bash, no edit/write)
- 05
Maker
Claude or pi + GLM-5.3
implement the change in an isolated worktree
works only in its own worktree
- 06
Checker
a different model (GPT-5.6-Terra)
review the diff adversarially
physically read-only, edit-locked
The loop
Stage by stage
Quick start
Run your first loop
claude plugin marketplace add eshwarvijay/secondmate
claude plugin install secondmate@secondmate
# restart Claude Code, then let it set itself up — you just approve each step:
/secondmate-doctor
Then run any change through the loop:
/loop-task add a rate limiter to the API and prove it works
secondmate spawns the maker in an isolated worktree, runs a different model as an edit-locked checker,
gates on its {verdict} plus a clean verify-gate, and asks you before anything merges. Need a quick
read-only analysis? /secondmate-reason why does this test flake only in CI?
Requirements
What you need
git, gh, python3, and (recommended) a checker harness CLI (defaults to pi).
Just run /secondmate-doctor: it detects and installs everything, asking only for your approval, and never
hands you a manual checklist.
No harness? You still get a cross-model check. secondmate falls back to a second Claude model as the checker, in-session, so the maker is still not the checker. An external harness like pi gives a stronger cross-vendor check (a different vendor, not just a different Claude model). Either way, the models need credentials only you can supply.