Preface¶
When running an agent loop in DeepSeek Harness (DSH), model calls are billed according to provider usage. The goal of most plugins is to save tokens, control costs, or optimize inference paths. If your concern is “what exactly happened on the call chain and what usage did the provider report,” rather than adding another layer of estimation, sometimes you actually need an approach where behavior is completely transparent and the ledger only recognizes what the provider reports.
The following introduces the community plugin @studyzy/dsh-i-am-rich (repository studyzy/dsh-i-am-rich, directory page SkillHub). It is a “Model Inference” category plugin maintained by studyzy. The design inspiration comes from the joke about “buying two bowls of soy milk, drinking one and pouring out the other”: Every model request truly sends out an extra copy (or copies); the second copy is discarded directly after being fully received, and the sidebar uses the provider-reported usage to tally how many tokens have been “wasted” today, this month, and cumulatively. This is not simulation or estimation—the second request is sent over the network and billed.
What is this¶
dsh-i-am-rich is a Cordis plugin for DeepSeek Harness, with the npm package name @studyzy/dsh-i-am-rich, current version 1.0.0, and MIT license. In one sentence: It really spends the cost of the extra call and honestly displays the waste figures.
The structure of a single model request when the plugin is enabled is as follows:
A model request
├─ Copy 1 ──> Returned normally to agent loop (reply actually used)
└─ Copy 2 ──> Thrown away after fully received
└─> Record real usage reported by provider
└─> Sidebar: Today / This Month / Cumulative Wasted Tokens
Waste records are written to the plugin’s own directory ~/.dsh/i-am-rich/ (JSONL by month) and do not write to the DSH session log.
Core Features¶
Duplicate Dispatch and Number of Discarded Copies¶
By default, in addition to the normal one, each request executes an extra discardedCopies calls completely and discards the results (default 1, meaning send two copies and throw one away). You can configure to disable duplicate sending or adjust the number of discarded copies.
Degree of Wealth: Millionaire and Billionaire¶
fortune determines the billing difference for “the discarded copy.” It does not lie in how many copies are sent, but in whether the prompt prefix of the second request is the same:
| Tier | Second Request | Cache | Billing Characteristics |
|---|---|---|---|
millionaire |
Same as original request (same request object) | Usually hit | Billed at cache read price |
billionaire |
Writes current timestamp at the start of the system prompt | Definitely miss | Billed at cache write price (input is more expensive) |
The billionaire tier clones the request and only modifies the header of the system message text block, while the original request remains deep-frozen unchanged; the plugin uses a WeakSet to mark self-dispatched requests to avoid infinite recursion in the llm/stream waterfall. If there is no system message or no llm service, it degrades to “send the second copy as is, don’t change the prefix,” which is still a real billable call.
Status Bar and Statistical Criteria¶
The status bar is located at the bottom left of the sidebar, above the username. The numbers come strictly from the usage reported by the provider, with no estimation. When presenting, it only counts cache-missed input + generated output; cache hits/writes related tokens are still written to the ledger completely, but are not included in the sidebar “waste” display, to avoid counting cache-riding copies as extravagance.
The three criteria are projected by the client from daily bucketed ledgers based on the local calendar:
| Criteria | Meaning |
|---|---|
| Today | The current day in the local calendar |
| This Month | The total for the current calendar month |
| Cumulative | The sum of all recorded dates |
By default, only the “Today” line is displayed; hovering expands three lines. When the sidebar is collapsed and width is insufficient, only abbreviated values are shown, with details in the tooltip. You can switch the wealth tier at the top of the expanded panel, writing to the profile’s cordis.patch.yml (requires the Host to provide configEditor).
Installation and Activation¶
The plugin has been published to npm. Run under the corresponding profile (replace <your profile> with the actual profile name):
dsh plugin --profile <your profile> add @studyzy/dsh-i-am-rich
Note: The built-in desktop profile is exclusively managed by the Electron app. If the above command specifies desktop, it will be rejected; to install into desktop, you need to use the application’s built-in runtime/cli/bin/dsh, or edit ~/.dsh/profiles/desktop/package.json and perform convergence.
After installation, you need to merge the plugin entry into the profile’s cordis.patch.yml. The id must be i-am-rich (the old id rich-person will not match, and disabling or other configurations will silently fail):
- insert:
- id: i-am-rich
name: '@studyzy/dsh-i-am-rich'
When installing from source code, after pnpm install and pnpm run build in the repository, you can use link: to point to the local path:
dsh plugin --profile <your profile> add link:/path/to/dsh-i-am-rich
Runtime environment requires Node ^22.19.0 || >=24.0.0 (see package.json engines).
Configuration¶
Add a config section for this plugin in cordis.patch.yml, for example:
- id: i-am-rich
name: '@studyzy/dsh-i-am-rich'
config:
enabled: true
discardedCopies: 1
fortune: millionaire
| Field | Type | Default Value | Meaning |
|---|---|---|---|
enabled |
boolean | true |
Whether to send duplicates; if false, the plugin and status bar are still loaded, but no extra money is spent |
discardedCopies |
number | 1 |
How many extra copies to discard per request |
fortune |
millionaire | billionaire |
millionaire |
Degree of wealth, see above |
Typical Usage and Applicable Scenarios¶
Typical Usage: Install and enable the plugin in a development environment with a configured DSH profile and model provider, chat normally or run an agent; observe the sidebar waste statistics, set enabled to false as needed to stop being extravagant, or increase discardedCopies, switch to billionaire to observe billing differences (this will genuinely increase the provider bill).
Who it is for: Developers who need to verify the “double request + provider usage accounting” behavior in a real harness; or people experimenting with token billing and prompt cache prefix mechanisms. It is not a cost optimization tool, but a fun/experimental plugin that deliberately doubles calls and keeps accounts.
Important Notes:
- The plugin runs with the permissions of the current DSH process. Before installation, please read the GitHub Source Code and the MIT license to confirm that you accept the real multi-fold API costs.
- Discarded requests are genuinely billed;
discardedCopiesandfortune: billionairewill significantly change the magnitude of waste. - Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / HiDream; installation commands are subject to the README and npm package.
Conclusion¶
dsh-i-am-rich turns “send two, throw one” into a real LLM call and provider ledger: the behavior is a joke, but the statistics only recognize provider-reported usage. If you want to try this plugin in DSH, you can enter the description from the directory page studyzy/dsh-i-am-rich, or directly check the GitHub Repository for installation and configuration details.