JimchengChina/dsh-action-outbox0

dsh-action-outbox

DeepSeek Harness 工具副作用的提交前审查事务插件

AI 分析

核心用途是在执行具有副作用的工具(如 GitHub 写入、Slack 发送等)前引入人工审查与确认机制。适合需要严格控制 AI 外部操作安全性的用户。

套件
dsh-action-outbox
版本
0.2.0
授權
MIT
最近更新
2026年8月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JimchengChina/dsh-action-outbox

Configuration

The default permits any visible non-internal tool to be staged, requires approval for commit, and does not force any direct tool through the outbox.

- id: action-outbox
  name: dsh-action-outbox
  config:
    include: ['github_*', 'slack_*', 'deploy_*']
    exclude: ['github_get_*', 'github_list_*']
    enforce: ['github_create_*', 'github_update_*', 'slack_send', 'deploy_*']
    requireApproval: true
    rejectDuplicateActions: true
    maxPendingMs: 1800000
    maxActions: 20
    maxArgumentBytes: 65536
    resultPreviewChars: 2000
    approvalPreviewChars: 4000
  • include: wildcard patterns for tools that may be staged.
  • exclude: wildcard exceptions to both staging and enforcement.
  • enforce: wildcard patterns that reject direct calls and require the transactional route. Empty by default for compatibility.
  • requireApproval: ask once for the exact reviewed batch. Without an approval service, commit fails closed.
  • rejectDuplicateActions: reject repeated target-name/argument pairs that could otherwise duplicate a write. Disable only when repetition is intentional.
  • maxPendingMs: expire an uncommitted batch after this many milliseconds so old intent cannot receive a fresh approval. The default is 30 minutes; 0 disables expiry.
  • maxActions / maxArgumentBytes: bound retained in-memory state.
  • resultPreviewChars / approvalPreviewChars: bound model- and user-facing receipts.

* is the only wildcard. Every other regular-expression character is literal.