by Sev7eEn7
dsh-sieve: context engineering & token optimization plugin for DeepSeek Harness (DSH) — tool output filtering, context pruning, progressive skill disclosure. 36% smaller payload in offline replay. DSH 上下文管理与 token 优化节省插件。
# Add to your Claude Code skills
git clone https://github.com/Sev7eEn7/dsh-sieveGuides for using ai agents skills like dsh-sieve.
Last scanned: 10/9/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-10-09T11:10:39.662Z",
"npmAuditRan": false,
"pipAuditRan": true,
"promptInjectionRan": true
}See how dsh-sieve compares with popular alternatives.
dsh-sieve is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Sev7eEn7. dsh-sieve: context engineering & token optimization plugin for DeepSeek Harness (DSH) — tool output filtering, context pruning, progressive skill disclosure. 36% smaller payload in offline replay. DSH 上下文管理与 token 优化节省插件。. It has 111 GitHub stars.
Yes. dsh-sieve passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/Sev7eEn7/dsh-sieve" and add it to your Claude Code skills directory (see the Installation section above).
dsh-sieve is primarily written in TypeScript. It is open-source under Sev7eEn7 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh dsh-sieve against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
Your agent navigates countless decisions across long loops, yet most tokens pay for dead logs and stale history.sieve is a precision mesh inside the execution loop: cutting through context inflation and delivering only the critical context that decides the next step.
Context engineering, token efficiency and long-task supervision plugins for DeepSeek Harness (DSH)
−36% request payload (offline replay, 100 trajectories) · −21% main model input tokens (live model, 80 runs) · ~0.3 s per judgment · 0 DSH core patches
How each number was measured, and what it does not show: offline replay · live model results. The live runs predate the current Jev / Laya setup.
sieve is a high-performance DSH plugin that filters tool output, forgets stale context, and discloses skills strictly on demand. Every raw output is archived before rewriting and remains one read away. Powered by the same judge engine, a suite of harness modules supervises long tasks to eliminate false completions and infinite loops.
[!IMPORTANT] sieve needs a judge model: Jev (hosted, needs an API key) or Laya (local, macOS on Apple Silicon). It never borrows the session's own model. Without one, the token-saving decisions change nothing and the harness modules run on their rules alone. Set one up.
Your agent navigates hundreds of critical decisions across complex tool-calling loops.
Yet one glance at its real context ledger reveals a grim reality: actual user prompts and core code represent only a tiny fraction of the payload. The overwhelming bulk is pure context inflation:
This is not pocket change—it is a critical signal-to-noise crisis.
Input tokens snowball quadratically with every turn. As the context window chokes on dead logs, the model's attention dilutes, hallucinations increase, and tasks stall out.
sieve is the precision mesh built for this storm.
No blunt truncations. Zero patches to DSH core. Before tool results enter the session and before history piles into dead weight, sieve queries a lightweight judge model (~0.3 s) to prune the noise, archive the byte-exact original to disk, and hand the model only lean, high-signal context.
A 263-line vitest run with one failure (8,020 characters), through sieve's test-log rules:
RUN v4.1.8 /work/app
- ✓ src/parser.spec.ts (18 tests) 82ms
- ✓ parser handles case 1 1ms
- … 223 more lines of passing tests …
+[sieve: omitted 225 lines: passing tests]
❯ src/date.spec.ts (8 tests | 1 failed) 61ms
…
× date > parses ISO week dates 4ms
FAIL src/date.spec.ts > date > parses ISO week dates
AssertionError: expected '2026-W01-1' to be '2025-12-29'
…
Test Files 1 failed | 12 passed (13)
Tests 1 failed | 222 passed (223)
+[sieve: full output: /var/folders/…/dsh-spill-…/session-…/…-bash.txt]
+Use read with offset/limit, or grep this path to search within it.
The model receives 1,138 characters instead of 8,020 (an 86% reduction).
read away if the agent ever needs it.sieve's approach: a dedicated sidecar judge. It poses lightweight, structured yes/no or single-choice questions with calibrated probabilities in ~0.3 seconds (median, offline replay). If confidence falls below threshold—or if any error or timeout occurs—sieve triggers safe fallback: the full original is kept untouched.
When an agent runs for hours, saving tokens is no longer enough. The real killers become drift, illusions, and silent failures:
sieve's harness modules share the exact same judge engine: acting not just as a token tourniquet, but as an always-on supervisor and safety co-pilot for long-horizon execution.
For AI coding agents on DeepSeek Harness, especially with verbose test logs, frequent tool calls, long sessions or large skill catalogs.
| Area | How sieve handles it |
|---|---|
| Input token reduction | Filters redundant tool content before it enters the session, reducing input resent on later steps |
| Tool output filtering | Handles build logs, test reports and command output by category, protecting failure details and test summaries |
| Context compaction / pruning | Replaces irrelevant older tool results in batches, retaining archive pointers for on-demand retrieval |
| Progressive skill disclosure | Shows skills by task relevance, reducing context window usage from unrelated descriptions |
| Prompt cache awareness | Processes new results before they are recorded and batches historical pruning to control prefix rebuild frequency |
[!NOTE] Released in 0.4.0; 0.4.1 is the same plugin and also loads on DSH 0.2.1-rc.3 and later. Coming from 0.3.0, which has only the token-saving decisions? Run
dsh plugin --profile web add dsh-sieve@0.4.1 dsh-sieve-web@0.4.1and restartdsh web; see Upgrade and uninstall.
Saving tokens was only the opening act. For deep, long-horizon tasks, sieve introduces six harness modules driven by the exact same judge engine to prevent drift, loops, and false completions:
| Module | In one line |
|---|---|
| Hive | Ask one question, get 2–6 read-only bees on it. They post findings to a shared board, and the judge decides which bee needs which finding |
| Long-task monitoring | Claims "done" after an edit nothing ran? Marks a goal complete the facts do not support? Fails the same way three times in a row? It notices |
| Checkpoints and rewind | A snapshot before each turn's first change; /sieve rewind puts the files back and forks the conversation from that turn |
| Crash-resume | Back from a crash in the middle of a command? The model is told whether that call is safe to run again |
| Jev approval | Routine calls run without asking you, calls sending credentials elsewhere are refused, and the rest still asks |
| Team supervisor | For DSH agent teams: frees stuck members, reopens tasks that do not hold up, holds edits inside another member's files |
Hive, checkpoints and crash-resume act by default. Monitoring and the team supervisor start in the new shadow mode, recording what they would have done until you switch them on; Jev approval is off until approval.enabled. Details in Harness modules.
Also new: /sieve checkpoints, /sieve rewind, /sieve rewind undo and /hive (Session commands); a Hive page beside the Sieve page in the Web panel, with each bee's state, a live delivery graph and the delivery stream; the shadow mode, 15 new decision ids and six config sections (Configuration); and new DSH peers: dsh-subagent, dsh-goal, dsh-permission-presets, dsh-sandbox-policy, dsh-user-approval