KongFangXun/sofagent
C3sofagent is an open-source FDE Harness for AI coding agents — on entry, write your business judgment into files (workflows, ontology, AI nodes); after departure, audit every change against them. 25 co
★ 50+ · KongFangXun/sofagent source on GitHub · this plugin in the registry
KongFangXun/sofagent is a DeepSeek Harness plugin rated C3 — powerful capability combined with sensitive behavior. It patches the dsh runtime, executes system commands, uses eval / new Function, decodes base64 payloads.
Installable plugin — declares a dsh.bundle manifest
What it can do
| Capability | Flag | Evidence |
|---|---|---|
| patches the dsh runtime | runtime_patch | ./cordis.patch.yml |
| executes system commands | exec | ×188 in authored code, e.g. FORGE/src/audit-middleware.mjs:36, FORGE/src/audit-middleware.mjs:36 |
| uses eval / new Function | eval | ×3 in authored code, e.g. engine/audit/src/rules/skill-safety-rules.ts:79, engine/audit/src/rules/skill-safety-rules.ts:83 |
| decodes base64 payloads | base64_decode | ×9 in authored code, e.g. engine/daemon/src/upload-wal.ts:312, engine/daemon/src/upload-wal.ts:313 |
| starts a network server | net_server | ×1 in authored code, e.g. engine/daemon/src/health-endpoint.ts:195 |
| reads credential-class env vars | token_env | OPENAI_API_KEY, SOFAGENT_KEY_PATH, SOFAGENT_LLM_API_KEY, SOFAGENT_LLM_GOAL_EVAL_API_KEY, SOFAGENT_MODEL_API_KEY |
Outbound domains
open.bigmodel.cn api.deepseek.com api-docs.deepseek.com sofagent.dev api.moonshot.cn token-plan.cn-beijing.maas.aliyuncs.com help.aliyun.com git-scm.com api.openai.com
Environment variables it reads
SOFAGENT_DATA SOFAGENT_HOME FORGE_WORKTREE_ROOT SOFAGENT_PROJECT_ROOT SOFAGENT_LLM_API_KEY OPENAI_API_KEY BASH_ENV SOFAGENT_MODEL_API_KEY SOFAGENT_HEALTH_PORT SOFAGENT_CONFIRM_BACKUP
How to read this
Levels measure capability surface and transparency, not maliciousness. A C3 plugin can be entirely legitimate — a desktop shell genuinely needs subprocesses. The point is that you can see this before installing. See the levels explained and how dsh plugins work.
Findings come from static analysis of shipped code; nothing is executed. Think a flag is wrong? Open an issue — every flag cites the file and line it came from.