How it works
From four thousand items to one page.
Herald is a job, not a server. Once a day it gathers the last 24 hours, builds the briefing, delivers it and exits. Most of the work is done before any model is called.
Herald pipeline
06:00, every weekday
- Code only, no model
- Calls an AI model
Stage by stage
Details in docs/architecture.md
01Fetch
About 1,240 sources: news feeds, newsletters, official APIs (BCB, IBGE, CVM, SEC, FRED, Federal Register, Congress) and community signals. Sources can be in any language. Every request checks robots.txt and waits its turn.
02Normalize
Clean titles and text, detect the language, resolve canonical URLs, recognise wire copy republished by many outlets.
03Drop the already published
Herald remembers what went out, so yesterday’s story stays out unless there is something new.
04Pre-filter
Each category’s rules rate relevance without any model, and keywords in one language never push down a story told in another. Most items stop here, and cost nothing.
05Cluster
Local multilingual embeddings put the same story, told by different outlets in different languages, into one cluster.
06Score
A cheap model scores each story against the category rubric, judging the content, never the language. Items with no concrete fact are capped.
07Select
Thresholds, per-category caps and diversity rules pick the day’s stories.
08Write
A strong model writes the headline, the summary and why it matters, in each language you chose: Portuguese, English, Spanish, French, Italian or German. Sources are attached by code.
09Deliver and record
Every channel you enabled gets the briefing in its languages; history is recorded; the job exits.
Any language in, six languages out
Portuguese · English · Spanish · French · Italian · German
Sources can be in any language. Normalize records each item’s language, the pre-filter never favours one language over another, and clustering joins the same story whether it was told in Greek, Japanese or French. Scoring judges the content, not the language it came in.
The strong model writes each story in every language you turned on, and each channel gets the briefing in its own languages. Coverage now reaches Canada and Oceania as regions of their own, every South American country, Mexico, Central America and the Caribbean, and Europe country by country.
After every run
data/reports/
Each run writes a report: the funnel, sources that failed, and what every model call cost. Broken sources show up in herald sources health, and a failed run sends you a short alert instead of an empty briefing.
Herald run 20261130T090002-1a2b3c window=24h status=ok (America/Sao_Paulo)
funnel fetched 4,112 → normalized 4,020 → unseen 3,870 → prefiltered 392
→ clusters 268 → scored 268 → selected 30 → enriched 30
sources 3 skipped · 21 empty · 4 error · 262 ok
ai scoring claude-haiku-5-5 12 calls 71,204 in / 11,890 out $0.0127
ai enrichment claude-opus-5-5 30 calls 118,330 in / 24,770 out $0.9687
total $0.9814