dshbase

插件目录 / Developer / dsh-agentfuse-plugin

dsh-agentfuse-plugin

已验证 · 实测可装 MkaliezZ

✓ 持续维护 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

3Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-15最近推送
跨平台平台

功能简介

DSH确定性工具调用授权:允许/阻止/询问策略门

✅
我们的评价
可用 — 实测通过,早期项目

DSH确定性工具调用授权:允许/阻止/询问策略门 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

AgentFuse

Deterministic, fail-closed tool-call authorization for AI agents — with evidence.
Status: ALPHA · seeking the first real (non-self) deployment

AgentFuse is a pre-dispatch policy boundary for side-effect-capable AI agent
tools, ported from the DHMS AgentFuse Python project
(MkaliezZ/dhms-engine).

AGENTFUSE_IS_A_DANGER_CLASSIFIER=false
AGENTFUSE_IS_A_POLICY_AND_AUTHORIZATION_BOUNDARY=true
AGENTFUSE_DECISIONS=allow|block
AGENTFUSE_DEFERRALS=ask
AGENTFUSE_FAILS_CLOSED=true

A blocked call is a completed policy decision with non-execution evidence —
never a failed tool execution. Evidence carries reason codes, policy ids, and a
canonical arguments hash, never raw arguments or credentials.

Packages

Package What it is Depends on
packages/core · @agentfuse/core Framework-agnostic engine: decision/evidence vocabulary, deterministic policy resolution, canonical hashing nothing
packages/dsh-agentfuse · @deepseek-ai/dsh-agentfuse DeepSeek Harness guard plugin: tested tools/pre-execute gate, DSH config schema, durable agentfuse/decision session event, and host-owned approval deferral (askTools) @agentfuse/core, DSH

The core defines the bounded policy vocabulary; the DSH package is one
experimental adapter. Potential future integrations are tracked in the
roadmap, but are not implemented here.

Quickstart (DeepSeek Harness)

# cordis.yml (or a cordis.patch.yml insert)
- id: agentfuse
  name: '@deepseek-ai/dsh-agentfuse'
  config:
    defaultAction: block      # fail-closed fall-through
    denyTools: []             # deterministic block, always wins
    askTools: []              # defer to the DSH human-approval chain
    allowTools: []            # non-empty = only these names may run
    logDecisions: false       # durable evidence; needs in-repo catalog

See the adapter README for the policy
order, the approval integration, and the install paths (bundle + PR).

Cross-adapter conformance

The DSH adapter consumes the provider-neutral DHMS AgentFuse v3.6.2 fixture
snapshot with source commit and SHA-256 provenance. Against DeepSeek Harness
commit 99f6f02fecdb7dff40c3fbc9470f5907c29f74ca, the real integrated
tools/pre-execute path records 11 PASS and 3 explicitly justified N/A cases;
it does not claim coverage of unwrapped or future DSH paths.

See the adapter conformance notes
and the checked-in fixture provenance.

Repository layout

packages/
  core/            @agentfuse/core — zero runtime dependencies
  dsh-agentfuse/   @deepseek-ai/dsh-agentfuse — the DSH adapter (bundle)
ROADMAP.md         phases, version line, stop-lines

Relationship to DHMS

AgentFuse is the runtime-execution-control line of DHMS (Digital Hyperthymesia
Memory Systems). The engine is a faithful TypeScript port of
dhms_agentfuse's decision engine and agentfuse-evidence-schema-v0.1;
decision and execution remain separate lifecycle facts.

License

Apache-2.0. See LICENSE.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-agentfuse-plugin」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:MkaliezZ/dsh-agentfuse-plugin

Headless(CLI)profile:

dsh plugin --profile headless add github:MkaliezZ/dsh-agentfuse-plugin

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7797 个插件 →