How vancci-sloth/sloth works
Sloth is a desktop-first AI video production app, with web and Android clients. The main workflow selects a style, researches a topic or link, writes a script, creates voice and scenes, renders locally, then delivers a video for download or publishing. The graph preserves README-documented features including social publishing, image/clip creation, voice, and subtitles. Relationship evidence is limited to the supplied excerpts, SOURCE INDEX references, and README; unsampled implementations are represented by their documented source paths.
Main entry points: etapas.ts Production stages · agent.ts Agent sessions · index.ts Server API · App.tsx Desktop studio
Components 21
User clients
- Desktop studio
web/src/App.tsx - Desktop shell
electron/main.ts - Android app
movil/src/App.tsx
Video production
- Production stages
server/etapas.ts - Idea research
server/ideas/index.ts - Project files
server/disco.ts - Video rendering
server/motor.ts
Agent runtime
- Server API
server/index.ts - Agent sessions
server/agent.ts - AI providers
shared/providers.ts - Claude integration
server/claude.ts - Codex integration
server/codex.ts - OpenCode integration
server/opencode.ts
Media features
- Flow media
server/flow/index.ts - Voice generation
server/voz/index.ts - Local subtitles
server/subtitulos.ts - Image studio
server/imagen-codex.ts
Connected services
- Social publishing
server/redes/index.ts - YouTube workflow
server/youtube.ts - Licensing service
licencias/src/index.ts
Other components
- Creator
Connections 21
- Creator → Desktop studio: chooses style
- Desktop studio → Server API: requests work
web/src/App.tsx - Server API → Production stages: coordinates phases
server/index.ts - Production stages → Idea research: starts research
server/etapas.ts - Production stages → Agent sessions: runs agent
server/etapas.ts - Agent sessions → AI providers: selects model
shared/providers.ts - Agent sessions → Claude integration: dispatches to
- Agent sessions → Codex integration: dispatches to
- Agent sessions → OpenCode integration: dispatches to
- Production stages → Project files: stores project
server/etapas.ts - Production stages → Video rendering: renders scenes
server/etapas.ts - Creator → Android app: uses companion
- Android app → Server API: requests computer work
movil/src/App.tsx - Production stages → Flow media: creates clips
- Production stages → Voice generation: generates narration
- Production stages → Local subtitles: adds subtitles
- Creator → Image studio: requests images
- Creator → Social publishing: publishes video
- Social publishing → YouTube workflow: publishes to YouTube
- Desktop studio → Licensing service: manages license
- Desktop shell → Server API: hosts desktop app