ableton-remote-script

ableton-remote-script is a skill for Claude Code, Codex from Pantani/ableton-mind. It costs 37 tokens per session (361 once invoked), scanned A, original, MIT.

A set of patterns for building the Python bridge between Ableton Live and Ableton Mind. It covers Live’s control-surface lifecycle, event handlers, listeners, thread safety, undo steps and offline tests.

In plain words
What is it for?
Use it when adding transport or track handlers, managing listeners, processing TCP requests, making grouped changes undoable and testing the bridge with simulated Live objects.
Why use it?
It explains how to work safely with Ableton Live’s programming interface, including its requirement that certain operations run on the main thread. It also helps keep bridge behaviour testable outside Live.

Skill for Claude CodeCodex

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 skills/pantani/ableton-mind/ableton-remote-script
Any agent
npx skills add Pantani/ableton-mind --skill ableton-remote-script
Clone the repo
git clone --depth 1 https://github.com/Pantani/ableton-mind

Made for: Claude Code, Codex.

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 ableton-remote-script

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantani/ableton-mind/ableton-remote-script.svg)](https://agentmods.dev/skills/pantani/ableton-mind/ableton-remote-script)
Your own site
<a href="https://agentmods.dev/skills/pantani/ableton-mind/ableton-remote-script"><img src="https://agentmods.dev/badge/skills/pantani/ableton-mind/ableton-remote-script.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 361 The whole file, excluding the scripts and references it only reads on demand.
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 $0.00037 $0.00361
Opus 5 $0.00018 $0.00180
Sonnet 5 $0.00007 $0.00072
Haiku 4.5 $0.00004 $0.00036

Measured 4d ago against content hash 579d69acd5d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ableton-remote-script 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 4d 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/skills/ableton-remote-script/SKILL.md · 38 lines

What it actually says

Ableton Remote Script — Python Bridge Patterns

Use this skill when implementing or reviewing code under live/AbletonMind/.

Constraints

  • LiveAPI must be touched on Live's main thread. TCP worker threads enqueue work.
  • Prefer stdlib only inside Live.
  • Keep handlers idempotent and read-before-write.
  • Wrap composite mutations in Song.begin_undo_step/end_undo_step.
  • Return JSON-serializable data and structured JSON-RPC errors.
  • Test offline with unittest and faked LiveAPI.

ControlSurface Lifecycle

Expose create_instance(c_instance), construct AbletonMind(ControlSurface), start the bridge when the control surface loads and stop it cleanly on disconnect/reload. Use log_message for structured diagnostics.

Handler Pattern

Register handlers with stable method names such as transport.play or track.list. Validate inputs, resolve Live objects at call time, check liveobj_valid before use, mutate only when needed, then read state back and return the contract shape.

Listener Pattern

Use a ListenerRegistry that tracks add/remove pairs. Subscribing twice is a no-op. Unsubscribe on client disconnect and surface reload. Listener callbacks push JSON-RPC notifications with stable event names and compact params.

Transactions

Use transaction helpers for multi-step mutations: create track + rename + load device should become one undo action. Always end the undo step in finally.

Tests

Every handler gets at least one happy path and one error path. Listener tests verify duplicate registration and cleanup. Smoke tests may use a real Live instance, but unit tests must pass without Live.

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. 4d ago First seen · 38 lines · 0 tokens per session scan A 579d69acd5d5

Subscribe to this mod's changes

ableton-remote-script is a skill published in the GitHub repository Pantani/ableton-mind (5 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 361 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

groove-builder

Use when the user wants drum patterns by genre - kick, snare, hi-hat, percussion. Examples - "give me a trap beat", "house drum pattern", "DnB drums at 174", "lo-fi drums with swing", "boom-bap pattern".

glincker/ableton-skills · 60 tokens

midi-cleanup

Use when the user asks to humanize a MIDI part, fix voice leading, quantize notes, clean up timing, fix stuck/duplicate notes, or generally polish a MIDI clip they recorded or wrote. Examples - "humanize this hat", "voice these chords better", "the timing is too stiff", "fix the voice leading on the strings".

glincker/ableton-skills · 76 tokens

mixer-doctor

Use when the user describes a mix problem ("muddy", "harsh", "no headroom", "vocals get lost", "kick and bass fighting") or asks for a mix audit. Diagnoses the issue from session state and proposes specific corrective moves with EQ, compression, sends, and routing.

glincker/ableton-skills · 67 tokens

producer-mode

Use when the user asks to set up tracks, pick instruments, scaffold an arrangement, build a project template, or describe a track they want to make in Ableton Live. Examples - "make me a 4-bar lo-fi loop", "set up a film score template", "I want to start a hip-hop beat in C minor".

glincker/ableton-skills · 72 tokens

arrangement-coach

Use when the user has a Session-view loop and wants to promote it to a full Arrangement, build sections (intro/verse/drop/break/outro), or extend a 4-bar idea into a 3-minute track. Examples - "turn this loop into a full song", "build me a 2-minute arrangement from this", "promote session to arrangement".

glincker/ableton-skills · 79 tokens

chord-pro

Use when the user wants to generate, voice, or modify chord progressions. Examples - "give me a sad chord progression in C minor", "voice these chords for piano", "what's a good progression for cinematic music?", "extend this progression with more color tones".

glincker/ableton-skills · 59 tokens