Repository navigation
Commit 22fd7f7
committed
fix(session): give DeepSeek models a suitable system prompt
SystemPrompt.provider() selects a prompt by substring-matching model.api.id.
DeepSeek ids (e.g. deepseek-v4-pro, deepseek-3.2) match none of the existing
branches, so they fell through to PROMPT_DEFAULT (default.txt). That prompt
imposes aggressive brevity ("fewer than 4 lines", "One word answers are best")
and Task-first file-search delegation, which produce shallow answers and
unnecessary subagent hops for DeepSeek V4 coding work.
Route DeepSeek ids to PROMPT_KIMI (kimi.txt): a brand-neutral general-agent
prompt with no extreme-brevity rules, that treats Task delegation as optional
and encourages direct read/glob/grep exploration -- matching the behavior the
issue asks for. Match with .toLowerCase().includes("deepseek"), mirroring the
existing kimi/trinity branches and the DeepSeek matching already used in
provider/transform.ts (some ids are capitalized, e.g. DeepSeek-OCR). No other
model's routing changes.
Fixes anomalyco#382341 parent 42f7094 commit 22fd7f7
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| |||
0 commit comments