~/web4w3daily-digestAgent
daily-digest — README.md
cat README.md

# 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.

cat daily-digest/ARCHITECTURE.md

## 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)
daily-digest --demo

## Screenshots

daily-digest — running
  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)...
daily-digest — digest output
   ✓  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
grep -n "## Features" daily-digest/README.md

## Features

  • +Daily news aggregation
  • +Smart email filtering
  • +Claude Batch API for async processing
  • +Cost-efficient bulk content analysis
daily-digest --compare

## vs. The Field

FeatureDaily DigestRSS reader (Feedly)Manual email triage
AI relevance scoringpartial
Email + news in one pass
Cost-efficient (batch API)n/an/a
Custom criteria
No UI required
cd daily-digest && cat INSTALL.md

## Installation

1

Install dependencies

Requires Node.js 20+ and an Anthropic API key.

npm install
npm run build
2

Set your API key

The agent uses Claude Batch API — ensure your key has batch access.

export ANTHROPIC_API_KEY=sk-ant-...
3

Configure sources

Edit config.json to add your RSS feeds and email credentials.

{
  "feeds": ["https://hnrss.org/frontpage", "..."],
  "emailMcp": "outlook"
}
4

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
cat daily-digest/package.json | jq '.dependencies | keys'

## Tech Stack

Node.jsTypeScriptClaude Batch APIAnthropic SDK