dsh-followup-suggestions

DSH PLUGIN会话与消息

仓库 yubailoving/dsh-followup-suggestions

会话与消息 未标注验证等级 安全审查:未标注 可信度:未标注 可安装插件

为 DeepSeek Harness 会话最后一条回复下方生成 1-3 个追问建议芯片,由该会话所选模型产出,点击仅填入输入框,不污染对话历史。

一句话选型结论

按资料字段整理

dsh-followup-suggestions 是会话与消息类的 DSH 可安装插件,未做沙盒验证,暂无安全审查结论,列出 5 项功能,没有现成安装命令,需要按仓库 README 接入。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类会话与消息 收录类型可安装插件 验证等级未标注验证等级 安全审查未标注
验证等级 UNKNOWN 未标注验证等级
GitHub 星标 1 复刻 0 · 未关闭 issue 0
最近更新 2026-10-10 创建于 2026-10-10
README 15.2 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

5 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-followup-suggestions:为 DeepSeek Harness 会话补上追问建议

  • 末条回复下方显示建议芯片
  • 沿用会话所选模型生成
  • 点击仅填入输入框不发送
  • 结果缓存避免重复请求
  • 失败静默不污染会话

上游标签

chat-uideepseekdeepseek-harnessdshdsh-client-plugindsh-pluginfollow-up-suggestions

验证等级与安全审查

未标注验证等级
自动化流程结论,不是人工审核
验证等级未标注验证等级上游未给出验证结论,安装前请自行确认
安全审查未标注静态分析结论,未标注不代表已通过审查
仓库健康度未标注按仓库活跃度与最近更新时间给出
可信度未标注综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 列出了 5 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 安全审查还没结论,装之前先看仓库改了什么、要什么权限。
  • 没有现成安装命令,要按仓库 README 手动接入。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在会话与消息场景里给 DSH 补能力的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-followup-suggestions当前 未做沙盒验证 未标注 1 未标注 无
dsh-desktop L3 · 安装规范通过 低风险 3.0 万 未标注 无
openpets L4 · 沙盒安装通过 低风险 1,274 未标注 有
deeptide L4 · 沙盒安装通过 低风险 1,104 0.1.1-rc.2 有
jingyun-dsh L3 · 安装规范通过 低风险 1,004 未标注 有
study-mate 未做沙盒验证 未标注 856 未标注 无

仓库档案

会话与消息
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方yubailoving仓库 dsh-followup-suggestions · 默认分支 main
分类会话与消息client
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言JavaScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue1 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-10 · 2026-10-10最后推送 2026-10-10
本站收录2026-10-10首次进入本站目录的时间

README 全文

15.2 KB
作者原文,中文版优先;只做安全转义,不改内容

English · 中文

Follow-up Suggestions


A DSH plugin that renders 1-3 follow-up suggestion chips directly under a session's last completed reply. The text is produced by the model that session has selected; a click fills the composer and puts your cursor in it, never sending anything. A small refresh icon next to the label asks for one fresh batch.

This repository carries the dsh-plugin topic, which the DeepSeek Harness documentation requires of plugin repositories so they can be discovered; the link above is the inline, clickable form of that requirement.

assistant: The Luding Bridge assault happened in May 1935 …
[copy] [branch] …
Suggested ↻
┌──────────────────────────────┐ ┌──────────────────────────┐
│ Walk me through the assault  │ │ What is still debated?   │
└──────────────────────────────┘ └──────────────────────────┘

