DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Optimize — DSH Plugin for DeepSeek Harness
← Plugins
O

dsh-optimize

Optimize

Long-session resource governor for DeepSeek Harness: measures the context each request actually carries, tracks per-session growth, warns before a session becomes expensive to run, and (optionally) trims the rendered history in the web UI.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:aoripus/dsh-optimize#c3012f4c79c33b02797e8c4a72ce486d456ea3eb
READMECompatibilityVersions

Compatibility and provenance

Optimize is published as dsh-optimize and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/14/2026

Versions

0.1.0stable
9/14/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/14/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in memory-context.

Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessContextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.

README

dsh-optimize

Long-session resource governor for DeepSeek Harness.

A conversation that keeps growing gets expensive long before anything compacts it: every step re-sends the retained history, the session log grows without bound, and the web UI has more history to draw. dsh-optimize measures that growth and reports it, so a heavy session is a visible fact rather than a surprise.

What v0.1 does

  • Measures what every outgoing request actually carries (message count, characters, estimated token range) on each agent/pre-step.
  • Keeps a per-session record — request count, last and maximum request weight, when the session was first and last seen — in $DSH_HOME/storages/dsh-optimize/state.json.
  • Logs a warning the first time a session crosses warnTokens, and again at criticalTokens, with the measured range.
  • Provides the optimize host service (snapshot(id), list(), flush()).

It does not change what the model receives, does not write session events, and does not touch the session log.

Install

dsh plugin --profile <profile> add dsh-optimize

Or from a checkout:

dsh plugin --profile <profile> add /path/to/dsh-optimize

Configure

The bundle patch ships the defaults; override them in your profile's patch layer (~/.dsh/profiles/<profile>/cordis.patch.yml):

- id: dsh-optimize
  config:
    warnTokens: 120000
    criticalTokens: 300000
    verbose: false
KeyDefaultMeaning
warnTokens120000Estimated request weight that marks a session as heavy.
criticalTokens300000Estimated request weight that marks a session as critical.
verbosefalseLog every measured request, not only threshold crossings.

The estimate is a range: Latin text is near four characters per token, CJK near one and a half. The upper bound is the one compared against the thresholds, so a mixed-language session errs towards reporting early.

Roadmap

  • Browser half: a session-weight chip next to the composer, a "history window" toggle that renders only the recent tail of a very long session, and collapse of old tool output. The trajectory table already virtualises; the chat view does not.
  • Optional automatic compaction when a session passes the budget.

License

MIT.