dsh-tool-hackernews
Manifest valid★ 1Hacker News tool suite (hn_top_stories, hn_search, hn_item) for DeepSeek Harness agents
dsh-tool-hackernews
English | 中文
Hacker News tool suite for DeepSeek Harness (DSH) agents: hn_top_stories, hn_search, and hn_item. Built on the free Algolia HN search API — no API key required.
Tools
| Tool | Args | Behavior |
|---|---|---|
hn_top_stories | limit (optional, 1–30) | The current Hacker News front page: titles, links, scores, comment counts, authors, relative times. |
hn_search | query (required), tag (story/comment/poll/ask_hn/show_hn), since_hours (1–8760), limit (1–30) | Keyword search over HN, optionally restricted to a tag or to the last N hours. |
hn_item | id (required), max_comments (0–100) | One story with a bounded top-level comment tree (HTML stripped, depth-indented) so context stays safe. |
All three tools are read-only and concurrency-safe, so DSH may schedule sibling calls in parallel. Each request carries the deployment's cooperative timeout budget and forwards the caller's AbortSignal.
Install
DSH plugins install into a profile via dsh plugin (pnpm under the hood). From this GitHub repository:
dsh plugin --profile <name> add "github:tanf1ng/dsh-tool-hackernews"
Or from a local checkout with pnpm:
pnpm install
pnpm build
# then in the profile that should load it:
dsh plugin --profile <name> add "file:../../dsh-tool-hackernews"
Enable the plugin in the profile's cordis.patch.yml (or a product bundle):
- id: tool-hackernews
name: dsh-tool-hackernews
Config
All keys optional:
| Key | Default | Meaning |
|---|---|---|
registerTopStories | true | Register hn_top_stories. |
registerSearch | true | Register hn_search. |
registerItem | true | Register hn_item. |
topStoriesLimit | 10 | Default result bound for hn_top_stories. |
searchLimit | 8 | Default result bound for hn_search. |
maxComments | 20 | Default comment bound for hn_item. |
fetchTimeoutMs | 15000 | Per-request timeout budget (ms). |
Development
pnpm install
pnpm build # tsc -> lib/
pnpm test # smoke test against a stub fetch (no network needed)
The package follows the official DSH tool-plugin pattern: a Cordis plugin (name / inject / Config / apply) that registers defineTool definitions on ctx.tools, with full parameter schemas, canonical output schemas, text renderers, and presentCall UI cards.
License
MIT
Comments
Loading…
From the same category
DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 121/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 6.8k
MIT
JavaScript
Aug 24, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby kingcharleslzy-ai
Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.
★ 6.3k
MIT
JavaScript
Nov 8, 2026
dsh plugin --profile web add dsh-purge-communityby QingYunA
Answer me with HTML — an agent skill that answers hard questions with a one-page HTML you can actually read. 让 AI Agent 用一页 HTML 回答复杂问题。
★ 6.2k
MIT
JavaScript
Nov 10, 2026
dsh plugin --profile web add answer-me-with-htmlby T-Auto
Provides bash, PowerShell 7, and a suite of high-performance tools written in Rust for Windows DSH to enhance token efficiency / 为windows的dsh提供bash、powershell7及一系列rust编写的高性能tools来提高token效率
★ 5.7k
↓ 52.6k/wk
NOASSERTION
JavaScript
Nov 10, 2026
dsh plugin --profile agent add dsh-opsby Q00
Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,
★ 5.7k
MIT
Python
Aug 25, 2026