Embody CLAUDE.md

Embody CLAUDE.md is an instructions file for Claude Code from dylanroscover/Embody. It costs 2,721 tokens per session, scanned A, original, MIT.

A set of instructions for AI coding agents working on Embody and Envoy, tools for turning TouchDesigner projects into version-control-friendly files and controlling them programmatically.

In plain words
What is it for?
It helps agents inspect and edit TouchDesigner networks, manage externalized operators, handle different file formats, and use the embedded automation server.
Why use it?
TouchDesigner project files can be difficult to compare and merge in Git; these instructions explain how to use the external files and automation safely.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dylanroscover/embody/claude-md
Clone the repo
git clone --depth 1 https://github.com/dylanroscover/Embody

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Embody CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dylanroscover/embody/claude-md.svg)](https://agentmods.dev/instructions/dylanroscover/embody/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/dylanroscover/embody/claude-md"><img src="https://agentmods.dev/badge/instructions/dylanroscover/embody/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,721 This file is loaded in full into every session.
When invoked 2,721 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02721 $0.02721
Opus 5 $0.01360 $0.01360
Sonnet 5 $0.00544 $0.00544
Haiku 4.5 $0.00272 $0.00272

Measured 2d ago against content hash afef44bc91a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

Embody CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Embody + Envoy

Project Overview

Embody is a TouchDesigner extension that automates externalization of COMP and DAT operators to version-control-friendly files (.tox, .py, .json, .xml, etc.). It solves the problem of TouchDesigner's binary .toe files being impossible to diff/merge in git.

Envoy is an MCP (Model Context Protocol) server embedded inside Embody that lets Claude Code create, modify, connect, and query TouchDesigner operators programmatically -- plus manage Embody externalizations.

Critical Rules

  1. Prefer the externalized network file for reading TDXN-externalized COMPs -- these are YAML on disk with complete network structure (operators, parameters, connections, positions, flags, DAT content, annotations). Reading them directly is faster than MCP round-trips. Never glob for an extension: Embody writes .tdxn as of v6.1.0 and keeps writing .tdn for any COMP externalized earlier, so a project legitimately holds a mix. Check externalizations.tsv (strategy column) or call get_externalizations to identify them -- the strategy value is still tdn, unchanged by the rename; searching for tdxn there finds nothing. To edit: modify the .tdn file on disk, then always call import_network via MCP with the COMP path, the parsed network, and clear_first=True to reload it in TD. Never leave a .tdn edit unreloaded -- the user must see updates immediately in TD. Use MCP when you need live runtime state (evaluated expressions, cook errors) or for non-TDN operators. For project-wide questions -- who references this operator, what is the signal-flow topology, where is X used -- read the project-wide .tdn snapshot with Grep/Read before making MCP calls; the Externalize Full Project pulse (ext.Embody.externalizeProject()) writes one (see the Embody parameters, or the setup wizard's externalize step). One grep over that file answers what would otherwise cost many round-trips.
  2. Use Envoy MCP tools for live TD state and non-TDN operators -- NEVER say "I can't edit that because it's in a .tox" or "these are binary files I can't access." For operators not externalized as TDN, use MCP tools to inspect and modify them. The filesystem holds externalized files (.py, .tox, .tdn, .json, .xml, etc.); MCP is for interacting with live operator state inside TD.
  3. NEVER create operators under /local -- /local is volatile storage, not saved with the .toe file. Place new COMPs in the container that holds the Embody COMP (op.Embody.parent().path, the level the user chose) -- or a network the user has deliberately opened -- never /local and never the bare root /. See /create-operator step 1.
  4. Do NOT assume network paths -- never guess /project1. Use query_network on / to discover the actual root structure.
  5. Default new COMPs to Embody's container -- execute_python with result = op.Embody.parent().path returns the same home every run (the consistency anchor). Build in ui.panes.current.owner.path only when the user has deliberately navigated into a content network, and never treat bare / as that home. See /create-operator step 1.
  6. Always consult the TD wiki before writing TD Python code OR claiming TD behavior -- confirm API behavior, file formats, and application features against official Derivative documentation even if you're confident. Never assume a TD feature, file type, or convention exists without a verified source.
  7. Binary files (.toe, .tox) -- use MCP tools to inspect contents, not the filesystem.
  8. Always check for errors after creating operators -- get_op_errors with recurse=true immediately after creating and connecting operators.
  9. Favor annotations over OP comments -- use create_annotation for documenting operators and groups.
  10. Always analyze log files after MCP operations -- read dev/logs/ for the complete picture. Ring buffer only holds 200 entries.
  11. Always update unit tests when modifying project code -- check whether existing tests assert against changed behavior.
  12. Batch repetitive MCP operations -- never make 3+ individual calls to the same tool. Use batch_operations to combine set_op_position, connect_ops, set_parameter, set_op_flags, etc. into a single request. For complex logic (conditionals, loops, computed values), use execute_python instead. Each MCP round-trip costs tokens and latency -- minimize them.
  13. Prefer the operator-creating MCP tools (create_op, copy_op, create_extension) over raw execute_python -- they auto-position, lint layout, and (when the Envoy Autoexternalize preference is DATs/COMPs/both) auto-externalize new COMPs (TDN) and DATs (source) at their boundary -- additively, never inside an already-externalized ancestor. A copy_op gets a fresh externalization at its own path (inherited source tags/file-refs are cleared, so the copy never shares or overwrites the source's files); create_extension externalizes the host COMP it creates (its code DAT is captured inside). Batch via batch_operations. Reach for execute_python/comp.create()/.copy() only when you genuinely need computed/looped creation or connection-preserving copyOPs; those bypass auto-externalization (Envoy rides an AUTO-EXTERNALIZE BYPASS warning back on the response) and require manual layout + tagging.

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed afef44bc91a5
  2. 6d ago First seen · 101 lines · 2,721 tokens per session scan A fd5628c137de

Subscribe to this mod's changes

Embody CLAUDE.md is an instructions file published in the GitHub repository dylanroscover/Embody (169 stars, last pushed 2d ago), licensed MIT. It adds 2,721 tokens to every session, about $0.0136 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.