在 DeepSeek Harness(DSH)的开发流程中,智能体运行时常常会遇到沙箱升级、受限文件操作等审批请求。如果用户处于其他窗口,这些请求容易被忽略,导致流程卡顿或状态不可见。DSH 插件化架构允许通过外部插件扩展行为。task-chime 旨在解决这一信息遗漏问题,通过听觉反馈确保开发者不会错过关键事件。

What This Is

task-chime 是一个为 DSH 设计的轻量级提示音插件。由 Abel-86 维护。它通过在 Web GUI 中播放本地音频文件,处理审批/权限请求和任务完成,确保开发者不会错过关键事件。

Core Features

  • Permission confirmation chime: Plays during approval/permission requests, such as sandbox escalation and restricted file operations.
  • Task completion chime: Plays at the end of an agent turn.
  • GUI settings card: Supports customizing sound files, volume (0-100), enable/disable, and cooldown interval in the Web GUI.
  • Persistent settings: Writes to $DSH_HOME/settings.yaml and supports hot reload.
  • In-process playback: Uses the native Windows MCI interface and does not spawn child processes.
  • Theme following: The UI uses --dsw-alias-* theme variables.

Installation and Enablement

  1. Run the official installation command:
    dsh plugin --profile web add task-chime
  1. Restart the dsh web process.
  2. Force-refresh the page in the browser (Ctrl+Shift+R).

Typical Usage

After installation, configure it using the following methods:

  • Web GUI: Go to Settings → Plugins → Plugin Configuration → DSH Task Chime.
  • YAML configuration: Edit $DSH_HOME/settings.yaml directly.
    task-chime:
      approvalSound: path/to/sound.mp3
      taskSound: path/to/sound.wav
      approvalEnabled: true
      taskEnabled: true
      approvalVolume: 100
      taskVolume: 100
      cooldownMs: 1500
  • Debugging: Set the environment variable TASK_CHIME_TRACE=D:/tmp/task-chime.log to log output.

Applicable Scenarios and Notes

  • Platform limitation: Audio playback is only supported on Windows. Non-Windows platforms remain silent.
  • Technical limitation: Synchronous MCI calls must be used; mci.async is prohibited. Spawning PowerShell or cmd child processes to play sounds is strictly forbidden.
  • Development note: As a bare-package module, dsh must be restarted after code changes. If installed via a file: path, source changes require remove followed by add, because the installation is a hard-linked copy.

Conclusion

task-chime provides a mechanism to improve the reliability of agent interactions through auditory feedback within the DSH ecosystem. By avoiding child processes and strictly following the Windows MCI specification, it ensures stability with the host process. For developers who need clear confirmation of agent status, it is a practical tool.