daily-intelligence-briefing
charlieknottt/daily-intelligence-briefing
Automated daily intelligence briefing: a Claude Code cloud agent researches the news nightly, writes an ODNI-styled HTML brief, and emails it via Gmail SMTP
Instalação
npx convez-ai charlieknottt/daily-intelligence-briefing1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
README
A tradução para o português deste README ainda está na fila.
Daily Intelligence Briefing
An automated daily news briefing, researched and written by a Claude Code cloud agent every night, styled like an official intelligence product, and delivered to your inbox by email.
Each morning the briefing covers:
- Top Developments: the three biggest stories of the previous day across business, geopolitics, and world news
- AI & National Security: AI news that directly relates to national security or intelligence (military AI, export controls, adversary AI programs, IC adoption)
- Iran War Updates: key updates sourced from both US and Iranian reporting
- Chinese BRI in Latin America: noteworthy Belt and Road developments in the region
Every issue is archived as a standalone HTML file in briefings/. Open any file there to see what the output looks like.
How it works
Claude Code routine (cloud cron, nightly)
1. Searches the web for the day's news
2. Writes a concise HTML briefing (ODNI-style formatting)
3. Emails it to the recipient list via Gmail SMTP
4. Commits the HTML file to this repo as an archive
There is no server to host. The agent runs on Anthropic's infrastructure on a cron schedule (Claude Code routines), and this repo is both the agent's workspace and the public archive.
Run your own
1. Fork this repo
Fork or clone, then delete the contents of briefings/ so your archive starts fresh.
2. Set up Gmail sending
- Create a Gmail App Password (requires 2-step verification on your Google account).
- Set two environment variables wherever the sender runs:
export GMAIL_ADDRESS="you@gmail.com"
export GMAIL_APP_PASSWORD="xxxx xxxx xxxx xxxx"
- Test it:
python3 send_single.py you@example.com
No dependencies to install. Everything uses the Python standard library.
3. Create the nightly routine
In Claude Code, run /schedule and ask for a daily routine pointed at your fork. Give it a prompt like this (edit the sections and recipients to taste):
You are a daily intelligence briefing agent. Do the following:
1. Search the web for today's news and compile a briefing with four sections:
- Top 3: the three biggest news events from the previous day across
business, geopolitics, and world news.
- AI & National Security: ONLY AI news that directly relates to national
security or intelligence. Exclude general AI industry news. If nothing
qualifies, write "Nothing significant to report."
- [Your topic]: e.g. a conflict, region, or industry you follow.
- [Your topic]: another standing interest, only noteworthy news.
2. Format the briefing as a clean, self-contained HTML file styled as an
official intelligence briefing: green UNCLASSIFIED banner bars at top and
bottom, a centered seal and masthead, serif typography, uppercase section
headings with (U) portion markings, numbered items with a bolded one-line
summary and inline source links. Keep it super simple and scannable.
Include a footer noting it is a personal news digest, not an official
government product.
3. Save the briefing to briefings/YYYY-MM-DD.html (today's date).
4. Send it with the SMTP client:
from gmail_client import send_email
with open("briefings/YYYY-MM-DD.html") as f:
html = f.read()
for to in ["you@example.com"]:
send_email(to, "Daily Intelligence Briefing - <today's date>", html)
5. Commit and push the file:
git add briefings/ && git commit -m "Briefing for YYYY-MM-DD" && git push origin main
Set the schedule (cron runs in UTC, so 4am UTC is midnight ET) and add GMAIL_ADDRESS and GMAIL_APP_PASSWORD as environment variables in your Claude Code cloud environment settings so the agent can send mail.
Alternative: run it locally with cron
If you'd rather not use cloud routines, send_latest.py pulls the repo and emails the newest briefing, with a .sent marker file so it never double-sends. Pair it with a local crontab entry:
0 7 * * * cd /path/to/daily-news-breifing && python3 send_latest.py
Repo layout
| File | Purpose |
|---|---|
briefings/ | Archive of every briefing, one HTML file per day |
gmail_client.py | Minimal Gmail SMTP sender (stdlib only) |
send_single.py | Send a one-off test email |
send_latest.py | Pull and email the newest briefing (local cron alternative) |
Customizing
- Sections: edit the section list in the routine prompt. The agent researches whatever standing topics you give it.
- Recipients: edit the recipient list in the routine prompt (or in
send_latest.pyif running locally). - Schedule: change the routine's cron expression. Remember it is in UTC.
- Voice and format: the formatting rules live entirely in the prompt, so restyle freely.
A note on the styling
The briefing borrows the visual language of US Intelligence Community products (classification banners, portion markings, the ODNI seal) purely as a design homage. Every issue carries a footer stating it is a personal news digest and not an official ODNI product. Keep that disclaimer if you reuse the format.