codex-consultant

codex-consultant is an agent for Claude Code, Codex from rube-de/cc-skills. It costs 485 tokens per session (2,481 once invoked), scanned C, original, MIT.

A review assistant that asks an external coding model for another opinion on code, plans, architecture choices, and competing solutions.

In plain words
What is it for?
Use it for code reviews, plan critiques, architecture decisions, and debates between implementation approaches. It can also be used proactively after substantial code changes.
Why use it?
It helps catch problems or overlooked trade-offs before work is merged or implemented.

Agent for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also reads $CODEX_HOME. Also seen: model in frontmatter; names the TodoWrite tool; mentions Claude Code.

Part of the council plugin — 3 skills, 1 command, 7 agents shipped together

Good fit Use it for code reviews, plan critiques, architecture decisions, and debates between implementation approaches. It can also be used proactively after substantial code changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rube-de/cc-skills/codex-consultant
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/rube-de/cc-skills

Made for: Claude Code, Codex.

Or install council, the plugin that ships this one along with the rest of its 3 skills, 1 command, 7 agents.

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 codex-consultant

README.md
[![agentmods](https://agentmods.dev/badge/agents/rube-de/cc-skills/codex-consultant/github.svg)](https://agentmods.dev/agents/rube-de/cc-skills/codex-consultant)
Your own site
<a href="https://agentmods.dev/agents/rube-de/cc-skills/codex-consultant"><img src="https://agentmods.dev/badge/agents/rube-de/cc-skills/codex-consultant/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 codex-consultant

Your own site · 80×15
<a href="https://agentmods.dev/agents/rube-de/cc-skills/codex-consultant"><img src="https://agentmods.dev/badge/agents/rube-de/cc-skills/codex-consultant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 485 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,481 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. 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.00485 $0.02481
Opus 5.5 $0.00194 $0.00992
Sonnet 5.5 $0.00097 $0.00496
Haiku 4.5 $0.00049 $0.00248

Measured 1mo ago against content hash 3781e3a11522, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

codex-consultant scanned grade C with 2 findings 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 1mo 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.

- **Caveat:** `--sandbox` governs only model-generated *shell commands*. `codex exec` still loads the user's config file in full (`~/.codex/config.toml` by default, or `$CODEX_HOME/config.toml` if `CODEX_HOME` is set) —

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- **Caveat:** `--sandbox` governs only model-generated *shell commands*. `codex exec` still loads the user's config file in full (`~/.codex/config.toml` by default, or `$CODEX_HOME/config.toml` if `CODEX_HOME` is set) —
plugins/council/agents/codex-consultant.md · 195 lines

How it starts

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

You are a senior technical consultant who leverages the Codex CLI directly via Bash as an external expert for code reviews, plan critiques, and solution debates. Your role is to bridge the gap between the current implementation and external expert validation.

Codex CLI Usage

The Codex CLI (codex) is invoked directly from the command line. Key patterns:

  • --sandbox read-only enforces this agent's Report-Only contract at the CLI level. Without it, codex exec falls back to the user's global sandbox config — which may permit workspace-write or danger-full-access — letting Codex write to disk during what is supposed to be a read-only consultation. Always pass it explicitly; never rely on the caller's config.
  • -c approval_policy=never closes the escalation path --sandbox alone leaves open: sandbox mode blocks a command without approval, but if the caller's config allows the model to request approval (untrusted or on-request), a non-interactive codex exec run has no terminal to answer that prompt — it can hang waiting for input that never comes, or (depending on config) have the request silently granted. never makes blocked commands fail immediately back to the model instead, so the run can't hang and can't escalate past the sandbox. codex exec has no -a/--ask-for-approval flag (that's TUI-only); this is set via the -c config override instead.
  • Prompt-only invocations must close stdin. codex exec "<prompt>" reads stdin as a <stdin> block whenever it's a non-TTY pipe — including one that's open but has no writer, which is exactly what a spawning process (Claude Code, CI runners, other agent orchestrators) can leave behind (see openai/codex#20919, open as of this writing). With no data and no EOF, the read blocks forever. Any example below with no piped input appends </dev/null to force an immediate EOF. Examples that already pipe file/diff content (cat ... |, git diff ... |) don't need it — their stdin already reaches EOF when the upstream command finishes.
  • Caveat: --sandbox governs only model-generated shell commands. codex exec still loads the user's config file in full (~/.codex/config.toml by default, or $CODEX_HOME/config.toml if CODEX_HOME is set) — including any configured MCP servers — and MCP tool calls run through a separate channel the shell sandbox does not gate. If the caller has a write- or execute-capable MCP server enabled (a local code-exec tool, a docker-mounted filesystem server, etc.), this consultant could still mutate files or run arbitrary code via that path even with --sandbox read-only set. --ignore-user-config closes this by skipping config.toml entirely, but it also drops the caller's model/effort preference — this file deliberately leaves that choice to the caller — so it is not made the default here. Users who want full isolation can add --ignore-user-config themselves as an explicit trade-off.

Read the full file on GitHub · 195 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. 1mo ago Changed · -6 lines 3781e3a11522
  2. 3mo ago First seen · 201 lines · 485 tokens per session scan C 49b01f3c4519

Subscribe to this mod's changes

codex-consultant is an agent published in the GitHub repository rube-de/cc-skills (11 stars, last pushed 2d ago), licensed MIT. It adds 485 tokens to every session and 2,481 once invoked, about $0.0019 per session on Opus 5.5. A static security scan graded it C with 2 findings (reads agent configuration directories, unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

codex-consultant compared with agents from other repositories

codex-consultant next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-consultantrube-de/cc-skillsAgent112d agoMITC485Claude Code, Codex
project-auditoravelikiy/great_ctoAgent11718d agoMITA41Claude Code
design-advisoravelikiy/great_ctoAgent11718d agoMITA86Claude Code
legal-revieweravelikiy/great_ctoAgent11718d agoMITA52Claude Code
accounting-revieweravelikiy/great_ctoAgent11718d agoMITA52Claude Code
cms-revieweravelikiy/great_ctoAgent11718d agoMITA39Claude Code
edtech-revieweravelikiy/great_ctoAgent11718d agoMITA112Claude Code