dsh-input-polish

A polish button in the composer trailing controls that rewrites the draft in place with the model. Context is matched by topic, not by recency: anchors from the draft (paths, identifiers, quoted text, CJK bigrams) pick the earlier messages about the same task, so a session that interleaves several tasks does not leak another task goal or files into the rewrite — and the prompt explicitly lets the model ignore the extract when it does not fit. The result goes back through the same undo-able editor path a human edit uses. Drafts holding reference chips (@file, folder, session) or a claimed /command, and drafts mid-submission, disable the button instead of silently dropping references.

Overview

A polish button in the composer trailing controls that rewrites the draft in place with the model. Context is matched by topic, not by recency: anchors from the draft (paths, identifiers, quoted text, CJK bigrams) pick the earlier messages about the same task, so a session that interleaves several tasks does not leak another task goal or files into the rewrite — and the prompt explicitly lets the model ignore the extract when it does not fit. The result goes back through the same undo-able editor path a human edit uses. Drafts holding reference chips (@file, folder, session) or a claimed /command, and drafts mid-submission, disable the button instead of silently dropping references.

Installation

Install from GitHub

dsh plugin --profile web add github:ruaibeite/dsh-input-polish

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.