DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Agent Guard — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
A

@mokuyoaxis/agent-guard

Agent Guard

面向 AI 编程代理的框架中立型可靠性基础设施:支持可恢复的破坏性操作、披露检查、受控的合成行为实验,以及带有可选原生适配器的共享 Core。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:mokuyoaxis/agent-guard#c1f33e7c2428ff7d6d0bfb04e6d54422e5af91ae
README兼容性版本

兼容性与来源证明

Agent Guard 以 @mokuyoaxis/agent-guard 发布,当前版本为 0.2.5-rc3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/14

版本

0.2.5-rc3prerelease
2026/10/14
0.2.4stable
2026/10/7
0.2.3stable
2026/10/3
0.2.2stable
2026/9/27
查看其余 4 个版本收起版本
0.2.5-rc2prerelease
2026/10/9
0.2.5-rc1prerelease
2026/10/8
0.2.3-rc2prerelease
2026/9/30
0.2.3-rc1prerelease
2026/9/28

相关插件

正在加载相关插件…

最新版
0.2.5-rc3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 22
周下载
0
最近提交
2026/10/14
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 security-access 分类下经过校验的插件。

Experimental Auto Review@deepseek-ai/dsh-experimental-auto-review针对每个工具的 LLM 授权审查,适用于 DeepSeek Harness Auto 权限预设Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Codex Subscriptiondsh-codex-subscription通过 OAuth 在 DeepSeek Harness 中使用 ChatGPT 和 Codex 订阅,支持配额管理、安全重置、网页搜索、图像和快速模式

README

AGENT-GUARD

Make destructive agent actions reversible by default. · 简体中文

Agent Guard is reliability infrastructure for coding agents. It provides recovery before supported destructive actions, checks text before disclosure, and gives users a Lab for testing observed agent and harness behaviour. The shared Python Core works through explicit CLIs and optional host adapters.

CapabilityWhat it helps you doEntry
Recovery protectionRelocate valuable files before deletion; snapshot tracked state before supported Git overwrites; inspect and restore transactionsdelete-guard
Disclosure checksDetect supported credentials and host-identifying paths; apply a redaction plan or withhold a payloadexfil-guard
Behaviour experimentsCalibrate an observer, test a declared exposure channel, then compare matched guard-off/on trialsguard-lab

A Skill supplies instructions; it does not intercept tool calls. Automatic protection depends on an active, compatible host hook and its covered tools. Agent Guard is not an OS sandbox against a malicious process with equal privileges. The capability matrix states the observed coverage and gaps.

guard-lab: test with evidence

guard-lab is a user-controlled experiment tool. It puts non-secret, synthetic markers and harmless bait into a disposable project and observes only declared channels. The real controller and evidence stay outside the fixture given to the tested agent.

Its workflow separates three questions:

  1. Calibrate: do the observer, markers, scans and evidence chain work? Built-in controls call no model and make no external-network request.
  2. Observe exposure: does an unguarded real-harness trial trigger the selected channel?
  3. Compare protection: after an effective baseline, does a matched guarded trial reduce or block that exposure?

Start with one zero-model control from the package or checkout root:

lab_run="$(mktemp -d)"
python3 guard_lab.py run --case clean --output-dir "$lab_run/clean" --json

The other controls are mock-positive, mock-injection and snapshot-positive. Run all four before a real-harness experiment, following the Lab guide. Installed packages also expose agent-guard-lab.

A control PASS means instrument calibration, not model safety. An unhealthy observer or missing evidence is INCONCLUSIVE; a quiet guard-off baseline cannot establish mitigation. Matched comparisons require the same relevant harness/version/model, task, protocol and non-guard configuration. Lab results cover the declared channels, not every file read, external transfer or model request. Existing Kimi and DSH reports retain their bounded results, failures and review states.

RC3 adds blue-team research, a sanitized experiment report and a portable four-control example. The research covers provenance, disclosure permissions and task utility in bounded private experiments; those methods do not extend production hook coverage. Lab proceeds gradually. Forks, PRs and independent defensive reproductions are welcome; preserve failed and inconclusive results.

From the RC3 checkout or review package, run all four existing controls:

blue_run="$(mktemp -d)"
python3 docs/lab/examples/blue-team-calibration.py --output-dir "$blue_run/controls"

This example calls no model; its summary describes instrument calibration.

Install and choose a version

Python 3.9+ and Git are required for the Core. The examples use a POSIX shell; native bridges and optional capture helpers have their own requirements.

VersionStatus
0.2.4Published stable baseline
0.2.5-rc1Previous published prerelease baseline
0.2.5-rc2Maintenance prerelease; check the exact publication receipts
0.2.5-rc3Research/documentation source preview; package publication requires separate receipts

For the published stable package, use a chosen, stable user-owned prefix:

npm install --prefix /absolute/path/to/agent-guard-install @mokuyoaxis/agent-guard@0.2.4

The package root is /absolute/path/to/agent-guard-install/node_modules/@mokuyoaxis/agent-guard. The exact scoped package name matters. A source checkout is also usable:

git clone https://github.com/mokuyoaxis/agent-guard.git
cd agent-guard

For RC2, select @mokuyoaxis/agent-guard@0.2.5-rc2 explicitly; the RC channel does not replace stable latest. Check the GitHub release and npm version for publication. A reviewed checkout or supplied tarball is also usable; the manifest alone does not establish registry availability. See setup and the agent setup prompt.

