๐ฐ Building News Agents to Summarize News with MCP, Q, and tmux
A little experiment with Amazon Q, Model Context Protocol (MCP), and tmux to create a news aggregation system that runs entirely in your terminal. It fetches and summarizes articles from various news sources using multiple agents working in parallel.
Also read the write-up here, and click the image below for 3-minute demo on YouTube.
This project is me playing around with:
The system grabs news from several sources like Hacker News, TechCrunch, and WSJ, then summarizes everything into nice readable digests, all in your terminal window.
q --version
git clone https://github.com/eugeneyan/news-agents.git
cd news-agents
uv sync # Sync dependencies
uv tree # Check httpx and mcp[cli] are installed
q chat --trust-all-tools # Start Q
/context add --global context/agents.md # Add system context for multi-agents
Q, read context/main-agent.md and spin up sub agents to execute it. # Start main agent
The system will start doing its thing: Splitting into multiple agents and processing news feeds in parallel using tmux panes to keep everything visible.
feeds.txt
summaries/[feed-name].md
Main Agent (in the main tmux pane)
โโโ Read feeds.txt
โโโ Split feeds into 3 chunks
โโโ Create 3 Sub-Agents (in separate tmux panes)
โ โโโ Sub-Agent #1
โ โ โโโ Process feeds in chunk 1
โ โ โโโ Report back when done
โ โโโ Sub-Agent #2
โ โ โโโ Process feeds in chunk 2
โ โ โโโ Report back when done
โ โโโ Sub-Agent #3
โ โโโ Process feeds in chunk 3
โ โโโ Report back when done
โโโ Combine everything into main-summary.md
summaries/
foldermain-summary.md
uv run mcp dev src/main.p
.
โโโ context/ # Instructions for the agents
โโโ src/ # Code for processing each feed type
โ โโโ ainews.py # AI News stuff
โ โโโ hackernews.py # Hacker News stuff
โ โโโ techcrunch.py # TechCrunch stuff
โ โโโ wired.py # Wired stuff
โ โโโ wsj.py # Wall Street Journal stuff
โโโ summaries/ # Where all the summaries end up
{ "mcpServers": { "news-agents": { "command": "uv", "args": [ "run", "mcp", "dev", "src/main.p" ] } } }
Related projects feature coming soon
Will recommend related projects based on sub-categories