# AEPilot

> An AI assistant inside After Effects that previews every change before it touches the project.

A case study by Maxim Esipov: https://qwinty.my/work/aepilot/

- Category: AI agent · After Effects
- Role: Solo — product, design, engineering
- Status: Private preview
- Years: 2026
- Stack: TypeScript, React, Vite, CEP 12, ExtendScript, zod, Vitest
- Website: https://aepilot.info

## The problem

Motion designers usually know the result they want, but not the menu path, the expression or the
script that gets them there. The AI tools that exist ask you to trust a black box with a client
project.

## What it does

AEPilot is a chat panel docked inside After Effects. It reads the composition you already have open,
works through real After Effects operations and shows every change before it is applied.

- An agent loop that inspects the project, calls typed tools step by step and then re-reads the
  project to verify the result.
- Review mode: each change arrives as a card with before and after values, and an approved turn
  applies as a single undo group.
- Precise `@` references to comps, layers, folders, single properties or expression errors,
  autocompleted from a live index of the project.
- Motion tools that speak keyframes: create, retime, ease and stagger keys and layers.
- It can render a few frames to check its own work. In Review mode you approve those frames before
  they are sent to the model.
- Sessions that survive real work: stop, steer a running turn, queue the next one, branch the
  conversation.

[Image: Two states of the real AEPilot panel: an AI-written script waiting for review with its safety warnings, and the same script after it was applied, with a note on how it can be rolled back.]
*Captured from the panel in After Effects: a script waiting for review, then applied with an honest note about rollback.*

## Honest by design

Every applied change says how it can be undone: the latest Undo, Safe Revert, a restore point or by
hand. The interface never promises a rollback it cannot deliver. Scripts written by the model pass a
conservative linter and always wait for review.

It is bring-your-own-key. Keys stay on your machine, and there is no account, telemetry or proxy.
Provider adapters cover Anthropic, OpenAI-compatible APIs such as OpenRouter, and Ollama.

## How it's built

- A CEP 12 panel in React and TypeScript talks to hand-written ES3 ExtendScript through a single entry
  point. Access to the host is queued, so only one change runs at a time.
- The core has no dependency on CEP or After Effects. It holds my own agent loop (CEP ships Node 17,
  so off-the-shelf agent runtimes didn't fit), context compaction, the project index and sessions.
- 37 validated tools. A small base set is always loaded and six capability packs load on demand,
  which keeps the prompt small and tool choice accurate.
- Evals before UI: a command-line prototype had to pass 25 tasks in real After Effects 2026, each
  checked by an assert against a fixture project, before any panel work began. The set has since
  grown to 32 tasks.

## By the numbers

- About 1,250 commits in July and August 2026. Most are mine; the rest come from coding agents I run
  on my own server, with an independent review of every change.
- About 1,550 unit tests, 77 scripts that run against real After Effects, and 32 eval tasks.
- 36 architecture decision records and 21 specs.

## Status

A release candidate in private preview for Windows 11 and After Effects 2026, under the MIT license.
The plan is a free, open core that runs on your own keys.
