Skip to content

feat(install): mirror toolkit agents to ~/.codex/agents#373

Merged
notque merged 1 commit intomainfrom
fix/codex-install-agents
Apr 11, 2026
Merged

feat(install): mirror toolkit agents to ~/.codex/agents#373
notque merged 1 commit intomainfrom
fix/codex-install-agents

Conversation

@notque
Copy link
Copy Markdown
Owner

@notque notque commented Apr 11, 2026

Summary

Codex CLI sessions already get the toolkit skill library via ~/.codex/skills, but agents were not being mirrored. Codex has no native subagent_type dispatch, yet it can still Read agent files as domain reference material (Go, Python, Kubernetes, TypeScript, etc.) and their nested reference directories. This closes the gap so Codex and Claude Code see the same expertise surface.

Changes

  • install.sh: create ~/.codex/agents, sync agents/ and private-agents/ on install, clean them on uninstall, report the count in summary.
  • hooks/sync-to-user-claude.py: add a parallel codex agents sync block with the same additive-only policy as the skills mirror.
  • scripts/install-doctor.py: add check_codex_agents plus inventory counter so the health check covers the new mirror.
  • README.md, docs/QUICKSTART.md, docs/start-here.md: update wording so the installer description matches reality on both runtimes.

Test plan

  • bash -n install.sh (syntax check)
  • ruff check and ruff format --check on modified Python files
  • scripts/tests/test_install_doctor.py (5 passed)
  • Full related test suite: install/sync/codex selectors (47 passed, 1 xfailed)
  • install.sh --dry-run produces correct agents section and summary count (93 entries)
  • install-doctor check reports both mirrors as present: ~/.codex/skills mirror: All 140 toolkit entries mirrored and ~/.codex/agents mirror: All 88 toolkit entries mirrored
  • Spot-checked ~/.codex/agents/golang-general-engineer.md (frontmatter readable through symlink) and ~/.codex/agents/golang-general-engineer/references/ (companion reference dir accessible)

Codex CLI sessions already get the toolkit skill library via
~/.codex/skills, but agents were not being mirrored. Codex has no
native subagent_type dispatch, yet it can still Read agent files as
domain reference material (Go, Python, Kubernetes, TypeScript, etc.)
and their nested reference directories. This closes the gap so Codex
and Claude Code see the same expertise surface.

Changes:
- install.sh: create ~/.codex/agents, sync agents/ and private-agents/
  on install, clean them on uninstall, report the count in summary.
- hooks/sync-to-user-claude.py: add a parallel codex agents sync block
  with the same additive-only policy as the skills mirror.
- scripts/install-doctor.py: add check_codex_agents plus inventory
  counter so the health check covers the new mirror.
- docs and README: update wording so the installer description matches
  reality on both runtimes.
@notque notque merged commit 8b7efa3 into main Apr 11, 2026
4 checks passed
@notque notque deleted the fix/codex-install-agents branch April 11, 2026 18:17
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