What it does

  • Generates on the Host: it reads the Session's logged request header (session.requestHeader().config) for the provider/model you picked in /model or the composer's model menu, and runs one one-shot ctx.llm.stream() call for 1-3 short lines.
  • Renders into ui-chat's conversation.chat.turnTail seat on the Client, ordered with order:1 so the row sits below the copy/branch action strip.
  • Only the last reply: shown only when the Turn record is status === "closed" and it is the newest entry in timeline.turnOrder. Scrollback never requests or shows chips.
  • Click = fill the composer and enter the input state through ui-conversation's inputActions.setDraft(), followed by a focus on the composer's contenteditable with the caret placed at the end of the text — so you can keep typing immediately. It never sends.
  • Refresh = one fresh batch: the icon after the label asks the Host for this Turn's suggestions again, bypasses both caches on purpose, and replaces the chips on screen and the batch cached for that Turn. A refresh that fails or comes back empty changes nothing, so the chips you are reading stay. While it runs the icon spins, and the button is disabled.
  • Cached: one completed Turn costs one model call. The Host remembers settled answers and shares calls already in flight; the browser stores answers per Turn in localStorage, so a reload, a view switch, or a second tab shows the same chips with no request at all — until you press refresh.
  • Silent on failure: a gone Session, a Session with no logged route, a model error, a dead network, or an empty answer all render nothing; empty answers and failures are deliberately not cached, so the next visit retries.
  • No session pollution: the call writes nothing to the Session log, never enters model history, and never affects the KV cache.

Install

Option 1 — plugin manager

plugin_manager install_bundle target="github:YubaiLoving/dsh-followup-suggestions"

Option 2 — manual

The package directory must live under the profile's node_modules, with one Loader entry at the end of cordis.patch.yml (one row mounts both halves):

~/.dsh/profiles/desktop/node_modules/dsh-followup-suggestions/
- insert:
- id: followup-suggestions
name: 'dsh-followup-suggestions'

Two notes on that row. First, the package ships its own cordis.patch.yml (declared through dsh.bundle.patch); when your profile applies bundle patches, that file already inserts the identical row, so do not add a second one. Second, the row above is all the Host and Client halves need — a separate top-level override row with the same id and no insert is only what makes the plugin addressable (and therefore switchable) on the plugin page:

- id: followup-suggestions
name: 'dsh-followup-suggestions'

DSH re-applies the patch layer in place: the browser half needs a page refresh, while the Host half only picks up code changes after a DSH restart (loaded modules are cached in the process). Changing the entry's config, however, reloads the plugin immediately (verified: setting maxItems: 1 made the very next request return one chip). The refresh button is exempt from the restart rule: it also carries a cache-missing synthetic sequence, so pressing it regenerates for real even while the Host is still the older build that ignores refresh.

Install troubleshooting

Three environment-level failures account for almost every "the chips are gone" report. None of them is a plugin bug, and any one of them aborts the whole pnpm install — which is why the symptom shows up as a plugin that silently stops appearing rather than as an error in the UI.

Symptom Cause Fix
ERR_PNPM_FETCH_403 on GET https://www.npmjs.com/package/ pnpm 11 re-verifies each lockfile entry against its supply-chain policy and fetches the npm website page for the package; that request can be refused with 403 while registry.npmjs.org still answers 200 — a proxy or bot-protection issue, not a problem with the package rerun the install with the re-verification skipped: pnpm install --trust-lockfile (verified: turns a hard failure into a successful install in seconds)
ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED another dependency in the same profile comes from git and wants to run build scripts, but is not allowlisted add that package to allowBuilds in the profile's pnpm-workspace.yaml, using the exact key the message prints ('@': true)
You edited this plugin's source, but the running DSH still behaves the old way a file: dependency is copied into the profile, not symlinked, so the install froze the source as it was at install time rerun the install inside the profile directory after every source edit; a Host-half change additionally needs a DSH restart

An aborted install does not tear down what already worked — but the package being added or relinked never lands, so a plugin can disappear between two restarts. Check what is really installed before debugging anything else:

# Windows path shown; adapt to your OS
node -p "require('C:/Users//.dsh/profiles/desktop/node_modules/dsh-followup-suggestions/package.json').version"

Then confirm the roster still carries the plugin (in ~/.dsh/profiles/desktop/cordis.patch.yml, the id must be present both in the insert list and as a top-level row).

Configuration (optional)

Add a config block to the entry in cordis.patch.yml:

- id: followup-suggestions
name: 'dsh-followup-suggestions'
config:
maxItems: 3           # 1-3; anything higher is clamped to 3
maxTokens: 320        # output cap, not a target — unused budget costs nothing
timeoutMs: 30000      # per-call timeout
maxContextChars: 1200 # retained tail per context side
reasoningEffort: off  # lowest effort; null / inherit follows the session route default

Every field may be omitted. config changes take effect immediately (the plugin reloads; no restart).

How it works

Concern Detail
Model choice Routing comes entirely from the Session's own request header — the plugin has no model setting of its own, so switching models with /model switches the suggestions too
Context session.deriveMessages(): the last user text plus the last assistant text, each trimmed to 1200 characters of tail
Call ctx.llm.stream({ provider, model, maxTokens, reasoningEffort, sessionId, messages, signal }) with an AbortSignal.timeout guard; BlockAssembler collects the stream
Transport Host registers POST /api/dsh-followup-suggest through ctx.connection.fetch.register(); the Client uses a same-origin fetch
Placement ctx.slots.inject("conversation.chat.turnTail", …). The seat's outlet wrapper is display:contents, so this row is a sibling of the action strip and order:1 puts it below (if that container ever stops being a flex column the declaration is ignored and the row falls back above the strip)
Effort The lowest effort is requested with a maxTokens cap. A route that does not know the effort answers UNSUPPORTED_REASONING_EFFORT; the call is then repeated without it and that route is remembered as effortless
"Newest" test The Turn seat has no "am I latest" prop, so the standard useChat() seat reads timeline.turnOrder; when that seat is missing the row stays hidden
Cache key Session + Turn + closing final node seq. The closing sequence makes entries self-invalidating: a retry, a branch, or a later Turn all move it
Host cache Settled-answer map (256 entries / 24h) plus an in-flight promise map, so two concurrent requests for one key share a single model call. Empty answers and failures are never stored. A request carrying refresh: true skips both shortcuts, calls the model again, and replaces the settled answer for the key it was handed
Browser cache In-page map, then localStorage: dsh.followupSuggestions.v1 (40 entries / 7 days). The first render reads it through a lazy initializer, so a reload paints the chips with the reply. Only a refresh rewrites an entry
Click focus inputActions exposes no focus verb (only setDraft/insertText/submit/attachments), so the composer is resolved by [data-conversation-content][data-conversation-session="…"] [data-composer-input] and focused directly, with an explicit caret at the end — a bare DOM focus would land at the start, because ui-conversation restores the caret through Lexical's own focus(). Both attributes belong to ui-conversation; if they are renamed the lookup misses and a click only writes the draft
Refresh transport The refresh request carries refresh: true and a synthetic closing sequence (seq + REFRESH_SEQ_STEP × n). A current Host reads the flag; a Host build already loaded before the flag existed ignores it, and the synthetic sequence is what makes its settled-answer key a miss without a restart
Stylesheet Injected once per document, and rewritten when this build's rules differ from the tag already in the page. A plugin reload (HMR or re-mount) does not reload the document, so without that comparison a changed size or gap would never reach the page until a hard refresh
Dependencies Host: @deepseek-ai/dsh-llm; Client: react only

Performance

There are two costs: the model call (the only significant one) and rendering. Measured locally, on real sessions with a real model:

Scenario Before After
Repeated request for one Turn (Host cache hit) ~1.5–2.4 s, unstable text ~5 ms, identical text
Reload / switch away and back One model call each time 0 calls (painted with the reply)
First load (a call is unavoidable) ~2 s of nothing, then a pop-in Three placeholder pills immediately, replaced when the answer lands
Two tabs asking at the same instant Two model calls One (shared in-flight promise)

