Skip to content

feat(codex): manage codex config in dotfiles#18

Merged
jmeridth merged 1 commit into
mainfrom
jm_codex_setup
Jun 5, 2026
Merged

feat(codex): manage codex config in dotfiles#18
jmeridth merged 1 commit into
mainfrom
jm_codex_setup

Conversation

@jmeridth

@jmeridth jmeridth commented Jun 5, 2026

Copy link
Copy Markdown
Owner

What

Add managed Codex config under configs/codex, link ~/.codex to that directory, include Codex in the Brewfile, and add a pre-commit hook that runs codex doctor when the Codex config changes.

Why

Codex should follow the same dotfiles ownership model as the other tool configs while keeping runtime files ignored and preserving the shared agent guidance.

Notes

  • configs/codex/AGENTS.md is a symlink to the shared configs/AGENTS.md guidance.
  • Existing ~/.codex contents are migrated into configs/codex before the directory symlink is created.
  • Only configs/codex/AGENTS.md and configs/codex/config.toml are tracked; runtime files remain ignored.
  • Brewfile also includes the Linear cask rename from linear-linear to linear.

Testing

Dry-ran scripts/link-dotfiles.sh against a fresh temporary HOME and verified that ~/.codex resolves to configs/codex. Ran the codex doctor pre-commit hook successfully with network access enabled.

@jmeridth jmeridth self-assigned this Jun 5, 2026
@github-actions github-actions Bot added the feature New feature label Jun 5, 2026
@github-actions github-actions Bot marked this pull request as ready for review June 5, 2026 23:06
## What

Add managed Codex config under configs/codex, link ~/.codex to that directory, and include Codex in the Brewfile. Add a pre-commit hook that runs codex doctor when the Codex config changes.

## Why

Codex should follow the same dotfiles ownership model as the other tool configs while keeping runtime files ignored and preserving the shared agent guidance.

## Notes

- Existing ~/.codex contents are migrated into configs/codex before the directory symlink is created.

- Only configs/codex/AGENTS.md and configs/codex/config.toml are tracked; runtime files remain ignored.

- Brewfile also includes the Linear cask rename from linear-linear to linear.

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth merged commit 6d70cfe into main Jun 5, 2026
6 checks passed
@jmeridth jmeridth deleted the jm_codex_setup branch June 5, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant