ChatGPTClaudeGrok / X / CursorGemini

tokenomics-plugin: An Agent Output Efficiency Layer for DeepSeek Harness

z99we/tokenomics-plugin

Models & ReasoningVerified
Listed on 2026-11-17
Page last updated 2026-11-19

Tokenomics is a DSH plugin efficiency layer that compresses agent prose, minimizes code via YAGNI, and tracks token savings with context-aware, safety-first handling.

tokenomics-plugin is an efficiency layer that sits between an AI agent and its output, compressing verbose replies and minimizing generated code under YAGNI principles for DeepSeek Harness users while quantifying the tokens saved. It first identifies whether content is code, docs, config, secrets, SQL or prose, then applies the matching strategy, skipping security-sensitive content entirely. The plugin also offers token budget alerts, level and streak records of savings, and an HTML preview widget, with subagent tasks inheriting the same compression context.

How to Install

install
npmdsh plugin --profile web add @soch-tokenomics/tokenomics-dsh-plugin

Replace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.

Category
Models & Reasoning
Platform
DSH Plugin
Author
z99we
Distribution
Plugin

tokenomics-plugin Key Features

Compress prose to cut tokensMinimize code via YAGNITrack and report token savingsContext-aware with safety skipsToken budget 80%/100% alerts
Listed on dsh-plugin.org

tokenomics-plugin Repo Summary

What Does It Do?

Tokenomics is a DSH plugin for DeepSeek Harness that acts as an efficiency layer between your AI agent and its output. It compresses agent prose, minimizes generated code using YAGNI principles, and tracks the tokens saved along the way. It solves the problem of verbose responses, over-engineered code, and invisible token spend, making every session shorter and cheaper. Maintained by z99wE under the MIT license and written in Python, it also targets Claude Code, Cursor, Codex and similar agent workflows.

Core Features

  • Context-aware compression: detects code, docs, config, secrets, SQL and prose, then applies the matching compression strategy to each.
  • Safety-first skipping: security-sensitive content is left untouched so secrets and credentials are never rewritten.
  • Learned compression: adapts its aggressiveness to your revert patterns, getting closer to your preferences over time.
  • Decision-ladder code minimization: before writing code it checks whether the code is needed, already present, covered by the standard library, a native platform feature, an installed dependency, or expressible in one line.
  • Token budget with alerts: set a budget and receive warnings at 80% and 100% usage.
  • Gamification and preview widget: tracks savings through XP, levels, streaks and achievements, with an HTML dashboard for the stats.

How to Use This Plugin?

Once enabled in DSH, Tokenomics hooks into the agent output flow automatically, so there is nothing to trigger per message. Set a token budget for your project and you will be alerted as usage crosses the thresholds; if a compressed result does not suit you, simply revert it and the plugin learns from that pattern. Open the preview widget to review cumulative savings and level progress, and subagent tasks inherit the same compression context.

How to Troubleshoot This Plugin?

If compression looks wrong or output is unexpectedly rewritten, first check whether the content was classified as security-sensitive, since such content is skipped by design. If savings stats do not match expectations, verify the token budget settings and project-type defaults; if the issue persists, review the configuration against the official documentation.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: z99we/tokenomics-plugin. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub
ChatGPTClaudeGrok / X / CursorGemini

DSH Plugin FAQ