Always Allow? What 152,081 Permission Files From 4 Coding Agents Show (2026 Study)
We read 152,081 public permission files from Claude Code, Cursor, Codex and Grok Build. Files written by hand have deny rules. Allowlists saved by clicks don’t.

Share to
By Tristan Chen, XTrace Research · Data as of 3 December 2026
Coding agents ask before they run a command. Most of them also offer a shortcut: always allow this command. Each tool saves those choices in an allowlist, the list of commands the agent may run without asking. A deny rule is the opposite: a command the agent must never run.
What do developers put on those allowlists, and does anyone write the deny rules? To find out, we read every public permission file we could find on GitHub for four coding agents: 152,081 files from Claude Code, Cursor, Codex and Grok Build. Almost all of them (150,281) come from Claude Code, because it is the only one of the four that saves “always allow” clicks inside the project folder.
What we found:
Allowlists saved by clicks have almost no deny rules. 99.1% of the 101,165 we could see have none. All of them come from Claude Code, the only one of the four agents that saves clicks where the public can see them.
In all four agents, people who write permission files by hand do write deny rules. 40% to 66% of hand-written files have one.
One click can save a password. Allowlists that hold a whole saved command are flagged for passwords or keys 29 times as often as the rest.
Key numbers
99.1% of Claude Code allowlists have no deny rule; 98.6% in organization projects
54% let the agent run any program, push code, send data or delete files without asking
1% vs 40% have a deny rule: allowlists saved by clicks vs settings written by hand, in the same tool
61% to 66% of hand-written Cursor, Codex and Grok Build files have a deny rule
1 in 16 allowlists with a long saved command may contain a password or key, against 1 in 450 of the rest
3% to 98% allow a risky command, from allowlists with one entry to those with more than 100
99 in 100 allowlists have no deny rule

Figure 1. Share of 101,165 public Claude Code allowlists with no deny rule, and what the allowlists let the agent do without asking.
In Claude Code, picking “Yes, and don’t ask again” saves that command as an allow rule in .claude/settings.local.json inside the project. We found 101,165 public copies of that file. 99.1% of them contain no deny rule.
What the allowlists hold instead: 43.5% let the agent run any program (python, node, bash or npm run with any arguments). 15.2% allow git push with any arguments, 14.0% allow network commands such as curl or ssh, and 5.9% allow rm. In total, 54% allow at least one of these.
Why this matters: an allowlist entry removes the question for good. If the agent later reads a web page, an issue or a file with hidden instructions, a command that is already on the allowlist runs with no prompt. A deny rule is the backstop, because in Claude Code a deny rule blocks a command even when an allow rule matches it.
One limit: deny rules can also sit in a developer’s home folder or in settings their company manages. Those are not public, so we cannot count them.
Organization projects are no safer than personal ones

Figure 2. Claude Code allowlists in personal projects (93,428) and in GitHub organization projects (7,737).
7,737 of the allowlists sit in repositories owned by a GitHub organization. They look the same as the rest: 98.6% have no deny rule, 30.5% let the agent push code, send data or delete files without asking, and 1.7% may contain a password or key.
GitHub organizations include companies, open-source projects and communities, so this is not a claim about large enterprises. It does show that this is not a hobby-project habit.
Clicks save allow rules. People write deny rules.

Figure 3. The two permission files in a Claude Code project. The prompt and the file shown are simplified examples.
Claude Code has a second project file, .claude/settings.json, which someone writes by hand and commits for everyone on the project. It uses the same rule format, so the two files can be compared directly.
Only 1% of click-saved allowlists have a deny rule, against 40% of hand-written settings files. 0.3% of allowlists deny reading of passwords and keys, against 22.6% of hand-written files. And 29.6% of allowlists let the agent push code, send data or delete files without asking, against 13.6%.
The reason is simple. The prompt offers three answers: yes, yes and don’t ask again, or no. None of them adds a deny rule. A person who opens a file to write rules thinks about both sides.
The same pattern in four coding agents

Figure 4. Share of public permission files with at least one deny rule. File counts differ a lot between agents.
All four agents have an “always allow” answer. They differ in where they save it. Cursor, Codex and Grok Build keep those clicks on the developer’s own machine, so the permission files that reach GitHub are all written by hand: 337 for Cursor, 1,407 for Codex and 56 for Grok Build.
61% of the Cursor files, 66% of the Codex files and 63% of the Grok Build files have a deny rule. This is not a ranking of products. It is the same result as Figure 3: files written by hand have deny rules, and files filled by clicks do not.
One file, two tools. Grok Build’s guide lists .claude/settings.json and .claude/settings.local.json among the files it reads, and says it applies their allow, deny and ask rules. We read this in the guide and did not test it. If it works as written, a rule saved by one click in Claude Code can also allow the command in a second agent.
One click can save a password

Figure 5. A normal allowlist entry next to a whole command saved as typed (made-up example), and how common the long ones are.
Most allowlist entries are short: half are 27 characters or fewer. But 8% are longer than 150 characters. These are whole commands saved exactly as they were typed, with every argument. 27.4% of allowlists hold at least one.
We ran gitleaks, an open-source scanner for passwords and keys, on every file. It flagged 6.4% of allowlists with a long entry (1,763 of 27,745) and 0.2% of the rest (163 of 73,420). That is 1 in 16 against 1 in 450, or 29 times as often. It flagged none of the 1,800 hand-written Cursor, Codex and Grok Build files. The most common flags were curl commands with a login header (885 files) and login tokens (720 files).
These are scanner flags. We did not read or test any flagged value, so some are false alarms. For checked cases, Apiiro reported in November 2026 that 1,122 of 104,185 public copies of this file held a real secret. Our numbers add where the risk sits: 92% of flagged files hold a long entry.
The longer the allowlist, the more it allows

