Introduction
Automatically generate a daily digest of interesting arXiv papers.
Having trouble catching up with the new arXiv papers everyday?
This tool fetches the latest arXiv papers, uses an LLM to rate their relevance to the topics of your interest, and writes a daily digest as machine-readable JSON, with an optional human-readable markdown rendering, so it can run unattended in a cron job or be driven by another agent.
It comes in two forms:
- Daily digest pipeline (this section and below) — the full pipeline with its own LLM calls, designed to run unattended (e.g. daily cron). Needs an API key.
- Agent skill — a standalone skill for AI agents (e.g. Claude Code): the agent fetches the papers and judges relevance itself. No API key, no dependencies, no repo clone needed — just any Python 3.
How to use
API key
The tool supports three LLM providers, selected via llm_provider in config.json.
Export the API key for the provider you use:
| Provider | Environment variable |
|---|
openai | OPENAI_API_KEY |
anthropic | ANTHROPIC_API_KEY |
openrouter | OPENROUTER_API_KEY |
The key can be exported in your shell, or placed in a local .env file in the repo root (loaded automatically via python-dotenv; see .env.example).
The .env file is gitignored, and shell-exported variables take precedence over it.
Dependency
The tool was developed under Python 3.12.
It uses uv to manage the dependencies.
You can install the dependencies with:
uv sync
Usage
Copy config.example.json to config.json (the latter is gitignored, so your personal configuration stays local).
Then change the arXiv subjects you want to follow and the topics you are interested in.
You can also change the LLM provider and model; make sure the model supports structured output.
Generate today's digest with:
uv run python main.py
The digest is written to digests/YYYY-MM-DD/, with the date stamped into every filename so the files stay self-identifying when copied out of their folder:
digest-YYYY-MM-DD.json — structured record (metadata, stats, and selected papers with scores and TL;DRs) for programmatic consumption
scores-YYYY-MM-DD.json — raw relevance scores for every fetched paper against every topic, so you can re-filter at any threshold on the fly without re-scoring
digest-YYYY-MM-DD.md — the same digest grouped by topic and rendered for reading. Written only when you pass --markdown
If the digest for the day already exists, the run exits cleanly without spending API calls; use --force to regenerate.
Other flags: --config <path> to use another config file, --date YYYY-MM-DD to label the output folder (the arXiv feed always returns the latest announcement), --markdown to also write the markdown rendering.
To re-render the digest at a different threshold without re-fetching or re-scoring:
uv run python main.py --rethreshold 0.9
This rebuilds digest-YYYY-MM-DD.json from the saved scores-YYYY-MM-DD.json, and digest-YYYY-MM-DD.md too when you add --markdown; TL;DRs are cached in tldrs-YYYY-MM-DD.json, so changing the threshold back and forth costs no API calls once a paper's TL;DR has been generated.
The digests/ folder is gitignored: digests are local artifacts meant to be read in place (by you or by an agent), not committed.
Automation
The tool is designed to run unattended — e.g. a daily cron job:
30 9 * * 1-5 cd /path/to/daily_arxiv_digest && uv run python main.py
With the API key in .env, the cron entry needs no environment setup of its own.
Repeated invocations on the same day are no-ops, so overlapping schedules or manual re-runs are safe.
On days without arXiv announcements (weekends/holidays) it writes an empty digest so consumers can tell the run happened.
Agent skill
skills/arxiv-fetch/ packages the fetch capability as a standalone skill for AI agents (e.g. Claude Code).
How it works
The daily pipeline pays an LLM API to score papers because it runs unattended. When an agent is invoked, there is already an LLM in the loop — so the skill only automates the one thing the agent cannot do natively (fetching the RSS feeds) and lets the agent do the judging itself. That is why the skill needs no API key, no dependency install, and no repo clone: just any Python 3.
Ask your agent something like "fetch today's arXiv papers" or "any new papers on LLM persuasion?" and it will: