# blockReadsOutsideWorkingDirectories

> A setting that keeps the file tools in your work folders.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** blockWritesOutsideWorkingDirectories, permissions.blockReadsOutsideWorkingDirectories

## Think of it like

It is like a fence round the yard. It holds even when the gate is open.

## Definition

blockReadsOutsideWorkingDirectories is a setting in the permissions part of a settings file. It makes Claude's file tools refuse to read outside your work folders. It holds in every mode, even the one that skips all prompts. A twin, for writes, stops edits out there. Neither one limits shell commands. Pair them with the sandbox.

## Example

Emma runs Claude in auto mode on a work laptop. She turns this on, so even auto mode cannot read her home folder.

## Example code

```json
{
  "permissions": {
    "blockReadsOutsideWorkingDirectories": true,
    "blockWritesOutsideWorkingDirectories": true
  }
}
```

Fence the file tools in, in every mode.

## Why it matters

Modes like bypassPermissions skip prompts. This fence stays up in all of them.

## Common mistake

Thinking it stops cat ~/.ssh/id_rsa in Bash. It covers file tools. Use the sandbox for the shell.

## Three principles

- **Every mode.** Bypass too.
- **Reads and writes.** Two settings.
- **File tools only.** Sandbox the shell.

## Related terms

- [Primary Working Directory](https://learn.benibix.com/term/ai/primary-working-directory)
- [Claude Code Sandbox](https://learn.benibix.com/term/ai/claude-code-sandbox)
- [Bypass Permissions Mode](https://learn.benibix.com/term/ai/bypass-permissions-mode)

![The primary working folder, the added folders, and what lies outside them.](https://learn.benibix.com/diagrams/permission-working-directories.svg)

---

Source: https://learn.benibix.com/term/ai/block-reads-outside-working-directories
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.
