DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Persona Anchor — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
P

dsh-persona-anchor

Persona Anchor

Pin a persona prompt section that never competes for the AGENTS.md instruction budget

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:harmless0819-dev/dsh-persona-anchor#2ca773fb709eee2a451ef8a268eddb4c17f99bf1
READMECompatibilityVersions

Compatibility and provenance

Persona Anchor is published as dsh-persona-anchor and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/20/2026

Versions

0.1.0stable
9/20/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/20/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in memory-context.

Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessContextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.

README

dsh-persona-anchor

把「人设」文本钉进 system prompt,且不吃 AGENTS.md 的指令预算。

  • 插件类型:DSH host plugin(web profile),无客户端半边
  • 依赖:仅 node 内置模块
  • 状态:自用插件,已在本机跑通

为什么需要它

人设原本写在全局 ~/.dsh/AGENTS.md 里,由 @deepseek-ai/dsh-agent-instructions 注入。 那个插件给「全局 + 项目 AGENTS.md」总共 65536 字节(maxBytes),渲染规则是 按最宽泛 → 最具体排序,先整份丢掉最宽泛的,放不下才截断最具体那份。

人设恰好在最宽泛那份里 ⇒ 项目文件一长大,人设就是第一个被牺牲的, 而且不报错(只在注入块顶部留一行 Workspace instruction budget …)。

源码核对(dsh-agent-instructions/lib/index.js):Config 只有 maxBytes / maxSourceBytes / 候选名之类,没有任何 pin / alwaysInclude / priority 能保住某个文件。

⇒ 结论:在 AGENTS.md 这条通道里没有「永不掉」的配置,必须换通道。

为什么不用 personaPrefix(最直觉,但会静默失效)

dsh-system-prompt 的 assemble() 里有这一句:

const sectionByName = this.layers.merge(scope, (layer) => layer.sections)

而 section() 的文档写着「A scoped section shadows a global section with the same name」。 本机默认 agent preset 是 standard,它自己就注册了 deployment:persona-prefix ⇒ 往跑着的会话上写 personaPrefix,会被那个 scoped section 整个盖掉,且不报错。

这正是本插件存在的理由:换一个没人会注册的 section 名。

做法

注册一个独有名字的 prompt section(默认 deployment:persona-anchor),内容从磁盘文件读。

  • 名字独有 ⇒ 不可能被 preset shadow
  • 通道是 systemPrompt.section() ⇒ 完全不经过 65536 预算

排序借用 getSectionOrder('DEPLOYMENT_PERSONA_PREFIX')(= 0),即「部署人设」该在的位置。

安装

dsh plugin --profile web add github:harmless0819-dev/dsh-persona-anchor

配置

- id: dsh-persona-anchor
  name: dsh-persona-anchor
  config:
    file: 'C:/Users/<you>/.dsh/persona.md'   # 必填,绝对路径
    onError: log                             # log(默认)| throw
键默认说明
file必填人设文件绝对路径
sectiondeployment:persona-anchorsection 名;改成别的独特名也行
maxBytes524288 (512 KiB)单次读取上限,防手滑指到大文件
onError'log'读文件失败时:log 只告警 / throw 硬失败
order部署人设位section 排序
reloadMs0>0 时定时重读
routetrue是否注册状态路由

验证它真的生效

改完 persona.md 后,新开一个会话,问它「你的名字/设定是什么」。 若人设没进来,插件会注册一个状态路由报告 state.error,可从那里看到失败原因 (文件不存在 / 太大 / 空文件)。

注意

  • inject 只列了 systemPrompt。webServer 是可选依赖, 代码里用 ctx.inject([...]) 延迟注册 —— 写进顶层 inject 会让 headless profile(没有 webServer)整个加载失败。
  • 读文件失败默认不抛,只在日志和状态里报告,避免一个人设文件打不开就把整个 profile 搞挂。

License

MIT