979569650/dsh-typesafe ↗★ 1

dsh-typesafe

TypeSafe Jev (System One decision model) for DeepSeek Harness: typed decisions in three question primitives, confidence-gated routing, a cost meter, and an automatic prompt-injection guard over untrusted tool results. 适合需要高可靠性类型化决策、成本监控和安全防护的Agent工作流。

패키지
dsh-typesafe
호환성
미검증
Harness peer 범위
^0.1.5-rc.2
Cordis peer 범위
^4.0.2
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 9. 22.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:979569650/dsh-typesafe

Configuration reference

Every key is defaulted, so id + name alone is a working install. Edit them in the settings card, or override the row in a profile cordis.patch.yml.

KeyDefaultMeaning
enabledtrueMaster switch. Off removes the prompt section and the guard.
apiKeyEnvTYPESAFE_API_KEYCredential reference to resolve.
baseURLhttps://api.typesafe.aiAPI origin.
modeljev-latestAlias or pinned version id. Pin a version if you tuned thresholds against it.
timeoutMs30000Per-request timeout.
maxStateChars60000Rejects oversized calls before they are billed.
inputPricePerMTok0.042Cost reporting only.
promptEnabledtrueWhether to tell the agent when to use the tools.
promptOrder700Prompt section placement, in the behavioural-rule band (TEAM_POLICY 600 … PTC_ONLY 800).
guardEnabledtrueScreen untrusted tool results.
guardToolsweb_fetch, web_search, read_page, read_url, browse, scrape, mcp__*__fetch, mcp__*__fetch_content, *fetch_contentWhich tool results to screen. Globs, so one entry covers a family. Only tools that bring outside text in belong here.
guardWarnThreshold0.5Injection probability at which a result is flagged.
guardMinChars200Skip shorter results.
guardMaxChars6000Chunk size for screening. Every chunk is screened, so this trades request count against request size — it is not an excerpt budget.