BruceXcluding/dev-almanac--packages-dsh ↗★ 0
dsh-dev-almanac
程序员黄历 + 今日星运 for dsh: a playful, offline daily almanac and horoscope. Adds a right-sidebar tab, the /almanac and /qiuqian commands, and the almanac_today tool.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add 'github:BruceXcluding/dev-almanac#ee9e58d26b41fde870fb05550f16d935d3001f0d&path:packages/dsh'说明文档
阅读完整 README ↗dsh-dev-almanac
A programmer's almanac and daily horoscope for dsh (DeepSeek Harness).
Chinese almanac · daily horoscope · fortune slips · offline · deterministic · no tokens
This is the dsh version of dev-almanac. It uses the same almanac, horoscope and fortune-slip code as the Claude Code mod.
| Part | What it does |
|---|---|
| Almanac tab | A tab in the right sidebar with the full day: the seasonal postcard, the do and don't lists, the clash, the solar term, the twelve double-hours, the horoscope, your birthday and the fortune tube |
/almanac | Shows today's almanac as text. /almanac en or /almanac zh sets the language. /almanac birthday 1997-06-01 sets your birthday. |
/qiuqian | Draws a fortune slip. Each draw gives a new slip. |
almanac_today tool | Lets the agent read today's almanac |
Install
-
Download
dsh-dev-almanac-.tgzfrom the releases. -
Run this command:
dsh plugin --profile web add ./dsh-dev-almanac-0.1.0.tgz -
Restart dsh.
-
Open a session, click + in the right sidebar, and select the almanac tab. Its name is 程序员黄历 in Chinese, the default, and Programmer's almanac in English.
-
To show the tab in English, press 🌐 English at its top.
Settings
The tab and the /almanac command share one settings file: ~/.cache/dev-almanac/state.json. It holds your birthday, your language and today's slip. To use another folder, set DEV_ALMANAC_HOME.
Privacy
The plugin reads the clock and its settings file. It makes no network or model calls. The tab gets its data from the plugin's own route, POST /api/dev-almanac/panel, which dsh protects with its browser sign-in. Nothing is written into the chat.
Develop
From the repository root:
node scripts/build-dsh.mjs # compiles hooks/*.ts into packages/dsh/vendor
node --test tests/dsh.test.mjs
node scripts/build-dsh.mjs --pack # writes dist/dsh-dev-almanac-.tgz
The build needs the typescript package. To use a copy from another folder, set TYPESCRIPT_PATH.
License
MIT. The almanac uses lunar-javascript 1.7.7 by 6tail (MIT), with its license in vendor/core/vendor/.