AI Agent Hub
Back to plugins
dsh-edit-approval preview

dsh-edit-approval

Workflow Updated 2026.08.26

Run the following command in DeepSeek Harness:

dsh plugin install SiriLee/dsh-edit-approval

Paste the following prompt into your AI chat to install this plugin:

To install this plugin in DeepSeek Harness, run the command `dsh plugin install https://github.com/SiriLee/dsh-edit-approval`.

About this plugin

DeepSeek Harness agents automate file edits and command executions, but unsupervised actions can lead to unintended changes or security risks. The dsh-edit-approval plugin addresses this by adding approval gates to every write, edit, or bash call, ensuring users review and approve before any file modification or command run.

At its core, the plugin offers two symmetric approval gates: edit approval and bash approval. Edit approval is on by default, intercepting write/edit/str_replace_editor calls with a red/green line-level diff preview—users can approve once or reject. Bash approval is off by default; when enabled, it prompts before each command with a description and the raw command text. These gates leverage DeepSeek Harness's service seams, requiring no UI changes to the host, and respect session policies like "never ask" for full-access sessions.

This plugin is ideal for developers using DeepSeek Harness for automated workflows who need fine-grained control, audit trails, or safety oversight. It suits personal projects or team environments where maintaining agent efficiency while granting final decision power is crucial, preventing errors and enhancing reliability.

Screenshots

Use Cases

  • When the agent automatically modifies code files, show line-level diffs for review.
  • Before running bash commands, require user confirmation to prevent mistakes.
  • In automated workflows, ensure all changes are manually approved.

Best For

  • Developers using DeepSeek Harness for automated development.
  • DevOps engineers who need to oversee agent operations.
  • Team leads who prioritize code security and auditing.