fix(sdk): inherit the general agent persona

This commit is contained in:
Dudu-0223 committed 2026-10-08 15:04:06 +08:00
1 parent 67c2fc749b
commit f5b72041bf
8 files changed
+20 -33

No files matched your search

+12 -12
View File
@@ -9,8 +9,8 @@
en: 1393fc0c2c6cf60c
zh: 61e2f2c46463101b
/deepseek-ai-dsh-sdk-app/summary:
en: f96841d96dc95a30
zh: 88aa3e92ae1deb9c
en: 5583f814d74d685f
zh: 7d52ecc2cdcd78d4
/deepseek-ai-dsh-sdk-app/table-of-contents:
en: 4e53164159b5ce41
zh: 89582dc0294d0776
@@ -20,16 +20,16 @@
/deepseek-ai-dsh-sdk-app/model-experience:
en: 215e7ba838619b7b
zh: a311da3843709f90
/deepseek-ai-dsh-sdk-app/model-experience/sdk-coding-agent-persona:
en: af149b1e7ed0a5fc
zh: fe483822d03deddb
/deepseek-ai-dsh-sdk-app/model-experience/sdk-coding-agent-persona/what-the-model-sees:
en: afe0af085d77833e
zh: f41ef2a2219f1248
/deepseek-ai-dsh-sdk-app/model-experience/sdk-coding-agent-persona/token-effect:
en: 371d28831239e0a8
zh: 57595359ff30a259
/deepseek-ai-dsh-sdk-app/model-experience/sdk-coding-agent-persona/kv-cache-effect:
/deepseek-ai-dsh-sdk-app/model-experience/sdk-model-context:
en: 4f88e647c6df4f42
zh: 2bd3e4b0bdfe9412
/deepseek-ai-dsh-sdk-app/model-experience/sdk-model-context/what-the-model-sees:
en: 40f68e7d3f181ed6
zh: 64b0d7c8bf63dfa1
/deepseek-ai-dsh-sdk-app/model-experience/sdk-model-context/token-effect:
en: 92d8ecb761e3ca7b
zh: e14c71ee2c31e818
/deepseek-ai-dsh-sdk-app/model-experience/sdk-model-context/kv-cache-effect:
en: 5b0e33295fb90e19
zh: 4d48ca75bb677202
/deepseek-ai-dsh-sdk-app/known-limitations-and-deferred-work:
+4 -4
View File
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
## Summary
The SDK stdio application as a `dsh` profile bundle over [`dsh-base`](../base/README.md). It inherits the base's disabled module-HMR policy; its patch sets the coding-agent persona, mounts an app-owned zero-option command provider, and starts [`dsh-sdk-jsonrpc-server`](../../sdk/server/README.md) only after that provider accepts the invocation. `dsh --profile sdk --help` therefore writes help and exits without claiming stdin or stdout. The standalone [`sdk-minimal`](../sdk-minimal/README.md) bundle reuses the same startup provider with its own profile name.
The SDK stdio application as a `dsh` profile bundle over [`dsh-base`](../base/README.md). It inherits the base's disabled module-HMR policy; its patch mounts an app-owned zero-option command provider, and starts [`dsh-sdk-jsonrpc-server`](../../sdk/server/README.md) only after that provider accepts the invocation. `dsh --profile sdk --help` therefore writes help and exits without claiming stdin or stdout. The standalone [`sdk-minimal`](../sdk-minimal/README.md) bundle reuses the same startup provider with its own profile name.
## Table of Contents
@@ -40,15 +40,15 @@ The packaged Python runtime enables the [Office runtime query and skills](../../
<a id="model-experience"></a>
## Model Experience
### SDK coding-agent persona
### SDK model context
#### What the model sees
The profile supplies `You are a coding agent powered by the {{model}} model.` before first-party guidance; the SDK initialization route resolves `{{model}}`. Each Session receives its current directory in required user-role context from [`dsh-working-directory`](../../session/working-directory/README.md). Default file tool schemas include `read`, `write`, and `edit`; they omit `str_replace_editor`.
The profile inherits the base system prompt, including the `You are an AI agent powered by DeepSeek Harness.` identity, without adding a task-specific persona. Each Session receives its current directory in required user-role context from [`dsh-working-directory`](../../session/working-directory/README.md). Default file tool schemas include `read`, `write`, and `edit`; they omit `str_replace_editor`.
#### Token effect
One short stable persona plus the data-dependent base prompt sections and selected tool schemas.
The base prompt sections and selected tool schemas determine token usage; this profile adds no persona text.
#### KV Cache effect
+4 -4
View File
@@ -9,7 +9,7 @@ kind: "package-bundle"
## 概述
以 [`dsh-base`](../base/README.zh.md) 为基础的 SDK stdio 应用 `dsh` profile 组合包。它继承 base 默认禁用模块 HMR(热模块替换)的策略;其 patch 设置 coding agent(编程智能体)persona、挂载应用自有的零选项命令提供方,并且只在该提供方接受调用后启动 [`dsh-sdk-jsonrpc-server`](../../sdk/server/README.zh.md)。因此,`dsh --profile sdk --help` 会写出 help 并退出,不会占用 stdin 或 stdout。独立的 [`sdk-minimal`](../sdk-minimal/README.zh.md) bundle 复用同一个启动提供方,并提供自己的 profile 名称。
以 [`dsh-base`](../base/README.zh.md) 为基础的 SDK stdio 应用 `dsh` profile 组合包。它继承 base 默认禁用模块 HMR(热模块替换)的策略;其 patch 挂载应用自有的零选项命令提供方,并且只在该提供方接受调用后启动 [`dsh-sdk-jsonrpc-server`](../../sdk/server/README.zh.md)。因此,`dsh --profile sdk --help` 会写出 help 并退出,不会占用 stdin 或 stdout。独立的 [`sdk-minimal`](../sdk-minimal/README.zh.md) bundle 复用同一个启动提供方,并提供自己的 profile 名称。
## 目录
@@ -40,15 +40,15 @@ SDK 使用 base 默认提供的 `read`、`write` 和 `edit`。要添加 `str_rep
<a id="model-experience"></a>
## 模型体验
### SDK coding agent persona
### SDK 模型上下文
#### 模型看到什么
profile 在第一方指导之前提供 `You are a coding agent powered by the {{model}} model.`;SDK 初始化路由解析 `{{model}}`。每个 Session 通过 [`dsh-working-directory`](../../session/working-directory/README.zh.md) 提供的必需 user-role 上下文接收当前目录。默认文件工具 schema 包含 `read`、`write` 和 `edit`,不包含 `str_replace_editor`。
profile 继承 base 系统提示词,包括 `You are an AI agent powered by DeepSeek Harness.` 身份说明,不额外添加特定任务的 persona。每个 Session 通过 [`dsh-working-directory`](../../session/working-directory/README.zh.md) 提供的必需 user-role 上下文接收当前目录。默认文件工具 schema 包含 `read`、`write` 和 `edit`,不包含 `str_replace_editor`。
#### Token 影响
一段简短稳定的 persona,加上随数据变化的 base 提示词段落与所选工具 schema。
base 提示词段落与所选工具 schema 决定 token 用量;此 profile 不额外添加 persona 文本。
#### KV Cache 影响
-5
View File
@@ -1,10 +1,5 @@
# The SDK application over dsh-base. Stdout belongs exclusively to JSON-RPC.
- id: system-prompt
config:
personaPrefix: >-
You are a coding agent powered by the {{model}} model.
- id: session-title-llm
disabled: true
@@ -1,7 +1,5 @@
You are an AI agent powered by DeepSeek Harness.
You are a coding agent powered by the deepseek-v4-flash model.
Check the [exit code: N] marker on every bash result; investigate failures before moving on.
Use the read tool — not shell commands like cat — to inspect text files. Use offset and limit to continue reading large files.
@@ -1,7 +1,5 @@
You are an AI agent powered by DeepSeek Harness.
You are a coding agent powered by the deepseek-v4-flash model.
Check the [exit code: N] marker on every bash result; investigate failures before moving on.
Use the read tool — not shell commands like cat — to inspect text files. Use offset and limit to continue reading large files.
@@ -1,7 +1,5 @@
You are an AI agent powered by DeepSeek Harness.
You are a coding agent powered by the mock-delegate model.
Check the [exit code: N] marker on every bash result; investigate failures before moving on.
Use the read tool — not shell commands like cat — to inspect text files. Use offset and limit to continue reading large files.
@@ -1,7 +1,5 @@
You are an AI agent powered by DeepSeek Harness.
You are a coding agent powered by the deepseek-v4-flash model.
Check the [exit code: N] marker on every bash result; investigate failures before moving on.
Use the read tool — not shell commands like cat — to inspect text files. Use offset and limit to continue reading large files.