DeepSeek Harness Plugin: Time-Based Model Pricing Alerts

Introduction

When building agents on the DeepSeek API, model invocation costs are closely tied to the time of day. DeepSeek officially offers two pricing tiers during certain periods: peak (approximately 2x the base price) and off-peak (approximately 0.5x the base price). Developers typically need to manually check the current time in their Agent code and adjust invocation strategies accordingly, which adds code complexity and is easy to overlook.

What Is This

Hao0311/dsh-model-price is a model inference plugin that runs within DeepSeek Harness (DSH). It passively injects system prompt hints so that the Agent is aware of whether the current period is peak or off-peak, enabling it to choose more cost-effective strategies when making model calls.

Maintainer: Hao0311
Category: Model Inference

Core Features

  • Time-of-day detection: Determines whether the current time falls in a peak or off-peak period
  • Price multiplier hints: Informs the Agent of the current price multiplier (2x or 0.5x) via the system prompt
  • Passive injection: Delivered as part of the system prompt, requiring no extra processing from the Agent

Installation & Activation

Install the plugin in your DSH environment:

dsh plugin add github:Hao0311/dsh-model-price

Once installed, the plugin automatically injects the relevant time-of-day hints when the Agent starts or when a model is invoked.

Typical Usage

The plugin communicates the current price multiplier to the Agent through system prompts. When planning tasks, the Agent can reference this hint to prefer cheaper models or reduce the number of calls during peak hours, and to increase call frequency or use higher-tier models during off-peak hours to improve output quality.

Example (illustrative):

The system prompt will include a note similar to the following:

The current period is an off-peak (half-price) window for the DeepSeek API. You may increase call frequency or use models with higher parameters.

Use Cases & Cautions

  • Ideal for DeepSeek agent projects that need to control API costs or are price-sensitive
  • The plugin runs with the permissions of the current dsh process; ensure the source is trustworthy
  • It is recommended to review the source code and license before installation to confirm compliance with your usage policies

Conclusion

This plugin provides passive, price-aware time-of-day hints for model inference in the DSH environment, helping the Agent more intelligently leverage pricing differences across periods. Catalog page: https://www.skillhub.cn/plugins/Hao0311/dsh-model-price
GitHub: https://github.com/Hao0311/dsh-model-price

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye