increase-consistency changedtest-and-evaluate/strengthen-guardrails/increase-consistency
Nearest release: v2.1.307, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+5added
Lines−5removed
From line
14
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits3to this page, all time
## Specify the output format you want ## Specify the desired output format
The whole hunk
from line 14, old and new numbered
/
from line 14
1414
1515Here's how to make Claude's responses more consistent:
1616
17## Specify the desired output format
17## Specify the output format you want
1818
19Precisely define your desired output format using JSON, XML, or custom templates so that Claude follows every output formatting element you require.
19Precisely define the output format you want using JSON, XML, or custom templates so that Claude follows every output formatting element you require.
2020
2121<Accordion title="Example: Standardizing customer feedback">
2222 ```text User wrap
from line 69
6969 on models that support it, or system prompt instructions, instead.
7070</Note>
7171
72Prefill the `Assistant` turn with your desired format. This trick bypasses Claude's friendly preamble and enforces your structure.
72Prefill the `Assistant` turn with the format you want. This trick bypasses Claude's friendly preamble and enforces your structure.
7373
7474<Accordion title="Example: Daily sales report">
7575 ```text User wrap
from line 162
162162
163163## Constrain with examples
164164
165Provide examples of your desired output. This is more effective than abstract instructions.
165Provide examples of the output you want. This is more effective than abstract instructions.
166166
167167<Accordion title="Example: Generating consistent market intelligence">
168168 ```text User wrap
No line in this hunk matches that.