Repository
yuval bloch
Open Source
If you are interested in understanding how the system works, or want to run your own LEAN agent with a personalized configuration — focusing on a different country, language, or subject — the full source code is available on GitHub.
View the LEAN repository on GitHub
What the Code Does
The pipeline runs automatically each morning and covers five stages:
- Fetch — pull articles from a curated list of RSS feeds
- Deduplicate — merge stories that share repeated keywords
- Filter — score articles by relevance and significance, drop low-signal items
- Summarize — rewrite each article using an AI model under strict editorial constraints
- Deliver — assemble and send the final HTML digest by email
Stack
- Language: Python
- AI model: Anthropic (Claude)
- Delivery: Buttondown
- Scheduling: daily cron job
Run Your Own
The system is designed to be configurable. You can point it at different RSS feeds, adjust the filtering rules, and run it on any topic or region — not just Israel. Instructions for setup are in the repository README.