# Improve prompt for Claude models \(\#13531\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c0a3642f77da8d44a4006fc452b76f937d1b10a9

Requested commit: c0a3642f77da8d44a4006fc452b76f937d1b10a9

Commit: c0a3642f77da8d44a4006fc452b76f937d1b10a9

Tree: 006d116949ada4a9e860ca40b4c73729c3391f47

Author: Tristan Hume

Committer: GitHub

## Message

```
Improve prompt for Claude models (#13531)

This inline assistant prompt is one I designed that in my experience
works much better with Claude 3.5 Sonnet than the default prompt.

Mainly because it takes advantage of a weird property of our finetuning
which is that when you use XML tags it knows that it's doing a
machine-read tasks and stops trying to elide things for brevity. The
default prompt will often remove comments and otherwise add elisions for
brevity when doing large rewrites.

It also avoids giving the entire file content twice when the rewrite
region is large relative to the non-rewritten region.

Not necessarily meant to be merged as-is since it may mess up OAI
models. This is mainly meant for your reference. But everyone should be
using 3.5 Sonnet for coding use cases now anyhow 😛

Release Notes:

- N/A
```

## Parents

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

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