rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xiaoshenming/dsh-next-hint
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
When a turn ends, the composer suggests the next message by itself. Tab accepts, nothing is ever sent.
A DeepSeek Harness plugin that brings Claude Code–style prompt suggestions to DSH — as ghost text inside your own composer: visible, undoable, and never on the return key.
┌────────────────────────────────────────────────────────────┐
│ fix the two failing cases as well Tab accept │ ← ghost, appears on settle
└────────────────────────────────────────────────────────────┘
↑ only while the draft is empty; typing dismisses it
Ctrl+Z undoes it; sending stays your decision. There is no send path in
the code at all.sessionId; the host reads the transcript inside its own process, writes it
nowhere, logs no text, and keeps it on this machine.DSH Desktop: Settings → Plugins → add a git package
github:xiaoshenming/dsh-next-hint#main
The desktop profile is owned by the app — dsh plugin --profile desktop … is refused by the CLI.
For a self-managed profile such as web:
dsh plugin --profile web add "github:xiaoshenming/dsh-next-hint#main"
Restart the app once — plugins join the roster at boot.
Updating: the plugin page's update check only compares npm-registry sources; a
github:install is skipped and always reads as "latest". For a GitHub install use one of these, then restart the app:cd ~/.dsh/profiles/desktop && pnpm update dsh-next-hintor uninstall it on the plugin page and add
github:xiaoshenming/dsh-next-hint#mainagain. To use the in-app update button, install the plugin from npm once it is published.
| Moment | What happens |
|---|---|
| A turn settles, draft is empty | One grey line at the composer's first line, Tab accept on the right |
Tab with focus in the composer |
The sentence lands in the draft, caret at its end, not sent |
| You start typing | The ghost disappears |
| You switch sessions | The ghost is dropped |
| Two declines / timeout / no route | Nothing at all — the correct outcome |
A model that answers "nothing to suggest" is asked once more with a stricter instruction before the plugin gives up: one refusal never blanks the whole turn.
Tab only fires when no candidate menu owns it: with the / or @ menu open,
Tab still belongs to the menu.
Settings → Plugins → dsh-next-hint. Every key has a default; nothing is required.
| Key | Default | Meaning |
|---|---|---|
enabled |
true |
Master switch |
provider / model |
empty | Empty follows the session's last route; set both or neither |
locale |
auto |
Language of the suggestion |
maxTurns |
3 |
Exchanges sampled |
maxInputBytes |
8000 |
Input budget for the auxiliary request |
maxOutputTokens |
128 |
Output token cap |
maxHintChars |
48 |
Hint length cap; a paragraph is dropped, a long sentence truncated |
timeoutMs |
15000 |
Per-call timeout |
perSessionCooldownMs |
0 |
Per-session cooldown; default suggests every turn |
A dual-face cordis plugin, the same shape as dsh-session-surgeon:
browser session.running true → false, draft empty
└─ POST /api/next-hint { sessionId } ← id only, no transcript
host loopback + origin check → single flight + cooldown
└─ ctx.sessions.get(id).deriveMessages() ← recent turns
└─ ctx.llm.prepareCall(...) ← one decoupled call, cheapest effort
└─ 200 { hint } / 204 (silent, with x-next-hint-reason)
browser paint the ghost on line one → Tab → input.actions.captureInsertion() + insertText()
Deliberate choices:
AbortController.abort().conversation.composer.dock; the ghost node is ours because the host exposes
no inline-hint write path. Unmounting removes the node, the listeners, and the
in-flight request.Four same-kind plugins now exist, plus one complementary tool; prefer one same-kind:
dsh-composer-prediction):
same idea; overlay slot, per-session cache, Esc, settings page. From 0.7.7 it detects this
plugin and pauses itself (this plugin wins).dsh-composer-predictions):
same idea plus draft continuation; Alt+↑/↓ candidate cycling, Esc, owner admission; needs
DSH ≥0.2.1-rc.3.dsh-reply-suggestions):
same idea; Enter-to-fill, Esc, usage/cost stats; built for rc.2.dsh-input-assist
completes the sentence you are typing and checks typos; this plugin suggests the next
message after a turn. The only overlap is an idle empty composer — if you see two ghosts
there, turn one of them off.0.2.1-rc.2 (Windows) and the same version's web profile (macOS). The host half needs
ctx.llm, ctx.sessions, and ctx.webServer.register; the browser half needs
the conversation.composer.dock slot and the composer input facade.0.2.2-rc.1 build by scanning its app.asar:
every seam above still exists, and conversation.composer.dock is a list slot, so it
coexists with other composer plugins. A real GUI run on rc.1 is still pending.0.x: if upstream moves those seams, the ghost breaks first. Its position
relies on the editor's [data-input-scroll] structure; a missing anchor means
no ghost, silently.node --test # 49 tests, node:test only, zero runtime dependencies
Pure logic lives in src/ (no cordis, no official packages, no DOM); seams live
in plugin/. Design decisions and the evidence behind them are in
docs/, from the line-by-line sources in
RESEARCH.md to the data flow and failure modes in
ARCHITECTURE.md.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。