td-mcp: Instructions file for Codex

AGENTS.md

td-mcp AGENTS.md is an instructions file for Codex, OpenCode from Gleinkaa/td-mcp. It costs 1,492 tokens per session, scanned A, original, MIT.

Repository instructions for td-mcp, a server that lets an AI client inspect and control TouchDesigner projects. TouchDesigner is a tool for creating real-time interactive visuals, and these instructions describe the server's code, safety rules, and commands.

In plain words
What is it for?
Use them when building, testing, or modifying td-mcp, including its MCP tools, web dashboard, safety checks, or TouchDesigner connection.
Why use it?
They give a coding agent the project context it needs before changing the repository. This reduces mistakes about file locations, testing, and scripts that communicate with a running TouchDesigner project.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is Gleinkaa/td-mcp's own configuration. It tells Codex and OpenCode how to work on td-mcp 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 td-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Gleinkaa/td-mcp. 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/Gleinkaa/td-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Gleinkaa/td-mcp

Made for: Codex, OpenCode.

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 td-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gleinkaa/td-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/gleinkaa/td-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gleinkaa/td-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/gleinkaa/td-mcp/agents-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 td-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gleinkaa/td-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/gleinkaa/td-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,492 This file is loaded in full into every session.
When invoked 1,492 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.01492 $0.01492
Opus 5.5 $0.00597 $0.00597
Sonnet 5.5 $0.00298 $0.00298
Haiku 4.5 $0.00149 $0.00149

Measured 23d ago against content hash 08730a642689, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

td-mcp AGENTS.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 23d 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.

AGENTS.md · 103 lines

How it starts

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

AGENTS.md — td-mcp

What this repo is

An MCP server plus a web dashboard for TouchDesigner. Claude Code (or any MCP client) talks stdio to this server, which talks HTTP to a WebServer DAT inside a running TD project on port 9981; a FastAPI dashboard on :8080 exposes the same tooling in a browser. 22 MCP tools across four groups — inspect (list ops, trace signal flow, read CHOPs, read/set params), optimize (cook-time stats, hotspots, unused ops), cleanup (find bypassed/dead ops, delete with dry-run default, validate network) and templates (5 built-in CHOP recipes plus a DAW mapping generator for OSC/MIDI CC). Every script that reaches TD goes through src/td_mcp/safety.py first.

Layout (real paths)

pyproject.toml                    Hatchling package; scripts td-mcp and td-mcp-web; pytest config
src/td_mcp/server.py              FastMCP stdio server — the 22 tools
src/td_mcp/web.py                 FastAPI + htmx dashboard (main() runs uvicorn on :8080)
src/td_mcp/td_client.py           Async httpx client to the TD WebServer DAT; never raises
src/td_mcp/safety.py              The script validator (blocks imports, eval/exec, dunders, obfuscation)
src/td_mcp/models.py              Pydantic models
src/td_mcp/tools/inspect.py       List ops, trace signal flow, read CHOPs and params
src/td_mcp/tools/optimize.py      Cook-time hotspots, unused/dead-end ops, suggestions
src/td_mcp/tools/cleanup.py       Dead/bypassed ops, delete_operator, cleanup_dead_ops, validation
src/td_mcp/tools/templates.py     5 CHOP recipes + the DAW mapping generator
td/webserver_callbacks.py         Drop-in for TD's WebServer DAT onHTTPRequest callback
tests/test_models.py, test_safety.py, test_server.py, test_td_client.py, test_tools.py

How to build / run / test

Requires Python 3.10+.

pip install -e ".[dev]"
pytest                                    # asyncio_mode=auto, testpaths=["tests"] (26 tests)

td-mcp                                    # MCP server over stdio
td-mcp-web                                # dashboard at http://localhost:8080
uvicorn td_mcp.web:app --port 8080 --app-dir src   # same dashboard, run directly

Read the full file on GitHub · 103 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. 23d ago First seen · 103 lines · 1,492 tokens per session scan A 08730a642689

Subscribe to this mod's changes

td-mcp AGENTS.md is an instructions file published in the GitHub repository Gleinkaa/td-mcp (0 stars, last pushed 24d ago), licensed MIT. It adds 1,492 tokens to every session, about $0.0060 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-10-16.

Related

td-mcp AGENTS.md compared with instructions from other repositories

td-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
td-mcp AGENTS.mdGleinkaa/td-mcpInstructions file024d agoMITA1,492Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot