Assistant Prefill on Claude: 4 Recipes That Ship (2026)
Assistant prefill in 2026: four copy-paste recipes that force JSON, kill the preamble, lock the output shape, and hold a persona, plus where prefill breaks.
Author
Sam Q. writes terse, tested prompt recipes for PromptAttic. Ships them the way you would a commit message: short, verified, no preamble.
Assistant prefill in 2026: four copy-paste recipes that force JSON, kill the preamble, lock the output shape, and hold a persona, plus where prefill breaks.
Step-back prompting in 2026: five copy-paste recipes that make an LLM state the governing principle before it answers, plus a gate for when to skip it.
Six copy-paste recipes for fencing prompts with delimiters in 2026: which delimiter per job, why it works, and the failure mode each one prevents.
Least-to-most prompting for LLMs in 2026: six copy-paste recipes that decompose a hard problem into ordered subproblems and feed each answer forward, with the receipt, the reasoning, and the failure mode for each.
Six copy-paste prompt compression moves for 2026 with real before and after token counts. Cut manners, redundancy, and agent history. No library required.
Eight copy-paste few-shot prompting examples that ship: classification, JSON extraction, tone, refusal, edge cases, message-history shots, and dynamic example selection.
Five paste-ready role prompting recipes for 2026: domain expert, audience, format contract, adversary, and voice, each with its failure mode.
Five paste-ready prompt chaining recipes for 2026: extract-then-reason, draft-critique-rewrite, route, map-reduce, and generate-then-gate, each with its failure mode.
Four prompt-layer defenses against prompt injection that measurably help, three that are theater, and the one architecture rule that actually keeps you safe. With paste-ready prompts and each failure mode.
Extended thinking changed in July 2026: on Claude Sonnet 5 and Opus 4.8 you use adaptive thinking and effort, not budget_tokens. Three recipes and the gotchas.
Three production Claude tool use recipes tested on Sonnet 4.6, Opus 4.7, and Haiku 4.5 with current pricing. Plus the two failure modes nobody warns you about. June 2026.
Three production-grade Claude structured output recipes for June 2026. Invoice extraction on Sonnet 4.6, support triage on Haiku 4.5, NL to SQL on Opus 4.7. Real cost per call. Three failure modes the docs do not warn you about.