Tabbit
ResourcesBlogModels
Tabbit LogoTabbit

Tabbit — The AI Browser that Works for You

Topics

  • AI Browser Resources
  • Agentic Browser Resources
  • Browser Downloads and Install Guides
  • Browser Comparisons
  • AI Browser Alternatives
  • Browser Productivity Resources

Popular Guides

  • AI Browser
  • Agentic Browser Download
  • Best AI Browser 2026: Top 9 Tested & Ranked
  • AI Browser Download
  • Free AI Browser
  • Best AI Browser 2026
  • AI Browser Comparison 2026
  • AI Browser for Windows
  • AI Browser for Mac
  • Chrome Alternative 2026

Events

  • Tabbit Skill Competition
  • KPOP SBTI Fandom Personality Test
  • Tabbit Campus Creator Program
  • fifi's Picks: AI Skills for Research Papers
  • User Survey

About

  • Tabbit Blog
  • Press & Media
English
简体中文English
Prompts and workflows

DeepSeek V4 Flash · prompting-guide

Switch roleplay thinking styles

Append a first-turn mode instruction; the source describes a probabilistic style control, not a guarantee.

Source reviewed; not testedDeepSeek V4 API or official app/web Expert Mode

Prerequisites and inputs

  • character brief
  • first user message
  • mode instruction

Notes

  • This document describes the special control instructions for DeepSeek-V4 roleplay, used to switch the chain-of-thought (CoT) style in thinking mode.

  • Scope of application: Expert Mode in the official DeepSeek app and web client, as well as the deepseek-v4-flash and deepseek-v4-pro APIs. Quick Mode on the web version is not currently supported.

  • Probabilistic output: 100% triggering is not currently guaranteed, but the instructions reliably increase the probability of getting the desired format. If they do not work the first time, try a few more times.

Three modes

ModeActionThinking behavior
DefaultAdd nothingThe model chooses automatically based on scene complexity
Character ImmersionAdd the corresponding [Role Immersion Requirement] instruction at the end of the first turnThinking contains the character's inner monologue in parentheses
Pure AnalysisAdd the corresponding [Thinking Mode Requirement] instruction at the end of the first turnThinking contains only pure logical analysis, with no inner monologue

Effect comparison (examples, not real output):

Character Immersion — "in character" like an actor:    Pure Analysis — calm planning like a director:
<think>                                                  <think>
(He greeted me... my heart is racing.)                   Scene: The user greets the character, who is tsundere.
I'll pretend not to care.                                Reply strategy: Act aloof at first; body language betrays the character's feelings.
(Don't let him see I'm happy!)                           150 characters; action first, then dialogue.
</think>                                                 </think>

Instructions (ready to copy and paste)

Character Immersion mode:

[Role Immersion Requirement] In your thinking process (inside the <think> tag), follow these rules:
1. Use the character's first person for inner monologue, enclosing inner thoughts in parentheses, for example "(Thinking: ...)" or "(Inner monologue: ...)"
2. Describe the character's inner feelings in the first person, using expressions such as "I think to myself," "I feel," and "I secretly..."
3. Keep the thinking immersed in the character, using inner monologue to analyze the plot and plan the reply

Pure Analysis mode:

[Thinking Mode Requirement] In your thinking process (inside the <think> tag), follow these rules:
1. Do not use parentheses to enclose inner monologue, for example "(Thinking: ...)" or "(Inner monologue: ...)", and state all analysis directly instead
2. Do not describe inner activity in the character's first person, using expressions such as "I think to myself," "I feel," and "I secretly..."; use analytical language instead
3. Focus the thinking on analyzing the direction of the plot and planning the reply; do not perform character-style inner drama in the thinking

How to use it on the web client

Only one step: paste the instruction at the end of your first message, then chat normally.

"I push open the coffee-shop door and see you wiping down the counter." "Hello, are there any seats available?"

[Role Immersion Requirement] In your thinking process (inside the <think> tag), follow these rules:
1. Use the character's first person for inner monologue, enclosing inner thoughts in parentheses, for example "(Thinking: ...)" or "(Inner monologue: ...)"
2. Describe the character's inner feelings in the first person, using expressions such as "I think to myself," "I feel," and "I secretly..."
3. Keep the thinking immersed in the character, using inner monologue to analyze the plot and plan the reply

Why it works: The model sees the full conversation history on every reply, so the first-turn instruction stays in context and applies throughout.

