# Have tools respect private and excluded file settings \(\#32036\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8af984ae70a8b9f8b68367cfb81ddd01907875ff)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8af984ae70a8b9f8b68367cfb81ddd01907875ff

Requested commit: 8af984ae70a8b9f8b68367cfb81ddd01907875ff

Commit: 8af984ae70a8b9f8b68367cfb81ddd01907875ff

Tree: 03df4818ed5ba906e9669053ad852ed0ab5d43a0

Author: Richard Feldman

Committer: GitHub

## Message

```
Have tools respect private and excluded file settings  (#32036)

Based on a Slack conversation with @notpeter - this prevents secrets in
private/excluded files from being sent by the agent to third parties for
tools that don't require confirmation.

Of course, the agent can still use the terminal tool or MCP to access
these, but those require confirmation before they run (unlike these
tools).

This change doesn't seem to cause any trouble for evals:

<img width="730" alt="Screenshot 2025-06-03 at 8 48 33 PM"
src="https://github.com/user-attachments/assets/d90221be-f946-4af2-b57b-4aa047e86853"
/>


Release Notes:

- N/A
```

## Parents

- [9d533f9d305e2ac988461b837c83880db0f2fb13](https://git.cafe/gitcafe/zed/commit/9d533f9d305e2ac988461b837c83880db0f2fb13?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8af984ae70a8b9f8b68367cfb81ddd01907875ff?format=markdown)
