# Add save_file and restore_file_from_disk agent tools \(\#44789\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5987dff7e481f2c3fcc6fc89ffd6ae254bfe638f

Requested commit: 5987dff7e481f2c3fcc6fc89ffd6ae254bfe638f

Commit: 5987dff7e481f2c3fcc6fc89ffd6ae254bfe638f

Tree: 45353363a2c6fba4936240571207a9e95282cac0

Author: Nathan Sobo

Committer: GitHub

## Message

```
Add save_file and restore_file_from_disk agent tools (#44789)

Release Notes:

- Added `save_file` and `restore_file_from_disk` tools to the agent,
allowing it to resolve dirty buffer conflicts when editing files. When
the agent encounters a file with unsaved changes, it will now ask
whether you want to keep or discard those changes before proceeding.
```

## Parents

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

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