Introduction¶
The core philosophy of DeepSeek Harness (DSH) is “Everything is a Plugin.” When batch processing tasks, the cost of model invocation is a primary consideration. DeepSeek officially adopts a two-tier pricing strategy: Peak and Off-Peak (Standard).
This plugin aims to solve the problem of “how to avoid executing high-cost tasks during peak hours.” By sensing the current time period, it automatically schedules tasks during off-peak periods and queues them during peak periods, thereby reducing average invocation costs.
Core Features¶
-
Automatic Queuing & Scheduling
Runsdeepseek-flashbatch tasks directly during off-peak periods; when it detects an impending shift to peak pricing, the plugin stores tasks in a queue and suspends timers, executing them automatically in the next off-peak period. -
Status Monitoring
Provides the ability to view the current pricing tier, the next switching time, queue backlog status, and timer scheduling details. -
Task Management
Supports canceling specific tasks in the queue; if no task ID is provided, it cancels all pending tasks.
Installation & Activation¶
Use the official installation command to add the plugin to the desktop configuration profile:
dsh plugin --profile desktop add dsh-peak-runner
After installation, restart the DSH application. The plugin will automatically inject tools and system prompts.
Configuration¶
The plugin supports override configuration via the profile patch layer. The default configuration aligns with DeepSeek’s official time slot standards:
- id: dsh-peak-runner
config:
enabled: true
provider: deepseek-account
model: deepseek-flash
# Peak time windows (UTC hours, half-open interval [start, end))
peakWindows:
- { start: 1, end: 4 }
- { start: 6, end: 10 }
# Minutes before peak pricing starts to stop executing new tasks and start queuing
leadMinutes: 10
# Reasoning tier settings
reasoningEffort: "off"
maxTokens: 2048
timeoutMs: 45000
Typical Usage¶
Directly invoke the peak_run tool in the conversation, or query status via natural language:
-
Execute Task:
> Help me write a one-sentence summary for each of these 5 paragraphs: [Content] (then callpeak_run)- The system will automatically call
deepseek-flashto execute the summarization tasks in batches during off-peak periods.
- The system will automatically call
-
Query Status:
> What tier are we in now? What’s in the queue?- The system will return the current tier, the next switching point, queue status, and timer scheduling details.
Notes¶
-
Time Slot Standards
The plugin uses the same time slot logic asdsh-cost-meterto ensure consistency in “Off-Peak” or “Peak” status between both. DeepSeek officially prices in UTC: 01:00–04:00 and 06:00–10:00 are peak prices, while other times are off-peak; weekends and statutory holidays are off-peak all day. -
Reasoning Cost
When configuringreasoningEffort, setting it tooffis the correct tier for latency and cost efficiency. If set tolow, the model may still consume 2000+ thinking tokens, leading to increased costs. -
Permissions & Security
The plugin runs with the permissions of the current DSH process. Please review the source code and license (MIT) before installation.
Summary¶
dsh-peak-runner integrates into the DSH workflow with simple configuration, automatically completing task scheduling based on peak/off-peak price awareness. It is suitable for scenarios requiring batch processing of text, summaries, translations, and other tasks during nighttime or non-peak hours.