/media-os:media-osc [action]from media-os
Sends and receives Open Sound Control (OSC) 1.0/1.1 packets over UDP from the CLI. Useful for controlling DAWs, visualizers, and live-coding environments from shell scripts or CI jobs.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
Hand-roll OSC 1.0/1.1 packets over UDP from the CLI. No dependencies. For real-time control of SuperCollider, TouchDesigner, Max/MSP, Resolume, QLab, Ableton Link, ReaCoder, or any OSC-speaking app.
send --host 127.0.0.1 --port 7000 /fader/1 --float 0.75)dump --port 7000)ping --host 127.0.0.1 --port 7000 /ping)bundle --host ... --json cues.json)media-midi / media-dmx).An OSC packet is either a Message or a Bundle:
Message := <address:OSC-string> <type-tag:OSC-string> <arg0> <arg1> ...
Bundle := "#bundle\0" <timetag:u64 NTP> <size:i32> <packet> <size:i32> <packet> ...
, then one char per arg (i=int32 f=float32 s=string b=blob, OSC 1.1 adds T=true F=false N=nil I=impulse/infinitum h=int64 d=double t=timetag).<size:i32><bytes><pad>.0x00000000_00000001 = "execute immediately".Address-pattern matching (1.0):
? → single non-/ char* → any run of non-/ chars[abc] / [a-z] / [!abc] → char set{alt1,alt2} → alternatives// → zero or more path segments.uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py send \
--host 127.0.0.1 --port 7000 \
/fader/1 --float 0.75
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py send \
--host 127.0.0.1 --port 7000 \
/trigger --int 1 --string "cue-3"
Mix --int, --float, --string, --true, --false, --nil, --blob-hex. The script builds the type tag from the order of flags.
TCP with SLIP framing (OSC 1.1):
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py send --tcp \
--host 127.0.0.1 --port 7000 /volume --float 0.5
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py dump --port 7000
Pretty-prints each received packet. Recurses into bundles. Ctrl-C to stop.
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py ping --host 192.168.1.50 --port 7000 /ping
Sends, waits 500 ms, reports whether any reply was received on the same socket (for apps that mirror).
cat > cues.json <<'JSON'
{
"timetag": "+0.5",
"messages": [
{"address": "/fader/1", "args": [{"type": "f", "value": 0.25}]},
{"address": "/cue/go", "args": [{"type": "i", "value": 3}]}
]
}
JSON
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py bundle \
--host 127.0.0.1 --port 7000 --json cues.json
timetag:
"now" or "immediate" → special 0x00000000_00000001."+0.5" → 500 ms from now.1234567890.25 → absolute Unix float timestamp (will be converted to NTP).opensoundcontrol.org — that domain is dead. Use opensoundcontrol.stanford.edu/spec-1_0.html and spec-1_1.html (hosted by CCRMA, Stanford)./foo becomes 2f 66 6f 6f 00 00 00 00 (5 bytes of content, pad to 8). Parsers that forget the pad misalign all subsequent args.,, not ,, or nothing. An empty-arg message is , + 3 zero pad = 4 bytes total type-tag chunk.ntp = unix + 2208988800.0xC0, ESC 0xDB, escape END→DB DC, ESC→DB DD). Apps disagree; check docs. Our helper defaults to length-prefix for TCP./Fader/1 ≠ /fader/1.oscchief is dormant and many distros don't package it. Use oscsend/oscdump from liblo (brew install liblo, apt install liblo-tools).from pythonosc.udp_client import SimpleUDPClient). pyOSC is abandoned — don't use it.,i means ONE int arg, ,ii means two ints, ,if means int-then-float. Get the order wrong and everything after drifts.uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py send \
--host 127.0.0.1 --port 11000 /live/play
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py send \
--host 127.0.0.1 --port 57110 /s_new --string "default" --int -1 --int 0 --int 0
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py send \
--host 192.168.1.20 --port 10000 /ch1/vol --float 0.6
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py send \
--host 127.0.0.1 --port 7000 /composition/layers/1/clips/1/connect --int 1
uv run ${CLAUDE_SKILL_DIR}/scripts/oscctl.py send \
--host 127.0.0.1 --port 7000 /fader/1 --float 0.75 --dry-run
references/osc-types.md — full type-tag table, address-pattern grammar, SLIP escaping, NTP timetag math.oscsend / oscdump from liblo — brew install liblo or apt install liblo-tools.sendosc (Go) — single binary, no deps.oscli (Python) — pip installable.python-osc for programmatic use.Cause: Wrong port, firewall, or sending to 127.0.0.1 instead of 0.0.0.0/LAN IP.
Solution: tcpdump -i any -nn udp port 7000 to confirm packets on the wire. Fix firewall or bind address.
Cause: Type tag order doesn't match arg order, or missing leading ,.
Solution: Use --dry-run --verbose to print the exact bytes. Rebuild with args in declared order.
Cause: Some apps reject bundles with past timetags.
Solution: Use "now" for immediate, or "+0.1" for a tiny future delay.
Cause: Receiver expects SLIP but we send length-prefix (or vice versa).
Solution: Most apps accept either; check docs. --tcp-framing slip forces SLIP.
Cause: Path changed.
Solution: Canonical pages are https://opensoundcontrol.stanford.edu/spec-1_0.html and spec-1_1.html. If those 404, try https://ccrma.stanford.edu/groups/osc/.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
osc, open-sound-control, audio-protocol, show-control, live-coding
npx claudepluginhub damionrashford/media-os --plugin media-os110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
/audio-pipewireRoute and introspect Linux audio/video/MIDI graphs with PipeWire: pw-cli (interactive object/module control), pw-dump (full graph JSON with --monitor), pw-link (list/create/destroy port links), pw-cat / pw-play / pw-record (playback+record), pw-top (real-time DSP load + xrun viewer), pw-metadata (shared metadata store), pw-loopback (source/sink bridges), pw-midiplay/pw-midirecord, pw-jack (JACK client compat shim), pw-mon, pw-profiler. WirePlumber session manager handles routing/defaults/profiles. Replaces PulseAudio (via pipewire-pulse) and JACK (via libjack.so shim) simultaneously. Use when the user asks to route Linux audio, link two apps, list audio devices on Linux, create a loopback, record system audio, monitor the audio graph, or set up a virtual audio device on modern Linux.
/audio-wasapiManipulate Windows audio via WASAPI (learn.microsoft.com/coreaudio): SoundVolumeView + svcl.exe (NirSoft — set default device, per-app volumes, save/load profiles), AudioDeviceCmdlets PowerShell module (Get-AudioDevice, Set-AudioDevice, Get-AudioDevicePlaybackMute), nircmd setdefaultsounddevice. Shared mode (Windows engine resamples all streams to endpoint fixed format) vs Exclusive mode (bit-perfect, audiophile, ~sub-3ms latency with IAudioClient3 + event-driven callbacks). WASAPI then MMDevice then Audio Engine (audiodg.exe) then WDM/KS. ASIO is Steinberg's parallel stack bypassing Windows audio. Virtual audio devices: VB-Audio Virtual Cable, VoiceMeeter/Banana/Potato. Use when the user asks to change Windows default audio device, route app audio, use VoiceMeeter, install VB-Cable, set a specific device from PowerShell, or enable exclusive-mode low-latency output.
/cv-mediapipeGoogle MediaPipe Tasks API (current supported, NOT legacy mediapipe.solutions): Vision Tasks (Face Detector, Face Landmarker, Face Stylizer, Hand Landmarker, Gesture Recognizer, Pose Landmarker, Holistic Landmarker, Object Detector, Image Classifier, Image Segmenter, Interactive Segmenter, Image Embedder, Image Generator), Audio Tasks (Audio Classifier), Text Tasks (Text Classifier, Text Embedder, Language Detector), GenAI Tasks (LLM Inference — on-device Gemma/Phi-2/Falcon/StableLM). Three run modes: IMAGE, VIDEO, LIVE_STREAM (async). Python: mediapipe.tasks.python.vision/audio/text/genai. Docs at ai.google.dev/edge/mediapipe/solutions. Model Maker for transfer learning. Use when the user asks to detect pose/face/hand landmarks, classify an image, run a body-pose model, segment people, recognize gestures, do on-device LLM inference via MediaPipe, or build a mobile/embedded CV pipeline.
/cv-opencvComputer vision on images + video with OpenCV (docs.opencv.org/4.x/): core (Mat / ndarray, linalg), imgproc (filtering, morphology, geometric transforms, color conv, histograms, contours), imgcodecs (imread/imwrite — PNG, JPEG, TIFF, WebP, EXR), videoio (VideoCapture / VideoWriter — FFMPEG, GStreamer, V4L2, AVFoundation, MSMF backends), calib3d (camera calibration, stereo, solvePnP, homography), features2d (ORB, AKAZE, BRISK, KAZE, SIFT), objdetect (FaceDetectorYN, FaceRecognizerSF, HOG, ArUco, QRCode), dnn (ONNX/TF/Caffe/Darknet, CUDA + OpenVINO + Vulkan backends, model zoo at github.com/opencv/opencv_zoo), photo (inpainting, denoising, HDR Debevec/Robertson), stitching (panorama), video (optical flow Farneback/LK/DIS, BackgroundSubtractorMOG2/KNN, tracking KCF/CSRT/MIL/Nano/Vit/DaSiamRPN). Python-first via cv2. Use when the user asks to detect faces, track objects, run YOLO inference, capture + process webcam frames, calibrate a camera, stitch a panorama, or use OpenCV from Python/C++.
Other plugins' skills for the same job