pi2dsh
weijiafu14
Bridge the Pi and DeepSeek Harness ecosystems: one Pi Host ABI runs unmodified Pi extensions as native DSH plugins. 打通 Pi 与 DSH 生态。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yuzuki-natsumi/dsh-peak-avoidance
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Auto-switch to an alternate model before DeepSeek peak hours and back to the official model afterwards — avoiding official peak-hour pricing.
Maintainer: 柚木夏实 · Code written by AI (DeepSeek Harness)
This plugin was developed entirely by DSH (AI). The author has no programming experience, and the code has not been professionally reviewed. Users must test it themselves and judge its safety, stability, and correctness before use. The installation instructions in this repository may contain AI hallucinations (inaccurate or nonexistent steps, package names, or paths) — verify everything before executing. The author accepts no liability for any consequences of using this plugin.
window start − leadMinutes (default 30), restore at window end.agentDefaultModel (default route) + apiProxy.sessions.selectModel (live sessions, takes effect next turn).22:00-02:00).high, …), dropdown populated from the live model catalog.llm service.peak_avoidance_status / peak_avoidance_control.restoreOnStop).Option 1 — npm (recommended for DSH users):
npm install dsh-peak-avoidance
The
@deepseek-airuntime deps are peerDependencies, provided by DSH itself — nothing extra to install. Installing outside DSH requires providing the peers (@deepseek-ai/dsh-settings,@deepseek-ai/dsh-tools,@deepseek-ai/cordis) yourself.
Option 2 — from source: clone this repo and place lib/ + package.json into a DSH-resolvable directory (e.g. $DSH_HOME/profiles/node_modules/dsh-peak-avoidance/).
Both options then require appending to $DSH_HOME/cordis.patch.yml:
- insert:
- id: peak-avoidance
name: 'dsh-peak-avoidance'
and restarting DSH.
peak-avoidance section of settings.yaml); changes apply immediately.peakModel (avoidance target) and normalModel (official model; copy the current default on first run).llm service — no deployment-specific hardcoding.lib/index.js (host, Cordis plugin module) + lib/client.js (browser, module-loader format).@deepseek-ai/dsh-settings, @deepseek-ai/dsh-tools, @deepseek-ai/schemastery.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: cost-saving。