# Daily Digest
Aggregates your daily news feed and filters emails intelligently using the Claude Batch API. Processes large volumes of content asynchronously, surfacing only what matters to you — with the cost efficiency of batch processing.
## How It Works
At run time, the agent fetches news sources and emails, bundles them into a single Batch API request, and waits for Claude to process them asynchronously. Batch processing costs 50 % less than the standard API. When results are ready, the agent ranks items by relevance and generates a concise daily digest.
Scheduler ──▶ Daily Digest Agent
└── Fetch news sources (RSS / HTTP)
└── Fetch emails (Outlook / Gmail MCP)
└── Claude Batch API (async) ──▶ Score + rank
└── Render digest (markdown / email)## Screenshots
❯ node dist/index.js Fetching sources... ✓ 42 articles from 8 feeds ✓ 18 unread emails Submitting batch job to Claude API... ✓ Job ID: batch_01jx7k... (60 items) ⏳ Waiting for results (est. 2 min)...
✓ Batch complete · 60 items · $0.004 ── Daily Digest · Mon Jun 16 ────────────────── TOP STORIES [HIGH] Anthropic releases Claude 4 Opus [HIGH] Next.js 16 ships Turbopack by default [MED] GitHub Copilot adds MCP support EMAIL ACTIONS NEEDED (3) → Reply: Design review from Sarah (due today) → Review: PR #2841 waiting on you
## Features
- +Daily news aggregation
- +Smart email filtering
- +Claude Batch API for async processing
- +Cost-efficient bulk content analysis
## vs. The Field
| Feature | Daily Digest | RSS reader (Feedly) | Manual email triage |
|---|---|---|---|
| AI relevance scoring | ✓ | partial | ✗ |
| Email + news in one pass | ✓ | ✗ | ✗ |
| Cost-efficient (batch API) | ✓ | n/a | n/a |
| Custom criteria | ✓ | ✗ | ✗ |
| No UI required | ✓ | ✗ | ✗ |
## Installation
Install dependencies
Requires Node.js 20+ and an Anthropic API key.
npm install npm run build
Set your API key
The agent uses Claude Batch API — ensure your key has batch access.
export ANTHROPIC_API_KEY=sk-ant-...
Configure sources
Edit config.json to add your RSS feeds and email credentials.
{
"feeds": ["https://hnrss.org/frontpage", "..."],
"emailMcp": "outlook"
}Run the digest
Run manually or add to cron for daily delivery.
node dist/index.js # Or schedule: 0 7 * * * node /path/to/dist/index.js