TikMaker

AI agent and video editor · personal project, final thesis · 2026

What it is
A video editor and design system for short vertical (9:16) TikTok, Reels and Shorts videos. Videos no longer need to be edited by hand: they're assembled from ready-made scenes, visuals and animations, so every video looks consistent and gets made faster. An AI agent prepares the whole project from an idea, and the creator reviews and adjusts it in the editor.
Status
An in-house tool I use for my own content.
Code on GitHub ↗

AI agent

TikMaker has an AI agent that turns an idea into an editable video project. This is how it really works: what the model does, what code checks and where a human decides.

The problem it solves

An informative short video with motion graphics is made scene by scene: the script, the opening hook, the layout, the animation, the voice-over and the subtitles. Existing AI tools either generate generic visuals or don't check the result against design rules. The agent takes over the repetitive work and leaves the creator the decisions: what to say and how.

How it works

  1. 01IdeaAn idea, a channel and a length (15–90 s). The template and the hook can be set by hand.
  2. 02LLM, step by stepTemplate, three hooks, script, visual blocks, motion. Gemini or Claude, switched in configuration.
  3. 03Structured JSONEvery answer must match a Zod schema. If it doesn't, the model is asked again, up to 3 times in all.
  4. 04Checks in codeLength, words on screen, whether a component is in the library. Problems go back to the model for one fix.
  5. 05Hook and scriptThe creator picks the hook and approves the script. Nothing visual is built before the script is approved.Human
  6. 06ProjectThe project JSON is built from the checked decisions by code, not by the model.
  7. 07Voice and subtitlesElevenLabs voice-over with each word's timing; subtitles and scene lengths follow the real voice.
  8. 08Frame self-reviewRemotion renders a frame of each scene, the model judges it against an 8-point rubric and fixes it, 3 rounds at most.
  9. 09Editor and MP4The creator reviews, edits and renders the MP4 with one button (Remotion).Human

My design decisions and why

  • The model decides, code builds. The model only picks from a known component library, and code sets positions, sizes and timing. So the result is predictable, and a component that doesn't exist is rejected.
  • Every answer follows a schema. Every step has a Zod schema. An answer of the wrong shape never reaches the project: the model is asked again, or the run stops with a clear reason.
  • Rules in data, not in code. Limits (words on screen, scene length, speech rate, sound effect density, visual change) live in the knowledge base file, so they can be changed without programming.
  • A knowledge base from analysis. 20 script templates and the hook formulas come from analysing 88 popular videos.
  • The model is a configuration choice. Gemini or Claude; each step can have its own model, a cheaper one where code checks the result anyway.
  • A human where the decision is costly. Visuals are built only after the script is approved, and the agent's later suggestions in the chat run only once the user approves them.

Limitations and how I check quality

  • Code checks only what can be measured. Visual quality is judged by the model against a rubric and example frames, but that is a model too, so the final call stays with the creator in the editor.
  • Fixes are limited: one fix after the code checks, at most 3 self-review rounds, stopping when a round doesn't help. What's left isn't hidden but shown to the user.
  • The model can get facts wrong, so when a fact is missing the agent asks instead of guessing and says in the chat what it assumed. Search results only feed a prompt as text and are saved with their sources.
  • Every AI call is logged: the prompt, the answer, the model, the number of attempts, tokens and time. So every result can be traced.
  • When the model's usage limit is hit, the run is paused, not stopped, and can be continued from where it was.
  • AI and voice API keys are kept on the server only and never reach the browser.

Link to my final thesis

The agent is my final thesis at Vilnius University of Applied Sciences (Software Systems, in progress): “AI Agent for Creating Short-Form Vertical Videos Based on a Knowledge Base and Design Rules”. In it I analysed similar systems, wrote the functional and non-functional requirements, designed the architecture (UML diagrams) and built the agent into the existing TikMaker editor.

A timeline like in an editing app

The experience of a professional editing app, adapted to this system: every element can be placed precisely in time without any other software.

  • Clips are dragged in time and between rows and snap to scene edges, the playhead and other clips.
  • Keyframes change position and scale over time and can be dragged.
  • Copy, paste, duplicate (Ctrl+C / V / D), and swap an element's file while keeping its animations.
  • Audio waveforms on the timeline.
  • Any action can be undone and redone.
The TikMaker editor: scene list, preview, settings and a multi-row timeline

A design system that doesn't let you make mistakes

Videos aren't drawn from scratch but assembled from proven parts. Text never spills out of the frame, scenes aren't cut too early, and the style is always consistent.

  • 7 scene types, 25 visual types (terminal, code diffs, browser and phone mockups, diagrams, statistics) and 7 backgrounds.
  • Scene length is calculated automatically from the voice-over text and the reading time of on-screen text.
  • Layout templates fit each visual into the safe zone that TikTok's interface doesn't cover.
  • An element can travel smoothly from one scene to the next.
TikMaker: the element library and the vertical video preview of a scene

From text to voice, subtitles and MP4

From written text the system creates the voice-over and TikTok-style subtitles itself, and renders the final video with one button.

  • The voice-over is generated with ElevenLabs, and voice settings are saved.
  • Subtitles are built from each word's timing: groups of 2–3 words with the spoken word highlighted.
  • When an audio clip is moved or trimmed, the subtitles move with it.
  • MP4 renders in the background, with progress shown in percent.
TikMaker: the preview, the “Render MP4” button and the scene's voice-over text in the inspector

Technical side

What I did
The whole project: analysis, requirements, architecture, the editor, the video engine, the AI agent, the server and the tests.
Decisions
  • Video as data: the whole project is JSON validated with Zod schemas. The same schemas are used in the editor, the server API and on import, and old project files are upgraded automatically. The AI agent relies on the same schemas.
  • Type-safe API: tRPC between server and client, so an API change shows up as a compile error. Server data lives in TanStack Query, editable state in Zustand with undo history. Autosave runs only when the project has actually changed.
  • Layout that can't overflow: every visual knows its natural size, and templates scale it to the safe zone.
  • One animation system: entrances, exits, keyframes and transitions each have one implementation, and scene timing is calculated in one place.
  • Automation: dropped-in files appear in the editor immediately, uploaded screen recordings are transcoded for frame-accurate scrubbing, and the API is covered by tests.
Scale
113 components · 7 scene and 25 visual types · 44 visual templates · 109 tests · 27 API procedures
Stack
React, TypeScript, Vite, Mantine, Tailwind CSS, Zustand, TanStack Query · Remotion · Node.js, Express, tRPC, Zod · Vitest, supertest · ffmpeg · ElevenLabs