# Edit Permission Rule

> A rule that says which files Claude may change.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Edit(src/**), Edit allow rule

## Think of it like

It is like you let a friend draw in one book. The rest stay shut.

## Definition

An Edit permission rule matches the files that Claude may change in your project. It is written as Edit and a path, such as Edit(src/**). It covers every built-in tool that edits files, including Write. It also covers where a shell command writes with > or tee. A rule written as Write(path) does not match, so always use Edit.

## Example

Emma lets Claude change code in src freely. She denies the CI folder, so those files stay hers.

## Example code

```json
{
  "permissions": {
    "allow": ["Edit(src/**)"],
    "deny": ["Edit(.github/**)"]
  }
}
```

Edit code freely, never the CI files.

## Why it matters

Edits change your project. These rules choose which changes are routine and which need a look.

## Common mistake

Writing Write(docs/**). It is accepted but matches nothing. Write Edit(docs/**).

## Three principles

- **Edit and a path.** Edit(src/**).
- **All edit tools.** Write too.
- **Redirects count.** > and tee.

## Related terms

- [Read Permission Rule](https://learn.benibix.com/term/ai/read-permission-rule)
- [Edit Tool](https://learn.benibix.com/term/ai/edit-tool)
- [Accept Edits Mode](https://learn.benibix.com/term/ai/accept-edits-mode)

## Told apart from

- [Read Permission Rule vs Edit Permission Rule](https://learn.benibix.com/compare/read-permission-rule-vs-edit-permission-rule): People think a Read deny rule only stops reading, and an Edit rule is needed to stop changes. A Read deny rule stops both. Claude cannot read the path, and cannot edit or write it either. An Edit rule only covers changes, so a file can be readable but locked. To hide a secret, deny Read. To keep a file safe but in view, deny Edit.

---

Source: https://learn.benibix.com/term/ai/edit-permission-rule
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
