Porphyrioon/ironlaw--packages-adapter-dsh ↗★ 1
@ironlaw/adapter-dsh
DeepSeek Harness 的 IronLaw 治理与存证插件:记录工具调用凭证,在强制模式下拦截破坏性操作,并对轮次完成进行凭证门控。
AI 分析
核心用途是为智能体操作提供安全合规审计与行为拦截。适合需要严格限制智能体执行破坏性命令、并对执行结果进行验证的安全敏感型任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Porphyrioon/ironlaw#4d011abd091fc475acbf43a5fbd017b5452fcc67&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 a turn to produce at least one successful tool result with no tool errors before it may close; otherwise the agent is steered a repair prompt instead of finishing.