Skip to content

feat: add Codex support via .agents/ skill files and runner#170

Open
pratham8431 wants to merge 1 commit intosantifer:mainfrom
pratham8431:feat/codex-agents-support
Open

feat: add Codex support via .agents/ skill files and runner#170
pratham8431 wants to merge 1 commit intosantifer:mainfrom
pratham8431:feat/codex-agents-support

Conversation

@pratham8431
Copy link
Copy Markdown

Closes #<165>

What this adds

Codex doesn't have a native skill-loading mechanism like Claude Code's
/career-ops commands. This PR adds a complete execution layer:

  • .agents/ — 15 prompt files (one per command) that instruct Codex to
    load the correct modes/ files, matching the Claude Code skill 1-to-1
  • codex-runner.mjs — CLI bridge that reads an agent file, substitutes
    arguments safely, and invokes the Codex CLI. Falls back gracefully:
    caches the prompt to .agents/cache/ and logs the run to
    runs/codex-runs.jsonl
  • validate-agents.mjs — sync checker: errors if .agents/ references
    a modes/ file that doesn't exist, catches silent divergence
  • npm run codex:* shortcuts for the most common commands
  • Updated AGENTS.md, CLAUDE.md, docs/CODEX.md with usage examples,
    command table, and an honest Limitations section

Testing

node codex-runner.mjs --help # usage
node codex-runner.mjs scan # fallback path (caches prompt, logs run)
node validate-agents.mjs # all checks pass
npm run codex:validate

        .gitignore AGENTS.md CLAUDE.md docs/CODEX.md package.json

git commit -m "feat: add Codex support via .agents/ skill files and runner

- Add .agents/ with 15 prompt files mirroring Claude Code commands
- Add codex-runner.mjs: bridges .agents/ files to the Codex CLI,
  with prompt caching, run logging, and safe argument handling
- Add validate-agents.mjs: sync checker between .agents/ and modes/
- Update AGENTS.md, CLAUDE.md, docs/CODEX.md with usage and limitations
- Add npm scripts: codex:scan, codex:evaluate, codex:validate, etc."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant