How yaokl-nju/capital-tracker works
Capital Tracker is a command-line financial intelligence assistant. A user selects domestic or international tracking topics; the investment tracker creates focused queries, gathers and processes search evidence, and analyzes it with an LLM when configured. The orchestrator runs topics concurrently, then produces PDF reports and can optionally email them. The product also supports SEC holdings, evidence-quality reporting, searchable-result caching, and report archives for comparison or replay. Edges reflect the README and SOURCE INDEX references; unsampled implementation details and some optional integrations are represented conservatively.
Main entry points: search_service.py Search service · orchestrator.py Topic orchestration · tracker.py Query and analysis · run.py Command entry
Components 24
Command and orchestration
- Command entry
run.py - Topic orchestration
core/orchestrator.py
Investment research
- Investment tracker
trackers/investment.py - Query and analysis
core/tracker.py - Search service
core/search_service.py - Fund identity mappings
config/fund_mappings.py - Research profiles
config/research_profiles.py - Runtime settings
config/settings.py - Search policy
core/search_policy.py - Search cache
core/search_cache.py - SEC holdings
core/sec_holdings.py - LLM analysis
core/llm_service.py
Evidence and archives
- Diagnostics
core/diagnostics.py - Evidence quality
core/evidence_quality.py - Citation checks
core/citations.py - Report archive
core/artifacts.py - Checkpoint recovery
core/checkpoint_recovery.py - Archive comparison
core/archive_compare.py
Report delivery
- PDF generation
core/report_generator.py - Email delivery
core/email_service.py
Other components
- CLI user
- Search providers
- SEC filings
- SMTP service
Connections 38
- CLI user → Command entry: runs
README.md - Command entry → Investment tracker: selects tracker
run.py - Command entry → Topic orchestration: starts run
run.py - Command entry → Research profiles: loads profile
run.py - Command entry → Runtime settings: configures
run.py - Investment tracker → Query and analysis: extends
trackers/investment.py - Investment tracker → Search service: constructs
trackers/investment.py - Investment tracker → LLM analysis: constructs
trackers/investment.py - Investment tracker → Fund identity mappings: uses mappings
trackers/investment.py - Query and analysis → Search service: searches queries
core/tracker.py - Query and analysis → LLM analysis: generates and analyzes
core/tracker.py - Query and analysis → Evidence quality: records evidence
core/tracker.py - Query and analysis → Citation checks: validates citations
core/tracker.py - Search service → Runtime settings: reads configuration
core/search_service.py - Search service → Fund identity mappings: resolves fund names
core/search_service.py - Search service → Search policy: uses policy
core/search_service.py - Search service → Search cache: reads and writes
core/search_service.py - Search service → SEC holdings: retrieves holdings
core/search_service.py - Search service → Diagnostics: records events
core/search_service.py - Search service → Search providers: queries providers
README.md - SEC holdings → SEC filings: retrieves filings
- LLM analysis → Runtime settings: uses configuration
core/llm_service.py - LLM analysis → Diagnostics: records events
core/llm_service.py - Topic orchestration → Query and analysis: processes topics
core/orchestrator.py - Topic orchestration → PDF generation: renders reports
core/orchestrator.py - Topic orchestration → Report archive: saves report data
core/orchestrator.py - Topic orchestration → Checkpoint recovery: recovers progress
core/orchestrator.py - Topic orchestration → Email delivery: sends report
core/orchestrator.py - Topic orchestration → Archive comparison: compares archives
- Report archive → Evidence quality: summarizes coverage
core/artifacts.py - Report archive → Citation checks: validates citations
core/artifacts.py - Checkpoint recovery → Report archive: reads archive
core/checkpoint_recovery.py - Archive comparison → Report archive: reads archives
core/archive_compare.py - Archive comparison → Evidence quality: assesses evidence
core/archive_compare.py - Archive comparison → Search service: uses search utilities
core/archive_compare.py - PDF generation → Runtime settings: uses configuration
core/report_generator.py - PDF generation → Search service: uses URL utilities
core/report_generator.py - Email delivery → SMTP service: sends via SMTP
core/email_service.py