Decide what belongs in the context
Cuts a bloated prompt down to what actually informs the answer.
My prompt has grown and I am no longer sure what is earning its place. The task the model performs: [WHAT IT DOES] What I currently pass it: [LIST EVERY PIECE — instructions, examples, documents, history] Symptoms: [SLOW / EXPENSIVE / IGNORES INSTRUCTIONS / INCONSISTENT] For each piece, tell me: - **What it is for**, and whether the output would change without it. - **Whether it is stable** across calls. Stable material belongs at the front where prompt caching can reach it; anything varying breaks the cache for everything after it. - **Whether it conflicts** with another instruction. Then: what to cut, what to move, and what to replace with retrieval rather than passing every time. "Include it in case it helps" is the belief to challenge. Irrelevant context makes answers worse, not just more expensive — say where that is happening here.
Highlighted parts are placeholders. Replace them before you send.
Worked example
The input is invented for this page. The output shows what the prompt asks for with that input.
Example input (invented)
The task the model performs: Sorts incoming support emails for an online plant shop into one of six categories and writes a one-line summary of each.
What I currently pass it: In this order.
- A system prompt of 900 words. It opens with today's date and the name of the support agent on shift, then a paragraph of company history, the six categories with a definition each, and tone rules for replies.
- 25 example emails, each with its category.
- Our full returns policy, 1,400 words.
- The customer's previous 10 emails, when there are any.
- The new email.
Symptoms: Expensive and inconsistent. The same email can get a different category on two runs, and about 1 in 10 outputs come back with a drafted reply, which I never ask for.
Example output
Piece by piece
- Date and agent name. They change every shift and sit at the top, so they break the cache for the rest of the system prompt and everything after it. Neither changes a category, unless one of your categories depends on dates, such as late deliveries [VERIFY].
- Company history. Stable, and no label would change without it. Cut it.
- The six definitions. Stable, and the part doing the work. Keep them.
- Tone rules for replies. Stable, but they conflict with the task. You ask for a category and a summary, then explain how a reply should sound. That is the likely source of the drafted replies in 1 output in 10.
- 25 examples. Stable, and the strongest lever on consistency. Check that all six categories appear in them [VERIFY]. A category with no example is where two runs will disagree.
- Returns policy. Stable, and the largest piece. To label an email "return request", the model needs the definition, not the policy [VERIFY].
- Previous 10 emails. Varies by customer. Ten emails can pull the label toward the customer's last complaint and away from this one. If the runs that disagree are mostly customers with a long history, this is irrelevant context making answers worse [VERIFY].
- The new email. Varies, and belongs last, where it is.
What to do
- Cut the company history, the tone rules and the date and agent line.
- Order what is left as definitions, then examples, then anything that varies.
- Remove the returns policy.
- Replace the 10 previous emails with retrieval: the subject lines of the last three, passed only when the new email refers to an earlier one.
- Ask for one of the six category names, spelled as defined, plus the summary, and nothing else.
More Agents & prompting prompts
3 of the 11 other prompts filed under Agents & prompting.
Decide whether this should be an agent at all
An honest check before building a loop where a script would do.
Define a persona that changes behaviour
Replaces decorative role-play with instructions that alter the output.
Find the flaw in this argument
Separates a disagreement about facts from a break in the logic.
Memory & context guides
1 guide is filed under Memory & context, the same category as this prompt.
Retrieval beats a bigger context window
Long context made 'paste everything' possible. It did not make it a good idea, and the reason is measurable.