DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Automode — DSH Plugin for DeepSeek Harness
← Plugins
A

dsh-automode

Automode

CC-style auto mode for DeepSeek Harness: deterministic deny/allow rules + pre-execute gate + model-agnostic two-stage classifier. TypeScript rewrite merging dsh-auto-mode v0.4.1 with Nuo-cl/dsh-auto-mode native integration.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:log-li/dsh-automode#ab4961b4379a75e605188fac132bab90859e5ad5
READMECompatibilityVersions

Compatibility and provenance

Automode is published as dsh-automode and currently resolves to version 0.5.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
8/22/2026

Versions

0.5.0stable
8/22/2026

Related plugins

Loading related plugins…

Latest
0.5.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 4
Weekly downloads
0
Last push
9/16/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consolePocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Auto Reviewdsh-auto-reviewSecond-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent decides allow/deny on the approval answerer chain, with fail-closed fallback and full session-log audit.

README

dsh-automode

CC-style auto-approval for DeepSeek Harness. Deterministic deny/allow rules handle the obvious cases; a model-agnostic two-stage classifier decides everything else — with circuit breaker, fail-closed semantics, persistent JSONL logging, and native permission preset integration.

Install

dsh plugin add dsh-automode

How it works

Tool call arrives
  │
  ├─ [pre-execute gate]  (all tools; deny reason reaches the model verbatim)
  │    ① Read-only tools → allow (unless deny matched)
  │    ② Deny rules (regex) → hard reject
  │    ③ Allow rules (prefix glob) → approve
  │    ④ allowInsideWorkingDirectory → in-tree file ops approve
  │    ⑤ Escalation intent → classifier pre-screen
  │    ⑥ Everything else → pass through
  │
  └─ [approval waterfall]
       ① Soft deny rules (prose) → reject
       ② Soft allow rules (prose) → approve
       ③ Read-only allowlist → approve
       ④ Verdict cache hit → reuse
       ⑤ Classifier (two-stage: one-token filter → structured review)
       ⑥ Failure → failClosed

Rules

Two-layer rule system:

Hard boundary (deterministic, never goes to classifier):

  • deny — regex patterns that hard-reject (exfiltration, secrets, sensitive targets)
  • allow — prefix-glob patterns that zero-LLM approve (routine commands, curated paths)

Classifier guidance (prose, fed to the LLM):

  • rules.deny — soft-deny descriptions (force push, curl|bash, production deploys)
  • rules.allow — soft-allow exceptions (local dev, dependency install, standard git)
  • rules.environment — context facts (trusted repos, infrastructure)

All rule arrays support $defaults: ["$defaults", "my custom rule"] keeps the built-in rules while adding yours.

Configuration

# In cordis.patch.yml
- id: auto-mode
  name: dsh-automode
  config:
    deny: [...]                    # Regex hard-reject patterns
    allow: [...]                   # Prefix-glob allow patterns
    readOnlyTools: [read, glob, grep, list, search]
    allowPaths: ['~/Documents/']   # Curated full-trust directories
    allowInsideWorkingDirectory: true
    failClosed: true
    preExecuteGate: true
    timeoutMs: 45000
    breakerConsecutive: 3
    breakerTotal: 20
    classifier:
      provider: ''                 # Empty = follow session model
      model: ''
      maxTokens: 2048
      askFallback: false           # true = three-state (allow/ask/reject)
    rules:
      deny: ['$defaults']
      allow: ['$defaults']
      environment: ['$defaults']

Commands

  • /auto — Switch to auto mode
  • /auto-status — Show diagnostics

Logging

All decisions are logged to ~/.dsh/auto-mode/decisions.jsonl (JSONL format, append-only).

Architecture

src/
  index.ts         Main entry: preset management, approval answerer, commands
  config.ts        Config schema + $defaults mechanism + built-in rule lists
  bands.ts         Deterministic band engine (deny regex + allow glob)
  pre-execute.ts   Pre-execute gate (first defense for all tools)
  classifier.ts    Two-stage classifier (one-token filter + structured review)
  rules.ts         Prose rule matching for the classifier
  prompt.ts        Classifier prompt construction
  cache.ts         Verdict cache (shared across enforcement points)
  breaker.ts       Circuit breaker (3 consecutive / 20 total)

License

MIT