Writing

daily: a five-minute news brief written by an agent

Every morning at 8:23 Eastern, a Claude Code scheduled task researches and writes a news brief, commits it to daily, and sends a notification to my phone. The repo’s front page is always today’s brief, and older ones are archived under briefs/.

Each brief has up to five top stories, one line of market numbers, and a few things going viral. It’s meant to take under five minutes to read on a phone, which works out to about 3 KB of Markdown. Here’s part of Saturday’s:

Nationwide ground stop cancels 7,000+ flights. The FAA halted all US departures for about four hours Friday after communication problems at several air traffic control centers. Flights resumed after 8:15 p.m. ET.

Markets · Fri Nov 13: S&P 500 −0.4% · Nasdaq −0.9% · Dow +0.1% · 10-yr 5.15% (+5 bp)

Scripts and judgment

The split that works is simple: anything that’s a lookup goes in a script, and anything that needs judgment goes to the model. There are three scripts.

The first, headlines.py, pulls Google News Top Stories plus its U.S., World, Business, and Tech sections. It keeps Google’s order and the list of outlets covering each story. Position and outlet count are a decent proxy for how big a story is, so a story from a single outlet needs a good reason to lead.

The second, markets.py, gets index changes and the 10-year Treasury yield from FRED. It works out which trading session to report and handles weekends and holidays. At 8:23 FRED usually has the Dow and Nasdaq but not yet the S&P 500 or the 10-year, so the script marks those two as missing and only those get filled in from web search.

The third, viral.py, reads the day’s top Reddit posts from public RSS (Reddit blocks its JSON endpoints from cloud servers). It also checks Bluesky trending topics, Google Trends, and Wikipedia’s most-read pages for what people are talking about.

The model reads all of that, decides what matters, checks it, and writes.

Rules for the usual failures

A daily summary goes wrong in a few predictable ways, and the rules go after each one directly.

The first is repeats. Each run reads the last seven days of briefs before it starts. A story comes back only if something material happened, like a decision, a vote, a ruling, a resignation, or a new casualty count. Its headline gets marked “(update),” and it says only what’s new. Reaction and analysis don’t count. A slow news day means fewer stories, not old ones.

The second is accuracy. Every top story gets checked against a second search on a major outlet. Stories found only on aggregators or blogs are dropped or labeled unconfirmed. The agent checks the date of the event, not the date of the article. When sources disagree on a number, the most precise primary source wins.

The third is tone. The brief asks for plain, neutral, short sentences with no opinion or hype, and every sentence has to carry a fact.

The rules live in a file

The requirements are in BRIEF.md as 21 numbered rules, and the scheduled task’s prompt carries them out. The file’s first line says to change both together. Numbered rules make it easy to say exactly what went wrong when a brief misses, and to fix it in one place.

The whole thing is three small Python scripts, a file of rules, and a schedule. The repo has all of it, along with every brief so far.