Figure 6. Share of allowlists that let the agent run any program, push code, send data or delete files without asking, by number of entries.
3% of allowlists with a single entry allow a risky command. With 6 to 10 entries it is 53%, and above 100 entries it is 98%. Half of all allowlists hold 8 entries or more, and one in four holds 20 or more.
Allowlists also keep growing. For 7,358 files we read the commit history: the median allowlist grew from 4 entries to 14, and 83% of the files that changed only ever added entries.
Broad entries matter in Claude Code’s auto mode too. According to the permission modes documentation, auto mode drops rules that allow any code but keeps narrower ones such as git push, and a command that matches a kept rule is approved before the safety classifier reviews it. We did not test this ourselves.
What hand-written deny rules block
About 2,000 public files across the four agents do have deny rules, and they agree with each other. Of the files with a deny rule, this is the share that blocks each command, or asks first:
Delete commands (rm): 53% in Claude Code, 44% in Cursor, 39% in Codex, 37% in Grok Build
git push: 34% in Claude Code, 32% in Cursor, 57% in Codex, 43% in Grok Build
Reading secret files (.env, keys): 31% in Claude Code, 58% in Cursor, 11% in Codex, 40% in Grok Build
git reset --hard: 22% in Claude Code, 6% in Cursor, 30% in Codex, 29% in Grok Build
sudo: 21% in Claude Code, 20% in Cursor, 13% in Codex, 11% in Grok Build
Four agents and four rule formats give the same short list. It is a fair starting point for any team.
What security teams can do
Put the short deny list in the shared settings file. Block or ask first for
rm -rf, force push,git reset --hard,sudoand reads of.envand key files.Search your GitHub organizations for .claude/settings.local.json. A committed copy shows what that developer allowed, and may hold a password or key.
Clean long entries first. Delete any allowlist entry over 150 characters. It is a one-time command, and it is where the passwords are.
Set ask rules for risky commands in managed settings. A developer’s own allow rule does not outrank a managed ask rule.
Have developers run /permissions. It lists every rule and the file it comes from.
If you use Grok Build, check what it loads. According to its guide, it reads Claude Code’s project files too.
What this study does not show
Public repositories only. Claude Code tells git to ignore the allowlist file, so every public copy got past that default. These developers may be less careful than average.
Hidden deny rules. We cannot see rules in home folders or managed settings. “No deny rule” means none in the project file.
Uneven file counts. 150,281 Claude Code files against 337 for Cursor, 1,407 for Codex and 56 for Grok Build. The other agents’ files are hand-written, so Figure 4 compares kinds of file, not products.
Passwords and keys are not verified. We report what the scanner flagged.
Tool behavior comes from documentation. We did not test auto mode or Grok Build’s loading of Claude Code files in a live session.
Permissions, not attacks. A broad allow rule causes harm only if something steers the agent into using it. We did not look for abuse.
How we count
Source: GitHub code search, 30 November to 3 December 2026. Forks excluded.
Claude Code allowlists: all 101,500 listed
.claude/settings.local.jsonfiles; 101,165 could be read. 7,737 are in repositories owned by a GitHub organization.Claude Code hand-written settings: 49,116
.claude/settings.jsonfiles with permission rules, a weighted sample of about 64,300.Other agents:
.cursor/cli.json(178 files with rules) and.cursor/permissions.json(159), counted together as Cursor;.codex/rulesfiles (1,407);.grok/config.toml(56 with permission rules, of 284).Deny rule: a deny entry in Claude Code and Cursor; a block instruction in Cursor’s editor file; a forbidden or prompt rule in Codex; a deny or ask rule in Grok Build. Counting ask rules too, the Claude Code figure moves from 0.9% to 1.0%.
Risky command: an allow rule that lets the agent run any program, or run
git push, a network tool,rm,chmod, a database tool or a cloud tool with any arguments.Sample figures: entry lengths, Figure 6 and the commit history come from a weighted sample of 7,358 allowlists.
Passwords and keys: gitleaks with default rules, on the allow rules of Claude Code files and on the whole file for the other agents.
Ethics: we recorded counts only. We did not record or test any password or key, we name no repository, and we deleted all downloaded files.
Found an error? Email support@xtrace.ai.
Related: AI Governance Report 2026: 600+ ISO 42001 certified companies.
Frequently asked questions
What is a Claude Code allowlist?
+
It is the list of commands Claude Code may run without asking. Picking “Yes, and don’t ask again” adds the command to the allow rules in .claude/settings.local.json inside the project. The entry stays until someone deletes it, for example with /permissions.
Why do Claude Code allowlists have no deny rules?
+
The permission prompt only saves allow rules. A deny rule appears only when someone opens a settings file and writes one. In 101,165 public allowlists, 0.9% have one, against 40% of hand-written Claude Code settings files.
Should .claude/settings.local.json be committed to git?
+
No. It holds one developer’s own approvals, and sometimes a command that contained a password or key. Claude Code sets git to ignore the file when it creates it, so a public copy means that default was bypassed.
Do Cursor, Codex and Grok Build have the same problem?
+
We cannot tell. They save “always allow” clicks on the developer’s machine, so those lists are not public. Their public project files are written by hand, and 61% to 66% of them have a deny rule.
Which deny rules should a team start with?
+
The ones that hand-written files in all four agents share: rm -rf, force push, git reset --hard, sudo, and reads of .env and key files. Put them in the shared settings file so they apply to everyone on the project.
Is this a vulnerability in Claude Code?
+
No. Saved approvals work as designed, and Claude Code offers deny rules, ask rules, sandboxing and managed settings to limit them. The gap is that the prompt never asks what to block, and few developers add those rules by hand.
Back to articles