On the lowest reasoning effort: an interleaved A/B (2×5 calls per arm against the same live Host, toggling the entry's config) found no measurable latency difference — median 1413 ms inherited vs 1495 ms off, inside the noise, because first-token time from the provider dominates. It is kept for reliability: the answer is very short, so a route that inherits a high effort spends the output budget thinking and can truncate below three lines when maxTokens is small (4 of 10 calls in the inherited arm returned fewer than three chips; the off arm returned three 10 times out of 10). Per-call latency is unchanged; what this plugin optimizes is repeated work and perceived latency.

Known limitations

  • Only the last reply of the session you are viewing: intentional (fewer calls, no noise), not precomputed per session.
  • Two DOM/seat contracts: a Turn record carrying status/turn, and useChat().timeline.turnOrder. If ui-chat changes either, lib/client.js needs the matching update.
  • Depends on ui-conversation's inputActions and composer DOM: without that seat the chips still render but clicking does nothing; if data-conversation-content/data-conversation-session/data-composer-input are renamed, a click still fills the draft but no longer moves the keyboard.
  • Cached chips live 7 days by default: one Turn's suggestions stay stable that long, and the refresh icon is the way to ask for a new batch. Clearing dsh.followupSuggestions.v1 from localStorage does the same thing by hand.
  • A refresh costs one model call: by design — it is the only action that bypasses both caches.
  • The Host cache is process memory: nothing is written to disk and it empties on restart.
  • Host-side code changes need a restart: loaded modules are cached in the process (entry config changes are the exception — those reload immediately, and the refresh button still works because its request misses the old Host's cache key by construction).
  • No session pollution: suggestions live only in browser localStorage and Host memory, never in the Session log, so they never appear in an export.

Test

node test/smoke.mjs

No DSH runtime required: a stub module loader drives lib/index.js (real Request/Response, stub ctx.llm), and a minimal hook runtime mounts the component lib/client.js registers. 99 assertions cover route registration and path, the model route coming from the session header, list-marker and quote stripping, over-long line dropping, the item cap, empty results for failures/routeless/unknown sessions, live Turns rendering nothing and requesting nothing, older Turns rendering nothing, the placeholder-then-chips flow on the newest Turn, click-only-fills-the-draft plus the composer focus and end-of-draft caret, silent Host failure, a missing seat not crashing, and the injected stylesheet being rewritten when the build's rules change while an identical one is left alone; prompt and budget behavior, including the default lowest effort, null inheritance, the single no-effort retry per route, and the context bound; caching, including Host cache hits, one model call for concurrent identical requests, self-invalidation on a new sequence, failures not being cached, the Host refresh flag bypassing the settled answer and replacing it (with a non-boolean flag left alone), the synthetic sequence missing the answer on a Host that has no flag at all without disturbing the real key, plus the browser side's persistent hit, write-back, no-request remount, re-request on a new sequence, empty answers staying uncached, the refresh button's place in the label row, its disabled/busy states, the one request it issues with the flag and a cache-missing sequence, the batch it replaces in both tiers, and an empty or failed refresh leaving the shown chips and the cached batch untouched.

License

MIT © 2026 YubaiLoving

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
dsh-followup-suggestions 怎么安装?

本站没有抓到该条目的安装命令,请到仓库主页确认安装方式;这类条目多数是生态应用或尚未发布安装包的项目。

dsh-followup-suggestions 的验证等级是什么意思?

未标注验证等级。上游未给出验证结论,安装前请自行确认

dsh-followup-suggestions 安全吗?

未标注。

dsh-followup-suggestions 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-followup-suggestions 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-followup-suggestions 有哪些功能?

末条回复下方显示建议芯片、沿用会话所选模型生成、点击仅填入输入框不发送、结果缓存避免重复请求、失败静默不污染会话。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

会话与消息
按星标排序,可作替代方案

dsh-desktop

dsh-desktop

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

L3 · 安装规范通过 3.0 万 星

openpets

openpets

L4 · 沙盒安装通过 1,274 星

deeptide

deeptide

L4 · 沙盒安装通过 1,104 星

jingyun-dsh

jingyun-dsh

井云 DSH 客户端插件,为 DeepSeek Harness 注入会员登录、订阅支付、算力管控与应用市场,让智能体和技能快速变成可交易商品

L3 · 安装规范通过 1,004 星

study-mate

study-mate

StudyMate 是 DSH 的「学习模式」预设与技能包,为数学、计算机科目定制学习路线、讲解课件与练习评估,跨科目共享记忆。

未标注验证等级 856 星

yubailoving 的其它插件

1 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。