DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to block risky commands with rules and a stricter fallback with DSH Auto Review

Use riskRules, fallbackPolicy, and riskPolicy in cordis.yml to deny dangerous requests automatically.

Short answer: Open the profile patch that mounts the plugin row with id auto-review; then add riskRules entries with a pattern and policy: never for destructive shell commands; set fallbackPolicy to delegate or keep the default rejected, and set reviewerTimeoutMs as needed. All steps.

Who it is forAn engineer who keeps DeepSeek Harness running on a shared repo and wants destructive commands blocked without a human answer.

The problemA default setup may allow a command that matches a dangerous pattern, and a reviewer timeout may pass the request through.

The outcomeRequests that match a never rule are rejected with an auditable marker, and reviewer failures resolve through a chosen fallback policy.

What you need first

  • DeepSeek Harness (dsh) installed, with a profile named web or another profile of your choice
  • Harness version compatible with the plugin (the README lists dsh-v0.2.1-rc.2 as verified)
  • Network access to install from GitHub or npm
  • pnpm, only if you use the tarball channel or need to approve native build scripts

Steps

  1. Open the profile patch that mounts the plugin row with id auto-review
  2. Add riskRules entries with a pattern and policy: never for destructive shell commands
  3. Set fallbackPolicy to delegate or keep the default rejected, and set reviewerTimeoutMs as needed
  4. Set riskPolicy to a maxAutoAllow level that fits your risk tolerance
  5. Restart, then run dsh --profile web --dump-config | grep -A4 'id: auto-review' to confirm the new values

Prompt for your agent

Using the repo PerryLink/dsh-auto-review, edit the auto-review row in the cordis patch for profile <profile-name> to add a riskRules entry that sets policy never for the pattern <regex>, then verify with dsh --profile <profile-name> --dump-config that the entry is present. Report the final config block. Verify that the config is written in the profile patch and not in ~/.dsh/settings.yaml.

Caveat. Changes must go in the profile patch that mounts the row, because the README states that ~/.dsh/settings.yaml has no effect on this plugin and gives no warning.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for PerryLink/dsh-auto-review and "Block risky commands with rules and a stricter fallback"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer