How amanshakya-code/bitslogicreelautomation works
Bitsnlogic Content Agent automates a YouTube Shorts workflow: discover outliers, develop and verify a script, create and inspect a video, request creator approval, publish, and learn from comments and analytics. agent.mjs dispatches workflow stages; agents.mjs implements them and uses shared JSON state, Claude Code, YouTube, and Telegram integrations. The README documents the overall stage flow; sampled excerpts show orchestration and selected integration calls, but not every stage implementation, so documented stage links cite the README.
Main entry points: agent.mjs CLI Runner · agents.mjs Video Build · llm.mjs Claude Adapter · youtube.mjs YouTube API Client
Components 25
Content Workflow
- CLI Runner
agent.mjs - Outlier Research
agents.mjs - Hook Extraction
agents.mjs - Topic Strategy
agents.mjs - Script Writing
agents.mjs - Fact Check
agents.mjs - Style Selection
agents.mjs - Video Build
agents.mjs - Frame Review
agents.mjs - Cover & Caption
agents.mjs - Approval Gate
agents.mjs - YouTube Publish
agents.mjs - Comment Replies
agents.mjs - Performance Review
agents.mjs - Remix & Lessons
agents.mjs
Runtime Services
- Claude Adapter
lib/llm.mjs - JSON State Store
lib/store.mjs
External Integrations
- YouTube API Client
lib/youtube.mjs - Telegram Adapter
lib/telegram.mjs
Operations Interface
- Live Dashboard
lib/dashboard.mjs
Other components
- Creator
- Claude Code CLI
- tech-shorts Engine
- YouTube
- Telegram
Connections 47
- CLI Runner → Outlier Research: dispatches
agent.mjs - CLI Runner → Hook Extraction: dispatches
agent.mjs - CLI Runner → Topic Strategy: dispatches
agent.mjs - CLI Runner → Script Writing: dispatches
agent.mjs - CLI Runner → Fact Check: dispatches
agent.mjs - CLI Runner → Style Selection: dispatches
agent.mjs - CLI Runner → Video Build: dispatches
agent.mjs - CLI Runner → Frame Review: dispatches
agent.mjs - CLI Runner → Cover & Caption: dispatches
agent.mjs - CLI Runner → Approval Gate: dispatches
agent.mjs - CLI Runner → YouTube Publish: dispatches
agent.mjs - CLI Runner → Comment Replies: dispatches
agent.mjs - CLI Runner → Performance Review: dispatches
agent.mjs - Outlier Research → Hook Extraction: extracts hooks
README.md - Hook Extraction → Topic Strategy: informs topic
README.md - Topic Strategy → Script Writing: selects topic
README.md - Script Writing → Fact Check: checks claims
README.md - Fact Check → Script Writing: requests rewrites
README.md - Fact Check → Style Selection: passes script
README.md - Style Selection → Video Build: sets style
README.md - Video Build → Frame Review: builds scenes
README.md - Frame Review → Cover & Caption: provides video
README.md - Cover & Caption → Approval Gate: submits package
README.md - Creator → Approval Gate: reviews video
README.md - Approval Gate → YouTube Publish: approves upload
README.md - YouTube Publish → Comment Replies: enables replies
README.md - YouTube Publish → Performance Review: provides performance
README.md - Performance Review → Remix & Lessons: classifies result
README.md - Remix & Lessons → Topic Strategy: feeds lessons
README.md - Outlier Research → Claude Adapter: requests analysis
agents.mjs - Script Writing → Claude Adapter: generates draft
agents.mjs - Video Build → Claude Adapter: runs build task
agents.mjs - CLI Runner → JSON State Store: loads run state
agent.mjs - Claude Adapter → JSON State Store: loads model config
lib/llm.mjs - YouTube Publish → YouTube API Client: uploads video
agents.mjs - Comment Replies → YouTube API Client: reads and replies
agents.mjs - Performance Review → YouTube API Client: fetches metrics
README.md - Approval Gate → Telegram Adapter: requests approval
README.md - CLI Runner → Telegram Adapter: sends failure notice
agent.mjs - Claude Adapter → Claude Code CLI: spawns process
lib/llm.mjs - Video Build → tech-shorts Engine: builds episode
README.md - YouTube API Client → YouTube: calls API
lib/youtube.mjs - Telegram Adapter → Telegram: calls bot API
lib/telegram.mjs - Live Dashboard → JSON State Store: reads state
lib/dashboard.mjs - Live Dashboard → YouTube API Client: checks connection
lib/dashboard.mjs - Live Dashboard → Telegram Adapter: checks connection
lib/dashboard.mjs - Live Dashboard → CLI Runner: starts commands
lib/dashboard.mjs