Skip to main content
Glama
Ryen-LTC

codex-subagent-for-claude

codex_review

Read-only

Reviews code changes via Codex's built-in review mode, returning severity-sorted defects with file line numbers. Choose scope: uncommitted, branch diff, commit, or custom.

Instructions

用 Codex 内置的代码审查模式(等价于 codex review)审查改动,固定只读、以找缺陷为主,返回按严重度排序、带文件行号的问题列表。scope=uncommitted 审工作区未提交改动;base_branch 审当前分支相对基准分支的改动(value=分支名);commit 审某个提交(value=sha);custom 按自定义说明审(value=说明)。异步/等待语义同 codex_spawn,也返回任务 id。想让 Codex 改代码用 codex_spawn,只想让它挑毛病用这个。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNogit 仓库目录(绝对路径),默认当前目录
modelNo仅用户明确指定时填
scopeNo审查范围,默认 uncommitted
valueNoscope 对应的值:分支名 / commit sha / 自定义审查说明;uncommitted 不需要
detachNotrue = 不关心结果,Claude 结束回合时不等它
wait_sNo先同步等待的秒数,审查通常 1~3 分钟;0 立即返回

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.2.3
    • changedInput schema / properties / cwd / description
      Previous value: -"仓库目录(绝对路径),默认当前目录"New value: +"git 仓库目录(绝对路径),默认当前目录"
    • addedInput schema / properties / detach / description
      Added value: +"true = 不关心结果,Claude 结束回合时不等它"
    • addedInput schema / properties / model / description
      Added value: +"仅用户明确指定时填"
    • changedInput schema / properties / scope / description
      Previous value: -"默认 uncommitted"New value: +"审查范围,默认 uncommitted"
    • changedInput schema / properties / value / description
      Previous value: -"分支名 / commit sha / 自定义审查说明"New value: +"scope 对应的值:分支名 / commit sha / 自定义审查说明;uncommitted 不需要"
    • changedInput schema / properties / wait_s / description
      Previous value: -"先同步等待的秒数,审查通常 1~3 分钟"New value: +"先同步等待的秒数,审查通常 1~3 分钟;0 立即返回"
  2. First observedv0.2.1

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces that with 固定只读 and adds value beyond them: defect-focused output, severity-sorted results with file:line, async/wait semantics identical to codex_spawn, and a task id return. Timing context (审查通常 1~3 分钟) is also supplied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core purpose and return shape, then enumerates scopes, then the sibling routing. Dense but every clause carries information; only the repeated scope enumeration overlaps slightly with the enum in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly compensates by describing the return (severity-sorted, file:line issue list) and the async task-id behavior. It is complete enough for an agent to call it correctly without opening the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the scope→value mapping (分支名 / sha / 自定义说明) and the note that uncommitted needs no value. It does not explain detach's relationship to the async task id, leaving one minor gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (审查改动 via Codex 内置审查模式), the mode's character (固定只读、以找缺陷为主), and the return shape (按严重度排序、带文件行号的问题列表). It explicitly distinguishes itself from the sibling codex_spawn by intent (改代码 vs 挑毛病).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use codex_spawn to change code, use this only to find faults. It also breaks down when to pick each scope value (uncommitted/base_branch/commit/custom) with the value semantics for each, so the agent can select without inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.