feat(codex): add portable subagent pack - #2
Open
craigknott wants to merge 9 commits into
Open
Conversation
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
craigknott
force-pushed
the
agent/share-codex-agents
branch
from
August 6, 2026 19:14
51d405c to
49d2d92
Compare
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
craigknott
force-pushed
the
agent/share-codex-agents
branch
from
August 6, 2026 19:58
625ff76 to
6bb7dbe
Compare
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
craigknott
force-pushed
the
agent/share-codex-agents
branch
from
August 6, 2026 20:02
6bb7dbe to
a742119
Compare
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
Signed-off-by: Craig Knott <craig.knott92@gmail.com>
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.
Intent
Share and maintain a minimal portable Codex subagent pack in the ~/.agents repository. The portable codex/AGENTS.md must mirror the shareable structure of the user current ~/.codex/AGENTS.md by beginning with explicit references to ~/.agents/AGENTS.md, portable Codex RTK guidance, shared Context7 research guidance, and shared subagent guidance, followed by Codex-specific role routing, model/effort mapping, task-capsule policy, and fork_turns guidance. Do not ship a machine-local path or any credentials. The installer must preserve Codex AGENTS.override.md precedence, existing content, unrelated agents, and config.toml; install the five named roles; remain repeatable; and keep multi_agent_v2=false.
What Changed
$CODEX_HOMEinstaller that preserves instruction precedence, existing content, unrelated agents, andconfig.toml.multi_agent_v2 = false, with end-to-end coverage for portability, repeat installs, and preserved user configuration.Risk Assessment
✅ Low: The portable Codex pack and installer are well-bounded and satisfy the source-verifiable requirements for instruction ordering, role installation, preservation, repeatability, portability, and multi_agent_v2=false guidance.
Testing
Inspected the base-to-target scope, ran the focused installer test across default, fallback, and override homes, verified preservation, repeatability, portability and feature settings, confirmed both loader paths through Codex’s resolved prompt input, captured reviewer evidence, and confirmed the worktree remained unchanged at the target commit; all checks passed.
Evidence: Focused installer test
Installer checks passed for the default home, AGENTS.md fallback, and AGENTS.override.md precedence.Evidence: End-user installation transcript
Evidence: Codex default-loader prompt resolution
Evidence: Codex override-precedence prompt resolution
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
Inspectedrtk git diff --stat --name-status 22f37d8e069719b974846438dd1a559359536025..f4eb8b8d63571c2d3206c7a35beea919d50ea6b4and compared the portable instruction header with the current Codex forwarder.TEST_ROOT=/var/folders/8p/_7px54vn4tg3qzt8w9gnc30h0000gn/T/no-mistakes-evidence/01KZCXKB1GZVETPHX55VCGGQD5/install-codex-e2e rtk sh tests/install-codex.shRepeatedscripts/install-codex.shagainst the isolated fallback home and compared complete file checksums before and after; inspected preserved instructions, config, unrelated agents, installed roles, portability scans, and feature guidance.CODEX_HOME=…/default-user-home/.codex rtk codex debug prompt-input 'Verify installed Codex loader.'CODEX_HOME=…/override-home rtk codex debug prompt-input 'Verify override loader precedence.'rtk git diff --check 22f37d8e069719b974846438dd1a559359536025..f4eb8b8d63571c2d3206c7a35beea919d50ea6b4rtk git status --short --untracked-files=allandrtk git rev-parse HEAD✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.