Awoodwhale/dsh-agent-persona ↗★ 0
dsh-agent-persona
Workspace personas for DeepSeek Harness (DSH): create many system-prompt personas and scope each one by workspace path or session id (exact / prefix / regex / contains), managed from a Web settings page with Markdown editing and AI tuning. 适合需要为不同项目或会话定制、切换和调优智能体人设的创作者。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Awoodwhale/dsh-agent-personaREADME
Read the full README ↗文件与配置
~/.dsh/dsh-agent-persona/
├── personas.json # 人设数据 + 偏好,权限 600,原子写入
└── state.json # 加载心跳,每次加载时重写
正文里可以写 {{model}} 和 {{cwd}},渲染时替换成当前的值;其他 {{...}} 会被去掉(未注册的变量会让
整个组装抛错,所以这里做了保护)。
配置项(Schemastery schema,加载时校验,写错类型会加载失败而不是被忽略):
| 配置 | 默认 | 说明 |
|---|---|---|
storePath | '' | 人设文件位置;留空即 $DSH_HOME/dsh-agent-persona/personas.json |
tuneProvider | '' | AI 调优用哪个 provider;留空即 DSH 当前设置的模型 |
tuneModel | '' | 同上,模型 id |
多个 profile 各用自己的人设文件(可选)
人设数据默认是全局一份($DSH_HOME/dsh-agent-persona/personas.json,与其它插件的状态目录同一约定),
所以同一台机器上的多个 profile 共用同一份人设。要让某个 profile 独立,在该 profile 的
cordis.patch.yml 里覆盖它自己的路径(是覆盖字段,不要再 insert 一行):