Embody: Instructions file for Claude Code

CLAUDE.md

Embody CLAUDE.md is an instructions file for Claude Code from dylanroscover/Embody. It costs 2,838 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.

This is dylanroscover/Embody's own configuration. It tells Claude Code how to work on Embody itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Embody configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dylanroscover/Embody. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dylanroscover/Embody/main/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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Embody CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dylanroscover/embody/claude-md"><img src="https://agentmods.dev/badge/instructions/dylanroscover/embody/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,838 This file is loaded in full into every session.
When invoked 2,838 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.02838 $0.02838
Opus 5.5 $0.01135 $0.01135
Sonnet 5.5 $0.00568 $0.00568
Haiku 4.5 $0.00284 $0.00284

Measured 28d ago against content hash 9311b2892b6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 28d 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 tdxn (it read tdn before 6.2.30; both are accepted on read). To edit: modify the .tdxn 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 .tdxn 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-TDXN operators. For project-wide questions -- who references this operator, what is the signal-flow topology, where is X used -- read the project-wide .tdxn 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-TDXN 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 TDXN, use MCP tools to inspect and modify them. The filesystem holds externalized files (.py, .tox, .tdxn, .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. Verify unfamiliar TD behavior before asserting it -- describe_op_type for an operator type's real parameter names, get_docs for the official page, a live probe for behavior. 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. When an MCP result looks wrong or a call fails, read the evidence -- the _logs, _effects and recovery_hints on the response first, then get_logs, then dev/logs/ (the ring buffer holds 200 entries; the files hold everything).
  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. 28d ago Changed 9311b2892b6b
  2. 1mo ago Changed · +34 tokens per session 0d86245dda5f
  3. 1mo ago Changed · +15 tokens per session 400cc9d73ea3
  4. 2mo ago Changed · +68 tokens per session b497a615831e
  5. 2mo ago Changed afef44bc91a5
  6. 2mo 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 (212 stars, last pushed yesterday), licensed MIT. It adds 2,838 tokens to every session, about $0.0114 per session on Opus 5.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.

Related

Embody CLAUDE.md compared with instructions from other repositories

Embody CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Embody CLAUDE.mddylanroscover/EmbodyInstructions file212yesterdayMITA2,838Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode