Repository navigation
Description
This repo's agent configuration is written entirely in Claude Code's dialect —
.claude/skills/, CLAUDE.md, .mcp.json, .claude/settings.json. A second
agent (Codex CLI) is now in use against the same clone and reads none of those
names, so it starts with no project instructions and no project skills. Make the
repo work with both without authoring anything twice.
Measured against Codex CLI 0.167.0, with codex debug prompt-input as the
probe — it renders exactly what Codex loaded, so every claim below is observed
rather than inferred from documentation.
What Codex does read, and so can be bridged
| Claude Code | Codex | Probe result |
|---|---|---|
.claude/skills/<n>/SKILL.md |
.agents/skills/<n>/SKILL.md |
project-relative, and it follows symlinks |
CLAUDE.md |
AGENTS.md |
CLAUDE.md appears nowhere in the binary; AGENTS.md loads as an agents_md.instructions item, through a symlink |
Both bridge as relative symlinks out of the authored tree, so a skill is written
once. What needs building is the gate: a skill added under .claude/skills/
without its .agents/ entry works in Claude Code and is invisible in Codex,
and that is a silent failure in the tool nobody is looking at. Same for a bridge
entry that forks into a real copy and then drifts.
The gate has to run ungated — detect exempts .claude/**, so a
skills-only pull request skips every compile job, which is exactly the shape of
pull request that can orphan a symlink.
What does not port, and must be said out loud
.claude/settings.json |
Codex equivalent | Why it cannot live in the repo |
|---|---|---|
.mcp.json + enabledMcpjsonServers |
[mcp_servers.*] in $CODEX_HOME/config.toml |
a project .codex/config.toml is merged — a sandbox_mode set there takes effect — but its mcp_servers table is ignored. Probed with a real stdio MCP server declared both ways: project file → the tool is absent, -c injection → present. So the aws read-only server reaches Codex only per developer. |
hooks (the aws-write-guard PreToolUse guard on aws/terraform/kubectl/helm) |
$CODEX_HOME/hooks.json |
neither .codex/hooks.json nor .agents/hooks.json fires from a project directory. Those path strings exist in the binary only inside its Claude-Code migration reader, which imports into $CODEX_HOME. |
permissions.deny (pkill, killall, destructive aws) |
sandbox_mode / approval_policy |
no per-command deny list exists; the sandbox is the whole lever. |
enabledPlugins |
codex plugin |
per developer — the binary carries repository-scoped plugin migration is not allowed. |
A deliverable is therefore a one-command sync for the MCP servers that derives
from .mcp.json rather than restating it, so the two cannot be hand-drifted,
and a written record of the three rows that genuinely do not port — so the next
session does not spend the same probes rediscovering it.
Two defects the probe surfaced
project-board'sdescriptionloses 872 of its 989 characters. It
containsproject #2, and YAML ends an unquoted scalar at#. Both Codex
and Claude Code show the same 117-character stub, so the skill's entire
trigger vocabulary and all four of its routing clauses do not exist at
selection time.scripts/skills-check.shmeasures the raw line with a regex,
which is why the description-budget table reports 991 and the gate cannot see
it.- Codex truncates every skill
descriptionat ~670 characters, cut at a
word boundary — against this repo's 1,024-character cap. 27 of 28 skills are
affected, and the part that gets cut is the routing tail, the clause whose
only job is to disambiguate adjacent skills.
Acceptance
- All project skills visible to Codex, authored once, with a gate that fails a
missing or forked bridge entry — and that gate observed failing before it is
trusted. CLAUDE.mdreaches Codex.- The MCP servers reachable in one command derived from
.mcp.json. - The three non-portable rows and the two defects above recorded where the next
session will find them, not in a transcript.
Activity
feat(agents): bridge CLAUDE.md to Codex, and gate what cannot be bridged
feat(agents): bridge the skills and CLAUDE.md to Codex (#822)