superagents-lab/dsh-s1
Native s1 tools for the DeepSeek Harness (DSH): s1_search, s1_news, s1_crawl, s1_sitemap, s1_trending + bundled s1 skill
已收录
3
Browser
Bundle 已验证
预览
功能介绍
Search1API(s1)原生联网检索工具:网页搜索、新闻、页面抓取、站点地图与趋势榜,以 `s1_*` 一等工具形式提供,并附带 s1 技能。
适合
- 需要原生网页搜索、新闻、页面抓取、站点地图发现和趋势榜工具的 DSH 研究工作流。
- 需要内置 Skill 指导工具选择、时效性与来源调优,以及后续页面抓取的 Agent。
- 相比 MCP 桥接或通过 shell 调用 s1 CLI,更偏好进程内一等 s1_* 工具的用户。
不适合
- 无法提供 S1_KEY 的环境;该插件尚未实现 OAuth 登录与 token 刷新。
- 需要网页截图或异步深度抓取的工作流,因为 s1_screenshot 和 s1_deepcrawl 尚未实现。
- 不需要 Search1API 联网研究的简单离线或纯本地任务。
README
dsh-s1
Native s1 tools for the DeepSeek Harness (DSH).
Unlike the MCP server (search1api-mcp, a generic bridge that surfaces as
mcp__search1api__*) or the CLI skill (which teaches the model to shell out to
s1), this package registers first-class DSH tools named s1_* — same
layer as read, bash, subagent, workflow. Calls run in-process against
the official @search1api/client SDK.
Tools
| Tool | Backed by | Status |
|---|---|---|
s1_search |
Search1API.search() |
✅ |
s1_news |
Search1API.news() |
✅ |
s1_crawl |
Search1API.crawl() |
✅ |
s1_sitemap |
Search1API.sitemap() |
✅ |
s1_trending |
Search1API.trending() |
✅ |
Not yet implemented: s1_screenshot (needs DSH attachment/image support) and
s1_deepcrawl (long-polling task).

Skill
The package also bundles a s1 skill (ctx.skills.register), which teaches the
model how to pick the right tool and tune parameters — quick lookup vs deep
research, source/recency signals, Chinese-query engine choice, and when to
follow a search result with s1_crawl. It is registered with the tools and can
be disabled independently via skill: false.
Architecture
@search1api/client (official SDK, in-process)
│ import
dsh-s1 (Cordis plugin: name/inject/apply)
│ loaded by the `s1-tools` row in cordis.patch.yml
ctx.tools.register(defineTool({ name: "s1_search", ... }))
│
DSH model sees `s1_search` as a native tool
The package is both the bundle (its dsh.bundle.patch → cordis.patch.yml)
and the plugin (its main entry exports name/inject/apply). The patch
inserts a single loader row that references the package itself:
- insert:
- id: s1-tools
name: 'dsh-s1'
Install into a DSH profile
First publish (or npm link / local path) the package, then:
dsh plugin --profile web add dsh-s1
For a local checkout, use a path spec (the plugin command anchors relative paths to your invoking directory):
cd /Volumes/More/Products/search1api/ecosystem/dsh-s1
npm run build # produce lib/index.js + lib/index.d.ts
cd ~/.dsh
dsh plugin --profile web add file:/Volumes/More/Products/search1api/ecosystem/dsh-s1
dsh plugin reconciles dsh.profile.bundles: because this package declares
dsh.bundle.patch, it is appended to the profile’s bundle stack automatically.
Authentication
The SDK reads its key lazily, so a missing key fails the tool call (not plugin activation). There is exactly one credential variable:
export S1_KEY=...
OAuth (roadmap — not implemented yet)
s1’s API accepts Authorization: Bearer <token> for both an API key
and an OAuth access token, so the transport layer is token-agnostic. The OAuth
flow (browser login, PKCE, token storage, refresh) currently lives only in
search1api-cli (s1 login + auth.ts); @search1api/client does not yet
expose it. The DSH plugin will support OAuth by reusing or sinking that flow,
rather than re-implementing it — tracked separately from this skeleton.
Config
| Key | Default | Description |
|---|---|---|
search |
true |
Register s1_search. |
news |
true |
Register s1_news. |
crawl |
true |
Register s1_crawl. |
sitemap |
true |
Register s1_sitemap. |
trending |
true |
Register s1_trending. |
skill |
true |
Register the bundled s1 skill. |
Development
npm install
npm run typecheck
npm run build
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:superagents-lab/dsh-s1。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。