Sev7eEn7/dsh-sieve--packages-dsh-sieve ↗★ 64

dsh-sieve

提供上下文准入、历史遗忘与技能披露层 适合需要智能管理对话上下文、过滤工具输出和遗忘历史的用户。

包名
dsh-sieve
兼容性
待验证
Harness 依赖范围
0.2.1-alpha.1
Cordis 依赖范围
~4.0.5-alpha.1
版本
0.2.0
许可证
MIT
最近更新
2026年10月10日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Sev7eEn7/dsh-sieve#5b437749c3ef6617bc16008527cbb9e93ea1c4ec&path:packages/dsh-sieve

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.typeDescription
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-oneThe Jev endpoint named in the profile; needs apiKey (preferably !!js process.env.XXX), optional baseUrl and model (default jev-latest)
layaThe 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.