MAX-MSP_CC_Framework: Command for Claude Code

.claude/commands/max-build.md

max-build is a command for Claude Code from taylorbrook/MAX-MSP_CC_Framework. It costs 11 tokens per session (1,107 once invoked), scanned A, original, MIT.

A command for generating MAX/MSP patches, Gen~ code, JavaScript, and related audio or multimedia development files through specialist agents.

In plain words
What is it for?
Use it to create artifacts in an active MAX project, using the project's context and specialist generation agents.
Why use it?
It routes a request to specialists suited to patch structure, digital signal processing, user interfaces, JavaScript, RNBO, or C++ externals.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is taylorbrook/MAX-MSP_CC_Framework's own configuration. It tells Claude Code how to work on MAX-MSP_CC_Framework 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 MAX-MSP_CC_Framework configures →

Reuse

Borrowing it

Nothing to install: this file belongs to taylorbrook/MAX-MSP_CC_Framework. 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/taylorbrook/MAX-MSP_CC_Framework/main/.claude/commands/max-build.md
Clone the repo
git clone --depth 1 https://github.com/taylorbrook/MAX-MSP_CC_Framework

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 max-build

README.md
[![agentmods](https://agentmods.dev/badge/commands/taylorbrook/max-msp_cc_framework/max-build/github.svg)](https://agentmods.dev/commands/taylorbrook/max-msp_cc_framework/max-build)
Your own site
<a href="https://agentmods.dev/commands/taylorbrook/max-msp_cc_framework/max-build"><img src="https://agentmods.dev/badge/commands/taylorbrook/max-msp_cc_framework/max-build/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 max-build

Your own site · 80×15
<a href="https://agentmods.dev/commands/taylorbrook/max-msp_cc_framework/max-build"><img src="https://agentmods.dev/badge/commands/taylorbrook/max-msp_cc_framework/max-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,107 The whole file, excluding the scripts and references it only reads on demand.
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.00011 $0.01107
Opus 5.5 $0.00004 $0.00443
Sonnet 5.5 $0.00002 $0.00221
Haiku 4.5 $0.00001 $0.00111

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

Security

Grade A, and why

max-build 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 6d 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/commands/max-build.md · 80 lines

How it starts

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

/max-build

Generate MAX/MSP patches, Gen~ code, JavaScript, or other artifacts by routing the user's description through the agent system. Creates new .maxpat files directly via the Patcher API -- no intermediary scripts.

Behavior

  1. Load active project -- read patches/.active-project.json for the current project. If no active project, prompt the user to create one with /max-new.

  2. Load project context -- read the project's context.md for vision, decisions, and research.

  3. Route through max-router -- invoke the max-router skill with:

    • The user's task description
    • Project context
    • The router analyzes keywords/intent and dispatches to specialist agent(s)
  4. Specialist generation -- the router dispatches to one or more specialist agents:

    • max-patch-agent (control flow, routing, subpatchers)
    • max-dsp-agent (GenExpr, signal chains, audio)
    • max-js-agent (JavaScript, Node for Max)
    • max-ui-agent (presentation mode, layout, controls)
    • max-rnbo-agent (RNBO export, target validation, param mapping)
    • max-ext-agent (C++ externals, Min-DevKit scaffolding, build)

    Each specialist creates a Patcher instance, builds the patch structure using add_box() and add_connection(), then finalizes it with finalize_patch(patcher, is_new=True) (styling, layout, text contrast, assistance comments) and validates with validate_patch(patcher.to_dict()).

    Layout refusal. finalize_patch(patcher, is_new=True) (and apply_layout) raises LayoutRefusedError (from src.maxpat.layout import LayoutRefusedError, a ValueError) when the patcher, or any subpatcher the layout would visit, has more than 120 boxes or was saved by MAX. It is raised before anything changes, so the patch is untouched and nothing is styled. For a large NEW build (the generator just made every box), pass finalize_patch(patcher, is_new=True, force_layout=True). Never force it on a patch that came from disk or embeds a MAX-saved subpatcher: global layout wrecks a user's arrangement. Edit those with edit_patch(path) or finalize_patch(patcher, is_new=False) instead.

Read the full file on GitHub · 80 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. 6d ago Changed · +3 lines ed3c9147861a
  2. 14d ago Changed bbd04b517537
  3. 2mo ago First seen · 77 lines · 11 tokens per session scan A 3c8cbbf6c7e8

Subscribe to this mod's changes

max-build is a command published in the GitHub repository taylorbrook/MAX-MSP_CC_Framework (46 stars, last pushed 4d ago), licensed MIT. It adds 11 tokens to every session and 1,107 once invoked, about $0.0000 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.