ableton-for-ai: Instructions file for Codex

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

Written for Codex and OpenCode: the file is AGENTS.md.

This is peterkolbe/ableton-for-ai's own configuration. It tells Codex and OpenCode how to work on ableton-for-ai 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 ableton-for-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to peterkolbe/ableton-for-ai. 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/peterkolbe/ableton-for-ai/main/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/github.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/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 ableton-for-ai AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.02455 $0.02455
Opus 5.5 $0.00982 $0.00982
Sonnet 5.5 $0.00491 $0.00491
Haiku 4.5 $0.00246 $0.00246

Measured 2mo ago against content hash db7fc37ea730, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (1 stars, last pushed 5mo ago), licensed MIT. It adds 2,455 tokens to every session, about $0.0098 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-31.

Related

ableton-for-ai AGENTS.md compared with instructions from other repositories

ableton-for-ai AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ableton-for-ai AGENTS.mdpeterkolbe/ableton-for-aiInstructions file15mo agoMITA2,455Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
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