惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
U
Unit 42
Y
Y Combinator Blog
I
InfoQ
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
量子位
Microsoft Security Blog
Microsoft Security Blog
B
Blog
The Cloudflare Blog
F
Fortinet All Blogs
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
C
Check Point Blog
S
SegmentFault 最新的问题
爱范儿
爱范儿
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
T
Tailwind CSS Blog

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
cwnews — terminal Hacker News reader with AI summaries
coolwulf · 2026-06-28 · via Hacker News - Newest: "AI"

A fast terminal Hacker News reader with threaded comment folding, score-coloured story lists, three themes, and AI-powered thread summarization via DeepSeek V4 Flash.

Built in Go on Bubbletea v2. Left panel browses stories across all six HN feeds (Top / New / Best / Ask / Show / Jobs) with pagination. Right panel renders nested comments with collapsible threads, coloured depth indent, and summary panel streaming live from DeepSeek.

6 feeds

Top · New · Best
Ask · Show · Jobs

3 themes

HN dark · HN classic
Zinc cyan

AI

DeepSeek V4 Flash
streaming thread summary

What it is

cwnews is a full-screen Bubbletea TUI for reading Hacker News on the terminal. It fetches stories and comments from the official HN Firebase API, caches everything in SQLite for instant re-opening, and provides real-time AI summaries of comment threads with word-by-word streaming.

The left panel is a dense story browser: six feed tabs, pagination with n/p, and score- and comment-count coloured metadata. Titles truncate cleanly to fit. The right panel shows a threaded comment view with collapsible nesting, coloured depth bars, and a cursor that highlights the active comment in accent orange.

Press s on any thread and DeepSeek V4 Flash streams a detailed summary — sentiment, key points, standout quotes, consensus & debate — formatted with markdown headings, bullet points, and italicized blockquotes. Summaries are cached in SQLite, so switching back to a thread is instant. Language is configurable (Chinese or English).

The three themes cycle with t: a dark HN-inspired palette with orange accents, a classic cream-background HN look matching the real website, and a cyan-accented zinc theme from cwmail's design system.

Why it’s different

Threaded comment folding

Comments display as an indented tree with depth-coloured vertical bars. Press Enter or to collapse any thread, to expand, [/] to fold by depth level, n/N to jump between top-level comments. Vim-style j/k navigation moves a highlighted cursor through the visible list.

Streaming AI summaries

Press s and the right panel switches to an AI summary view. DeepSeek V4 Flash streams text word-by-word with a braille spinner in the status bar. Summaries cover overall sentiment, key points, standout comment quotes, consensus & debate breakdowns, and meta-observations. All cached in SQLite — reopen any thread and the summary appears instantly without another API call.

Score-colored rankings

Story scores color-code by heat: orange for 500+ points, warm amber for 200+, gold for 50+, dim gray for under 10. Comment counts follow the same scheme so hot discussions pop visually. Story headlines render in a single clean row with right-aligned ▲score and comment count columns that align across the entire page.

Six feeds with pagination

Tab bar at the top switches between Top, New, Best, Ask, Show, and Jobs feeds with h/l or direct 1-6 keys. Each feed loads 50 stories per page from the 500-item HN ID pool. n/p paginates; the page indicator shows 1/17 in the tab bar. Switching feeds resets to page one.

HTML entity decoding

HN comments arrive as raw HTML with encoded entities (&#x27;, &lt;p&gt;). cwnews decodes all HTML entities and strips tags before rendering, so you never see &#x27; or raw <p> markers in comment text.

SQLite cache — always fast

Stories, comments, story-ID lists, and AI summaries all live in a single SQLite file at ~/.local/share/cwnews/cwnews.db. Re-opening a previously viewed thread shows comments immediately while a background refresh fetches any new replies. Cached summaries mean the AI panel is instant on the second press of s.

What it looks like

cwnews main view: left panel shows Top feed with score-colored story list and tab bar; right panel shows threaded comments with coloured depth bars, orange cursor highlight, and story metadata header
Main view — story list on the left (▲score + comment count), threaded comments on the right with fold controls and depth-coloured indent bars.

Install

Download a pre-built binary from the Google Drive release folder (current build: v0.1; macOS arm64 / amd64 and Windows amd64). Drop it somewhere on your PATH and make it executable:

# macOS
curl -L <download-url> -o ~/.local/bin/cwnews
chmod +x ~/.local/bin/cwnews

# Windows (PowerShell)
Invoke-WebRequest <download-url> -OutFile cwnews.exe

Create a config file at ./config.json or ~/.config/cwnews/config.json:

{
  "theme": "hn",
  "ai": {
    "api_key": "sk-...",
    "model": "deepseek-v4-flash",
    "summary_language": "zh"
  },
  "ui": {
    "sidebar_width_ratio": 0.40
  },
  "cache_ttl_minutes": 5
}

Set "summary_language" to "en" for English summaries or "zh" for Chinese. The AI API key is the same DeepSeek key used by cwcode and cwmail.

Run it.

cwnews

FAQ

Do I need a Hacker News account?

No. cwnews is read-only. It uses the free HN Firebase API. No login, no voting, no posting — just reading and AI summarization.

How much does the AI summary cost?

DeepSeek V4 Flash costs ~$0.14 per million input tokens and ~$0.28 per million output tokens. A typical thread summary uses about 15K input tokens (the comments) and produces 1-2K output tokens, so roughly $0.003 per summary. Cached summaries are free.

Does it work without an API key?

Yes. Everything except AI summarization works without a key. Browse stories, fold comments, change themes — the API key is only needed when you press s for a summary.

Can I change the theme?

Press t to cycle through three themes: hn (dark, orange accents), hn-classic (cream background, matches real HN), and zinc (cyan-accented dark). The active theme shows in the footer.

What keybindings does it use?

Vim-style throughout: j/k to navigate, g/G for top/bottom, d/u for half-page scroll, h/l to switch feeds, Enter to open a story and focus comments, Tab to switch between panels, q to quit. The footer bar in each view shows the context-relevant keys.

Does it work with cwcode?

Yes. cwcode can check HN headlines via cwnews, and the two share the same DeepSeek API key. Run them side-by-side in split tmux panes for a full terminal workstation.