How siva010505/helio works
Purpose and entry points
This repository is an automated YouTube-content production pipeline. It coordinates research, script generation, visual planning, asset discovery, evaluation, and upload, with analytics feedback to improve future runs.
Primary execution paths:
• Daily end-to-end run: scripts/run_daily_pipeline.py
• Main pipeline module: src/pipeline.py
• Agent orchestration: src/agents/orchestrator.py
• Scheduled automation: .github/workflows/daily_pipeline.yml
Pipeline orchestration
src/pipeline.py is the top-level workflow boundary, while src/agents/orchestrator.py coordinates the specialized agent stages. The design separates content decisions into focused agents rather than embedding all logic in one workflow.
Core stages are implemented under src/agents/, including:
• Research and topic inputs: src/agents/research_agent.py
• Script and hook/punch refinement: src/agents/script_agent.py, src/agents/punch_agent.py
• Assembly of final content artifacts: src/agents/assembly_agent.py
Content planning and creative generation
The production path transforms researched material into a publishable long-form package:
• Narrative/content planning: src/agents/script_agent.py
• Voice-oriented output: src/agents/voice_agent.py
• Captions and discoverability metadata: src/agents/caption_agent.py, src/agents/seo_agent.py
• Thumbnail generation decisions: src/agents/thumbnail_agent.py
shared/latest_long_form.json appears to be a cross-stage artifact for the latest generated long-form content, creating a filesystem handoff between pipeline stages or operational scripts.
Visual workflow boundary
Visual production is explicitly divided into direction, planning, and external asset retrieval:
• Creative visual direction: src/agents/visual_director_agent.py
• Shot/visual plan construction: src/agents/visual_planner_agent.py
• Stock-media integration boundary: src/services/stock_search.py
This isolates third-party stock search from the agents that decide what visuals are needed.
Evaluation and feedback loop
Quality control and iterative optimization are first-class pipeline stages:
• Content evaluation: src/agents/evaluation_agent.py
• Scoring: src/agents/scoring_agent.py
• YouTube analytics ingestion and interpretation: src/agents/analytics_agent.py
Operational feedback entry points are scripts/run_analytics_pull.py and scripts/run_analytics_feedback.py. Historical visual decisions are persisted in data/visual_history.json, likely allowing future plans to avoid repetition or incorporate prior outcomes.
Persistence, configuration, and AI runtime
The repository uses a local database layer:
• Database access: src/db/db.py
• Schema/models: src/db/models.py
• Initialization: src/db/init_db.py
• Persisted database artifact: data/agent.db
Configuration is loaded through src/config_loader.py from config.yaml, with secrets/environment setup represented by .env.example. LLM-backed agent execution is centralized behind src/llm_client.py, keeping model-provider interaction separate from agent logic.
Publishing and external integrations
Publishing is isolated from content creation:
• Upload stage: src/agents/upload_agent.py
• YouTube OAuth/authentication: src/youtube/oauth.py
• Auth-only operational command: scripts/auth_only.py
The principal external services implied by the architecture are an LLM provider, YouTube OAuth/upload/analytics APIs, and a stock-media search provider. GitHub Actions provides scheduled runtime infrastructure through .github/workflows/daily_pipeline.yml.
Main entry points: visual_planner_agent.py Shot planner · orchestrator.py Agent orchestrator · script_agent.py Script & punch · analytics_agent.py Analytics feedback
Components 20
Automation
- Daily schedule
.github/workflows/daily_pipeline.yml - Daily pipeline runner
scripts/run_daily_pipeline.py - Pipeline workflow
src/pipeline.py
Agent pipeline
- Agent orchestrator
src/agents/orchestrator.py - Research
src/agents/research_agent.py - Script & punch · Creates narrative and refines hooks.
src/agents/script_agent.py - Content assembly · Builds final content artifacts.
src/agents/assembly_agent.py - Voice, captions & SEO
src/agents/voice_agent.py - Evaluation & scoring
src/agents/evaluation_agent.py - YouTube upload
src/agents/upload_agent.py - Analytics feedback
src/agents/analytics_agent.py
Visual production
- Visual direction
src/agents/visual_director_agent.py - Shot planner
src/agents/visual_planner_agent.py - Stock search
src/services/stock_search.py
Data & AI
- Latest long-form package
shared/latest_long_form.json - Visual history
data/visual_history.json - Agent database
data/agent.db - LLM client
src/llm_client.py
External services
- YouTube APIs
- Stock-media provider
Connections 21
- Daily schedule → Daily pipeline runner: scheduled run
- Daily pipeline runner → Pipeline workflow: starts
- Pipeline workflow → Agent orchestrator: coordinates through
- Agent orchestrator → Research: research stage
- Research → Script & punch: topic inputs
- Script & punch → Voice, captions & SEO: script
- Script & punch → Visual direction: creative brief
- Visual direction → Shot planner: direction
- Shot planner → Stock search: asset queries
- Stock search → Stock-media provider: retrieves media
- Visual history → Shot planner: prior decisions
- Voice, captions & SEO → Content assembly: production outputs
- Shot planner → Content assembly: visual plan & assets
- Content assembly → Latest long-form package: writes package
- Latest long-form package → Evaluation & scoring: evaluates
- Evaluation & scoring → YouTube upload: approved package
- YouTube upload → YouTube APIs: publishes via OAuth
- YouTube APIs → Analytics feedback: performance data
- Analytics feedback → Research: future topic feedback
- Analytics feedback → Agent database: persists insights
- Agent orchestrator → LLM client: agent inference