How njell85-spec/trend-review works
This repository implements a clinical-literature trend review system, with a daily automated run and a local command-line entry point. The main workflow collects PubMed papers, analyzes and validates candidates, and generates reports; a separate guideline catch-up track is also documented in the sampled agent and orchestrator code. The repository additionally contains review-queue, archive, notification, and video capabilities. The README is empty, and unsampled modules are represented only where the source index or tree supports their role; edges reflect shown imports, calls, or documented behavior.
Main entry points: TrendReviewOrchestrator.js Review orchestrator · github-actions-daily.mjs Daily runner · FilterAnalyzerAgent.js Paper analysis · LLMClient.js LLM client
Components 24
Run entry points
- CLI entry
src/index.js - Daily runner
github-actions-daily.mjs
Review workflow
- Review orchestrator
src/orchestrator/TrendReviewOrchestrator.js - Paper collection
src/agents/DataCollectorAgent.js - Paper analysis
src/agents/FilterAnalyzerAgent.js - Full-text analysis
src/agents/FullTextAgent.js - Result validation
src/agents/ValidationAgent.js
Guideline track
- Guideline analysis
src/agents/GuidelineAnalyzerAgent.js - Guideline fit
src/agents/GuidelineFitAgent.js - Track queue
src/utils/trackQueue.js - Review queue
src/utils/reviewQueue.js
Scoring and resilience
- Metadata scoring
src/utils/MetadataScorer.js - LLM client
src/utils/LLMClient.js - Cache
src/utils/Cache.js - Retry pipeline
src/utils/retryPipeline.js
Delivery and media
- Report generation
src/agents/ReportGeneratorAgent.js - Pages publishing
src/utils/GitHubPublisher.js - Archive handling
src/agents/ArchiveAgent.js - Notifications
src/agents/NotificationAgent.js - Telegram delivery
src/agents/TelegramNotifier.js - Video generation
src/agents/VideoAgent.js
Other components
- Operator
- Daily scheduler
- PubMed
Connections 26
- Operator → CLI entry: runs
src/index.js - CLI entry → Review orchestrator: starts
src/index.js - Daily scheduler → Daily runner: triggers
- Daily runner → Review orchestrator: runs
github-actions-daily.mjs - Daily runner → Telegram delivery: invokes
github-actions-daily.mjs - Daily runner → Archive handling: invokes
github-actions-daily.mjs - Daily runner → Video generation: invokes
github-actions-daily.mjs - Review orchestrator → Paper collection: dispatches
src/orchestrator/TrendReviewOrchestrator.js - Paper collection → PubMed: queries
src/agents/DataCollectorAgent.js - Review orchestrator → Paper analysis: dispatches
src/orchestrator/TrendReviewOrchestrator.js - Review orchestrator → Full-text analysis: dispatches
src/orchestrator/TrendReviewOrchestrator.js - Review orchestrator → Result validation: dispatches
src/orchestrator/TrendReviewOrchestrator.js - Paper analysis → Metadata scoring: scores with
src/agents/FilterAnalyzerAgent.js - Paper analysis → LLM client: analyzes with
src/orchestrator/TrendReviewOrchestrator.js - Guideline analysis → Metadata scoring: scores with
src/agents/GuidelineAnalyzerAgent.js - Guideline fit → LLM client: analyzes with
src/agents/GuidelineFitAgent.js - Review orchestrator → Guideline analysis: dispatches
src/orchestrator/TrendReviewOrchestrator.js - Review orchestrator → Guideline fit: dispatches
src/orchestrator/TrendReviewOrchestrator.js - Review orchestrator → Track queue: reads and writes
src/orchestrator/TrendReviewOrchestrator.js - Review queue → Track queue: merges queue
src/utils/reviewQueue.js - Review orchestrator → Report generation: dispatches
src/orchestrator/TrendReviewOrchestrator.js - Review orchestrator → Pages publishing: publishes through
src/orchestrator/TrendReviewOrchestrator.js - Review orchestrator → Notifications: dispatches
src/orchestrator/TrendReviewOrchestrator.js - LLM client → Retry pipeline: checks limits with
src/utils/LLMClient.js - Review orchestrator → Cache: uses
- Review orchestrator → Archive handling: dispatches