ableton-for-ai AGENTS.md

ableton-for-ai AGENTS.md is an instructions file for Codex, OpenCode from peterkolbe/ableton-for-ai. It costs 2,455 tokens per session, scanned A, original, MIT.

An AGENTS.md guide for Ableton-for-AI, a project that connects AI tools with Ableton Live music projects. It explains the bridge and client components and the communication details agents must follow.

In plain words
What is it for?
Use it when changing the OSC bridge, Ableton client, music-project analysis, data extraction, or AI-assisted mixing integration.
Why use it?
It gives coding agents the project context and the safety rules needed to work with Ableton Live. It also points them to the correct OSC documentation before they access Ableton.

Instructions file for CodexOpenCode

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 instructions/peterkolbe/ableton-for-ai/agents-md
Clone the repo
git clone --depth 1 https://github.com/peterkolbe/ableton-for-ai

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 ableton-for-ai AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/peterkolbe/ableton-for-ai/agents-md.svg)](https://agentmods.dev/instructions/peterkolbe/ableton-for-ai/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/peterkolbe/ableton-for-ai/agents-md"><img src="https://agentmods.dev/badge/instructions/peterkolbe/ableton-for-ai/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,455 This file is loaded in full into every session.
When invoked 2,455 The same file — it is already loaded in full.
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.1 $0.02455 $0.02455
Opus 5 $0.01228 $0.01228
Sonnet 5 $0.00491 $0.00491
Haiku 4.5 $0.00246 $0.00246

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

Security

Grade A, and why

ableton-for-ai 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 5d 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 · 133 lines

How it starts

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

AI Agents Guide for Ableton-for-AI

This document provides essential technical context for AI agents working on this project.

Project Purpose

The goal is to provide a bridge between Ableton Live and AI-driven tools (like Mix-Engineers or LLMs) to enable automated mixing, analysis, and data extraction of music projects.

Core Components

1. osc_daemon.py (The Bridge)

  • Role: A persistent background service that converts JSON-RPC over TCP into OSC over UDP.
  • API Documentation: Whenever an agent needs to access Ableton via the osc_daemon, they MUST first consult the AbletonOSC README to ensure they are using the correct OSC addresses and parameter specifications.
  • Ports:
    • Listens for JSON-RPC on 127.0.0.1:65432.
    • Sends OSC to Ableton on 11000.
    • Receives OSC from Ableton on 11001.
  • Key Features:
    • Request/Response Matching: Uses a request_id and tracks pending futures to handle the asynchronous nature of OSC.
    • Wildcard Support: Can handle OSC wildcard queries (e.g., /live/track/get/*) and correctly dispatch multiple responses.
    • Tolerant Matching: Handles slight data type mismatches (int vs float) that AbletonOSC sometimes returns.
    • OSC Bundling: Supports grouped OSC messages in a single UDP packet for atomic execution and high performance.

2. ableton_client.py (The Interface)

  • Role: High-level Python API for interacting with the osc_daemon.
  • Key Operations:
    • get_tracks: Uses the highly efficient /live/song/get/track_data protocol for mass metadata retrieval.
    • extract_ableton_project_data: Quick extraction of project metadata, tracks, and device parameters.
    • get_available_stems / get_available_spectrograms: List available analysis results from previous runs.
    • analyze_stems: Independent audio analysis pipeline (spectrograms + energy) without project data.
  • analyze_stems_and_extract_ableton_project_data: The full pipeline that gathers project data AND triggers deep audio analysis. Required to enable audio-related resources.
    • set_device_parameter / set_track_volume: Remote control methods to modify the Live session.
  • Rate Limiting: Uses an asyncio.Semaphore (limit: 50) to prevent overwhelming the Ableton Remote Script while allowing high parallelism for parameter retrieval.

Read the full file on GitHub · 133 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. 5d ago First seen · 133 lines · 2,455 tokens per session scan A db7fc37ea730

Subscribe to this mod's changes

ableton-for-ai AGENTS.md is an instructions file published in the GitHub repository peterkolbe/ableton-for-ai (0 stars, last pushed 3mo ago), licensed MIT. It adds 2,455 tokens to every session, about $0.0123 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.