rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:2750599332-art/dsh-inkwell
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A DeepSeek Harness plugin that adds a one-click prompt-enhance button to the composer toolbar. It rewrites the draft prompt into a clearer, fuller, directly executable version — keeping the original intent and language — and lets you revert to exactly what you had before.
The button sits in the composer's trailing control row, immediately before the model picker.
Open Settings → Plugins → Add plugin, enter the repository URL, and install:
https://github.com/2750599332-art/dsh-inkwell
dsh CLIdsh plugin add https://github.com/2750599332-art/dsh-inkwell
Point the Harness at the checkout directory, or add it as a bundle in your profile. The package declares dsh.bundle, which is what makes it installable.
The button is disabled while the composer is empty, and while an enhancement is already in flight. A second enhancement after a revert snapshots the draft as it stood immediately before that enhancement.
Settings → Plugins → Prompt enhancer (or the settings section named by the plugin's locale entry).
One keyword per line, for example:
concise
formal tone
beginner friendly
These affect how the prompt is written — its register, tone, and level of detail. They cannot make the rewrite add a technology or a requirement the original text did not mention; that boundary is enforced in the instruction and in a post-generation check. Leaving the box empty keeps the default behaviour.
Saved immediately to <DSH_HOME>/prompt-enhancer/keywords.json. Saving keywords and saving the model are independent: one never overwrites the other.
A dropdown listing the models the signed-in account currently offers, read live from the Harness LLM service each time the page opens — the plugin keeps no hard-coded model list. The first option, Use the agent's current model, is the default.
Model precedence, highest first:
provider / model config pair, if setSaving a model that the account no longer offers is rejected with unknown-model rather than silently becoming a route that fails at request time.
webServer) and an LLM adapter (llm). Without either, the plugin stays inactive instead of failing to boot.Two halves, loaded by one bundle patch:
| Half | File | Responsibilities |
|---|---|---|
| Host | index.js |
Three loopback HTTP routes; route resolution; keyword/model persistence; the rewrite pipeline and its output checks |
| Client | client.js |
The toolbar button (four-state glyph, revert state machine); the settings page (keywords, model picker, save/retry states) |
All three are exact routes on the Harness web carrier, admitted only for loopback requests (a Host/Origin check rejects DNS-rebinding and foreign origins).
| Method | Path | Purpose |
|---|---|---|
POST |
/plugins/prompt-enhancer/enhance |
{ text, locale? } → { ok: true, prompt } or { ok: false, error, code } |
GET / POST |
/plugins/prompt-enhancer/settings |
GET → { keywords, model }; POST accepts either field, returns both |
GET |
/plugins/prompt-enhancer/models |
{ ok: true, groups: [{ provider, name, models: [{ id, name }] }] } |
| Limit | Value |
|---|---|
| Input text | 8 000 characters (413 text-too-long beyond) |
| Request body | 256 KiB (413 body-too-large) |
| Output target | ~800 characters (soft; complete text is preferred over a hard cut) |
| Model calls per click | at most 2 (the initial attempt plus one bounded retry) |
| Client request watchdog | 120 s, above the 90 s host budget so a slow-but-healthy call still gets the host's own error |
index.js host half
client.js client half
cordis.patch.yml bundle patch — the row that loads this package
locale/en.json English UI strings
locale/zh.json Chinese UI strings
icon.svg plugin icon
revert.png the revert glyph artwork (supplied asset, used as-is)
revert-mask.png alpha mask derived from the artwork, so the glyph paints in currentColor
Remove the bundle from your profile, or via the Plugins page. The keyword/model document is user data and stays at <DSH_HOME>/prompt-enhancer/keywords.json — delete it manually if you want a clean slate.
MIT
一个 DeepSeek Harness 插件:在输入框工具栏加一个一键提示词增强按钮,把草稿提示词改写成更清晰、更完整、可直接执行的版本,并保留原意与原语言,且随时可以撤回。
按钮位于输入框右侧控制行,紧邻模型选择器之前。
在 设置 → 插件 → 添加插件 中填入仓库地址并安装:
https://github.com/2750599332-art/dsh-inkwell
或使用 CLI:
dsh plugin add https://github.com/2750599332-art/dsh-inkwell
输入框为空时按钮禁用;请求进行中同样禁用。撤回后再增强一次,会以「那一次增强前」的草稿作为新的撤回目标。
设置 → 插件 → 提示词增强
每行一个,例如:
简洁
正式
面向初学者
这些词只影响提示词的写法(语气、风格、详细程度),不会让改写引入原文未提及的技术选型或需求——这条边界由指令与生成后检查双重保证。留空则保持默认行为。
关键词与模型是两项独立设置,保存其一不会覆盖另一项。
下拉列表来自当前账号实际可用的模型,每次打开设置页时实时读取,插件不内置任何模型清单。首项「跟随智能体当前模型」为默认。
模型优先级(高到低):设置页所选 → 插件行的 provider/model 配置 → 智能体默认选择。
保存一个账号已不再提供的模型会被拒绝(unknown-model),而不是留成一条到请求时才失败的无效路由。
需要带 Web GUI(webServer)与 LLM 适配器(llm)的 DeepSeek Harness。二者缺一时插件保持不激活,而不是启动失败。
宿主端为纯 ESM,仅使用 Node 内置模块,无运行时依赖。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。