Evaluate RC3 through a reviewed source checkout or supplied tarball. Its manifest and a main-branch commit do not establish a registry release; version tags and GitHub/npm package publication are separate steps.

Recover a supported deletion

From the workspace being protected, point at your package/checkout root:

python3 /absolute/path/to/agent-guard/skills/delete-guard/scripts/safe_delete.py src/old_module.py --dry-run
python3 /absolute/path/to/agent-guard/skills/delete-guard/scripts/safe_delete.py src/old_module.py
python3 /absolute/path/to/agent-guard/skills/delete-guard/scripts/restore.py list
python3 /absolute/path/to/agent-guard/skills/delete-guard/scripts/restore.py <txid>

Valuable targets are relocated with exact recovery paths in a manifest. Provably regenerable, Git-ignored artifacts may be deleted directly. Supported Git overwrites snapshot tracked state; hard-reset collisions with untracked/ignored content are refused. Force restore preserves the current occupant before replacement. Errors can leave partial work: inspect the reported transaction IDs, filesystem and state before retrying.

Advisory check.py and safe_delete.py --dry-run preserve command targets but may write quarantine/audit metadata and a Git local exclude entry. Advisory exit 0 is not permission to execute a BLOCK or ASK. See the policy and assessment contract.

RC1 added quarantine control-path protection, excluded PURGED transactions from active GC planning, and minimized restore/safe_delete audit fields. Exact CLI/manifest recovery paths remain available. These changes are not in the published 0.2.4 package; see the RC notes.

RC2 introduced shared audit metadata projection, uses opaque session correlation, and limits legacy status/GC metadata. See the audit contract and remaining boundaries. It adds observer startup diagnostics and correct cancellation accounting; the original intermittent timeout's cause remains unknown. See the RC2 scope and evidence.

Check text before emission

The payload owner invokes the scanner and applies its decision. For a text file:

python3 skills/exfil-guard/scripts/check_span.py --channel file-write --json < draft.md
python3 skills/exfil-guard/scripts/sanitize.py --channel file-write < draft.md

A complete synthetic credential example is generated at runtime:

python3 -c 'print("config: sk-proj-" + "AbCdEf0123456789GhIjKl")' |
  python3 skills/exfil-guard/scripts/sanitize.py --channel file-write

The expected output is config: sk-<REDACTED>. The checker returns a decision and plan; it never rewrites the payload. Its exit 0 means ALLOW/SANITIZE assessment, while the sanitizer's successful stdout is the allowed or rewritten text. ASK/BLOCK/error withholds sanitizer payload output.

Detection covers documented credential shapes, value-free secret references and selected host paths. It is not a general repository scanner or protection against deliberate obfuscation. The text CLIs do not automatically append egress audit events; a trusted integration owns emission and any audit storage. For configuration inspection, an explicit safe view reports supported JSON/dotenv structure without scalar values; it is not an editable copy or automatic read interception.

Read the Skill, rules and exemption diagnostics, and channel contract.

Connect your coding agent

These are version-specific historical observations. They do not certify a new source candidate, every tool or every subagent path.

HostIntegration and evidence
Claude CodeNative Bash PreToolUse; sampled 2.1.270/2.1.273 scripted-host enforcement. Setup
Kimi CodeNative Bash PreToolUse; bounded 0.42.0 root/child and 2.1.1 root-Bash observations. ASK is denied; missing/timed-out hooks remain uncovered. Setup
DSHReviewed 0.1.5-rc.1/0.2.0-rc.2 deletion paths; optional complete text-read protection is default off. Sampled PTC Bash refusal does not imply universal PTC mediation. Setup
Codex / other hostsExplicit Skill/CLI is usable. Native interception needs a verified blocking hook. Adaptation guide

Use the full capability and evidence matrix for precise versions, tests and gaps. doctor.py kimi|claude --probe checks a selected configuration and local adapter path; PASS does not prove a live host loaded the hook. Drift checks are local preflight. A live sentinel is explicit, may consume provider quota, and covers only its sampled root Bash call. See the host drift guide.

Decisions, recovery and documentation

The shared protocol is ALLOW · SANITIZE · RELOCATE · SNAPSHOT · ASK · BLOCK, with stable reason codes and explanations. Aggregation is BLOCK > ASK > RELOCATE/SNAPSHOT > SANITIZE > ALLOW. Opaque targets and protected boundaries are refused; supported recoverable mutations compensate before proceeding. Authorization state remains a local discipline, not an isolated identity boundary.

After an incident, recovery-audit helps recover from surviving Git/session/cache evidence, distinguishing original bytes, reconstruction and known gaps. It cannot recreate bytes that no source kept.

DocumentPurpose
Getting startedPackage paths, agent setup prompt and safe verification
Documentation indexGuides, design, Lab, reports, releases and history
ArchitectureShared Core, compensation and adapter flow
Threat modelTrust assumptions and unresolved boundaries
CompatibilityInterface and release contracts
Blue-team researchDefensive methods, sanitized results and a zero-model starting point
0.2.5-rc3 notesCurrent source candidate's scope and validation status

Contributing

Bug reports, compatibility evidence, documentation fixes and focused code changes are welcome. Read CONTRIBUTING.md before sharing defensive research, independent reproductions or logs. Use Issues and Pull Requests; keep credentials, private configuration and unredacted incident records out of public reports.

Community

LINUX DO community link

This project-made banner links to our LINUX DO project post. It does not imply official endorsement by the community.

License

MIT — see LICENSE.