feat(install): mirror toolkit agents to ~/.codex/agents#373
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Codex CLI sessions already get the toolkit skill library via
~/.codex/skills, but agents were not being mirrored. Codex has no nativesubagent_typedispatch, yet it can stillReadagent 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, syncagents/andprivate-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: addcheck_codex_agentsplus 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 checkandruff format --checkon modified Python filesscripts/tests/test_install_doctor.py(5 passed)install.sh --dry-runproduces correct agents section and summary count (93 entries)install-doctor checkreports both mirrors as present:~/.codex/skills mirror: All 140 toolkit entries mirroredand~/.codex/agents mirror: All 88 toolkit entries mirrored~/.codex/agents/golang-general-engineer.md(frontmatter readable through symlink) and~/.codex/agents/golang-general-engineer/references/(companion reference dir accessible)