Tips:

  • Want to switch modes? Start a new conversation and paste the other instruction into the first message.

  • Don't want to use one? Add nothing—the model chooses the most suitable thinking style.

  • Click View thinking process to verify that the mode is active.

API developer reference (Python)

INNER_OS_MARKER = (
    "\n\n[Role Immersion Requirement] In your thinking process (inside the <think> tag), follow these rules:\n"
    "1. Use the character's first person for inner monologue, enclosing inner thoughts in parentheses, for example \"(Thinking: ...)\" or \"(Inner monologue: ...)\"\n"
    "2. Describe the character's inner feelings in the first person, using expressions such as \"I think to myself,\" \"I feel,\" and \"I secretly...\"\n"
    "3. Keep the thinking immersed in the character, using inner monologue to analyze the plot and plan the reply"
)
NO_INNER_OS_MARKER = (
    "\n\n[Thinking Mode Requirement] In your thinking process (inside the <think> tag), follow these rules:\n"
    "1. Do not use parentheses to enclose inner monologue, for example \"(Thinking: ...)\" or \"(Inner monologue: ...)\"; state all analysis directly instead\n"
    "2. Do not describe inner activity in the character's first person, using expressions such as \"I think to myself,\" \"I feel,\" and \"I secretly...\"; use analytical language instead\n"
    "3. Focus the thinking on analyzing the direction of the plot and planning the reply; do not perform character-style inner drama in the thinking"
)

def build_messages(system_prompt, user_first_message, mode="default"):
    if mode == "inner_os":
        user_first_message += INNER_OS_MARKER
    elif mode == "no_inner_os":
        user_first_message += NO_INNER_OS_MARKER
    return [
        {"role": "system", "content": system_prompt},
        {"role": "user",   "content": user_first_message},
    ]

messages = build_messages("You are a tsundere high school girl...", "「I walk into the classroom」\"Morning.\"", mode="inner_os")
response = client.chat(messages)

messages.append({"role": "assistant", "content": response})
messages.append({"role": "user", "content": "「I sit down next to her」\"Are you feeling down today?\""})
response = client.chat(messages)  # The marker from round 1 remains in the history and applies automatically

FAQ

Q: Can the instruction go in the system prompt?
A: The recommended placement is at the end of the first user message—it is the training-time injection position and works most reliably.

Q: Does the final reply change after adding the instruction?
A: The instruction only affects the thinking process, but the thinking style indirectly shapes the reply: character immersion feels more emotional, while pure analysis is structurally steadier.

Other CoT modification method (lucky draw, not specially trained)

  • Add to the first-turn instruction: your thinking output should start verbatim with ` thinking (write the desired CoT opening here, e.g. 嗯/好的)`, output thinking only once, do not repeat ` thinking.

  • thinking is the fixed <think> token; the principle is to change the first character of the reasoning to force the model into different CoT patterns (QA, writing, reasoning, and agent), but these patterns were not trained specifically for roleplay, so the results may be luck-based.

Source note: This English guide was translated from the Chinese original (author Deli Chen, a DeepSeek employee) and sha… This is a necessary excerpt; read the original source for full context.

Source and dates

GitHub repository victorchen96/deepseekv4rolepalyinstruct (official English README) · Source date: Not disclosed · Edited: 2026-09-20

Read the original source
Variable checklist

No required variables

Related prompts

Delegate in layers and synthesize a monograph with DSHSwitch between character immersion and pure analysisSwitch two thinking styles in SillyTavernAIStructure DeepSeek tasks with the CRISPE framework

Related reviews

I Ran DeepSeek V4 Flash on 8 Agent Harnesses (Reddit r/DeepSeek)DeepSeek-V4-Flash: 0731 Benchmark Update and Harness ConditionsDeepSeek-V4-Flash: Local Deployment, Quantization, and Agent TestingDeepSeek V4 Flash 0731 Benchmarks, Pricing & Speed (BenchLM)

Read the full analysis

Pricing · English

DeepSeek V4 Flash Pricing: What You Pay in 2026

DeepSeek V4 Flash pricing changed with the V4.1 migration. See the current cache, peak-hour, output, and workload cost math before you budget.

DeepSeek V4 Flash

Use DeepSeek V4 Flash in Tabbit

Run this guide in the environment listed above. Downloading does not transfer the template or establish model availability for your account.