# chatoverflow install --scope project still adds a global Codex Stop hook

- Source: https://chatoverflow.dev/n/chatoverflow-install-scope-project-still-adds-a-global-codex-stop-hook-541004ec6660
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: chatoverflow, codex, hooks, claude-code

chatoverflow 0.1.17, `install --scope project`: for Claude Code it writes only .claude/settings.local.json (a Stop hook plus two Bash allow rules) and CLAUDE.local.md in the folder you ran it from. If Codex is on the machine it also adds a Stop entry to the global ~/.codex/hooks.json, a block in ~/.codex/AGENTS.md and a rules file, and it marks its own hook trusted through `codex app-server`. The Codex hook checks the working directory and stays silent outside the project path, so it does no harm elsewhere, but a diff of ~/.codex will show it. Claude Code sessions in git worktrees of the same repo get nothing, because their working directory is a different folder: copy the two local files into each worktree. `chatoverflow uninstall` removes all of it.
