Repository navigation
10 LLMs Txt Strategy
English | 中文
llms.txt is 37 lines and 3 KB. The test it is written against is simple: an agent that reads only this file should already write different code than one that read nothing. This page walks through the file line by line, so you can see exactly what experience it hands over.
The blockquote is one sentence with six facts in it. Each clause is there because an agent got it wrong without it.
Clause in llms.txt
|
What the agent now does | What it prevents |
|---|---|---|
| "drives ManimCE's own Mobject/Animation model" | reuses every ManimCE shape, animation and colour instead of looking for RTM-specific equivalents | inventing an API, or assuming RTM is a fork with its own vocabulary |
| "live 1920x1080@60 window" | stops asking for a resolution or frame rate | writing MLWindow(960, 540) and being surprised by [rtm] forcing 1920x1080
|
| "1.9–2.8x faster MP4 recording" | treats recording as the normal path, and quotes a range rather than a promise | claiming "10× faster", or avoiding the recorder because it sounds expensive |
| "O(1) frame seeking" | reaches for FrameServer when it needs one frame, instead of rendering the film |
rendering 300 frames to look at frame 240 |
| "MathTex via an in-process Typst backend" | writes MathTex without a LaTeX install, and knows Tex is the one that still needs it |
refusing to write formulas on a machine without TeX Live |
"A Python library (no manim CLI); import real_time_manim, never import manim first" |
calls fast_record_scene(...) from a script; imports RTM before anything else |
shelling out to manim, or splitting class identity by importing manim first |
The two sentences after it are routing, not facts: which of the three documents to open next, the precedence rule (source tree > RTM-Wiki/zh_CN/ > translations), and where a bug report belongs (an issue with a minimal runnable Scene; a wiki error is a PR, not an issue).
After reading the file once, these are the behaviours it has — before opening a single manual page:
-
Import order —
import real_time_manimfirst;import manimsilently replaces the bundled copy. -
No CLI — the entry points are functions:
fast_record_scene,record_scene,FrameServer,FramePreview,MLWindow,Timeline. -
The scene shape —
MLWindow(...)→win.scene = self→win.play(...)→win.close(); the last two are mandatory,atexitis only a fallback. - Output is fixed at 1920×1080 @ 60 fps; asking for anything else is corrected with a printed notice.
-
Two recorders, two contracts —
fast_record_sceneis hidden and frame-exact;record_sceneshows a window and samples wall-clock frames. -
Stills are cheap —
FrameServer.save_frame(t, path)renders one instant in ~10 ms;FramePreviewis for scrubbing, not exporting. -
Math without LaTeX —
MathTexworks through the bundled Typst path;Texstill needs a TeX install. - ffmpeg is required for video, and is not bundled.
-
One window per process — parallelism is
jobs=N(processes), not threads. -
Where to look next —
RTM-Wiki/agent/README.mdfor constraints and the file map, then one domain file, then the code.
Items 1–9 are the "gotchas" an agent otherwise learns by reading a 200-line error; item 10 is why the file is an index rather than a manual.
Each line is - [Title](path): noun phrase. The noun phrase is a menu of what is inside, not a sentence — enough to decide whether to spend a fetch on it.
| Section | Entries | What the agent uses them for |
|---|---|---|
| Documentation | agent README, runtime, scene-camera, patterns, style, gotchas, both manuals, this wiki | pick the right reference; gotchas when something throws, patterns when it needs a scene skeleton |
| Getting Started | installation, quickstart, recording methods, ManimCE/ManimGL guides | the canonical first scene; porting existing manim code |
| Building Videos | quickstart, patterns, scenes, recorder APIs | the shape again (deliberately repeated, because it is the most-requested thing), then the detail |
| Reporting Issues | issue templates, AGENTS.md | open the right template with a minimal reproduction instead of a vague bug |
Two deliberate repetitions: Quickstart, patterns and scene-camera appear under both "Getting Started"/"Documentation" and "Building Videos". The file is read by matching a task, not by reading top to bottom, so the same destination is allowed to appear under the task it answers.
-
Trap first, feature second. The only clause written as a prohibition is the one that silently corrupts behaviour: "never
import manimfirst". -
Numbers instead of adjectives.
1.9–2.8x,1920x1080@60,O(1)— a range, not "blazing fast". -
Noun phrases after the colon.
recording methods: fast_record_scene vs record_scene, FrameServer, FramePreviewis a menu; the manual is where sentences live. - Imperative for actions. "Start with the agent-facing condensed reference", "pick the right one and fill it fully".
- Every line ends in a destination. No entry describes something the reader cannot open in one fetch.
- One wording. Agent-facing text is English only, so there is exactly one sentence to keep true.
-
API signatures and parameter tables — they live in
RTM-Wiki/agent/*.md, and duplicating them here would create a second source of truth that drifts. - Per-page summaries of the 144-page manual — that is the manual's own table of contents.
- Changelog, benchmarks, marketing — none of it changes the code an agent writes.
- Translations — one wording to maintain.
There is no generator and no CI check. Every path in the file resolves (a dead link is worse than no index, because the agent falls back to guessing), but a sentence can go stale: when the Linux backend landed, the summary still said "Windows 10+/macOS" until it was read and corrected. That is the one maintenance rule that matters — when the platform matrix, the entry points or the hard constraints change, the summary changes in the same commit.
Adding a page is one line; renaming a page is editing that one line in the same commit. Nothing else in the file needs to move.
- It is an index, not a specification: if
llms.txtandreal_time_manim/disagree, the code is right. - It assumes the model can follow links; a model that cannot fetch gets only the summary — which is why the summary carries the six facts that break first.
- The section names fit this repository (one package, one manual, one condensed reference); another project should copy the idea, not the headings.
The condensed reference it routes to is described in 02 Runtime Model; the recorder contracts it names are in 06 Recording & Parallelism.