How to Search Hacker News from Claude Code
Claude Code already reads your codebase, writes code, and runs tests. But when you need to know what developers think about a technology you’re adopting, it’s stuck with whatever was in its training data. AgentPatch’s hackernews-search tool fixes that — Claude Code can query Hacker News stories and comments in real time.
Why This Matters
Technical decisions don’t happen in isolation. Before you adopt a new library, switch hosting providers, or refactor to a different architecture, you want to know what other developers have experienced. Hacker News threads are some of the most candid and detailed technical discussions on the internet.
Instead of leaving your terminal to search HN manually, Claude Code can pull those discussions in, summarize them, and apply the insights to the code it’s working on — all in one session.
Setup
The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.
Install (zero dependencies, Python 3.10+):
pip install agentpatch
Set your API key:
export AGENTPATCH_API_KEY=your_api_key
Example commands your agent will use:
ap search "web search"
ap run google-search --input '{"query": "test"}'
Get your API key from the AgentPatch dashboard.
Skill (Recommended)
Install the AgentPatch skill — it teaches Claude Code when to use AgentPatch and how to use the CLI:
/plugin marketplace add fullthom/agentpatch-claude-skill
/plugin install agentpatch@agentpatch
MCP Server (Alternative)
If you prefer raw MCP tool access instead of the skill:
claude mcp add -s user --transport http agentpatch https://agentpatch.ai/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard.
Example
You’re building a new service and debating between Hono and Express for the HTTP layer. You ask Claude Code:
“Search Hacker News for recent discussions comparing Hono and Express. Get stories from the past six months, sorted by relevance.”
Claude Code calls the hackernews-search tool and synthesizes the results:
Searched HN for "Hono vs Express" — found 8 relevant stories.
The consensus from recent threads:
- Hono is significantly faster in benchmarks and has first-class support
for edge runtimes (Cloudflare Workers, Deno Deploy).
- Express remains the safer choice for Node.js-only projects with large
middleware ecosystems.
- Several commenters note that Hono's API feels familiar to Express users,
making migration low-friction.
- One highly upvoted thread (340 points) discusses Hono reaching v4 and
calls it "production-ready for most use cases."
Since you're deploying to Cloudflare Workers, Hono looks like the
stronger fit. Want me to scaffold the project with Hono?
Claude Code connected the HN research to your actual project context. It didn’t just summarize — it made a recommendation based on your deployment target.
You can keep going:
“Now search for any complaints or gotchas people have hit with Hono in production. Filter to comments only.”
Claude Code runs a second search scoped to comments and surfaces the edge cases people have reported — middleware compatibility issues, specific routing quirks, things the docs don’t cover yet. You’re going in with eyes open.
Wrapping Up
AgentPatch gives Claude Code access to Hacker News search and the rest of the tool marketplace through a single MCP connection. No API keys to manage per tool, no extra setup. Browse the full catalog at agentpatch.ai.