config — Claude Code and Codex rule: ManimGL settings
Covers how ManimGL reads custom_config.yml: output folders, camera and window options, styles. An agent edits the right keys instead of guessing.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/config.mdWhat config does
The rule walks through custom_config.yml in ManimGL. That file holds output and temporary folders, camera resolution and frame rate, preview window size and position, default fonts and stroke width, the TeX compiler, plus quality presets from low to ultra_high and a universal_import_line block for auto-imports.
Lookup goes current directory first, then parent folders up to the project root, then the install directory. A nested file overrides the one above it. One value can be changed for a single run with --config camera_config.frame_rate=30, and a whole different file loads through --config_file dev_config.yml.
Anything set with --config lasts until the run ends, so permanent settings belong in the project-root custom_config.yml and get committed. The TeX section names latex, xelatex and lualatex, and formulas will not compile without a working LaTeX install on the machine.
What it helps with
- set resolution and frame rate for a scene render
- sort images, audio and data into separate folders
- override one value for a run without touching the config
- keep separate settings for quick previews and final renders
- add extra LaTeX packages for formulas
Example prompts for the agent
- Read
custom_config.ymlin the project root and raiseframe_rateto 30 for quicker runs. - Run
manimgl scene.py MyScene --config_file dev_config.ymland tell me which folder the render landed in. - Add the
physicspackage totex_config.tex_packagesand check that formulas still compile.
How to install config
Manually: put the files in place
.claude/rules/config.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/config.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/config.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/config.mdManually: put the files in place
.clinerules/config.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about config
How to install config in Claude Code?
Place the rule file at .claude/rules/config.md inside the project, and Claude Code picks it up from there.
What does config do?
It documents the custom_config.yml format for ManimGL: directories, camera, window, style, quality presets and TeX settings.
What is the difference between --config and --config_file?
--config overrides a single key for the current run, while --config_file loads a different YAML file in full.