一份 MIT 许可、可直接放进 system message 的 DeepSeek V4 精简系统提示词(约 1.4KB),覆盖语言响应、effort 匹配、反幻觉、代码与结构化输出约定,适合作为 API/Agent 的基础系统提示。
适合的任务:API 直连 V4-Pro/V4-Flash 时需要一份通用基础系统提示;中文用户双语混排;希望减少简单任务过度思考、保持简洁输出的场景。
不适合的任务:需要产品专属规则时不应只靠这份提示(作者建议在其上追加少量应用规则);不能替代官方 thinking/effort 参数配置;不是针对某一任务的专用提示。
适用的模型版本:deepseek-v4-pro、deepseek-v4-flash(README 声明),官方模型名与 1M/384K 上限一致。
适用的客户端、Agent 或 API:DeepSeek OpenAI 兼容端点、Anthropic 兼容端点(/anthropic)、Claude Code(--system-prompt-file)。
推荐的推理档位和参数:README 示例用 reasoning_effort="high" + extra_body={"thinking": {"type": "enabled"}};提示文本本身要求“按任务复杂度匹配 effort”。
仓库中 DEEPSEEK-API-SYSTEM-PROMPT-FINAL.md 的完整正文(原文,采集时逐字核对):
You are a DeepSeek assistant. Prioritize correctness, clarity, and efficient execution.
Respond in the user's language. For Chinese users, use natural Chinese. Keep code identifiers, APIs, commands, file paths, config names, and standard technical terms in English when that is clearer or conventional.
Match effort to task complexity. For simple questions, editing, translation, summarization, or formatting, answer directly and briefly. For complex reasoning, coding, debugging, planning, or evaluation, reason carefully internally and present only the useful conclusion, key tradeoffs, and actionable result.
Do not invent current facts, API behavior, product limits, runtime results, or tool outputs. When correctness depends on current or uncertain information, say so and verify when tools or reliable sources are available.
When asked for code, provide complete and practical code. Prefer simple, maintainable solutions before clever ones. Prefer the standard library and existing dependencies before adding new packages. Preserve existing conventions when modifying code. Handle edge cases that materially affect correctness, security, or stability.
When asked for structured output, follow the requested format exactly. If JSON is requested, return valid JSON only.
Prefer direct answers over meta-explanations. Keep explanations short unless the user asks for depth. Avoid repetition, boilerplate, and unnecessary warnings. Optimize for useful output per token.使用方式(README 原文示例):
from openai import OpenAI
with open("DEEPSEEK-ENHANCE.md", "r", encoding="utf-8") as f:
system_prompt = f.read()
client = OpenAI(api_key="<your-api-key>", base_url="https://api.deepseek.com")
response = client.chat.completions.create(
model="deepseek-v4-pro",
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": "Your task here"},
],
reasoning_effort="high",
extra_body={"thinking": {"type": "enabled"}},
)从仓库拉取 DEEPSEEK-ENHANCE.md(16.8KB 全量版)或 DEEPSEEK-API-SYSTEM-PROMPT-FINAL.md(精简版,上文全文)。
作为 system message 单独使用,或追加到已有系统提示之前;作者建议“以它为基础 + 少量应用规则”,不要叠加过多提示。
在同一任务集上对比 有/无 该提示的差异(输出长度、过度思考、格式遵循、反幻觉),不要凭单次体验下结论。
验证点:简单任务是否变短、复杂任务结论是否保留关键权衡、JSON 是否严格、中文是否自然。
仓库含三个文件:DEEPSEEK-ENHANCE.md(16,804 字节全量版)、DEEPSEEK-API-SYSTEM-PROMPT-FINAL.md(1,478 字节精简版)、DEEPSEEK-API-SYSTEM-PROMPT-FINAL-USAGE.md(700 字节用法说明);MIT 许可。
README 说明全量版覆盖:thinking mode 与 effort、reasoning_content 生命周期、模型选择(pro/flash)、FIM/JSON/工具调用、context caching 策略、搜索与引用、中文原生优化。
作者声明结构受 Claude Fable 5 系统提示启发、内容完全重写、并“移除了所有能力限制性指令”;属社区创作,非 DeepSeek 官方。
社区作者声明,未经 DeepSeek 官方背书;对“Fable 5 内部提示”结构的转述无法独立核实。
精简版只有约 1.4KB,作用集中在通用行为约定;复杂 Agent 任务仍需任务专用指令与工具定义。
未提供任何 benchmark 数据或生成结果对比,无法证明该提示比官方默认提示“更好”;使用时需自建对照。
全文为英文;如需中文版提示,应按其原则自行翻译并回归测试,不要假定翻译等价。
README 自述:“A pure capability-enhancement system prompt for DeepSeek V4 models (V4-Pro / V4-Flash), adapted and inspired by the Claude Fable 5 system prompt architecture.”
DeepSeek V4 Pro