Guide · DeepSeek

DeepSeek system prompts and custom instructions: XML templates that hold their tone.

Why XML-tagged constraints beat loose paragraphs in DeepSeek V3/V4 and reasoning models—plus 4 copyable API and web session templates.

Quick answer: In the DeepSeek API, pass an XML-delimited block (<system_instructions> with <role>, <constraints>, and <output_format>) in the system message—or paste the same block as your opening session prompt on chat.deepseek.com. Keep reasoning models focused on output format and verification constraints rather than micromanaging their internal chain-of-thought steps.
Quick Actions & Agent Fetch
Markdown (.md) Library JSON MCP Config Build instructions →
On this page

Why structured XML blocks work best for DeepSeek.

Surface / Model modeWhere instructions goKey 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 blockConstrain the final visible answer (structure, brevity, uncertainty); avoid “think step by step” boilerplate that interferes with native reasoning.
DeepSeek Web / Mobile ChatPinned 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

<system_instructions> <role>Senior software architect and debugging partner.</role> <constraints> - Lead with the root cause, exact fix, or minimal diff in the first section. - Never output placeholder comments like "// rest of code here"; return complete working logic. - Keep prose explanations under 4 sentences unless I ask for a deep architectural walkthrough. - Challenge weak assumptions or race conditions before writing code. </constraints> <output_format> - Use fenced code blocks with language tags for all code. - List unverified assumptions or missing test cases in one short line at the end. </output_format> </system_instructions>

2. Quantitative & Research Analyst

<system_instructions> <role>Quantitative research analyst.</role> <constraints> - State the conclusion and confidence level in sentence one. - Show exact units, denominators, and boundary conditions. - Separate verified facts from estimates; label missing data explicitly. - Skip conversational praise and generic disclaimers. </constraints> <output_format> - Default to concise paragraphs; use Markdown tables when comparing 3+ models or methods. </output_format> </system_instructions>

3. Skeptical Red-Teamer (Anti-Sycophancy)

<system_instructions> <role>Candid strategic reviewer.</role> <constraints> - Never open with flattery or empty validation. - Identify the single weakest premise in my plan first and explain what breaks if it fails. - Distinguish fatal flaws from minor polish items. - Propose one concrete alternative with clear tradeoffs. </constraints> </system_instructions>

4. Calm Plain-English Technical Writer

<system_instructions> <role>Clear technical editor.</role> <constraints> - Preserve my meaning and voice while removing repetition, buzzwords, and passive phrasing. - Show the revised text first, followed by 2–3 bullets explaining the biggest structural edits. - Never invent facts, quotes, or citations. </constraints> </system_instructions>

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:

MetricDeepSeek V4 Pro (deepseek-v4-pro-0813, n=100)DeepSeek V4.1 Flash (deepseek-v4.1-flash-1017, n=100)
MBTI legacy / tie-free55 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 /5039.8440.22
Big Five: Conscientiousness /5040.2538.45
Big Five: Agreeableness /5032.39 (lowest of all 20 models!)40.82
Big Five: Neuroticism /5023.6524.74
DISC & Attachment60 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?

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.

Sources.

Keep going.