From 6fda0bc28209199a9eb03de83db310f6c84c45a6 Mon Sep 17 00:00:00 2001 From: jmeridth Date: Fri, 5 Jun 2026 18:44:02 -0500 Subject: [PATCH] chore: stop managing Codex config ## What Removed the Codex config directory from dotfiles, stopped the setup script from linking ~/.codex, and removed the Codex Doctor pre-commit hook. ## Why Codex local state and config should stay outside this dotfiles repository while shared agent instructions can remain linked separately. ## Notes - Existing Codex state now needs to be managed outside this repository after pulling this change. - pre-commit now only runs ShellCheck; Codex health checks are no longer tied to dotfiles commits. Signed-off-by: jmeridth --- .pre-commit-config.yaml | 8 -------- README.md | 3 +-- configs/codex/AGENTS.md | 1 - configs/codex/config.toml | 10 ---------- scripts/link-dotfiles.sh | 30 ------------------------------ 5 files changed, 1 insertion(+), 51 deletions(-) delete mode 120000 configs/codex/AGENTS.md delete mode 100644 configs/codex/config.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9d9a51..c0007b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,11 +5,3 @@ repos: - id: shellcheck files: ^(configs/(aliases|bash_profile|zprofile|zshrc)|scripts/.*\.sh)$ types: [file] - - repo: local - hooks: - - id: codex-doctor - name: codex doctor - entry: codex doctor --summary --ascii - language: system - pass_filenames: false - files: ^configs/codex/config\.toml$ diff --git a/README.md b/README.md index 44d3a80..7848a42 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ cd ~/dotfiles This will: - Symlink config files to your home directory -- Symlink shared agent instructions and config to Codex and Claude locations +- Symlink shared agent instructions and config to Claude and agent locations - Install packages via Homebrew (macOS) or apt (Debian) - Install oh-my-zsh - Configure VSCode vim key repeat (macOS) @@ -30,7 +30,6 @@ scripts/ configs/ # Dotfiles and tool configs AGENTS.md # Shared global agent instructions agents/ # Shared user-level agent config - codex/ # Codex config Brewfile # Common Homebrew packages Brewfile.work # Work-specific packages Brewfile.personal # Personal-specific packages diff --git a/configs/codex/AGENTS.md b/configs/codex/AGENTS.md deleted file mode 120000 index be77ac8..0000000 --- a/configs/codex/AGENTS.md +++ /dev/null @@ -1 +0,0 @@ -../AGENTS.md \ No newline at end of file diff --git a/configs/codex/config.toml b/configs/codex/config.toml deleted file mode 100644 index acc52c0..0000000 --- a/configs/codex/config.toml +++ /dev/null @@ -1,10 +0,0 @@ -status_line = ["model-with-reasoning", "context-remaining", "git-branch", "current-dir"] -sandbox_mode = "workspace-write" -approval_policy = "on-request" -approvals_reviewer = "auto_review" - -[projects."~/code"] -trust_level = "trusted" - -[tui.model_availability_nux] -"gpt-5.5" = 3 diff --git a/scripts/link-dotfiles.sh b/scripts/link-dotfiles.sh index a1d07c8..3aa6c70 100755 --- a/scripts/link-dotfiles.sh +++ b/scripts/link-dotfiles.sh @@ -28,29 +28,6 @@ link_file() { echo " linked: $dest -> $src" } -migrate_directory_contents() { - local src="$1" - local dest="$2" - - if [ ! -d "$dest" ] || [ -L "$dest" ]; then - return - fi - - echo " migrating: $dest contents -> $src" - for path in "$dest"/* "$dest"/.[!.]* "$dest"/..?*; do - [ -e "$path" ] || continue - local name - name="$(basename "$path")" - - if [ -e "$src/$name" ] || [ -L "$src/$name" ]; then - echo " keeping managed Codex entry: $name" - continue - fi - - mv "$path" "$src/$name" - done -} - echo "Linking dotfiles ..." link_file "$CONFIGS_DIR/zshrc" "$HOME/.zshrc" @@ -66,13 +43,6 @@ link_file "$CONFIGS_DIR/gemrc" "$HOME/.gemrc" link_file "$CONFIGS_DIR/tmux.conf" "$HOME/.tmux.conf" link_file "$CONFIGS_DIR/nvim" "$HOME/.config/nvim" -echo "Linking Codex config ..." - -CODEX_HOME_DIR="${CODEX_HOME:-$HOME/.codex}" -mkdir -p "$(dirname "$CODEX_HOME_DIR")" -migrate_directory_contents "$CONFIGS_DIR/codex" "$CODEX_HOME_DIR" -link_file "$CONFIGS_DIR/codex" "$CODEX_HOME_DIR" - echo "Linking claude config ..." # Link the entire claude directory