Porphyrioon/ironlaw--packages-adapter-dsh ↗★ 2

@ironlaw/adapter-dsh

记录工具调用凭证并拦截破坏性操作 适合需要对Agent工具调用进行安全审计、拦截高危操作并验证执行凭证的用户。

包名
@ironlaw/adapter-dsh
兼容性
待验证
Cordis 依赖范围
^4.0.0
版本
0.1.1
许可证
MIT
最近更新
2026年9月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Porphyrioon/ironlaw#f4a08c71a4d21c7db1021a916156101cdb41c12b&path:packages/adapter-dsh

Configuration

Configuration is read from the environment (the bundle patch stays minimal):

VariableDefaultMeaning
IRONLAW_MODEobserveobserve records only; enforcer also blocks destructive tools
IRONLAW_EVIDENCE_ROOT~/.ironlawDirectory for the events.ndjson evidence ledger
IRONLAW_DESTRUCTIVE_TOOLSbuilt-in listComma-separated extra regex fragments to treat as destructive

The completion gate is on by default. It requires each applicable acceptance item to carry still-valid host-observed evidence before the turn may close; otherwise the agent is steered a repair prompt instead of finishing, up to a bounded number of repairs. In observe mode (the default) it only steers; destructive tool calls are additionally blocked in enforcer mode.