embedding — Claude Code rule: what it does, how to install
embedding instructs your coding agent to debug ManimGL scenes interactively via IPython, letting you test object positions and animations without restarting the render.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/embedding.mdWhat embedding does
This rule guides the assistant on placing self.embed() breakpoints inside ManimGL animations. Once triggered during scene playback, the execution pauses inside an IPython prompt. You can query object coordinates, run scene methods directly without the self. prefix, and preview visual adjustments in real time.
The file covers patterns for positioning shapes, fine-tuning transition runtimes, and executing clipboard snippets with checkpoint_paste(). It also details the interactive touch() mode for 3D viewports, where camera rotations and zoom levels respond directly to keyboard bindings.
Interactive testing requires running scripts with the manimgl CLI command so the graphic window stays active alongside the shell.
What it helps with
- pause ManimGL scene execution to inspect mobject properties
- experiment with shape arrangements and colors in an active shell
- rotate and zoom 3D camera frames using keyboard controls
- execute prototype animation code directly from the clipboard
Example prompts for the agent
- Add a self.embed() checkpoint right before the circle animates
- Show how to launch a ManimGL scene skipping directly to line 15 with -se
- Set up state saving and restoration around my animation block
How to install embedding
Manually: put the files in place
.claude/rules/embedding.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/embedding.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/embedding.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/embedding.mdManually: put the files in place
.clinerules/embedding.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about embedding
How do I install embedding in Claude Code?
Place the rule file at .claude/rules/embedding.md inside your project directory.
What does the embedding rule do?
It teaches the assistant how to pause ManimGL animations inside an IPython terminal. The agent learns the syntax for running commands on the fly and inspecting visual objects during execution.
How do you skip ahead to an embed point?
Run the CLI command manimgl <scene.py> <SceneName> -se <line_number> to bypass earlier animations and stop directly at that line.