Skip to content

Feature Request: Add OpenAI Codex CLI support #51

@elyase

Description

@elyase

Summary

AgentSync currently supports Claude Code, GitHub Copilot, Gemini CLI, OpenCode, and Cursor, but is missing support for OpenAI Codex CLI (codex).

Codex CLI Configuration Paths

Based on the official Codex documentation:

Type Path
Instructions AGENTS.md (project root)
Skills (repo-scoped) .codex/skills/<skill-name>/SKILL.md

Note: Codex CLI reads AGENTS.md from the project root — the same file already handled by [agents.root]. No separate instructions target is needed.

Proposed Configuration

Following the existing pattern used by Claude, Gemini, and OpenCode:

# -----------------------------------------------------------------------------
# OpenAI Codex CLI
# -----------------------------------------------------------------------------
[agents.codex]
enabled = true
description = "OpenAI Codex CLI - OpenAI's AI coding agent"

[agents.codex.targets.skills]
source = "skills"
destination = ".codex/skills"
type = "symlink-contents"

This mirrors how other agents handle skills:

  • Claude: skills.claude/skills/
  • Gemini: skills.gemini/skills/
  • OpenCode: skills.opencode/skill/
  • Codex: skills.codex/skills/

Updated README Table

Tool Instructions Commands Skills
Claude Code CLAUDE.md .claude/commands/ .claude/skills/
GitHub Copilot .github/copilot-instructions.md .github/agents/ -
Codex CLI AGENTS.md - .codex/skills/
Gemini CLI GEMINI.md .gemini/commands/ .gemini/skills/
OpenCode - .opencode/command/ .opencode/skill/
Cursor .cursor/rules - -

Implementation Notes

  1. Add [agents.codex] section to DEFAULT_CONFIG in src/init.rs
  2. Update README.md tools table
  3. Add test assertions for the new codex agent

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions