Giving Claude Code access to your codebase doesn't mean giving it access to everything.
Master.dev (Formerly Frontend Masters)
Visit on X@MasterDotDev133K followers
11,351 views
Giving Claude Code access to your codebase doesn't mean giving it access to everything. Deny rules let you draw hard lines.
"But now I also want to add a deny rule and I just want to see what happens. So if I want to deny, maybe edit package.json. And now I'm going to still ask Claude to edit it for me."
"So I'm just going to actually change this model to haiku because again, this is just a very simple task. So I'm going to like update the version in package.json to one. Now hopefully my permissions were set up correctly and it will be like, can't do that."
"Yeah, so it says like, oh, I can't do that. So even if this was a tool call coming from the model, it won't run it. So this is like a great way to add more control over what Claude can and cannot do in your environment."
Comments
Comments from the original post on X (Twitter)
No comments yet
