# embedding

embedding instructs your coding agent to debug ManimGL scenes interactively via IPython, letting you test object positions and animations without restarting the render.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/manimgl-best-practices/rules/embedding.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/embedding

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/embedding.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/embedding.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/embedding.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/embedding.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/embedding.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/manimgl-best-practices/rules/embedding.md

## When to use it
- 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
- 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

## Similar
- [manimgl-best-practices](https://affpapa.org/en/nevibecode/skills/manimgl-best-practices.md) — skill · 2600 installs
- [manim](https://affpapa.org/en/nevibecode/skills/manim.md) — skill · 1400 installs
- [manim-explainer-animation](https://affpapa.org/en/nevibecode/skills/manim-explainer-animation.md) — skill · 157 installs
- [manim-composer](https://affpapa.org/en/nevibecode/skills/manim-composer.md) — skill · 3200 installs
- [manim-video](https://affpapa.org/en/nevibecode/skills/manim-video.md) — skill · 6600 installs
- [python-repl](https://affpapa.org/en/nevibecode/skills/python-repl.md) — skill · 1 install

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
