@Zoria-Lind/behavior-enhancer-generic avatar

@Zoria-Lind/behavior-enhancer-generic

Behavior discipline for coding agents: read-before-write enforcement, failure convergence, write verification with auto-rollback, and a high-risk command gate. Ships FULL plugin/hook adapters for DSH, Claude Code, Codex, and Pi, plus a host-agnostic SOFT skill with ADAPTIVE adapter guidance.

Ecosystem pluginSecurityAI ModelsDeveloperFileTerminal / Shell
Verification
L5 · Ecosystem plugin
Ecosystem plugin
Risk
LowRisk
Health
Active
Trust
Silver

Install verification: Ecosystem plugin: installs via dsh plugin add but declares no dsh.bundle and mounts no plugin capability — the L1-L5 install ladder does not rate it; the security scan still runs.Install verification details →

What it doesAI

Guardrail hooks that enforce read-before-write, verify writes with auto-rollback, and gate high-risk commands for coding agents.

  • Enforces read-before-write discipline for coding agents
  • Verifies writes and auto-rolls back on failure
  • High-risk command gate; DSH/Claude Code/Codex/Pi adapters
securityAIfileAIterminalAI

Capability tags are AI-inferred or rule-extracted from the README (see badge) — vocabulary-limited, not install-verified. AI = inferred; README = literal keyword from the readme.

Installation

dsh plugin --profile web add github:Zoria-Lind/behavior-enhancer-generic#v1.0.0
verified v1.0.0

Install method: GitHub · runtime test inconclusive (L5 unknown)

Verification & Compatibility○ Ecosystem plugin

Grouped by plugin version: each card lists the dsh versions actually tested against that artifact version and their install verdicts (L5 wins). Untested combinations are omitted — absence means untested, never assumed compatible. L1–L3 are a plugin-level static archive (independent of the dsh version — the same verdict on every dsh row): they sit in each row's level grid next to L4/L5, marked "static", while their evidence is stored once per plugin inside that row's "checks & evidence" instead of being duplicated per version.

External credentials (plugin-level): none detected

Declared DSH compatibilityfrom package.json · peerDependencies
package manifest not collected

package manifest not collected — the declared range is unknown.

Install compatibility matrix (rows = plugin versions〔latest 5〕, columns = dsh versions〔latest 5〕)
○ Ecosystem plugin
At-a-glance → evidence in the cards below
plugin \ dshdsh 0.2.1-rc.2
current
dsh 0.2.1-alpha.4dsh 0.2.1-alpha.2
v1.0.0○○○
Install compatibility (by plugin version, dsh versions within)
Legend:✓ L5 runtime verified○ ecosystem plugin◼ ecosystem app✗ failed
v1.0.0github○ 3 ecosystem plugin2026-10-19

https://github.com/Zoria-Lind/behavior-enhancer-generic

○dsh 0.2.1-rc.2current2026-10-19Ecosystem plugin
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-rc.2
  • • Plugin artifact: github · https://github.com/Zoria-Lind/behavior-enhancer-generic#v1.0.0
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Unknown
Ecosystem plugin: no install verdict — not a usable dsh plugin (shown as L5 · ecosystem plugin)
Ecosystem plugin

ID: behavior-enhancer-generic@v1.0.0@dsh0.2.1-rc.2 · profile: l4-sandbox

Issued: 2026-10-19 · expires: 2026-10-26

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 3.2s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 3.2s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 3.2s
L5 · Run tested? Unknown

not present in web-profile loader inventory

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · install mode reused L4 scratch
check took: 73ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-19
ready line dsh web: http://127.0.0.1:60818/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-19
path / · HTTP 200 · took 73ms
Plugin active in inventory? Unknown
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-19
verdict not-found · entries 149
phases: active 121 · null 28
not present in web-profile loader inventory

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

○dsh 0.2.1-alpha.42026-10-17Ecosystem plugin
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.4
  • • Plugin artifact: github · https://github.com/Zoria-Lind/behavior-enhancer-generic#v1.0.0
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Unknown
Ecosystem plugin: no install verdict — not a usable dsh plugin (shown as L5 · ecosystem plugin)
Ecosystem plugin

ID: behavior-enhancer-generic@v1.0.0@dsh0.2.1-alpha.4 · profile: l4-sandbox

Issued: 2026-10-17 · expires: 2026-10-24

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-17
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 2.9s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-17
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 2.9s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-17
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 2.9s
L5 · Run tested? Unknown

not present in web-profile loader inventory

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-17
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · install mode reused L4 scratch
check took: 282ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-17
ready line dsh web: http://127.0.0.1:52423/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-17
path / · HTTP 200 · took 282ms
Plugin active in inventory? Unknown
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-17
verdict not-found · entries 149
phases: active 121 · null 28
not present in web-profile loader inventory

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

○dsh 0.2.1-alpha.22026-10-14Ecosystem plugin
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.2
  • • Plugin artifact: github · https://github.com/Zoria-Lind/behavior-enhancer-generic#v1.0.0
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Unknown
Ecosystem plugin: no install verdict — not a usable dsh plugin (shown as L5 · ecosystem plugin)
Ecosystem plugin

