返回目录

sofagent

编辑精选维护状态: 活跃

kongfangxun/sofagent

面向企业 AI 的开源 FDE Harness 层:24 条 git-diff 审计规则、自动快照回滚、规则注入与自我演进,附带 13 个插件及 MCP 服务器(79 个工具)。

前往 GitHub项目主页
$ npx -y -p @sofagent/audit sofagent-audit

42

星标

6

Fork

TypeScript

语言

MIT

许可证

2026-06-18

创建于

2026-09-02

最近推送

MIT 协议的开源 FDE Harness 治理层:9 个 DeepSeek Harness 原生插件,对每一次 AI 改动做审计、留痕、快照,让 AI 干活守规矩、出事能回溯。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-09-03

许可证

MIT

01它能帮你完成什么?

  • Govern every change your AI coding agent makes inside DeepSeek Harness — gate edits, record an audit trail, and snapshot before commit

    A forced audit on each commit (24 git-diff rules: secret-leak, cross-boundary, injection detection) with hard evidence, an immutable audit log, and one-click rollback to any snapshot

    Solo founders and small teams running DeepSeek Harness (DSH) who want AI work constrained, traceable and recoverable

  • Onboard AI nodes into your business with the FDE method — map workflow, build the dual ontology, deploy and continuously govern

    Enterprise profile, AI-node plan with annual savings, and three-layer deliverables (docs + Skill + runtime) that run inside your DSH agent

    FDE / deployment engineers and small businesses adopting AI without a dedicated platform team

02如何接入 DeepSeek Harness?

前置条件

  • Node.js ≥ 18 (required for the full `bash bootstrap.sh` install)
  • Install on the device that runs your AI agent (enterprise machine), not the FDE's own laptop
  • A git repository to audit

安装步骤

  1. 01

    $ npx -y -p @sofagent/audit sofagent-audit

  2. 02

    $ curl -fsSL https://raw.githubusercontent.com/KongFangXun/sofagent/refs/tags/v1.4.3/bootstrap.sh -o bootstrap.sh

  3. 03

    less bootstrap.sh # review the script before running

  4. 04

    bash bootstrap.sh && rm bootstrap.sh

  5. 05

    sofagent-audit --init # install git hook for per-commit audit

  6. 06

    sofagent-audit --doctor # verify environment (optional)

验证接入成功

  • sofagent-audit --doctor # validate the environment (optional)

03DSH 适配与能力边界

DSH 适配原生运行时

DeepSeek Harness 原生运行时插件:9 款 `cordis-plugin-sofagent-*` 以最深的「插件级」档位挂载进 DeepSeek Harness(Cordis)运行时

  • Zero-config audit

    any git repository's latest commitaudit result against 24 git-diff rules (quick default 17 + 7 extended via config): secret-leak / cross-boundary / injection detection with hard evidence

  • Constraint injection (4-layer)

    your enterprise constraints at agent startupfour-layer constraint injection into the DeepSeek Harness agent

    constraints are advisory — an agent may skip them; only the audit is mandatory
  • Snapshot rollback (回溯)

    each audited changean automatic snapshot archive; one-click restore to any snapshot

04适合谁?何时不该用?

适合

  • Solo founders and small teams running DeepSeek Harness (DSH) who want AI work constrained, traceable and recoverable
  • FDE / deployment engineers and small businesses adopting AI without a dedicated platform team

不适合

  • config.yml is not fail-closed by default — rules can be tampered with / bypassed by the agent, and multi-tenant isolation is not yet implemented. For strong compliance use CI as a backstop and lock the file (`chmod 444 .sofagent/config.yml`); do not run the single-machine default in production.
  • Designed for a single machine / single user; multiple agents share one knowledge base and audit history, and multi-tenant isolation is in the roadmap. task/logs are stored in plaintext (static encryption not yet wired).

05兼容性、维护与安全提示

  • config.yml is not fail-closed by default — rules can be tampered with / bypassed by the agent, and multi-tenant isolation is not yet implemented. For strong compliance use CI as a backstop and lock the file (`chmod 444 .sofagent/config.yml`); do not run the single-machine default in production.
  • Designed for a single machine / single user; multiple agents share one knowledge base and audit history, and multi-tenant isolation is in the roadmap. task/logs are stored in plaintext (static encryption not yet wired).
2026-06-182026-09-02v1.4.3

MIT · actively maintained (latest release v1.4.3, 2026-09-01)

06常见问题

sofagent 怎么和 DeepSeek Harness 集成?

它提供 9 款 `cordis-plugin-sofagent-*` 插件,以最深档位的「插件级」挂载进 DeepSeek Harness(Cordis)运行时——比其它宿主用的 Skill / Hook 档位更深。

接 DeepSeek Harness 除了装插件还要做什么?

插件会自动挂载进运行时;要每次 commit 强制审计,再跑一次 `sofagent-audit --init` 装三层 git hook(pre-commit / commit-msg / post-commit)。

sofagent 会替代模型或 DeepSeek Harness 吗?

不会。它不造 Agent、也不替代模型,只嵌在 DeepSeek Harness 与模型层之间补治理(注入 · 审计 · 回溯 · 进化),补上那 10% 的可靠执行。

不做完整安装也能跑审计吗?

能。`npx -y -p @sofagent/audit sofagent-audit` 零配置、秒级审计任意 git 仓库最近一次 commit;完整 `bootstrap.sh` 安装只在跑 AI 节点的设备上才需要。

Agent 不守约束时,审计还强制吗?

约束是建议性的,但审计是强制性的:每次 commit 都过 24 条 git diff 规则,违规当场拦截;强合规建议再用 CI 兜底 + 文件权限锁(`chmod 444 .sofagent/config.yml`)。

08数据与来源

  • 作者声明github.com61b5cb73cffc…

    9 款 `cordis-plugin-sofagent-*` 挂载进运行时(见上章)

  • 作者声明github.com61b5cb73cffc…

    开源 9 款插件已挂载进 DSH,烧录即用。

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-03。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。