livepilot-core
Core discipline for LivePilot — agentic production system for Ableton Live 12. 403 tools across 52 domains. This skill should be used whenever working with Ableton Live through MCP tools. Provides golden rules, tool speed tiers, error handling protocol, and pointers to domain and engine skills.
LivePilot Core — Ableton Live 12
Agentic production system for Ableton Live 12. 403 tools across 52 domains, three layers:
- Device Atlas — 1305 devices indexed (81 enriched with sonic intelligence, 683 drum kits). Consult
atlas_searchoratlas_suggestbefore loading any device. Never guess a device name. - M4L Analyzer — Real-time audio analysis on the master bus (8-band spectrum, RMS/peak, key detection). Optional — all core tools work without it.
- Technique Memory — Persistent storage for production decisions. Consult
memory_recallbefore creative tasks to understand user taste.
Golden Rules
- Always call
get_session_infofirst — know the session before changing anything - Verify after every write — re-read state to confirm changes took effect
- Use
undoliberally — mention it to users when doing destructive ops - One operation at a time — verify between steps
- Track indices are 0-based — negative for return tracks (-1=A, -2=B), -1000 for master
- NEVER invent device/preset names — always
search_browserfirst, use exacturifrom results. Exception:find_and_load_devicefor built-in effects only ("Reverb", "Delay", "Compressor", "EQ Eight", "Saturator", "Utility") - Color indices 0-69 — Ableton's fixed palette
- Volume 0.0-1.0, pan -1.0 to 1.0 — normalized, not dB
- Tempo range 20-999 BPM
- Always name tracks and clips — organization is part of the process
- Respect tool speed tiers — see below
- ALWAYS report tool errors — never silently swallow errors. Include: tool name, error message, fallback plan
- Verify plugin health after loading — check
health_flags,mcp_sound_design_ready,plugin_host_status. Ifparameter_count<= 1 on AU/VST → dead plugin, delete and replace - Use
C hijazfor Hijaz/Phrygian Dominant keys — avoids false out-of-key warnings - VERIFY AFTER EVERY WRITE — mandatory, non-negotiable:
- After
set_device_parameterorbatch_set_parameters: readvalue_stringin the response to confirm the actual Hz/dB/% value makes sense - After any filter, EQ, or effect parameter change: call
get_track_meters(include_stereo=true)and verify the target track has non-zero left AND right levels - After
apply_automation_recipe: check that the recipe didn't push the parameter to an extreme that kills audio - If a track's stereo output drops to 0: the effect is killing the signal — check
get_device_parametersforvalue_string, fix, re-verify - Parameter ranges are NOT always 0-1. Auto Filter Frequency is 20-135. Bit Depth is 1-16. Always read
value_stringto see actual units.
- After
- NEVER apply automation recipes without understanding the target parameter's range — recipes generate 0-1 curves that get auto-scaled for device parameters, but always verify the result
- LivePilot_Analyzer must be LAST on master chain — always place after ALL effects (EQ, Compressor, Utility, etc.) so it measures the final post-processing output, not the raw signal. When loading effects on master, either load them before the analyzer or move the analyzer to end afterward
- Remote Script reload workflow — after any edit to
remote_script/LivePilot/*.py: runnpx livepilot --install(NOTnode installer/install.js— that raw file only module-exports the install function and silently no-ops as a script), then callreload_handlers(MCP tool, domain: diagnostics). NEVER instruct the user to toggle the Control Surface in Live Preferences. The tool uses pkgutil + importlib to re-fire@registerdecorators in-place in <1s while the TCP connection stays open. Standard procedure for every handler change — not just releases
Tool Speed Tiers
Instant (<1s) — Use freely
All 403 tools plus M4L perception tools.
Fast (1-5s) — Use freely
analyze_loudness · analyze_mix · analyze_sound_design
Slow (5-15s) — Tell the user first
compare_to_reference · analyze_spectrum_offline · read_audio_metadata
Escalation pattern: Start fast, escalate only with consent:
Level 1 (instant): get_master_spectrum + get_track_meters
Level 2 (fast): analyze_loudness + analyze_mix
Level 3 (slow): compare_to_reference + analyze_spectrum_offline
Error Handling Protocol
Report ALL errors to the user immediately. Common failure modes:
- Dead AU/VST plugin —
parameter_count<= 1 → delete, replace with native - Sample-dependent plugin — granular synths produce silence without samples → use self-contained synths (Wavetable, Operator, Drift, Analog)
- Empty Drum Rack — bare rack = silence → always load a kit preset
- M4L bridge timeout — device may be busy or removed → retry or skip analyzer features
- Connection timeout — Ableton unresponsive → check if session is heavy
- Volume reset on scene fire — Ableton restores mixer state when firing scenes. Always re-apply
set_track_volume/set_track_panafterfire_sceneif your mix settings differ from what was stored in the clips - M4L Analyzer not connected — if
get_master_spectrumerrors with "Analyzer not detected", auto-load it:find_and_load_device(track_index=-1000, device_name="LivePilot_Analyzer"). If it errors with "UDP bridge not connected", tryreconnect_bridgefirst - Another client connected — Remote Script only accepts one TCP client on port 9878. If you see this error, the MCP server is already connected. Use MCP tools instead of raw TCP
Technique Memory
Three modes:
- Informed (default):
memory_recallbefore creative tasks, let past decisions influence new ones - Fresh: Skip memory when user wants something new ("ignore my history", "surprise me")
- Explicit recall:
memory_recall→memory_get→memory_replaywhen user references a saved technique
Wonder Mode — Stuck-Rescue Routing
- Use Wonder (
enter_wonder_mode) for creative ambiguity and session rescue - Do not fabricate three variants when only one real option exists
- Do not describe a branch as previewable unless it has a valid
compiled_plan - Prefer Wonder when
detect_stucknessconfidence > 0.5 - Prefer Wonder when the user's request is emotionally-shaped, not parametric
- Load
livepilot-wonderskill for full workflow guidance
Creative Sound Design Knowledge
Before setting device parameters, consult the knowledge corpus for informed creative choices. Read the relevant file BEFORE making changes:
| User says | Read this file |
|---|---|
| "make it breathe" / "organic" / "alive" / "warm" / "cold" / "anxious" / "nostalgic" | references/device-knowledge/creative-thinking.md — emotional-to-technical mapping, physical world modeling |
| "what effect chain for [genre]" / "dub techno" / "trap" / "SOPHIE" / "Arca" / "ambient" | references/device-knowledge/chains-genre.md — complete chains per genre |
| "how to use Wavetable/Drift/Analog/Operator/Meld" | references/device-knowledge/instruments-synths.md — parameter-level recipes |
| "distortion" / "saturation" / "Roar" / "Saturator" / "Redux" | references/device-knowledge/effects-distortion.md — every curve type, creative applications |
| "reverb" / "delay" / "echo" / "space" / "dub" | references/device-knowledge/effects-space.md — dub recipes, shimmer chains |
| "spectral" / "Resonators" / "Corpus" / "Vocoder" / "weird" / "experimental" | references/device-knowledge/effects-spectral.md — drum-to-melody, cross-synthesis |
| "automate" / "evolve" / "arc" / "movement" / "filter sweep" | references/device-knowledge/automation-as-music.md — shapes, macro gestures, density mapping |
| "sound design" / "make it interesting" / "more complex" | references/sound-design-deep.md — master techniques from Villalobos, SOPHIE, Basic Channel |
Rule: Never set effect parameters from memory alone when the corpus has specific guidance. Read the file first, then apply the technique.
Domain Skills
For domain-specific workflows, load the appropriate skill:
| Skill | When to use |
|---|---|
livepilot-devices | Loading, browsing, configuring devices and presets |
livepilot-notes | Writing notes, theory, generative algorithms, MIDI I/O |
livepilot-mixing | Volume, pan, sends, routing, automation |
livepilot-arrangement | Song structure, scenes, arrangement view |
V2 Engine Skills
For agentic evaluation loops, load the appropriate engine skill:
| Skill | When to use |
|---|---|
livepilot-mix-engine | Critic-driven mix analysis and iterative improvement |
livepilot-sound-design-engine | Critic-driven patch analysis and refinement |
livepilot-composition-engine | Section analysis, transitions, motifs, form |
livepilot-performance-engine | Live performance with safety constraints |
livepilot-evaluation | Universal before/after evaluation loop |
Reference Corpus
Deep production knowledge in references/:
| File | Content |
|---|---|
references/overview.md | All 403 tools with params and ranges |
references/device-atlas/ | 280+ device corpus with URIs and presets |
references/midi-recipes.md | Drum patterns, chord voicings, humanization |
references/sound-design.md | Synth recipes, device chain patterns |
references/mixing-patterns.md | Gain staging, compression, EQ, stereo |
references/automation-atlas.md | 16 curve types, 15 recipes, spectral mapping |
references/ableton-workflow-patterns.md | Session/arrangement workflows |
references/memory-guide.md | Technique memory usage and quality templates |
references/m4l-devices.md | M4L bridge command reference |
V2 Orchestration Layer
For complex requests, use the V2 orchestration flow instead of ad-hoc tool calls. There are two peer flows — choose based on intent:
Flow A — Targeted (recipe-first, for specific fixes)
Use when the user has a concrete, specific request ("tighten the low end", "make the drums punchier", "fix the masking").
route_request— classify the request, get recommended engines and workflow modeget_session_kernel— build the unified turn snapshotpropose_next_best_move— get ranked semantic move suggestions (taste-aware)preview_semantic_move— see what a move will do before committingapply_semantic_move— compile and execute the move- Evaluate — use the appropriate evaluator to check the result
Flow B — Exploratory (branch-native, for creative search)
Use when the user wants options, variants, or is stuck ("surprise me", "try some things", "I don't know what I want", "make it more like X"). Flow B is also correct when route_request returns workflow_mode="creative_search".
get_session_kernel— include creative controls when relevant:freshness=0.8to bias toward surprise (default 0.5)creativity_profile="alchemist"/"surgeon"/"sculptor"to set producer philosophysacred_elements=[...]if the user named protected partssynth_hints={"track_indices": [...], "preferred_devices": [...]}for synth work
create_experimentwith seeds, not just move_ids:- Each seed is a
BranchSeeddict (or let Wonder emit them for you) - Seeds with source
"semantic_move"compile via the registry at run time - Seeds with source
"freeform" / "synthesis" / "composer" / "technique"must arrive with a pre-compiled plan attached via the parallelcompiled_plans=[...]list
- Each seed is a
run_experiment— trials each branch; respects pre-compiled planscompare_experiments— rank by scorecommit_experiment— apply winner; ordiscard_experimentto throw everything away
Rule of thumb: if the user asked for a specific fix, Flow A. If they asked "what would you do?" or mentioned feel/vibe without parameters, Flow B.
Semantic Moves
High-level musical intents that compile to deterministic tool sequences. 5 families:
- mix —
tighten_low_end,widen_stereo,make_punchier,darken_without_losing_width,reduce_repetition_fatigue,make_kick_bass_lock,reduce_foreground_competition - arrangement —
create_buildup_tension,smooth_scene_handoff,increase_contrast_before_payoff,refresh_repeated_section - transition —
increase_forward_motion,open_chorus,create_breakdown,bridge_sections - sound_design —
add_warmth,add_texture,shape_transients,add_space - performance —
recover_energy,decompress_tension,safe_spotlight,emergency_simplify
Use list_semantic_moves(domain="mix") to discover available moves.
Experiment Branching — Seed-Based (canonical, PR3+)
Experiments support both the legacy move_ids path and the new seeds path. Prefer seeds for anything exploratory:
# Legacy / targeted — one semantic_move per branch:
create_experiment(request_text="make it punchier", move_ids=["make_punchier", "widen_stereo"])
# Branch-native / exploratory — mixed sources, pre-compiled plans allowed:
create_experiment(
request_text="surprise me",
seeds=[
{"seed_id": "a", "source": "semantic_move", "move_id": "make_punchier",
"novelty_label": "safe", "risk_label": "low"},
{"seed_id": "b", "source": "freeform", "hypothesis": "Audio-rate LFO into filter cutoff",
"novelty_label": "unexpected", "risk_label": "medium"},
{"seed_id": "c", "source": "synthesis", "hypothesis": "Wavetable morph across positions",
"novelty_label": "strong"},
],
compiled_plans=[None, {"steps": [...], "step_count": N}, {"steps": [...], "step_count": M}],
)
Never claim a branch is previewable unless it has a valid compiled_plan. Analytical-only branches (no plan, or seed marked analytical_only=true) short-circuit to a neutral evaluation — they're directional suggestions, not executable paths.
Branch Status Vocabulary
Branches carry a status string that governs lifecycle:
pending— created, not yet runrunning— apply pass in progressevaluated— ran and was scored; may be kept or discardedcommitted/committed_with_errors— winner was applied permanentlydiscarded— rolled back or abandonedinteresting_but_failed— (PR7+) failed hard technical gates but surfaced novel ideas; kept for audit, not re-appliedfailed— couldn't apply any steps; do not claim success
Taste-Aware Ranking
The system learns user preferences from kept/undone moves:
get_taste_graph()— current taste modelexplain_taste_inference()— human-readable explanationrank_moves_by_taste(move_specs)— sort options by preference fitpropose_next_best_moveautomatically applies taste ranking when evidence exists
Musical Intelligence
Song-level analysis beyond parameters:
detect_repetition_fatigue()— clip overuse, section stalenessdetect_role_conflicts()— tracks fighting for the same spaceinfer_section_purposes()— label sections as setup/tension/payoff/contrast/releasescore_emotional_arc()— does the song have a satisfying build→climax→resolve?analyze_phrase_arc()— capture and evaluate musical phrasescompare_phrase_renders()— compare phrase variants side by side