Skip to content

feat: support project-level .codex config overrides #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tomascupr
Copy link
Contributor

This change adds seamless per-repository overrides of user‐wide Codex settings. Key points:

    * Load sequence:
        1. Global config (`~/.codex/config.{json,yaml,yml}`) as before

        2. Optional project config in `./.codex/config.{json,yaml,yml}`—shallow-merged on top
    * Instructions resolution:
        * If `./.codex/instructions.md` exists, use it; otherwise fall back to `~/.codex/instructions.md`

        * Global instructions file continues to be bootstrapped on first run; we do not auto-create `./.codex`
    * CLI flag `--config` now opens project instructions when present, else global
    * Backward compatibility: existing workflows remain unchanged when no project config is present
    * All tests still pass; formatting and type checks remain green

Please review and let me know if you’d like any tweaks!

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