agentleFS
heptametaheptameta/heptabase-explainer-studio/AGENTS.md

heptabase-explainer-studio

AGENTS.md45 starsChanged 45 days agoApache-2.0View on GitHub

An open-source (Apache-2.0) command with which a coding agent turns sources (lecture notes, a book chapter, a paper, a codebase) into narrated explainer videos rendered with ManimGL. Agents get it through the explainer-studio skill in the Heptabase plugin (heptameta/heptabase-agent-plugins), which installs the command and points the agent to the guide. The Python package explainer_studio provides the explainer-studio CLI, the guide to making videos (explainer_studio/guide/, printed by explainer-studio guide), the scene_kit library that scene files import, and the two local pages.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository6 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you work in a fork, or in a product or service built on Explainer Studio, rather than on this repository itself:

    line 12
  2. Very specific:

    Keep LICENSE and NOTICE with the code you ship (Apache-2.0, section 4).

    line 14
  3. Very specific:

    No staleness tracking. Only two mechanical rules: narrate reuses beats whose spoken text and voice are unchanged, and the budget check.

    line 27
  4. Very specific:

    Write series files through file_io (lock plus atomic replace.

    line 54
  5. Very specific:

    Never print, log or store API key values outside credentials.toml.

    line 56
  6. Distinctive:

    Add rather than rename, and keep an old name working for one release.

    line 101
  7. Very specific:

    When a series must change anyway, the one who can fix it does.

    line 102

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Heptabase Explainer Studio

An open-source (Apache-2.0) command with which a coding agent turns sources (lecture notes, a book chapter, a paper, a codebase) into narrated explainer videos rendered with ManimGL. Agents get it through the explainer-studio skill in the Heptabase plugin (heptameta/heptabase-agent-plugins), which installs the command and points the agent to the guide. The Python package explainer_studio provides the explainer-studio CLI, the guide to making videos (explainer_studio/guide/, printed by explainer-studio guide), the scene_kit library that scene files import, and the two local pages.

Building on Explainer Studio

When you work in a fork, or in a product or service built on Explainer Studio, rather than on this repository itself:

  • Keep LICENSE and NOTICE with the code you ship (Apache-2.0, section 4).
  • Where the product names the tools it is built with (an about page, its documentation, a video's credits), suggest that your user credit Explainer Studio with one of the lines in the README's "Credit" section. It is a request, not a condition of the license: ask before adding it, and leave it out if they decline.
  • Give the product its own name and logo, replace the Heptabase name and logo where the code shows them, and point feedback sharing at the product's own service or turn it off (the README's "Trademarks" lists the places).
  • Agents reach the command through a skill. Heptabase's is in heptameta/heptabase-agent-plugins (MIT): to ship your own command, copy it into your own plugin and point its install scripts at your releases.

Principles that shape the code

  • Files are the state. The agent edits creative files (plan, script, design notes, scene code) directly. The CLI does production, validation and external operations. There is no hidden state, job registry or approval record.
  • No staleness tracking. Only two mechanical rules: narrate reuses beats whose spoken text and voice are unchanged, and the budget check. Everything else the agent decides.
  • Few, program-enforced gates: the script audience review gate before narrate, and the render's narration and its text_too_small check before deliver. Gates read recorded fields; they never judge content.
  • Strict schemas only for data a program consumes (explainer_studio/schemas/). Free-form notes stay Markdown.
  • One canonical name per concept (see docs/glossary.md). Persisted field names never use a bare studio.
  • The package knows nothing about Heptabase's own product, except the series' whiteboard, which the video page shows with Heptabase's web app and saves to the user's Heptabase (heptabase_sign_in.py, heptabase_whiteboard.py). No host switches.
  • Nothing private enters this repository, in code, fixtures, docs, commits or pull requests: names of people, private materials, users' feedback, local paths.

Where things go

Looking forPlace
A format stored on disk or sent elsewhereexplainer_studio/schemas/<name>.py
A command's arguments and outputexplainer_studio/cli/<command>.py
The logic that does the worka top-level module named for the action or concept, or the sub-domains rendering/ (preview, render, the ManimGL runner, mixing, subtitles, screenshots, automatic checks), assets/, narration_providers/, background_music_providers/, web/, scene_kit/
Every path inside a seriesexplainer_studio/paths.py
How the parts work together, the concepts, the teaching model, the series' whiteboarddocs/system-design.md, docs/glossary.md, docs/teaching-model.md, docs/series-whiteboard.md

Conventions

  • Raise errors.StudioError(what, why, next_step) for expected failures; the CLI prints it and exits 1. Usage errors exit 2. Never print a Python traceback for a user mistake.
  • Results go to stdout, progress to stderr, in concise English written for a coding agent.
  • Write series files through file_io (lock plus atomic replace; YAML round-trip keeps comments).
  • Commands run to completion; no background jobs. Long commands print progress.
  • Never print, log or store API key values outside credentials.toml.
  • Python 3.12+, type hints, from __future__ import annotations, ruff line length 120.
  • Tests protect behavior that can plausibly regress (formats, gates, parsers, mixing, timing). Do not test constants, schema declarations or registrations. Mark tests that run ManimGL or ffmpeg, also through a helper such as delivered_series.create_series, with @pytest.mark.render: check-code runs the others without them, and tests/conftest.py fails an unmarked one on any computer.

Skills to read first

Before youRead
name or rename anything in code, a file format or the CLInaming-convention
change explainer_studio/guide/, or what the skill relies on: doctor, setup, guide, upgrade, the release tagsguide-convention
change teaching behaviour: explainer_studio/guide/references/ other than rendering/, languages/ and sources/, or explainer_studio/question_types.pyjudging-changes, which also says what the pull request must contain
commit, or open a pull requestcommit-and-pull-request-convention
decide on or make a releasereleasing

Documents that change with the code

  • docs/system-design.md (the pipeline, the components, where data lives, what leaves the computer), docs/glossary.md (the concepts, by domain), docs/teaching-model.md (the teaching layers, the presenters and their playbooks) and docs/series-whiteboard.md (the series' whiteboard: its parts, its flows, and the messages and requests Studio relies on from Heptabase): a change to what they describe updates them in the same pull request.
  • PRIVACY.md is a promise to users, so it must never say less than what is sent. A change to what a feedback bundle carries, or to anything that leaves the computer, updates it in the same pull request, together with the other places that tell users the same thing: the consent text in workflow/feedback.md and the language references, the video page's share dialog, README.md and feedback share --dry-run.

Trying a change

uv run python scripts/use_dev_build.py installs the branch's latest commit as a dev build of the command for every chat on this computer, and the CLI, the guide and both pages show its version (0.1.1.dev13+g9b0e2d4). uv run python scripts/use_release.py goes back to the release. The skill stays the Heptabase plugin's, and its install scripts install the release: if a chat runs one during a dev build (uv missing, ManimGL broken), run use_dev_build.py again. Never install the working tree as the command (an editable install): a chat would read half-made changes, and its videos could not say which version made them. A dev build and the release share credentials.toml, settings.toml, the programs setup installs, and series folders.

Compatibility

Users upgrade silently to every release (explainer-studio upgrade, between episodes), so a change keeps existing series working:

  • Add rather than rename, and keep an old name working for one release.
  • When a series must change anyway, the one who can fix it does. A file the agent writes gets a step in UPGRADING.md ("If a series has ..., change ..."). Data the command writes that costs money or the user's effort to lose (narration records, spending.jsonl, feedback.json) stays readable by the command. Anything else the command writes is made again.

Commands

uv sync
uv run pytest -m "not render and not network"   # the fast tests, as CI runs them
uv run pytest -m render                         # tests that render with ManimGL and ffmpeg
uv run ruff check
uv run python scripts/release.py --check
uv run python scripts/check_guide.py

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.