Skip to Content
TaresSoftware FactoryChallenger sessions

Challenger sessions

One model writes the code, a second one argues with it. In a challenger session, Claude Code plans and builds as usual, and a second model on the same machine critiques the plan when Claude leaves plan mode and reviews every commit Claude makes. A blocking finding sends Claude back to fix and amend before it moves on.

The second model is the OpenAI Codex CLI by default, or Grok over the xAI API. It runs in the plugin’s hooks on your machine and never waits on Tares; Tares never calls it. Tares keeps each review with the session’s transcript.

There are two ways to use it:

  • On the crew: answer yes to the Codex check when tares factory crew up asks, or turn on the second check under Settings, Crew, How it works. Every builder then runs it on every commit, before the reviewer sees the pull request, and its findings land on the ticket. A pull request with a blocking finding nobody has answered shows so on Reviews.
  • In one session of your own: mark the session, as below.

Before you start

  • The Tares plugin for Claude Code.

  • For Codex: the Codex CLI, signed in. Reviews are billed to your OpenAI account.

    npm install -g @openai/codex codex login
  • For Grok instead: set the plugin option Challenger model to grok and give it an xAI API key (the option, or XAI_API_KEY in the environment). Reviews are billed to your xAI account.

Mark the session

Start Claude Code in a repo and say “make this a challenger session”, or type /tares:challenger. Claude calls the set_session_flow tool of the Tares MCP server; the plugin sees that call in the transcript and marks the session. /tares:challenger off turns it off for the rest of the session. A session that was not marked runs no challenger.

The plan gets challenged

When you approve a plan and Claude leaves plan mode, the plugin hands the plan to the second model. It critiques it for gaps, wrong architecture, scope, unhandled risks and missing verification, and tags each finding [P1] (the plan fails as written), [P2] (will cause rework) or [P3] (advice).

The critique comes back to Claude right after your approval, so Claude’s first message after the plan mentions the findings and adjusts. A plan critique never blocks: Claude is asked to revise, or to tell you why it disagrees. Codex takes 30 to 90 seconds on a plan, so that first reply is slower.

Every commit gets challenged

After each git commit, the second model reviews that commit. Then:

  • No findings: Claude carries on.
  • [P1] or [P2] findings: Claude is blocked with the findings and told to fix them and fold the fix into the same commit with git commit --amend (or a new commit when the reviewed one is already pushed). The amended commit is reviewed again, and so on until the reviewer is satisfied. Consecutive failed rounds are capped at 8 per commit and the fix loop at 5 turn ends; after that the findings come back as context instead.
  • [P3] findings: context only, never blocking.
  • A timeout, an error or an inconclusive review never blocks.

Waive what you disagree with

/tares:challenger-waive lists the blocking findings and waives one, or all (/tares:challenger-waive all). The waiver holds for that finding on later rounds and is recorded on Tares with the reviews.

Plugin options

OptionValues
Challenger mode for commitsstrict (the default): [P1] and [P2] findings block. advise: findings come back as context only.
Challenger modelcodex (the default) or grok
xAI API key, Grok modelfor grok only; the model defaults to grok-4.6. Keep a reasoning model: other models invent findings.
Codex CLI pathwhen codex is not on PATH
Codex sandboxempty for Codex’s read-only sandbox, which is enough for reviews; workspace-write or danger-full-access when Codex needs to run the project’s commands

Change them with /plugin in Claude Code, pick tares, Configure.

Living with it

  • State on your machine. Review state, the fix-loop counters, the review history and waivers live under the repo’s .git/ (tares-challenger-*), never in the working tree. touch .git/tares-challenger-skip turns the hooks off for one repo.
  • Grok gets one API call per review: the commit’s patch and the full text of each changed file, or the plan. It cannot run the project’s commands, so it reasons from the code only, and it raises minor [P2] findings often enough that advise is the calmer start.
  • Reviews come back inconclusive inside a session that is already sandboxed: set Codex sandbox to danger-full-access.

The review mechanics (post-commit review, priority-tagged findings, the blocking fix loop, plan critique) are adapted from codex-review  by Andrei David (MIT).

Last updated on