cinecode: AI-driven film production through code
A Python-based tool where an AI agent writes scripts, generates frames via code, and designs sound to produce final MP4 video files.
The repository provides a framework for creating films using code, where an AI agent automates the entire production pipeline. The tool handles scriptwriting, frame generation, and sound design to deliver a finished MP4 file based on a user's idea and preferences. It is designed for a variety of formats, including short films, YouTube documentaries, advertisements, explainers, and music videos.
Production capabilities for different video formats
For short films, the agent combines user ideas with random real-world elements like museum artifacts or historical sites to avoid generic results. Users can specify the visual medium, choosing between 3D lighting, 2D animation, pixel art, or materials like clay and ink.
Long-form YouTube content is managed in Film mode, which organizes production into acts and chapters. This mode supports researched scripts with sources, narrator voices in English and Turkish, and a mix of open-archive footage and code-generated elements like self-drawing maps and diagrams. The final output includes -14 LUFS mastering.
Commercial and social media content focuses on brand specificity. The tool implements studio-style lighting for products, interface hero shots for software, and supports 9:16, 1:1, and 16:9 aspect ratios. For music videos, the agent measures the beat grid to synchronize cuts and visual accents with the audio track.
Workflow and agent integration
The process begins with a prompt or brief, followed by a series of questions regarding format, style, and sound. The agent then presents a director's card with second-by-second beats and two sample frames for approval before rendering a draft. A separate AI observer reviews the draft for readability and repetitions before the final render.
The system runs locally and is optimized for Claude Code and Cursor, though it also works with Codex and Antigravity. It utilizes three.js and WebGL for visuals and ffmpeg for rendering. While it can operate without paid services, users can optionally integrate Gemini, ElevenLabs, or free Turkish voice options for audio.
Operational modes and visual goals
Fast mode generates films up to approximately 3 minutes in a single session using a self-contained film.html file. Film mode is intended for longer, multi-scene projects, utilizing a structured pipeline of roadmap, script, style frame, and animatic approvals.
The tool distinguishes between cinematic and commercial goals. Cinematic films prioritize a hand-shot look with shallow depth of field, lens grain, and 180° motion blur. Commercial projects focus on brand colors, Fontsource typography, and competitor specificity tests to ensure the video does not fit another brand.
Related reading
- Awesome-REA: 1000+ Reverse Engineering Resources on GitHub
- Animator: AI-Driven Whiteboard Video Generation from Text
- Godogen: AI Game Generator for Indie Developers - Full Dev Cycle Automation
Sources
Related news
- PythonAnimator: AI-Driven Whiteboard Video Generation from TextAnimator is a Python-based tool that converts a single text prompt into a narrated whiteboard animation, handling scriptwriting, drawing, and voiceovers.·same source: github.com
Open SourceAlibaba releases zvec in-process vector databasezvec is an open-source, lightweight vector database that embeds directly into applications, eliminating the need for separate server infrastructure.·by shared tag
Claude CodeToken Dashboard Analyzes Claude Code Token Usage LocallyOpen-source Python tool reads Claude Code JSONL transcripts and builds a local web dashboard showing per-prompt costs, tool heatmaps, and cache analytics without sending data anywhere.·by shared tag
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.