# agent: Fix creating files with Gemini \(\#31439\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6253b95f82da7bfacbebdb74701062d17367d094

Requested commit: 6253b95f82da7bfacbebdb74701062d17367d094

Commit: 6253b95f82da7bfacbebdb74701062d17367d094

Tree: 057c20c4eabf0c3e64ae2c1038a637c2ce342476

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
agent: Fix creating files with Gemini (#31439)

This change instructs models to wrap new file content in Markdown fences
and introduces a parser for this format. The reasons are:

1. This is the format we put a lot of effort into explaining in the
system prompt.
2. Gemini really prefers to do it.
3. It adds an option for a model to think before writing the content

The `eval_zode` pass rate for GEmini models goes from 0% to 100%. Other
models were already at 100%, this hasn't changed.


Release Notes:

- N/A
```

## Parents

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

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