dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
zimai233/dsh-exam-countdown
Chinese exam countdown for DeepSeek Harness. Query 64 built-in exams (gaokao, kaoyan, civil service, CET-4/6, CPA, bar exam...) and get days-until dates computed by pure date math with rolling yearly recurrence.
PROJECT TOPICS
PROJECT README
为 DeepSeek Harness 提供的中国考试倒数日插件。
内置 64 场中国主要考试(高考、考研、国考、四六级、教资、CPA、法考、一建、软考、护士执业……), 把纯日期计算封装成两个 agent 可调用的工具。日期一旦过去,自动顺延到下一年(循环滚动); 四六级等按「每年 6 月/12 月第二个周六」、JLPT 按「每年 7 月/12 月第一个周日」精确计算。
纯 ESM,零构建步骤 —— 发布的 npm 包本身就是运行时代码。
DSH 生态里 教育 / 考试类目非常单薄:现成的插件多集中在工具链、媒体与设计领域,
没有任何一个提供中国考试的日程数据与倒数计算。这个插件补上了这块空白:
把「考程」网页应用(china-exam-countdown)的数据与日期数学移植为服务端工具,
agent 可以直接回答「高考还有多少天」「下一次 CPA 是什么时候」这类问题。
2nd-sat(第二个周六)与 1st-sun(第一个周日)由纯日期数学计算days >= 0 只返回未过期的场次id 精确查找、按名称关键字模糊搜索、按分类筛选,结果按临近排序exam_countdown(倒数查询)+ exam_categories(分类清单)# 从 npm
dsh plugin --profile myprofile add dsh-exam-countdown
直接用自然语言让 agent 查询,例如:
「高考还有多少天?」
agent 会调用 exam_countdown,例如:
{
"id": "gaokao"
}
返回:
[
{
"id": "gaokao",
"name": "高考",
"cat": "升学考试",
"dateLabel": "6月7日",
"days": 327,
"nextOccurrence": "2027-06-07"
}
]
再如:
「帮我看看最近要考的英语类考试,列出 5 个」
{
"query": "英语",
"limit": 5
}
「有哪些考试分类?」
agent 调用 exam_categories,返回各分类及其考试数量,用来发现 category 参数的合法取值。
| 工具 | 参数 | 说明 |
|---|---|---|
exam_countdown |
id (string, 可选) — 精确 slug,如 gaokao、kaoyan、cpa、cet-6;query (string, 可选) — 名称/id/备注子串匹配;category (string, 可选) — 分类名;limit (number, 可选, 默认 10) |
返回 JSON 数组,每项 { id, name, cat, dateLabel, days, nextOccurrence },按剩余天数升序,仅含未过期场次 |
exam_categories |
无 | 返回 [{ category, count }],按考试数量降序 |
id(64 场)gaokao zhongkao kaoyan kaoyan-2 chengkao zikao-4 zikao-10 zsb guokao shengkao
wendui xuanxiao shiye cet-6 cet-12 tem4 tem8 pets-3 pets-9 putonghua
jlpt-7 jlpt-12 topik jzb-3 jzb-9 jzm-1 jzm-5 chuji gaoji zhongji
cpa sws jjs zcpg sjs yinhang jijin zq fakao-k fakao-z
yjzs ejzs zjzs xf jzs ytjg jl zx gh yishi-b
yishi-j hushi yaoshi weish sg rk-5 rk-11 ncre-3 ncre-9 catti-6
catti-11 chuban zhuanli daoyou
npm install
npm test # 纯核心逻辑测试(ruleDate / nextOccurrence / queryExams / 数据集)
MIT
Chinese exam countdown for DeepSeek Harness.
A port of the 考程 / china-exam-countdown app into a DSH tool plugin: the 64-exam dataset and the pure date math, exposed as agent-callable tools. No UI, no DOM — just data + countdown computation on the server side.
The DSH plugin ecosystem's education category is thin: most plugins target tooling, media and design. None provide Chinese exam schedules or countdown math. This plugin fills that gap so agents can answer questions like "how many days until gaokao?" or "when is the next CPA exam?" directly from conversation.
2nd-sat (second Saturday) and 1st-sun (first Sunday) computed by pure date math (CET-4/6, JLPT)days >= 0) results are returnedid, substring query against name/id/note, or category filter, sorted by days ascendingexam_countdown + exam_categories# from npm
dsh plugin --profile myprofile add dsh-exam-countdown
Ask the agent in natural language:
"How many days until gaokao?"
The agent calls exam_countdown with:
{ "id": "gaokao" }
Result:
[
{
"id": "gaokao",
"name": "高考",
"cat": "升学考试",
"dateLabel": "6月7日",
"days": 327,
"nextOccurrence": "2027-06-07"
}
]
More examples:
"List 5 English-language exams coming up soon"
{ "query": "英语", "limit": 5 }
"Which exam categories do you have?"
The agent calls exam_categories, which returns each category with its exam count —
use it to discover valid category values.
| Tool | Parameters | Description |
|---|---|---|
exam_countdown |
id (string, optional) — exact slug e.g. gaokao, kaoyan, cpa, cet-6; query (string, optional) — substring match against name/id/note; category (string, optional) — category name; limit (number, optional, default 10) |
Returns a JSON array of { id, name, cat, dateLabel, days, nextOccurrence } sorted by days ascending, upcoming only |
exam_categories |
— | Returns [{ category, count }] sorted by count descending |
ids (64)gaokao zhongkao kaoyan kaoyan-2 chengkao zikao-4 zikao-10 zsb guokao shengkao
wendui xuanxiao shiye cet-6 cet-12 tem4 tem8 pets-3 pets-9 putonghua
jlpt-7 jlpt-12 topik jzb-3 jzb-9 jzm-1 jzm-5 chuji gaoji zhongji
cpa sws jjs zcpg sjs yinhang jijin zq fakao-k fakao-z
yjzs ejzs zjzs xf jzs ytjg jl zx gh yishi-b
yishi-j hushi yaoshi weish sg rk-5 rk-11 ncre-3 ncre-9 catti-6
catti-11 chuban zhuanli daoyou
npm install
npm test # runs the pure-core tests (ruleDate / nextOccurrence / queryExams / dataset)
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。