rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:leslie941012/dsh-ptt
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Push-to-talk for DeepSeek Harness. Hold Alt to record with the built-in voice input plugin, release to transcribe.
DeepSeek Harness ships a voice input plugin (@deepseek-ai/dsh-experimental-client-ui-voice-input) that only works by clicking a microphone button. This plugin adds the missing keyboard interaction:
| Action | Result |
|---|---|
| Hold Alt | Recording starts immediately (no mouse needed) |
| Release Alt | Recording stops, speech is transcribed into the draft |
| Alt released too early | Stops as soon as recording actually begins — no dangling session |
| Transcription empty / failed | The "no speech" bar is dismissed automatically, ready for the next press |
| Recording interrupted (Esc, window blur, max duration) | State resets cleanly |
It does not reimplement recording, transcription or text insertion. Those stay in the official plugin — this one only drives its buttons, so audio handling, model selection, language settings and permissions all keep working exactly as before.
0.2.x (desktop or dsh web)@deepseek-ai/dsh-experimental-voice-input-bundlegit clone https://github.com/leslie941012/dsh-ptt.git
Add it to your profile as a file: dependency and mount it in the patch layer.
Edit ~/.dsh/profiles/desktop/package.json:
{
"dependencies": {
"@yg/dsh-ptt": "file:./dsh-ptt"
}
}
Run pnpm install inside the profile directory, then append to ~/.dsh/profiles/desktop/cordis.patch.yml:
# Push-to-talk: hold Alt to record, release to transcribe (@yg/dsh-ptt).
- insert:
- id: ptt-voice
name: '@yg/dsh-ptt'
Restart DeepSeek Harness and refresh the window.
In the Plugins page, look for ptt-voice / @yg/dsh-ptt marked enabled / active.
Labels are matched against the voice input plugin's aria-label attributes, so no configuration is needed in normal use. All shipped interface languages are supported:
zh · en · ja · es · fr · de · ru · pt
If a future DeepSeek Harness release renames those buttons, the only thing to update is the label tables at the top of lib/client.js — the recording, transcription and insertion logic is untouched.
The client half is a small state machine that watches for the official plugin's buttons in the DOM:
idle ──Alt down──▶ waiting ──recording bar appears──▶ recording ──Alt up──▶ stopping ──bar closed──▶ idle
│ │
└─ release before start ─▶ stop as soon as it begins └─ message bar ─▶ click × ─▶ idle
aria-label, not by CSS class or DOM position, so styling changes do not break it.The plugin lives entirely in your DSH profile directory. Upgrading DeepSeek Harness replaces app.asar but leaves profiles untouched, so this plugin keeps working across upgrades — unlike patching files inside the installation.
127.0.0.1 is fine).CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。