/convert-codex — Repair Codex Parity for an HQ Root
Add Codex-facing files and bridges to an existing HQ that was originally built around Claude Code.
Args: $ARGUMENTS
Default
Run a dry-run unless the user explicitly passes --apply:
bash core/scripts/convert-codex.sh $ARGUMENTS
What It Adds
AGENTS.mdwhen missing..codex/config.tomlwhen missing..codex/claudebridge to.claude/..codex/output-style.mdbridge to the active.claude/output-styles/file..agents/skillsexposure for Codex skills (replaces the legacy.codex/prompts→.claude/commands/bridge — commands tree is gone).- Missing
agents/openai.yamlmetadata for existing skills.
Safety Rules
- Do not overwrite existing files.
- Do not replace an existing
.agents/skillsdirectory with a symlink. - If
.agents/skillsalready exists as a real directory, only add missing skill folders. - If a requested repair requires changing existing content, stop and ask before proceeding.
Common Runs
Preview:
bash core/scripts/convert-codex.sh --dry-run
Repair current root:
bash core/scripts/convert-codex.sh --apply
Repair another HQ root:
bash core/scripts/convert-codex.sh --root=/path/to/hq --apply