peterliucius/dsh-prompt-optimize

peterliucius★ 0TypeScriptLast synced: 2026-08-17

Open on GitHub

README excerpt

dsh-prompt-optimize DeepSeek Harness web plugin: rewrite the current composer draft through an auxiliary LLM call. Click replaces the draft only; it never sends a message or starts a turn. Install Git-hosted plugins build on install through prepare . pnpm ≥10 blocks that script until you allow it. The first add fails and prints the key; copy it into the profile's pnpm-workspace.yaml : Then re-run the same add . Only allow packages whose source you trust. Pin a commit ( github:peterliucius/dsh-prompt-optimize ) if you do not want a later push to change what runs. A local checkout that already has lib/ does not need allowBuilds : Start the web profile: The patch inserts one row named dsh-prompt-optimize ( maxInputBytes: 32768 , maxOutputTokens: 4096 , timeoutMs: 60000 ). The same package's dsh.client declaration occupies conversation.input.right . Default web-app does not mount this plugin. Behavior The sparkle button is always visible. It disables when the draft is empty after trim, contains a composer reference chip (U+FFFC), the session is removed, or the input machine is not in the plain phase. Click captures the current draft, calls ctx.promptOptimize.optimize over the promptOpt…

View full README on GitHub →
Tools / Devdeepseek-harnessdsh-plugin

Category