codex-consultant

codex-consultant is an agent for Claude Code, Codex from rube-de/cc-skills. It costs 485 tokens per session (2,522 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: hooks in frontmatter, but also runs codex exec. Also seen: model in frontmatter; names the TodoWrite tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add rube-de/cc-skills
Claude Code
/plugin install council

Made for: Claude Code, Codex.

Or install council, the plugin that ships this one along with the rest of its 3 skills, 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.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.svg" alt="Measured on agentmods" 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,522 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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.02522
Opus 5 $0.00243 $0.01261
Sonnet 5 $0.00097 $0.00504
Haiku 4.5 $0.00049 $0.00252

Measured 6d ago against content hash 49b01f3c4519, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 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 · 201 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. 6d 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 (10 stars, last pushed yesterday), licensed MIT. It adds 485 tokens to every session and 2,522 once invoked, about $0.0024 per session on Opus 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

Other agents, from other repositories

edtech-reviewer

Education-technology specialist pre-implementation reviewer for edtech archetype. Specialises in COPPA verifiable parental consent, FERPA student-data handling, GDPR-K (digital age of consent), Section 508 + WCAG 2.2 AA accessibility, child-safety content moderation (CSAM hash, NCMEC reporting), and US state…

avelikiy/great_cto · 112 tokens

adtech-privacy-reviewer

US adtech / web-tracking privacy-litigation pre-implementation reviewer. Outputs threat model TM-adtech-{slug}.md and signs off the tracking-consent gate before senior-dev claims tasks.

avelikiy/great_cto · 46 tokens

cms-reviewer

CMS / content-platform pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off SEO + a11y + content-policy decisions before senior-dev claims tasks.

avelikiy/great_cto · 39 tokens

template_decoder_agent

负责解析 Boss 给定 PPT/PPTX 模板,提取可继承的页面尺寸、母版、背景、字体、颜色、布局槽位、页眉页脚、形状和视觉规律,不复用模板无关业务内容。.

BingHanOfUESTC/open_agent_team · 57 tokens

writer_agent

负责根据概念、人物和场景纲写出完整短篇初稿,强调开头抓力、人物真实、场景质感、语言节奏和结尾余味。.

BingHanOfUESTC/open_agent_team · 44 tokens

consistency-and-history

Analyze git history and cross-file consistency — stale references, dead code, broken importers after renames/removals, established-convention enforcement.

ncoevoet/claude-review-all · 34 tokens