claude-science-codex-review
Enables Claude Science to delegate independent review or implementation tasks to the official OpenAI Codex CLI via an asynchronous queue, avoiding one-minute time limits and sandbox issues.
README
Claude Science Codex Review
A privacy-conscious, asynchronous bridge that lets Claude Science delegate an independent review or implementation task to the official OpenAI Codex CLI.
Long Codex runs execute in a macOS user LaunchAgent, outside the Claude Science sandbox. Claude Science submits a job, receives a job ID immediately, and polls short MCP calls until the job reaches a terminal state. This avoids one-minute tool limits and prevents sandbox proxy variables from breaking Codex WebSocket TLS.
Community project. It is not an official OpenAI or Anthropic integration.
What It Installs
- a Claude Science skill with reliable submit, poll, failure, and follow-up behavior;
- an MCP server exposing
codex,codex-status,codex-reply,codex-list-jobs, andcodex-cancel; - a durable local queue and host-side Codex runner;
- a macOS LaunchAgent and a read-only diagnostic command.
flowchart LR
CS["Claude Science"] --> MCP["Queue-only MCP server"]
MCP --> Q["Private local job queue"]
Q --> R["Host LaunchAgent"]
R --> CLI["Official Codex CLI"]
CLI --> Q
CS -->|"poll until terminal"| MCP
Requirements
- macOS 13 or newer (the tested installer platform)
- Claude Science with a local org skill directory
- Node.js 20 or newer; the installer prefers Claude Science's bundled Node
- the official Codex CLI, already authenticated with
codex login
No OpenAI API key is accepted, copied, or stored.
Install
git clone https://github.com/gongchen0916/claude-science-codex-review.git
cd claude-science-codex-review
./install.sh
Restart Claude Science after installation. If macOS or Claude Science asks once for access to the local Codex state directory, grant that directory access, then verify:
claude-science-codex-doctor
See the Chinese quick start for a compact walkthrough.
Use
Ask Claude Science to have Codex independently review a paper figure, statistical analysis, source tree, reproducibility package, or proposed code change. Reviews default to the Codex read-only sandbox.
The critical lifecycle is:
codexreturns ajobIdimmediately.codex-statusis called repeatedly while the job isqueued,dispatching, orrunning.- Only
completed,failed, orcanceledis a final state. - A completed result may be followed up with
codex-replyon the returned thread.
A queued job is not a review. The included skill explicitly prevents Claude Science from inventing findings or stopping before Codex returns a final agent message.
Model Names
Omitting model uses the Codex CLI default. The bridge maps the unsupported request alias gpt-5.6-codex to gpt-5.6-sol for compatible ChatGPT subscription sessions and records both requestedModel and actual model. Callers must disclose the model that actually ran.
Security
- Codex authentication remains owned by the official CLI.
- The bridge never reads Codex auth files or Claude Science credentials.
- Proxy variables are removed before the host runner starts Codex.
- Job files are local, owner-only runtime data and are never uploaded by this project.
- Installation backs up the MCP JSON and changes only the named
openai-codexentry. - A release-blocking scanner checks for tokens, private keys, email addresses, local home paths, and Claude Science organization IDs.
Read SECURITY.md for the trust boundaries and ARCHITECTURE.md for the job state model.
Troubleshooting
Start with:
claude-science-codex-doctor
Exact errors, including UnknownIssuer, stale queued jobs, missing final messages, and requested/actual model differences, are covered in TROUBLESHOOTING.md.
Uninstall
./uninstall.sh
This preserves prior MCP backups and local job history. To remove the integration and its job data:
./uninstall.sh --purge-data
Development
The runtime has no npm dependencies.
npm test
npm run test:slow
npm run security
The default suite uses a fake Codex executable and requires no network credentials. The slow suite proves a job longer than 60 seconds survives after the submitting MCP process exits.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.