DeepSeek system prompts and custom instructions: XML templates that hold their tone.
By Bernard Huang · Updated
Why XML-tagged constraints beat loose paragraphs in DeepSeek V3/V4 and reasoning models—plus 4 copyable API and web session templates.
On this page
Why structured XML blocks work best for DeepSeek.
| Surface / Model mode | Where instructions go | Key rule for reliable adherence |
|---|---|---|
| DeepSeek API (Chat / V3–V4) | messages: [{ role: "system", content: "..." }] | Group tone, bans, and format into <role>, <constraints>, and <output_format> tags. |
| DeepSeek Reasoning (R1 / DeepThink) | user prompt header or lean system block | Constrain the final visible answer (structure, brevity, uncertainty); avoid “think step by step” boilerplate that interferes with native reasoning. |
| DeepSeek Web / Mobile Chat | Pinned first message of a new thread (or saved prompt snippet) | Start a new chat when switching domains so earlier turns do not dilute your XML block. |
Four copy-paste DeepSeek XML system prompt templates.
1. Senior Architect & Diff-First Coder
2. Quantitative & Research Analyst
3. Skeptical Red-Teamer (Anti-Sycophancy)
4. Calm Plain-English Technical Writer
What personality type is DeepSeek? Nov 2026 OpenRouter N=100 data.
Across 100 fresh sessions each in our November 2026 Open-Source Model Study, DeepSeek V4 Pro stood out as the single least agreeable model of all 20 models tested:
| Metric | DeepSeek V4 Pro (deepseek-v4-pro-0813, n=100) | DeepSeek V4.1 Flash (deepseek-v4.1-flash-1017, n=100) |
|---|---|---|
| MBTI legacy / tie-free | 55 INTJ · 15 INTP · 14 ISTJ (53 runs tied, incl. 22 XXXX!) | 51 INTJ · 19 INFJ · 10 INTP · 9 INFP (78 runs tied!) |
| Big Five: Openness /50 | 39.84 | 40.22 |
| Big Five: Conscientiousness /50 | 40.25 | 38.45 |
| Big Five: Agreeableness /50 | 32.39 (lowest of all 20 models!) | 40.82 |
| Big Five: Neuroticism /50 | 23.65 | 24.74 |
| DISC & Attachment | 60 SC · 30 DI (D mean 8.72; 88 Secure / 12 Avoidant) | 60 SC · 37 CS · 3 DI (88 Secure / 9 Avoidant / 3 Anxious) |
Look at two practical takeaways: (1) DeepSeek V4 Pro’s low Agreeableness (32.39/50 vs. 44–47/50 on Claude/GPT-6.2/Gemini) and elevated DISC Dominance make it naturally more direct and less sycophantic out of the box; (2) its high MBTI midpoint tie rates (53%–78% of runs tying at least one axis) reinforce why explicit XML rules outperform vague type labels. Open the OpenRouter Open-Source Model Matcher & Templates →
Test and compare your DeepSeek system prompt locally.
Want to build a custom tone block with sliders first, or verify that your DeepSeek prompt doesn’t contain contradictory rules?
- Dial in exact warmth, brevity, and pushback rules in our 6-Slider AI Personality Tuner.
- Lint for conflicting constraints in the Instruction Checker.
- Score baseline vs. tuned DeepSeek outputs blindly in the Instruction A/B Test Bench.
Questions people ask.
Does DeepSeek have a built-in Custom Instructions box like ChatGPT?
DeepSeek's API supports a native system message on every request. On chat.deepseek.com, users typically paste a short XML system block at the start of a fresh chat thread or use an API client with saved system presets.
Why use XML tags like <constraints> in DeepSeek prompts?
Clear structural tags separate role identity, hard rules, and output formatting cleanly, reducing prompt drift on long technical or coding conversations compared with unstructured paragraphs.
Should I include 'think step by step' in DeepSeek R1 / DeepThink prompts?
No. Reasoning models already run internal chain-of-thought reasoning natively—extra step-by-step instructions often add redundant verbosity. Constrain the final output format, length, and epistemic honesty instead.
Can I use AgentTune's 43 MIT personality templates with DeepSeek?
Yes. Open any profile in the AgentTune library or Custom Instructions Generator and select API / Markdown export to wrap the behavioral rules cleanly inside your DeepSeek system message.
What changed.
- First published with XML-tagged DeepSeek system prompt templates for API, reasoning modes, and web threads.