Consolidates three codebases into a single agent orchestration repo: - agentci (from go-scm): Clotho dual-run verification, agent config, SSH security (sanitisation, secure commands, token masking) - jobrunner (from go-scm): Poll-dispatch-report pipeline with 7 handlers (dispatch, completion, auto-merge, publish draft, dismiss reviews, send fix command, tick parent epic) - plugins marketplace (from agentic/plugins): 27 Claude/Codex/Gemini plugins with shared MCP server All 150+ tests passing across 6 packages. Co-Authored-By: Virgil <virgil@lethean.io>
2.4 KiB
2.4 KiB
Codex ↔ Claude Integration Plan (Local MCP)
Objective
Enable Codex and Claude plugins to interoperate via local MCP servers, allowing shared tools, shared ethics modal enforcement, and consistent workflows across both systems.
Principles
- Ethics‑first: Axioms of Life modal is enforced regardless of entry point.
- MCP‑first: Prefer MCP tools over shell execution.
- Least privilege: Only expose required tools and limit data surface area.
- Compatibility: Respect Claude’s existing command patterns while enabling Codex‑native features.
Architecture (Proposed)
-
Codex MCP Server
- A local MCP server exposing Codex tools:
codex_awareness,codex_overview,codex_core_cli,codex_safety- Future:
codex_review,codex_verify,codex_qa,codex_ci
- A local MCP server exposing Codex tools:
-
Claude MCP Bridge
- A small “bridge” config that allows Claude to call Codex MCP tools locally.
- Claude commands can route to Codex tools for safe, policy‑compliant output.
-
Shared Ethics Modal
- A single modal source file (
core-agent/codex/ethics/MODAL.md). - Both Codex and Claude MCP tools reference this modal in output.
- A single modal source file (
-
Tool Allow‑List
- Explicit allow‑list of MCP tools shared between systems.
- Block any tool that performs unsafe string interpolation or destructive actions.
Implementation Steps
-
Codex MCP Tool Expansion
- Add MCP tools for key workflows (review/verify/qa/ci).
-
Claude MCP Config Update
- Add a local MCP server entry pointing to the Codex MCP server.
- Wire specific Claude commands to Codex tools.
-
Command Harmonisation
- Keep command names consistent between Claude and Codex to reduce friction.
-
Testing
- Headless Gemini CLI tests for Codex tools.
- Claude plugin smoke tests for bridge calls.
-
Documentation
- Add a short “Interoperability” section in Codex README.
- Document local MCP setup steps.
Risks & Mitigations
- Hook incompatibility: Treat hooks as best‑effort; do not assume runtime support.
- Policy blocks: Avoid shell execution; use MCP tools for deterministic output.
- Surface creep: Keep tool lists minimal and audited.
Success Criteria
- Claude can call Codex MCP tools locally without shell execution.
- Ethics modal is consistently applied across both systems.
- No unsafe string handling paths in shared tools.