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
Prompt guide
CommunityDeepSeek V4 Flash

A Guide to Special Control Instructions for DeepSeek-V4 Role-Playing (Thinking-Mode Switching Guide)

Original source

GitHub repository victorchen96/deepseekv4rolepalyinstruct

Tabbit curation2026-08-19

Read original

Overview

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

  • Scope: DeepSeek's official app and website Expert Mode, as well as the deepseek-v4-flash and deepseek-v4-pro APIs. Quick Mode on the app and website is not currently supported.

  • Probabilistic output: It is not currently possible to trigger this 100% of the time, but the instructions reliably increase the probability of getting the desired format. If they do not take effect once, try a few more times.

Three modes

ModeActionThinking behavior
DefaultAdd nothingThe model chooses automatically based on the complexity of the situation.
Role immersionAdd the instruction corresponding to [Role immersion requirement] at the end of the first turnThe thinking includes the character's inner monologue enclosed in parentheses.
Pure analysisAdd the instruction corresponding to [Thinking mode requirement] at the end of the first turnThe thinking contains only pure logical analysis, with no inner monologue.

Example comparison:

Role immersion mode — like an actor getting into character:        Pure analysis mode — like a director planning calmly:
<think>                                                          <think>
(They greeted me... My heart is racing.)                             Scene: The user says hello; the character is tsundere.
I have to pretend I don't care when I reply.                        Reply strategy: Start by acting annoyed; body language reveals the true feelings.
(I can't let them see how happy I am!)                              Limit to 150 characters; describe the action first, then the dialogue.
</think>                                                         </think>

Original instructions (ready to copy)

Role 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: ...)"; 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

There is only one step: paste the instruction at the end of the first message, then chat normally.

Example:

"I push open the coffee-shop door and see you wiping down the counter." "Hello, do you still have 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

How it works: The model sees the complete conversation history each time it replies, so the instruction from the first turn remains in context and takes effect automatically throughout the conversation.

Tips:

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

  • Don't want to use one? Add nothing; the model will automatically choose the most appropriate way to think.

  • Click View thinking process to verify whether the mode is working.

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},
    ]

# First turn: append the instruction automatically
messages = build_messages("You are a tsundere high-school girl...", "I walk into the classroom. \"Good morning.\"", mode="inner_os")
response = client.chat(messages)

# Later turns: append normally; no further processing is needed
messages.append({"role": "assistant", "content": response})
messages.append({"role": "user", "content": "I sit down beside her. \"Are you feeling down today?\""})
response = client.chat(messages)  # The first turn's marker remains in the history and takes effect automatically

FAQ

Q: Can the instruction go in the system prompt?
A: It is recommended to put it at the end of the first user message, which is where it was injected during training; this produces the most stable results.

Q: Will the final reply change after adding the instruction?
A: The instruction only affects the thinking process. However, the way the model thinks can indirectly affect the reply: the role-immersion mode produces more emotionally authentic responses, while the pure-analysis mode produces more stable structure.

Another method for changing the chain of thought (purely experimental, not specially trained)

  • Add the following to the first-turn instruction: Your thinking output must begin exactly, character for character, with thinking (write the desired opening of the chain of thought here, such as 嗯/好的), and the thinking must be output only once; do not repeat the output of thinking``

  • thinking is the fixed token for <think>. The idea is to change the first character of the reasoning and force the model into a different pattern (for example, QA, writing, reasoning, and Agent have different chain-of-thought patterns), but these patterns were not specially trained for role-playing, so it may come down to luck.

Note: The instructions in this repository apply to the DeepSeek-V4 series, including the deepseek-v4-flash API; Quick Mo… This is a necessary excerpt; read the original source for full context.

Curated by Tabbit

Prompt material is summarized from public sources and Tabbit editorial notes. Check the original licensing and intended use before copying it.

DeepSeek V4 Flash

Use in Tabbit

DeepSeek V4 Flash

Related prompts

OfficialDeepSeek API Docs2026-07-31

DeepSeek-V4-Flash: 0731 Thinking Levels and Tool-Calling Configuration

OfficialDeepSeek API Docs2026-07-31

DeepSeek-V4-Flash: Codex Responses API integration workflow

CommunityReddit r/SillyTavernAI

DeepSeek V4 RP Guide — How to Switch Between Character Immersion & Pure Analysis Thinking Modes (Reddit r/SillyTavernAI)

MediaTencent Cloud Developer Community (cloud.tencent.com)2026-06-05

Don't Let AI Make You Cry: The Ultimate 2026 DeepSeek-V4 Prompting Guide

DeepSeek V4 Flash

Related reviews

OfficialDeepSeek API Docs2026-07-31

DeepSeek-V4-Flash: 0731 Benchmark Update and Harness Conditions

MediaMindStudio2026-08-01

DeepSeek-V4-Flash: Local Deployment, Quantization, and Agent Testing

MediaLightning AI blog2026-04-27

DeepSeek V4 Alters Everything We Knew About Price-Performance Math (Lightning AI)

MediaBenchLM.ai (model benchmarking and pricing tracking site)2026-07-31

DeepSeek V4 Flash 0731 Benchmarks, Pricing & Speed (BenchLM)