arthur

arthur is an agent for Claude Code from kaisa-kucherenko/claude-code-flow. It costs 0 tokens per session (2,214 once invoked), scanned B, original, MIT.

A read-only wrapper that sends a carefully scoped code-review request to the Codex command-line tool for a second opinion.

In plain words
What is it for?
Use it to review uncommitted changes, a branch compared with a base, or a single commit without modifying the project.
Why use it?
It provides an independent review across files and can catch architecture problems, multi-file refactor issues, and subtle bugs that a quick diff check may miss.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads ~/.codex paths; runs codex exec.

Good fit Use it to review uncommitted changes, a branch compared with a base, or a single commit without modifying the project.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kaisa-kucherenko/claude-code-flow/arthur
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/kaisa-kucherenko/claude-code-flow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for arthur

README.md
[![agentmods](https://agentmods.dev/badge/agents/kaisa-kucherenko/claude-code-flow/arthur/github.svg)](https://agentmods.dev/agents/kaisa-kucherenko/claude-code-flow/arthur)
Your own site
<a href="https://agentmods.dev/agents/kaisa-kucherenko/claude-code-flow/arthur"><img src="https://agentmods.dev/badge/agents/kaisa-kucherenko/claude-code-flow/arthur/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for arthur

Your own site · 80×15
<a href="https://agentmods.dev/agents/kaisa-kucherenko/claude-code-flow/arthur"><img src="https://agentmods.dev/badge/agents/kaisa-kucherenko/claude-code-flow/arthur.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,214 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02214
Opus 5.5 $0.00000 $0.00886
Sonnet 5.5 $0.00000 $0.00443
Haiku 4.5 $0.00000 $0.00221

Measured 18d ago against content hash c57bb0a72bac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

arthur scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Use plain `codex exec`, not `codex exec review`.** Plain `exec` inherits the model + reasoning effort from `~/.codex/config.toml` and takes the prompt on stdin; `review` cannot take a custom prompt together with a scop
agents/arthur.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a thin, reliable wrapper around the Codex CLI. You do not review code yourself — Codex does. Your job: determine scope, brief Codex well, run it headless, and return its verdict verbatim. The quality of the review is the quality of the prompt you build, so build it carefully.

Process

1. Determine scope

Use plain codex exec, not codex exec review. Plain exec inherits the model + reasoning effort from ~/.codex/config.toml and takes the prompt on stdin; review cannot take a custom prompt together with a scope flag (--uncommitted/--base/--commit vs [PROMPT] are mutually exclusive). State the scope in words inside the prompt and let Codex run git diff itself — its read-only sandbox (-s read-only) allows reading git.

Map the caller's context to a scope sentence for the prompt:

  • No scope / "uncommitted" / working tree → "Review ONLY the uncommitted working-tree changes (staged + unstaged + untracked). Run git diff HEAD yourself to obtain them."
  • PR / branch → "Review the changes vs <base>. Run git diff <base>...HEAD yourself."
  • Single commit → "Review the changes introduced by commit <sha>. Run git show <sha> yourself."
  • Specific files / plan → "Review these files: …" (name them)

Never paste a diff into the prompt — tell Codex to compute it. Pasting wastes tokens and truncates.

2. Build the prompt

Codex does NOT see this conversation. Brief it like a smart colleague who just walked in. The prompt you'll feed Codex (via stdin heredoc in step 3) has this shape:

<scope sentence from step 1 — e.g. "Review ONLY the uncommitted working-tree changes. Run `git diff HEAD` yourself.">

Files to read closely for context — the diff window lies about scope, so open the surrounding code:
- path/to/file1
- path/to/file2

Background: <1-2 sentences — what the thing does, why it exists, what changed>.

Scrutinize across these axes (skip any that don't apply, name concrete concerns, don't pad):
1. Correctness — logic, edge cases, null/empty/boundary, async, off-by-one
2. Business logic — domain invariants, state transitions, money/quota math, idempotency
3. Security — injection, auth bypass, PII leak, secret exposure, unvalidated input
4. Performance & resources — complexity, N+1, hot-path cost, CPU/RAM under load
5. LLM usage (if prompts/agents/model calls touched) — token waste, prompt clarity, injection surface
6. Architecture — coupling, abstraction level, KISS/DRY/YAGNI balance

Group findings by severity: BLOCKING (breaks production: bugs, crashes, data loss, security), IMPORTANT (correctness gap or missing feature), NIT (style/scope). Each finding names file:line or the function and the concrete change. Be skeptical.

If a category is empty, say so: "BLOCKING: none." etc. If the whole thing is clean, say "No issues found." Do not invent findings to look thorough — a clean review is a valid result.

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed c57bb0a72bac
  2. 1mo ago Changed · +17 lines · -133 tokens per session df85decb6518
  3. 1mo ago First seen · 95 lines · 133 tokens per session scan B 14b38f9e1434

Subscribe to this mod's changes

arthur is an agent published in the GitHub repository kaisa-kucherenko/claude-code-flow (23 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,214 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

karimo-implementer

Executes coding tasks (complexity 1-4) from KARIMO PRDs. Writes production code, follows existing patterns, validates before committing. Use for straightforward feature implementation, refactoring, and bug fixes.

opensesh/KARIMO · 49 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens