The Evolution
SuperMoBrainz is the second generation of the Mo-BrAInz After Effects assistant, rebuilt with a focus on deep domain knowledge and reliability over raw generative capability. Where Mo-BrAInz v3 introduced multi-LLM consensus and cloud RAG, SuperMoBrainz doubles down on the knowledge layer that proved most valuable in production use.
The Knowledge Base Problem
Generative AI is unreliable with After Effects for a specific reason: AE scripting exists in a bizarre dual-engine world. ExtendScript (the scripting language) is ES3 -- no const, no let, no arrow functions, no template literals. The Expression Engine (for layer animations) can be either Legacy ExtendScript or modern JavaScript (AE CC 2019+), and the two have incompatible syntax. Public LLMs consistently confuse these environments, generating modern JavaScript where ES3 is required, using 0-indexed arrays where AE expects 1-indexed, and producing expressions with syntax that works in one engine but breaks the other.
SuperMoBrainz addresses this with a curated, structured knowledge base that intercepts these failure modes before they reach the AI. Critical gotchas are encoded as hard constraints: effect colors need 4 elements [r,g,b,a] but shape fills need 3 [r,g,b]. Solids are rectangular -- use shape layers for circles. Position [0,0] is top-left, not center. Expressions are stateless and cannot remember values between frames. selectedLayers is 0-indexed but comp.layer(n) is 1-indexed.
The Technique Database
Beyond static gotchas, the system maintains a growing database of tested, ranked animation techniques. Each technique has a confidence score, version compatibility tags, success/failure feedback from actual executions, and links to related patterns. The system prefers this order: check the toolkit first, check the technique database second, adapt a known-good pattern third, and only generate brand-new code as a last resort. This dramatically reduces hallucination.
Error Correction Patterns
The system catalogs error-to-fix mappings. When a generated script fails in AE, the error message and the corrective action are stored as a pair. The next time a similar error occurs, the system already knows the fix. Over time, this builds a comprehensive error correction knowledge base that makes the assistant increasingly reliable.
The Claudex Architecture
The SuperMoBrainz project includes architectural documentation for a production-ready version called Claudex. The handoff package addresses the security concerns of shipping a tool that combines untrusted network content, model output, local filesystem access, Node.js, and arbitrary After Effects execution in one panel. The recommended architecture separates the CEP panel into a thin UI client, a tooling layer with named and described tools, and a learning backend with quality ranking and rollback support.
Tech Stack
CEP extension (HTML/CSS/JS), Claude API, structured JSON knowledge base (28KB), ExtendScript (ES3) host scripts, CSInterface bridge, file-based persistent memory.