dsh-anchor
Session instruction anchor for DeepSeek Harness: the first step of a new session injects a freely composed instruction block as a plugin-sourced message, and it is re-anchored after a summarizing compaction, every N turns, or when metered context pressure crosses a threshold. An /anchor command re-anchors on demand without a model call; a settings page manages the paged preset library, injection order, re-anchor source and character limits.
DSH 会话指令定锚:新会话的第一个 step 把自由组合的指令块作为插件来源消息注入,之后在完成压缩、跨过设定轮数、或计量到的上下文压力越过阈值时重锚。`/anchor` 命令可按需定锚且不触发模型调用;设置页管理分页预设库、注入顺序、重锚来源与字数上限。
How to install
dsh plugin add @yeastcloud/dsh-anchor About
定锚 · Anchor **为 DeepSeek Harness 会话注入一段可自由组合的指令,并在压缩或长会话后自动重锚同一段原文。** 人设、口吻、工作纪律、项目规范——开场说一次,之后永远算数。 English · 更新日志 · 问题反馈 --- 它解决什么问题 你在会话开头写下一段"人设 / 规则"——用中文回答、先给结论、危险操作要先问、代码只给最小可运行版本。前几轮它很好用。然后: **第 40 轮**:那段话已经沉在上下文最深处,模型开始忘; **一次 /compact 之后**:它被摘要吞掉,彻底消失——而摘要不会替你复述"你要求先给结论"; **长工具链里**:几十条工具结果把它越推越远,风格和纪律一起漂走。 dsh-anchor 就是给这段指令**打一口锚**:开场注入一次,之后每当会话被压缩、跨过你设定的轮数、或上下文占用升过你设定的 token 数,就把**同一段原文**重新锚回去。 名字取自航海:锚不是缆绳,不能拖着船走;它只做一件事——**让船别漂**。这条插件也只做一件事。 特性 | 特性 | 说明 | | --- | --- | | 🧩 **多预设自由组合** | 预设库随便建(最多 100 条),勾选任意几条,按你排的顺序拼成一段指令注入。 | | ⚓ **压缩后自动重锚** | 检测到 compaction/summary(自动压力压缩或 /c…
Recommendation signals
Meta
- License
- NOASSERTION
- Language
- TypeScript
- GitHub stars
- 1
- mo. downloads
- 238
- Last push
- 2026-09-15
- Created
- 2026-09-15
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh, dsh-plugin
Related plugins
billion-context
ranxianglei/billion-context
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
dsh-chat-import
Nwflower/dsh-chat-import
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
dsh-rewind
SiriLee/dsh-rewind
In-place conversation rewind in the same session window without forking (Claude Code /rewind semantics): a per-message ↶ button cuts the model context back to any user message, with an optional Claude-Code-style file restore from disk-persisted before-backups.
dsh-recall-plugin
limbo947/dsh-recall-plugin
Recall any user message: rolls the conversation (official session fork) and workspace files (per-message shadow git snapshots) back to before it, with a diff-preview confirmation panel.