Cut token cost in 4 layers without cutting model intelligence: handoff, rtk, headroom, caveman token-saving skills — each also available as a standalone installable plugin.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:WODE25500/dsh-token-skills
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Cut token cost in 4 layers — without cutting model intelligence.
A DeepSeek Harness preset of four complementary token-saving skills. Each one attacks a different stage of the token pipeline, so they stack:
handoff the context → prune the input → compact the context → terse the output
Stop paying twice for tokens you already have.
flowchart LR
A[Tokenizer] --> B[① Handoff<br>session]
B --> C[② RTK<br>input]
C --> D[③ Headroom<br>context]
D --> E[④ Caveman<br>output]
E --> F[<b>fewer tokens</b>]
Why: every token is money. A long agent session re-sends context it already paid for — past transcripts, padded logs, verbose replies. These four skills stop that leak at each stage.
The four layers
| # | Skill | Layer | What it saves | Backs off to |
|---|---|---|---|---|
| ① | handoff |
Session | stop re-reading/rebuilding context between sessions | context-auto-handoff |
| ② | rtk |
Input | drop redundant/repeated tokens before they enter the model | RTK (Rust Token Killer) |
| ③ | headroom |
Context | compress the live context so the prompt stays small | WanYanTianDe/dsh-headroom |
| ④ | caveman |
Output | terse prose — fewer tokens on the way out | skill-caveman |
Each layer is a thin dsh skill (skills/<layer>/SKILL.md). Where a real engine already exists, the skill wires to it instead of re-implementing compression — you get the strategy and the engine, for free.
Standalone repos
Each layer is also its own installable plugin, so you can add just the one you want:
| Skill | Repo |
|---|---|
| handoff | WODE25500/dsh-token-handoff |
| rtk | WODE25500/dsh-token-rtk |
| headroom | WODE25500/dsh-token-headroom |
| caveman | WODE25500/dsh-token-caveman |
# install just one
dsh plugin --profile web add dsh-token-handoff
When to use which
- Handoff — the highest-leverage, cheapest habit: write a
HANDOFF.mdnote at session end so the next one starts warm. Use it on every multi-session project. - RTK — per request, before you paste a big file/log/repo listing that's mostly noise.
- Headroom — continuous, for long-lived agents: compact before the window fills, not at the cliff edge.
- Caveman — every reply: it costs nothing and compounds. It changes style, never substance.
They stack to a single habit, not a heavy setup:
before: [past session verbatim] + [entire repo dump] + [fat context] + [verbose response]
after: HANDOFF note → pruned diff → compacted headroom → terse reply
Install
dsh plugin --profile web add dsh-token-skills
Or clone it and drop the skills into ~/.dsh/skills/:
git clone https://github.com/WODE25500/dsh-token-skills
Each skill is also invocable directly — handoff, rtk, headroom, caveman.
Validation
npm test # runs scripts/check-skills.mjs — asserts every bundled skill's frontmatter
License
MIT
Links
More in this category
tw93/Mole#mole★ 76632
Official agent skill for the open-source Mole CLI (mo), a disk cleanup tool for macOS and Windows: read disk usage, preview and run cleanup, inspect installed apps, and read system health and cleanup history from Mole's JSON output. It previews with --dry-run and asks before removing anything, and leaves app uninstalls and privileged steps to the user's own terminal. The plugin ships only the skill; the CLI is installed separately.
zhu1090093659/dsh-web#packages/dsh-skill-explorer★ 10686
Skill center for the dsh web GUI: browse all loaded skills grouped by source, enable or disable model invocation, create new skills, and delete into a recoverable trash.
QingYunA/answer-me-with-html★ 6719
Answers a question with a one-page visual HTML explainer: the model writes a short Markdown draft and the bundled `am` CLI builds the page, with flow, sequence, tree, timeline and ER diagrams, tables and callouts.
iflytek/skillhub#dsh★ 5505
Browse and search a SkillHub registry and manage local skill installation, updates, and removal inside DeepSeek Harness. Targets DSH 0.2.0-rc.2 and 0.2.1-rc.2; not yet compatible with 0.2.1-rc.3.
hyhmrright/brooks-lint★ 1594
Provides six code quality skills for code review, architecture audits, technical debt, test quality, health dashboards, and remediation.
GanyuanRan/Aegis★ 1459
Software-engineering method pack for coding agents, with skills for baseline-first planning, systematic debugging, prompt hygiene, verification before completion, and repair/retirement tracking.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.