Porphyrioon/ironlaw--packages-adapter-dsh ↗★ 2
@ironlaw/adapter-dsh
记录工具调用凭证并拦截破坏性操作 适合需要对Agent工具调用进行安全审计、拦截高危操作并验证执行凭证的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Porphyrioon/ironlaw#f4a08c71a4d21c7db1021a916156101cdb41c12b&path:packages/adapter-dsh说明文档
阅读完整 README ↗Configuration
Configuration is read from the environment (the bundle patch stays minimal):
| Variable | Default | Meaning |
|---|---|---|
IRONLAW_MODE | observe | observe records only; enforcer also blocks destructive tools |
IRONLAW_EVIDENCE_ROOT | ~/.ironlaw | Directory for the events.ndjson evidence ledger |
IRONLAW_DESTRUCTIVE_TOOLS | built-in list | Comma-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.