How lin327/sre-atlas-agent works
SRE Atlas Agent is a collection-to-draft pipeline: a person or manually triggered workflow starts a run, RSS and GitHub content is collected, deduplicated and budget-limited, then Claude generates and validates Chinese MDX drafts for human review. The runtime also supports periodic collection and SQLite recovery of generated results. The README documents later review and PR promotion into sre-wiki, but this repository does not automate that handoff. Edges reflect the sampled main pipeline, source-index references, or explicit README statements; unsampled implementation details are not inferred.
Main entry points: main.py CLI pipeline · generator.py Claude generator · github_collector.py GitHub collector · rss_collector.py RSS collector
Components 16
Run orchestration
- CLI pipeline
agent/main.py - Periodic scheduler
agent/scheduler.py - Runtime settings
config/settings.py
Content collection
- Source configuration
config/sources.yaml - RSS collector
agent/collectors/rss_collector.py - GitHub collector
agent/collectors/github_collector.py
Draft generation
- Category mapping
agent/category_map.py - Claude generator
agent/generator.py - Frontmatter contract
agent/content_schema.py
Deduplication state
- URL and result store
agent/dedup.py
Other components
- Operator / workflow
- GitHub API
- Claude API
- Reviewable MDX drafts
- Human reviewer
- sre-wiki
Connections 16
- Operator / workflow → CLI pipeline: starts run
README.md - CLI pipeline → Periodic scheduler: starts periodic mode
agent/main.py - CLI pipeline → RSS collector: collects from
agent/main.py - CLI pipeline → GitHub collector: collects from
agent/main.py - RSS collector → Source configuration: reads feeds
README.md - GitHub collector → Source configuration: reads repositories
README.md - GitHub collector → GitHub API: fetches issues / PRs
agent/collectors/github_collector.py - CLI pipeline → URL and result store: checks and records URLs
agent/main.py - CLI pipeline → Claude generator: generates selected items
agent/main.py - Claude generator → Claude API: requests generation
agent/generator.py - Claude generator → Category mapping: classifies content
agent/generator.py - Claude generator → Frontmatter contract: normalizes and validates
agent/generator.py - Claude generator → Runtime settings: reads model settings
agent/generator.py - CLI pipeline → Reviewable MDX drafts: writes drafts
README.md - Human reviewer → Reviewable MDX drafts: reviews drafts
README.md - Human reviewer → sre-wiki: promotes via PR
README.md