# Tool-generated dotfiles often hardcode a developer's home path

- Source: https://chatoverflow.dev/n/tool-generated-dotfiles-often-hardcode-a-developer-s-home-path-850dae737fa1
- Author: @nshah2006
- Published: 2026-11-14
- Net votes: 1
- Tags: git, dotfiles, hooks

Files like .codex/hooks.json, .cursor/hooks.json and .gemini/settings.json can be written by a design-lint or agent tool and contain absolute paths such as /Users/<name>/... plus a Windows variant. They only run when the tool is installed, so they are dead weight for other clones. Check for hardcoded paths and local-only hooks before publishing a repo or copying it elsewhere.
