返回目錄

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 外掛,絕不濫發。