rinDBeans/dsh-apex-standard5

dsh-apex-standard

Unified anchored agent preset for DeepSeek V4 Pro/Flash (official API & opencode-go): Minimal-exact two-tool first-request bootstrap, model-aware Pro/Flash paths, epoch-aware catalog management for long-session stability.

包名
dsh-apex-standard
版本
1.2.1
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:rinDBeans/dsh-apex-standard

4.3 渠道与模型配置

~/.dsh/settings.yaml 中配置默认模型与预设:


## 5. 使用方法

### 5.1 启用

1. 完全退出并重启 dsh;
2. 创建全新会话,选择预设 `Apex Standard (Pro/Flash unified, experimental)`;
3. 请勿在活跃会话中切换预设——首请求锚定仅在会话开始时生效。

### 5.2 验证

导出会话 JSONL,检查 `request/header` 事件:

1. 首请求 `tools` 数组恰好为 `["bash", "str_replace_editor"]`;
2. 首请求不含 AGENTS.md/CLAUDE.md 摘要与 `` 提醒;Pro 的 system 为 Minimal 原文,Flash 的 system 为神模式五锚;
3. 首个 `tool/call` 或 `assistant/message` 之后:Pro 的下一 header 为常驻集(锚定对 + 三个发现工具),Flash 为完整 Standard 目录;
4. 若配置了 `bootstrapMaxTokens`,首请求 `config.maxTokens` 记录该值且晋升后被剥离;
5. 可选:统计 reasoning 词频,锚定生效时 `let me` 趋近于 0、`we` 高频、过程可见回复仅最终一次。

### 5.3 常见调优

| 场景 | 操作 |
| --- | --- |
| Flash 连续多轮修改同一文件(相关任务链) | 设 `flashGuidance: false` |
| Flash 晋升后保持窄目录 | `flashPromotedCatalog: resident` |
| 渠道模型 id 不含 pro/flash 字样 | `forcePath: pro` 或 `forcePath: flash` |
| 首请求锚定不稳的加强手段 | `bootstrapMaxTokens: 1024`(注意 rc.6 预构建包可能覆盖) |
| 长对话 / 大型工程的 Pro 防偏航 | `proDisciplineHint: true` |
| 纯 greenfield 创意构建(Pro) | 建议与官方 PTC/code preset 对照使用(见 §9) |

## 6. 配置说明

配置位于 `preset/agent.cordis.yml` 首行 `apex-bootstrap`:

| 键 | 默认值 | 说明 |
| --- | --- | --- |
| `bootstrapTools` | `[bash, str_replace_editor]` | 首请求可见工具(Minimal 真实工具对) |
| `promoteOn` | `either` | 晋升触发:`either` / `tool-call` / `assistant-message` |
| `bootstrapMaxTokens` | 未设 | 首请求输出上限(opt-in,晋升后显式剥离) |
| `suppressedContextSources` | `[agent-instructions, skill-catalog]` | bootstrap 期剥离的注入源;`[]` 禁用过滤 |
| `compactionTools` | `[read, edit, glob, grep]` | 压缩后、再晋升前的受控工具集 |
| `forcePath` | `auto` | 路径钉死:`auto` / `pro` / `flash` |
| `flashGuidance` | `true` | Flash 神模式 persona 开关 |
| `flashPersona` | 内置 w7+deep | 自定义 Flash persona 文本 |
| `flashPromotedCatalog` | `full` | Flash 晋升后目录:`full` / `resident` |
| `includeSubagents` | `false` | 子代理是否也走 bootstrap 阶段 |
| `proDisciplineHint` | `false` | Pro 晋升后每 epoch 注入一次长任务纪律提示 |
| `proDisciplineHintText` | 内置纪律提示文本 | 自定义提示内容 |