Sev7eEn7/dsh-sieve--packages-dsh-sieve ↗★ 64
dsh-sieve
提供上下文准入、历史遗忘与技能披露层 适合需要智能管理对话上下文、过滤工具输出和遗忘历史的用户。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Sev7eEn7/dsh-sieve#5b437749c3ef6617bc16008527cbb9e93ea1c4ec&path:packages/dsh-sieve說明文件
閱讀完整 README ↗Configuration
With Jev you need no configuration at all: the judge is auto and every decision is on; put a key in the credential store or the environment. To adjust anything, configure the sieve service in the profile's patch:
- id: sieve
config:
judge:
type: auto # auto | system-one | laya
timeoutMs: 4000
modes:
default: active
context.forget: off # e.g. turn off forgetting alone
judge.type | Description |
|---|---|
auto (default) | The Jev key in the DSH credential store or the environment (TYPESAFE_API_KEY first, then SIEVE_JUDGE_OPENROUTER_API_KEY); with neither, nothing changes |
system-one | The Jev endpoint named in the profile; needs apiKey (preferably !!js process.env.XXX), optional baseUrl and model (default jev-latest) |
laya | The local Laya server; optional baseUrl (default http://127.0.0.1:47823), no key |
modes sets each decision to active (default) or off; default covers the decisions not listed. Decision ids: tool.admission, tool.admission.test-log, context.forget, skills.disclosure.
Example with an explicit Jev endpoint:
- id: sieve
config:
judge:
type: system-one
apiKey: !!js process.env.MY_JUDGE_KEY
baseUrl: https://
model: jev-latest
An invalid configuration (an unknown decision id, say, or the removed llm judge settings) fails at load instead of silently falling back.