setup-visage

setup-visage is a command for Claude Code from danielraffel/generous-corp-marketplace. It costs 15 tokens per session (936 once invoked), scanned C, original, MIT.

A command that adds Visage, a GPU-accelerated user-interface system, to an existing JUCE audio-plugin project. It supports graphics systems including Metal, Direct3D11, Vulkan, and WebGL.

In plain words
What is it for?
Use it to add Visage to a compatible project, update its configuration, and generate the project-specific interface files.
Why use it?
It handles the project checks and configuration needed to replace the existing plugin editor with Visage-based interface support.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/setup_visage.sh.

Part of the juce-dev plugin — 3 skills, 10 commands shipped together

Good fit Use it to add Visage to a compatible project, update its configuration, and generate the project-specific interface files.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/danielraffel/generous-corp-marketplace
agentmods
npx agentmods add commands/danielraffel/generous-corp-marketplace/setup-visage

Made for: Claude Code.

Or install juce-dev, the plugin that ships this one along with the rest of its 3 skills, 10 commands.

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 setup-visage

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielraffel/generous-corp-marketplace/setup-visage/github.svg)](https://agentmods.dev/commands/danielraffel/generous-corp-marketplace/setup-visage)
Your own site
<a href="https://agentmods.dev/commands/danielraffel/generous-corp-marketplace/setup-visage"><img src="https://agentmods.dev/badge/commands/danielraffel/generous-corp-marketplace/setup-visage/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 setup-visage

Your own site · 80×15
<a href="https://agentmods.dev/commands/danielraffel/generous-corp-marketplace/setup-visage"><img src="https://agentmods.dev/badge/commands/danielraffel/generous-corp-marketplace/setup-visage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00015 $0.00936
Opus 5 $0.00008 $0.00468
Sonnet 5 $0.00003 $0.00187
Haiku 4.5 $0.00002 $0.00094

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

Security

Grade C, and why

setup-visage scanned grade C with 1 finding 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 9d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf build/
plugins/juce-dev/commands/setup-visage.md · 109 lines

How it starts

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

Add Visage GPU UI

Add Visage GPU-accelerated UI to an existing JUCE-Plugin-Starter project. Visage is fully cross-platform via bgfx: Metal (macOS), Direct3D11 (Windows), Vulkan (Linux), WebGL (Web).

Implementation

Step 1: Verify Project

  1. Check that the current working directory is a JUCE-Plugin-Starter project:

    • CMakeLists.txt must exist
    • Source/PluginEditor.h must exist
    • .env must exist
  2. If any are missing, tell the user this command must be run from a JUCE-Plugin-Starter project root.

  3. Check if Visage is already set up:

    • If external/visage/ exists AND .env contains USE_VISAGE_UI=TRUE, tell the user Visage is already configured.
    • If external/visage/ exists but .env says FALSE, just update the .env flag.

Step 2: Detect Class Name

Read Source/PluginEditor.h and extract the class name. Look for the pattern:

class {ClassName}AudioProcessorEditor

Extract {ClassName} — this replaces CLASS_NAME_PLACEHOLDER in the Visage templates.

Step 3: Confirm

question: "Add Visage GPU UI to this project?"
header: "Visage"
options:
  - label: "Yes, add Visage (Recommended)"
    description: "Replaces PluginEditor with Visage GPU-rendered UI (Metal/D3D11/Vulkan)"
  - label: "Cancel"
    description: "No changes will be made"

Step 4: Setup Visage

  1. Check if templates/visage/PluginEditor.h and templates/visage/PluginEditor.cpp exist in the project.

  2. If templates exist, copy them:

    cp templates/visage/PluginEditor.h Source/PluginEditor.h
    cp templates/visage/PluginEditor.cpp Source/PluginEditor.cpp
    
  3. Replace CLASS_NAME_PLACEHOLDER with the detected class name:

    sed -i '' "s/CLASS_NAME_PLACEHOLDER/$CLASS_NAME/g" Source/PluginEditor.h Source/PluginEditor.cpp
    
  4. Run the Visage setup script (clones Visage repo and applies patches):

    ./scripts/setup_visage.sh
    
  5. Update .env to enable Visage:

    • If USE_VISAGE_UI line exists, change its value to TRUE
    • If it doesn't exist, add USE_VISAGE_UI=TRUE

Read the full file on GitHub · 109 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. 9d ago First seen · 109 lines · 15 tokens per session scan C b94f2ab84169

Subscribe to this mod's changes

setup-visage is a command published in the GitHub repository danielraffel/generous-corp-marketplace (11 stars, last pushed 10d ago), licensed MIT. It adds 15 tokens to every session and 936 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.