Marketplace for the codex-reflector Claude Code plugin — independent second-model reviewer using OpenAI Codex CLI
npx claudepluginhub outlinedriven/odin-reflectorCodex CLI reflector — independent critic, oracle, and metacognition layer
Independent critic, oracle, and metacognition layer for Claude Code using OpenAI Codex CLI.
Claude Code acts. Codex reviews. Every code change gets a second opinion. Every thinking step gets metacognitive reflection from a different model family.
codex exec must work)claude plugin marketplace add OutlineDriven/odin-reflector; claude plugin install codex-reflector@odin-reflector
| Event | Trigger | Mode | Purpose |
|---|---|---|---|
| PostToolUse | Write, Edit, morph-edit | async | Code review with PASS/FAIL/UNCERTAIN verdict |
| PostToolUse | sequential-thinking, actor-critic, shannon | sync | Metacognitive reflection (advisory, no verdict) |
| PostToolUseFailure | Bash | async | Root cause diagnosis for failed commands |
| Stop | Agent finishing | sync | Blocks if unresolved FAIL reviews exist |
| PreCompact | Context compaction | sync | Summarizes critical session context |
| Variable | Default | Description |
|---|---|---|
CODEX_REFLECTOR_ENABLED | 1 | Set to 0 to disable all hooks |
CODEX_REFLECTOR_MODEL | (codex default) | Override model for codex exec |
CODEX_REFLECTOR_DEBUG | 0 | Set to 1 for stderr diagnostics |
Place this plugin at ~/.claude/codex-reflector/ and restart Claude Code.
~/.claude/codex-reflector/
├── .claude-plugin/plugin.json
├── hooks/hooks.json
├── scripts/codex-reflector.py
├── LICENSE
├── README.md
└── .gitignore
After Write/Edit tool calls, Codex reviews the change in a read-only sandbox. The verdict (PASS/FAIL/UNCERTAIN) and full opinion are delivered as a systemMessage on the next conversation turn. Codex's opinions are always returned regardless of verdict.
FAIL verdicts are tracked in a state file. The Stop hook prevents Claude from finishing until all FAILs are resolved.
After each thinking MCP tool step (sequential-thinking, actor-critic, shannon), Codex provides immediate metacognitive observations: coherence checks, blind spots, overlooked alternatives, logical gaps. Advisory only — no PASS/FAIL blocking.
When Bash commands fail, Codex diagnoses root cause and suggests remediation steps.
Before context compaction, Codex reads the session transcript tail and produces a summary of key decisions, unresolved issues, current task state, and important file paths.
The parser extracts PASS/FAIL from Codex's output:
**, backticks, emoji)Verdict: PASS, result=FAIL)Self-test: python3 scripts/codex-reflector.py --test-parse
exit 0 (approve). The plugin never blocks Claude due to its own failures.--sandbox read-only — it cannot modify files.stop_hook_active flag.fcntl.flock for safe concurrent writes.Apache-2.0