Skip to content

[codex] Install Codex instructions during integration#2

Draft
rudijetson wants to merge 1 commit into
mainfrom
codex/integrate-codex-agents-instructions
Draft

[codex] Install Codex instructions during integration#2
rudijetson wants to merge 1 commit into
mainfrom
codex/integrate-codex-agents-instructions

Conversation

@rudijetson

Copy link
Copy Markdown
Contributor

Summary

  • Make rudi integrate codex create or update the managed RUDI block in ~/.codex/AGENTS.md after wiring the router.
  • Add dry-run/status output for the Codex instruction step.
  • Cover missing and existing global AGENTS.md files in unit tests.
  • Update CLI help, README, architecture notes, and the built CLI bundle.

Why

Codex integration could configure the RUDI MCP router without telling Codex how to reason about RUDI. Users then had to discover and run rudi instructions codex --install separately. The integration path should make Codex usable in one pass while preserving the manual refresh command.

Validation

  • node scripts/run-tests.js src/__tests__/unit/integrate-codex.test.js
  • node scripts/run-tests.js src/__tests__/unit/instructions-command.test.js
  • node scripts/run-tests.js src/__tests__/unit/integrate-codex.test.js src/__tests__/unit/instructions-command.test.js src/__tests__/unit/commands.test.js src/__tests__/unit/routing.test.js
  • node dist/index.cjs integrate codex --dry-run
  • node dist/index.cjs integrate codex

Notes

Full npm test was run and still has three unrelated failures in existing tests: checkIndexed: fails when stack not in index, concurrent /agent/start requests reuse a single spawned process for the same resumeSessionId, and /agent/start launches Claude stream-json stdin sessions in print mode. The focused tests for this change pass.

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