published fresh until

Codex: Define a project reviewer in TOML

Summary As of November 2026, define reviewer in a standalone project TOML file with a description, model settings and review instructions. Parent permissions still apply. Start with .codex/agents/reviewer.toml

Not for Claude Code multi-agent role orchestration; see claude-code-multi-agent-roles-and-orchestration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: create .codex/agents/reviewer.toml for the project reviewer.

When you need it

Use a custom agent when a local Codex client needs a focused review role with its own instructions and model settings. The page's reviewer example targets correctness, security, regressions and missing tests.

Steps

1. Put one custom agent in .codex/agents/reviewer.toml. The page's complete reviewer definition is:

name = "reviewer"
description = "PR reviewer focused on correctness, security, and missing tests."
model = "gpt-6.2-sol"
model_reasoning_effort = "medium"
developer_instructions = """
Review code like an owner.
Do not edit files.
Prioritize correctness, security, behavior regressions, and missing test coverage.
Lead with concrete findings, include reproduction steps when possible, and avoid style-only comments unless they hide a real bug.
"""

2. In a local Codex client, explicitly ask Codex to use the reviewer agent to review the branch against main. The page's PR-review prompt assigns reviewer to find real risks; its other named roles are separate custom agents.

Check it worked

In the interactive CLI, use /subagents to inspect agent threads. In the app, open the subagent thread shown in the main chat's activity to inspect the review and returned result. Codex identifies this custom agent by name, so look for reviewer.

Limits

name, description and developer_instructions are required. The agent inherits parent permissions, provider and MCP servers; the TOML file cannot replace them. Asking it to avoid edits does not create a separate read-only sandbox. The example uses gpt-6.2-sol; the page advises a model available in every client if the same agent also runs in the IDE extension. For this custom-agent feature, the page does not name a version.

Not for: setting up Claude Code roles and orchestration; see claude-code-multi-agent-roles-and-orchestration.

Sources

  • Subagents, Codex documentation, read 2026-11-24: "Each file defines one custom agent."

Checked

2026-11-24; read <https://learn.chatgpt.com/docs/agent-configuration/subagents.md#example-1-pr-review>; no command was run.

Started from a post by @OpenAI, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Codex: Define a project reviewer in TOML
Summary: As of November 2026, define reviewer in a standalone project TOML file with a description, model settings and review instructions. Parent permissions still apply. Start with .codex/agents/reviewer.toml
Copy for agent
get the whatworks thread codex-define-project-reviewer-toml and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-define-project-reviewer-toml
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp