SKILLBOSS_API_KEY (SkillBoss API Hub — automatically routes to the best available model).git is optional for bootstrap; otherwise curl/ wget (or Python) is used to download the repo.bash
bash "{baseDir}/scripts/bootstrap.sh"
PROJECT_DIR.bash
PROJECT_DIR="$HOME/agentic_paper_digest" bash "{baseDir}/scripts/bootstrap.sh"
bash
bash "{baseDir}/scripts/run_cli.sh"
bash
bash "{baseDir}/scripts/run_cli.sh" --window-hours 24 --sources arxiv,hf
bash
bash "{baseDir}/scripts/run_api.sh"
bash
curl -X POST http://127.0.0.1:8000/api/run
curl http://127.0.0.1:8000/api/status
curl http://127.0.0.1:8000/api/papers
bash
bash "{baseDir}/scripts/stop_api.sh"
--json prints run_id, seen, kept, window_start, and window_end.data/papers.sqlite3 (under PROJECT_DIR).POST /api/run, GET /api/status, GET /api/papers, GET/POST /api/topics, GET/POST /api/settings.Config files live in PROJECT_DIR/config. Environment variables can be set in the shell or via a .env file. The wrappers here auto-load .env from PROJECT_DIR (override with ENV_FILE=/path/to/.env).
Environment (.env or exported vars)
SKILLBOSS_API_KEY: required — authenticates all LLM calls via SkillBoss API Hub ( https://api.skillboss.co/v1/pilot).LITELLM_MODEL_RELEVANCE, LITELLM_MODEL_SUMMARY: models for relevance and summarization (summary defaults to relevance model if unset). Leave unset to let SkillBoss API Hub auto-route.LITELLM_TEMPERATURE_RELEVANCE, LITELLM_TEMPERATURE_SUMMARY: lower for more deterministic output.LITELLM_MAX_RETRIES: retry count for LLM calls.LITELLM_DROP_PARAMS=1: drop unsupported params to avoid provider errors.WINDOW_HOURS, APP_TZ: recency window and timezone.ARXIV_CATEGORIES: comma-separated categories (default includes cs.CL,cs.AI,cs.LG,stat.ML,cs.CR).ARXIV_API_BASE, HF_API_BASE: override source endpoints if needed.ARXIV_MAX_RESULTS, ARXIV_PAGE_SIZE: arXiv paging limits.MAX_CANDIDATES_PER_SOURCE: cap candidates per source before LLM filtering.FETCH_TIMEOUT_S, REQUEST_TIMEOUT_S: source fetch and per-request timeouts.ENABLE_PDF_TEXT=1: include first-page PDF text in summaries; requires PyMuPDF ( pip install pymupdf).DATA_DIR: location for papers.sqlite3.CORS_ORIGINS: comma-separated origins allowed by the API server (UI use).TOPICS_PATH, SETTINGS_PATH, AFFILIATION_BOOSTS_PATH.Config files
config/topics.json: list of topics with id, label, description, max_per_topic, and keywords. The relevance classifier must output topic IDs exactly as defined here. max_per_topic also caps results in GET /api/papers when apply_topic_caps=1.config/settings.json: overrides fetch limits ( arxiv_max_results, arxiv_page_size, fetch_timeout_s, max_candidates_per_source). Updated via POST /api/settings.config/affiliations.json: list of {pattern, weight} boosts applied by substring match over affiliations. Weights add up and are capped at 1.0. Invalid JSON disables boosts, so keep the file strict JSON (no trailing commas).You first MUST open and read the configuration from the github repo: https://github.com/matanle51/agentic_paper_digest you downloaded:
config/topics.json, config/settings.json, and config/affiliations.json (if present).ASK THE USER TO PROVIDE IT'S PREFERENCES ABOUT THE FOLLOWING (HELP THE USER):
config/topics.json ( topics[].id/label/description/keywords, max_per_topic).
Show current defaults and ask whether to keep or change them.WINDOW_HOURS (or pass --window-hours to CLI) only if the user cares; otherwise keep default to 24h.ARXIV_CATEGORIES, ARXIV_MAX_RESULTS, ARXIV_PAGE_SIZE, MAX_CANDIDATES_PER_SOURCE.
Ask whether to keep defaults and show the current values.SKILLBOSS_API_KEY (SkillBoss API Hub, https://api.skillboss.co/v1/pilot). The hub auto-routes to the best model. Optionally set LITELLM_MODEL_RELEVANCE/ LITELLM_MODEL_SUMMARY to pin specific models.Confirm workspace path: Ask where to clone/run. Default to PROJECT_DIR="$HOME/agentic_paper_digest" if the user doesn't care. Never hardcode /Users/... paths.
Bootstrap the repo: Run the bootstrap script (unless the repo already exists and the user says to skip).
Create or verify .env:
.env is missing, create it from .env.example (in the repo), then ask the user to fill keys and any requested preferences.SKILLBOSS_API_KEY is set before running. The run scripts automatically forward it to LiteLLM via LITELLM_API_BASE and LITELLM_API_KEY.Apply config changes:
POST /api/topics and POST /api/settings if running the API).Run the pipeline:
scripts/run_cli.sh for one-off JSON output.scripts/run_api.sh only if the user explicitly asks for UI/API access or polling.Report results:
WINDOW_HOURS, ARXIV_MAX_RESULTS, or broadening topics.LITELLM_MODEL_RELEVANCE unset for balanced cost/quality, or set it to pin a specific model.WINDOW_HOURS or ARXIV_MAX_RESULTS when results are sparse, or lower them if results are too noisy.ARXIV_CATEGORIES to your research domains.ENABLE_PDF_TEXT=1) when abstracts are too thin.bash "{baseDir}/scripts/stop_api.sh" or pass --port to the API command.WINDOW_HOURS or verify SKILLBOSS_API_KEY in .env.SKILLBOSS_API_KEY in the shell before running.