liangzhiyu/dsh-composer-autocomplete ↗★ 0
dsh-composer-autocomplete
DeepSeek Harness 聊天输入框自动补全:灰字续写、下一句预测、Tab 采纳、中文输入法支持
同名包的其他仓库
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/liangzhiyu/dsh-composer-autocomplete/releases/download/v0.2.1/dsh-composer-autocomplete-0.2.1.tgz说明文档
阅读完整 README ↗Usage
- Empty composer: suggests your next message after an assistant turn finishes.
- Draft completion: requests a continuation after a typing pause, with the caret at the end. The default pause is 300 ms.
- Tab: accepts the first complete candidate immediately, while later candidates may still be generating. Send the message yourself when ready.
- Alt+↓ / Alt+↑: cycles through up to three candidates.
- Esc: dismisses the current suggestion. Editing the draft allows a new prediction.
- Settings → General → Composer predictions: controls the master switch, each prediction mode, and the typing pause (200–5000 ms).
Preferences are stored in the current browser on this device. IME composition keeps ownership of Tab. Predictions pause while the agent is running and stay out of native /command and @reference menus. Draft edits, session changes, disabling predictions, and hiding the page cancel pending requests. Text insertion goes through Harness's public input actions; a refused insertion never replaces the draft.
Switching sessions clears suggestions before paint and resets IME and dismissal state. Every candidate belongs to one session, draft, and request, so late responses cannot appear in or be accepted by another view. Result caches are isolated by session ID, session sequence, mode, and draft. Returning to a session can reuse its own valid cache; a new conversation turn invalidates the previous revision.
Existing saved typing pauses are preserved. The 300 ms default applies only when no value has been saved.
Model usage and configuration
Predictions reuse the session's configured model route and host authentication; the plugin stores no separate API key. Recent conversation, tool activity, and the current draft are sent to that model and consume tokens. These auxiliary calls do not appear as conversation messages or in the session's displayed token usage. Configure an available model in Harness before using predictions.
Override host parameters in your profile's cordis.patch.yml:
- id: composer-autocomplete
config:
maxOutputTokens: 220
timeoutMs: 20000
maxMessages: 10
maxChars: 8000
maxSuggestions: 3
maxToolNotes: 6
cacheTtlMs: 60000
maxCacheEntries: 200
# Set both to use a dedicated prediction model; otherwise use the session route.
# provider: your-provider
# model: your-model
# reasoningEffort: off