# agent: Send stale file notifications using the project_notifications tool \(\#34005\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d87603dd60d0cefe87da782a0a906b75c7fd5ab4

Requested commit: d87603dd60d0cefe87da782a0a906b75c7fd5ab4

Commit: d87603dd60d0cefe87da782a0a906b75c7fd5ab4

Tree: 17940edce650b21b9a115ade71a1684619e819a0

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
agent: Send stale file notifications using the project_notifications tool (#34005)

This commit introduces the `project_notifications` tool, which
proactively pushes notifications to the agent.

Unlike other tools, `Thread` automatically invokes this tool on every
turn, even when the LLM doesn't ask for it. When notifications are
available, the tool use and results are inserted into the thread,
simulating an LLM tool call.

As with other tools, users can disable `project_notifications` in
Profiles if they do not want them.

Currently, the tool only notifies users about stale files: that is,
files that have been edited by the user while the agent is also working
on them. In the future, notifications may be expanded to include
compiler diagnostics, long-running processes, and more.

Release Notes:

- Added `project_notifications` tool
```

## Parents

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

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