~/blog/tag/permissions
Permissions
What the agent is allowed to do, which of those rules actually hold, and the difference between a boundary and a suggestion.
What I write about here
Permissions are where the gap between what you configured and what is actually enforced shows up fastest.
The recurring finding across these posts is that the two halves behave differently. A rule that takes capability away tends to bind immediately and everywhere. A rule that hands capability over waits for something: a dialog someone has to accept, a workspace someone has to trust, a mode that is not active in the session you happen to be in. Write both into the same file and only one of them is doing what you think.
The second recurring finding is that a permission boundary is usually thinner than its name suggests. A denied path can still surface in the output of a shell command that lists it. An approval given inside a throwaway workspace can outlive the workspace. A file that keeps local overrides out of git turns out to be excluded by a global ignore rule that the repository never records, so a hand-created one has no protection at all.
None of this is an argument against configuring permissions. It is an argument for knowing which of your rules are load-bearing. The ones that restrict, plus a hook, are the two things that hold on their own.
The wider picture of what you hand over when you give an agent tools is in the MCP and security guide.
best entry points
- Claude Code permissions: the guide I wish the docs were
The guide the documentation never quite wrote. Every rule type, how they combine, and which scope wins when two disagree.
- Sandboxing Claude Code: put your agent in a box that holds
One layer down. What a sandbox contains, what it deliberately does not, and why the affordance that makes it useful is the hole.
- Sharing Claude Code config across a team: what a repo can and cannot enforce
Permissions with colleagues involved. A repo can restrict everyone from the first clone and can only propose anything that grants.
Claude Code plugin or MCP server: where your permission rules stop
Shipping the same skill as a plugin or over MCP looks like a packaging choice. I measured it on Claude Code 2.1.334: your deny rules and your sandbox hold for every kind of skill, but not for what an MCP tool runs itself.
read- 9/10runs past the Edit|Write hook
Your Claude Code file-protection hook doesn't see Bash
The PreToolUse hook in the docs protects files with an Edit|Write matcher. I gave Claude Code the same task ten times next to a protected test file, and nine times it wrote to the file anyway, with a heredoc in Bash. What held instead, and how to test your own hook.
Build a Claude Code plugin marketplace, on GitHub Enterprise too
How to build your own Claude Code plugin marketplace, and a private one for your organisation on GitHub Enterprise. A minimal manifest is twenty lines of JSON. The work is in the catalogue, the pins, the credentials and the rollout. I tested the GHE route on a ghe.com host.
- 6files behind one yes
Claude Code keeps asking for permission: every mode, measured
I had Claude Code do the same jobs 101 times across seven setups and counted every permission prompt. How often it asks depends less on how much the agent does than on how it bundles the work and which paths it touches. And three traps stay silent until you hit them.
- 1,122public settings files holding a real secret
'Don't ask again' also saves your password
Claude Code stores the command you approve, secret included, in a settings file. Apiiro found real secrets in 1,122 public copies, and Anthropic answered with a gitignore, auto mode and secret scanning. I tested what I could: the gitignore has three ways round it, the scanners I tried missed most passwords in commands, and Apiiro's own $VAR advice works differently on the current version.
- 0clicks before the install
Your API client just configured your coding agent
Postman desktop installs plugins into Claude Code and Codex without asking. I reproduced it on Linux with no account and no clicks, read what reached the model, and found the fallback that lets the app approve its own Codex hook.
Claude Code changed files without asking: what git diff can't show you
Since auto mode became the default, an agent that asks before it edits is the exception by design. The final diff shows where the session ended up. It cannot show which changes were put to you, which ran in a subagent, or which work was done and undone before you looked.
- 14.5%agent calls blocked
Claude Code auto mode: why your Agent allow rule does nothing
In a month of one repository, the Claude Code auto mode classifier blocked 86 of 594 subagent launches, mostly ordinary code reviews. Adding Agent to the allowlist changed nothing, because auto mode drops that rule on entry. Retrying the identical prompt went through 24 times out of 26.
CI runner security when an agent writes your workflow
Self-hosting your forge and your runner is a defensible call in 2026. Nobody writes the CI runner security guide for the platform you moved to, and an agent permission model built around a dialog does not survive the trip into a pipeline.
Sharing Claude Code config across a team: what a repo can and cannot enforce
How to share Claude Code config with your team: what belongs in CLAUDE.md versus .claude/settings.json, what a colleague can quietly override on their own machine, and why committed allow rules do nothing until each developer accepts a dialog.