tanf1ng / dsh-tool-hackernews

목록에 있음

Hacker News tool suite (hn_top_stories, hn_search, hn_item) for DeepSeek Harness agents

main도구 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:tanf1ng/dsh-tool-hackernews

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 544f57b동기화 2026. 8. 18.

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 APIno API key required.

Tools

ToolArgsBehavior
hn_top_storieslimit (optional, 1–30)The current Hacker News front page: titles, links, scores, comment counts, authors, relative times.
hn_searchquery (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_itemid (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:

KeyDefaultMeaning
registerTopStoriestrueRegister hn_top_stories.
registerSearchtrueRegister hn_search.
registerItemtrueRegister hn_item.
topStoriesLimit10Default result bound for hn_top_stories.
searchLimit8Default result bound for hn_search.
maxComments20Default comment bound for hn_item.
fetchTimeoutMs15000Per-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

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨

저장소 정보

언어
JavaScript
라이선스
MIT
마지막 업데이트
2026. 8. 14. 오전 2:00

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.