harmless0819-dev/dsh-persona-anchor ↗★ 0
dsh-persona-anchor
Pin a persona prompt section that never competes for the AGENTS.md instruction budget 适合需要长期固定特定人设且不希望占用常规指令预算的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:harmless0819-dev/dsh-persona-anchor配置
- id: dsh-persona-anchor
name: dsh-persona-anchor
config:
file: 'C:/Users//.dsh/persona.md' # 必填,绝对路径
onError: log # log(默认)| throw
| 键 | 默认 | 说明 |
|---|---|---|
file | 必填 | 人设文件绝对路径 |
section | deployment:persona-anchor | section 名;改成别的独特名也行 |
maxBytes | 524288 (512 KiB) | 单次读取上限,防手滑指到大文件 |
onError | 'log' | 读文件失败时:log 只告警 / throw 硬失败 |
order | 部署人设位 | section 排序 |
reloadMs | 0 | >0 时定时重读 |
route | true | 是否注册状态路由 |