返回目录

hn-cli

编辑精选维护状态: 活跃

heartleo/hn-cli

基于 Go 构建的极速 Hacker News 终端客户端(TUI)。

前往 GitHub项目主页
$ dsh plugin --profile <name> add -w dsh-hacker-news

51

星标

2

Fork

Go

语言

MIT

许可证

2026-04-15

创建于

2026-08-27

最近推送

采用 MIT 协议的 Go 项目,其 DeepSeek Harness 插件(dsh-hacker-news)通过 HN 公开 API 把 Hacker News 的浏览与搜索带进你的智能体——无需 Key,无需终端客户端。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-09-01

许可证

MIT

01它能帮你完成什么?

  • Browse and search Hacker News from inside DeepSeek Harness without an API key

    Ranked feeds (top/new/best/ask/show/job), individual items with their reply tree, Algolia search results, and user profiles, returned through the hn_stories / hn_item / hn_search / hn_user tools

    DeepSeek Harness users who want Hacker News reading and search as part of their agent workflow

02如何接入 DeepSeek Harness?

安装步骤

  1. 01

    Install from npm into a profile: `dsh plugin --profile <name> add -w dsh-hacker-news`

    $ dsh plugin --profile <name> add -w dsh-hacker-news

  2. 02

    Or install from source (tracks the repo's main branch): `dsh plugin --profile <name> add -w github:heartleo/hn-cli#path:/plugins/hacker-news`

    $ dsh plugin --profile <name> add -w github:heartleo/hn-cli#path:/plugins/hacker-news

  3. 03

    Start or restart the profile so the plugin is composed into the configuration

验证接入成功

  • Run `dsh --profile <name> --dump-config` and confirm the output includes `dsh-hacker-news`
  • Ask the agent naturally, e.g. `what's popular on HN?`, `search HN for sqlite`, or `read HN item 49322107 and summarize the discussion`

03DSH 适配与能力边界

DSH 适配原生运行时

Native DSH plugin loaded via `dsh plugin add` into a pnpm workspace profile; reads public Hacker News APIs directly (no key, no local client)

  • Ranked Hacker News feeds (hn_stories)

    a natural request such as 'what's popular on HN?'→top / new / best / ask / show / job ranked feeds

  • Item with reply tree (hn_item)

    an HN item id→the item plus its reply tree in reading order

  • Algolia search (hn_search)

    a search query→Algolia search results, by relevance or date

  • User profiles (hn_user)

    an HN username→karma, account age, bio, and submission count

04适合谁?何时不该用?

适合

  • DeepSeek Harness users who want Hacker News reading and search as part of their agent workflow

05兼容性、维护与安全提示

2026-04-152026-08-27v0.0.6

MIT · maintained in spare time per README; latest release v0.0.6 (2026-04-27), last push 2026-08-27

06常见问题

如何安装 hn-cli 的 DeepSeek Harness 插件?

把已发布的包加入 dsh 配置:`dsh plugin --profile <name> add -w dsh-hacker-news`。若要跟踪仓库 main 分支,可用 `dsh plugin --profile <name> add -w github:heartleo/hn-cli#path:/plugins/hacker-news`。

需要 Hacker News API Key 吗?

不需要。hacker-news 插件直接读取 HN 公开 API,既不需要 HN API Key,也不需要本地终端客户端。

如何确认安装成功?

重启对应配置,然后运行 `dsh --profile <name> --dump-config`,确认组合配置中包含 `dsh-hacker-news`。也可以直接问一句「今天 HN 上有什么」。

插件提供哪些工具?

hn_stories(排行信息流:top/new/best/ask/show/job)、hn_item(含回复树的条目)、hn_search(按相关度或日期的 Algolia 搜索)、hn_user(声望值、账号年龄、简介、投稿数)。

使用插件必须装 hn-cli 终端客户端吗?

不必。DeepSeek Harness 插件是独立的,自行调用 HN 公开 API。hn 终端客户端只是另一种可选的浏览方式。

08数据与来源

  • 作者声明github.com682f99354aed…

    For [DeepSeek Harness](https://deepseek-harness.github.io/deepseek-harness/) there is [**hacker-news**](plugins/hacker-n…

  • 作者声明github.com682f99354aed…

    The published package is [`dsh-hacker-news`](https://www.npmjs.com/package/dsh-hacker-news).

  • 作者声明github.com682f99354aed…

    dsh plugin --profile <name> add -w dsh-hacker-news

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-01。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。