Skip to content

Commit d3fa124

Browse files
committed
Document patch repair prompt and fix code block formatting in README
1 parent dee210b commit d3fa124

1 file changed

Lines changed: 45 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ _TAB completions from SOTA reasoning models._
183183
<details>
184184
<summary>WEB</summary>
185185

186-
````
186+
```
187187
188188
# Files
189189
@@ -207,14 +207,14 @@ Your response must begin with a markdown heading identifying the file and the cu
207207
208208
Find correct replacement text for the <missing_text> symbol.
209209
210-
````
210+
```
211211

212212
</details>
213213

214214
<details>
215215
<summary>API</summary>
216216

217-
````
217+
```
218218
219219
# Files
220220
@@ -234,7 +234,7 @@ Find correct replacement for the <missing_text> symbol. Respond with replacement
234234
Example:
235235
!== undefined
236236
237-
````
237+
```
238238

239239
</details>
240240

@@ -269,6 +269,45 @@ Write a brief and precise summary for the changes, limited to a single sentence.
269269

270270
</details>
271271

272+
### Patch repair
273+
274+
_Applying malformed edits._
275+
276+
<details>
277+
<summary>WEB/API</summary>
278+
279+
````
280+
# File: `[FILE PATH]`
281+
282+
```
283+
284+
[MALFORMED EDITS]
285+
286+
````
287+
288+
# Output formatting
289+
290+
Your response must begin with a markdown heading identifying the file, followed by a markdown code block containing the updated file. The heading must be: "### Patch repair: `path/to/file.ext`". Example:
291+
292+
### Patched file: `path/to/file.ext`
293+
294+
```python
295+
def add(a, b):
296+
return a + b
297+
298+
def subtract(a, b):
299+
return a - b
300+
301+
```
302+
303+
# Task
304+
305+
Apply the attached changes to the file without explanations or any other text.
306+
307+
````
308+
309+
</details>
310+
272311
## Prompt caching
273312
274313
**CWC** orders context files by modification and selection recency. This, combined with instructions placement at the message's very end effecively utilizes prompt caching.
@@ -382,3 +421,5 @@ Install the browser extension and never copy and paste again ([source code](http
382421
Copyright © 2026 [Robert Piosik](https://x.com/robertpiosik) \
383422
E-mail: robertpiosik@gmail.com \
384423
Telegram: robertpiosik
424+
```
425+
````

0 commit comments

Comments
 (0)