Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/embedding.md
Open on GitHub

What 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.md

The paths frontmatter field limits the files

Step 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.

Similar IDE rules

All IDE rules for Programming languages →

From the same set101

The whole set →
gemini-omni Generates short clips via gemini-omni-1.1-flash and edits them through follow-up prompts without re-generating. Each generation returns an interaction_id so the next call changes only what you specify. CX Codex +1 ★ 78,316repo stars discrete-text-sequence discrete-text-sequence — a rule for GSAP scenes where the terminal line swaps whole states instead of typing evenly: typos, backspaces, pasted chunks and holds. CX Codex +1 ★ 78,316repo stars animation-groups The animation-groups rule organizes ManimGL animations for parallel, sequential, or staggered playback. Use it when several scene elements need coordinated timing. CX Codex +1 ★ 78,316repo stars transform-animations transform-animations — a rule that teaches Claude Code and Codex how to transform objects in ManimGL — from basic shape morphing to complex function-based transformations. Use it when writing Python animations of mathematical objects. CX Codex +1 ★ 78,316repo stars vertical-spring-ticker vertical-spring-ticker is a rule for Claude Code and Codex that defines a slot-machine vertical ticker with additive GSAP spring physics. Each spring advances the stack one discrete step instead of a smooth scroll. CX Codex +1 ★ 78,316repo stars multi-phase-camera multi-phase-camera — a rule for animated web scenes: the camera moves through 2-3 zoom phases (pull-back, focus, push) with continuous micro-drift on top. For when a single linear zoom feels mechanical. CX Codex +1 ★ 78,316repo stars camera Reference rule for ManimGL CameraFrame controls. Helps write 2D pans, zoom sequences, and 3D view changes without syntax errors. CX Codex +1 ★ 78,316repo stars scale-swap-transition The scale-swap-transition rule describes a morph-like swap between two DOM elements using a shrinking exit and a springy entrance. Use it for UI state changes. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open