Discussion about this post

User's avatar
Evan's avatar
May 8Edited

This is especially tricky because, if you do any customization on your Claude Code setup (which you should!), you'll end up with stuff in .claude/ that legitimately belongs in the repo. For example, one of my projects has an PostToolUse edit hook that runs ruff and pyright on edited Python files, and a Stop hook that runs them across the whole repo and also runs the test suite. This is project infrastructure. Another dev who clones the repo and starts up Claude Code should have the same quality checks enforced.

Ideally, there would be a separate file in .claude/ where the "allow" commands get stored, and we could .gitignore that one file. Unfortunately, right now they get dumped into .claude/settings.json along with hooks and everything else.

Hayden Phan's avatar

So what about countermeasures for inviduals, thanks for the research btw

1 more comment...

No posts

Ready for more?