ID: behavior-enhancer-generic@v1.0.0@dsh0.2.1-alpha.2 · profile: l4-sandbox

Issued: 2026-10-14 · expires: 2026-10-21

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 6.4s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 6.4s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · channel GitHub source · outcome ran · exit 0
check took: 6.4s
L5 · Run tested? Unknown

not present in web-profile loader inventory

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec github:Zoria-Lind/behavior-enhancer-generic#v1.0.0 · install mode reused L4 scratch
check took: 185ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-14
ready line dsh web: http://127.0.0.1:62703/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-14
path / · HTTP 200 · took 185ms
Plugin active in inventory? Unknown
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-14
verdict not-found · entries 149
phases: active 121 · null 28
not present in web-profile loader inventory

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

Author badges

Embed the official badges in your README to showcase security & install-test status:

dsh.so risk
`[![dsh.so risk](https://www.dsh.so/badge/behavior-enhancer-generic.svg)](https://www.dsh.so/artifact/behavior-enhancer-generic/)`

Security Report

Two automated layers, neither a manual review: a static scan (per-plugin rule checks) and a model-driven dynamic security audit that covers only the subset static-flagged at warn or above and never executes plugin code.

behavior-enhancer-genericAutomated review · daily

Static low, dynamic low — stricter wins → overall low.

static low→dynamic low→overall low
0 critical·0 high
lowoverall · low
1static scan · vet primaryvet AST static analysis (npm artifact or git source)
plugin version—
scanned versionv1.0.0git2026-10-21
current versionv1.0.0same version
vet verdictclean · git

Vet is an AST static scan (npm artifact or git source).

show static findings (4)
  • warningfsWrite · filesadapters/codex/hooks/state.cjs:87

    fs.writeFileSync(tmp, JSON.stringify(state), 'utf8')

  • warningfsWrite · filesadapters/codex/hooks/state.cjs:117

    fs.writeFileSync(path.join(INFLIGHT_DIR, String(toolUseId).replace(/[^0-9A-Za-z_-]/g, '_')), String(Date.now()), 'utf8')

  • warningfsWrite · filesadapters/codex/hooks/state.cjs:133

    else fs.writeFileSync(snapPath, '', 'utf8') // 占位:标记"文件本不存在"

  • warningfsWrite · filesadapters/pi/extension/state.js:51

    fs.writeFileSync(tmp, JSON.stringify(state), 'utf8')

2model reads redacted source context · never executes plugin code
highest gradelow
merged intooverall low
audited at2026-10-19
findings0 critical·0 high0 medium / 3 low hidden
show 3 audit findings
  • lowKernel module loaded via createRequire anchored on environment-controlled paths (DSH_ROOT/DSH_HOME/APPDATA)adapters/dsh/src/kernel.js:13

    resolveKernelModule() is called during apply() (failureGuard.js and verifyLoop.js) and does `const req = createRequire(anchor); req.resolve(name); return req(name)` for '@deepseek-ai/dsh-llm'. If DSH_ROOT, DSH_HOME or APPDATA point at a directory the attacker can write, code from that directory executes inside the DSH process at plugin load. Precondition is control of the process environment or write access to those directories (same-user), so this is a hardening gap rather than a remote vector.

  • lowEvery written file's full content is copied in plaintext into ~/.behavior-enhancer/codex/snapshots and never prunedadapters/codex/hooks/state.cjs:132

    pre_tool_use.cjs (line ~106, `const snap = St.snapshot(filePath)`) snapshots every target path of Write/Edit/apply_patch, including files outside the project such as .env or credential configs. Copies land in a home-directory folder created with default umask permissions and no rotation/cleanup exists in the harvested code, so sensitive content is duplicated at rest outside the working tree. rollback() (line 141) can also restore stale content but is only exported and not invoked by the harvested hooks.

  • lowDestructive-command gate auto-escapes: after maxStrikes (3) denials the same command is allowed throughadapters/dsh/src/modules/hardGate.js:34

    The hardGate is documented as a soft gate, but concretely an agent that repeats a matched destructive command (rm -rf, Remove-Item -Recurse, format, del /f) is denied only 3 times and then executed without approval; the Codex path in pre_tool_use.cjs (line ~37-39) has the same escape via S.MAX_STRIKES. Combined with the narrow heuristic regex list, the control is advisory only, so users must not treat it as a safety boundary.

No critical/high issues: local-only discipline hooks; only low risks (env-anchored dynamic require, plaintext write snapshots, self-escaping destructive-command gate).

Rule: the dynamic audit can only raise risk, never lower it (raise-only, never an exemption); a wrong raise is withdrawn by human review and the tier falls back to the static verdict. Overall verdict = the stricter of the two layers.

Disclaimer: the static scan and the dynamic security audit are both automated analysis, not a security guarantee. Always review what you install.

Activity

Last commit 2026-10-12 · activity: Active

• Repo created: 2026-10-05

• Stars: ★ 5 · Forks: 0

• Health: Active — committed within last 30 days

Source

GitHub: github.com/Zoria-Lind/behavior-enhancer-generic

Was this page helpful?