dsh-sleev
Sleev routing observability for DeepSeek Harness
xarleyn
@xarleyn
⬇ 1
★ 0
master
安装
dsh plugin --profile web add github:xarleyn/dsh-sleev
需要可复现安装时,可在仓库后追加 #commit 固定提交。
Sleev routing observability for DeepSeek Harness
该插件未提供要点说明,请参考仓库 README。
ai-agentscontext-managementcontext-optimizationdeepseek-harnessdshdsh-plugin
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/xarleyn/dsh-sleev |
| 许可证 | MIT |
| 主要语言 | master |
| 下载量 | 1 |
| GitHub 星标 | 0 |
| 最近推送 | 2026-08-27 |
| 收录日期 | 2026-09-19 |
| 分类 | 工具与能力 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
# dsh-sleev
[](https://github.com/xarleyn/dsh-sleev/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/dsh-sleev)
[](https://www.npmjs.com/package/dsh-sleev)
[](package.json)
[](LICENSE)
English · [简体中文](README.zh-CN.md)
Early [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
integration for observing provider routes that pass through the external Sleev
context-optimization gateway.
The current M1 observer does not rewrite prompts, implement compaction, or route
traffic by itself. Routing is configured as a normal
`@deepseek-ai/dsh-llm-pi-ai` provider profile; the Host observes matching route
aliases at the `llm/stream` boundary, and the browser half exposes its observer
settings in the standard Plugins page.
## Installation
Install the published npm package by name:
```bash
dsh plugin --profile web add dsh-sleev
```
Or install the latest source directly with a GitHub package specifier:
```bash
dsh plugin --profile web add github:xarleyn/dsh-sleev
```
GitHub dependencies are built from source, so pnpm may ask you to approve this
package's `prepare` script. The npm package is recommended when you do not want
install-time build permission.
If you manage a profile package manually, the corresponding dependency commands
are `pnpm add dsh-sleev` and `pnpm add github:xarleyn/dsh-sleev`.
Remove the plugin with:
```bash
dsh plugin --profile web remove dsh-sleev
```
Restart the DeepSeek Harness host if bundle hot reload does not pick up a newly
installed plugin or a newly added browser client.
## Current behavior
- observes exact routes and/or prefixes (default prefix: `sleev-`);
- classifies agent, compaction, session-title, and one-shot calls;
- yields every stream chunk unchanged;
- records provider usage and effective input token volume;
- retains a bounded secret-free in-memory history;
- logs one structured completion record per observed call;
- exposes observer matching, retention, and logging settings in the Web UI.
The observer never stores prompts, request headers, credentials, or secret
values. Direct routes that do not match the configured Sleev aliases remain
unobserved.
## Plugin settings card
Open **Settings → Plugins → Plugin configuration → Sleev** to edit:
- exact observed provider aliases;
- observed provider-name prefixes;
- the in-memory recent-call limit;
- structured telemetry logging (`off`, `info`, or `debug`).
Edits are staged until **Save**, which is enabled only when the form has actual
changes. Each overridden field can be reset to its composition default
individually, and the card marks unsaved changes. Saved values apply to the next
matching call without a Host restart. These settings decide what the plugin
observes; model endpoints and Sleev routing headers still belong under
`llm-pi-ai.providers` in DSH model settings.
## Configure a Sleev route
Merge a provider route into `$DSH_HOME/settings.yaml` under
`llm-pi-ai.providers`. DSH resolves the credential reference; never place the
literal API key in the route configuration.
```yaml
llm-pi-ai:
providers:
sleev-neuraldeep:
displayName: Sleev / neuraldeep
apiKeyEnv: NEURALDEEP_API_KEY
api: openai-completions
baseURL: http://127.0.0.1:17321/v1
headers:
sleev-base-url: https://api.neuraldeep.ru/v1
sleev-harness: pi
models:
- id: gpt-oss-20b
name: GPT OSS 20B via Sleev
```
Use `sleev-provider` instead of `sleev-base-url` for a provider known to Sleev;
do not combine both headers on one route. See
[the sample settings](docs/sample-settings.yml) for both forms.
Sleev does not currently document a native DeepSeek Harness identifier. The
sample's `sleev-harness: pi` value is an explicit experimental compatibility
choice, not a promise of first-party support.
## Requirements
- Node.js `^22.19.0` or `>=24.0.0`;
- DeepSeek Harness `>=0.1.1-rc.2 <0.2.0`;
- Cordis `^4.0.1`;
- a configured and running Sleev gateway for routed model calls.
## Development
```bash
pnpm install
pnpm check
```
Build and link the checkout into a Web profile:
```bash
pnpm build
dsh plugin --profile web add .
dsh --profile web --dump-config
```
Run the account-backed NeuralDeep smoke separately when credentials and the
local gateway are available:
```bash
pnpm smoke:neuraldeep
```
The live provider smoke is deliberately not part of required CI because it
depends on credentials, a local gateway, and an external provider. See the
[development guide](docs/development.md) for setup and retry behavior.
## Compatibility
The complete DSH → llm-pi-ai → Sleev → NeuralDeep streaming path has passed
ordinary completion, usage, tool-call, and tool-result checks with DeepSeek
Harness `0.1.1-rc.2`, Sleev `1.7.7`, and NeuralDeep `gpt-oss-20b`.
This establishes transport compatibility, not token savings. The tiny test
prompt exposed Sleev's fixed instruction overhead; a long tool-heavy session is
still needed for a meaningful compression benchmark. See the
[compatibility notes](docs/compatibility.md) for exact evidence.
## Releases
Pushing a `v`-prefixed SemVer tag starts the
[Release workflow](.github/workflows/release.yml). It verifies the exact tag,
runs the quality gate, applies the tag version to the packed manifest, tests a
clean DSH profile install, creates a checksum, and publishes a GitHub Release.
The same workflow can be started manually for an existing tag to optionally
publish the tested artifact to npm through trusted publishing.
Prerelease tags use the npm `next` dist-tag; stable tags use `latest`. npm
publishing is disabled for tag pushes and by default for manual runs. Enabling
it requires an `npm` GitHub environment plus an npm trusted-publisher
configuration for `release.yml`.
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。