Build a Bluetooth podcast-light controller and Mac app with Codex
I had a Bluetooth light bulb nearby and asked Codex to connect to it. It first tried macOS Bluetooth settings, then scanned for Bluetooth Low Energy devices directly when the bulb did not appear. That found a Bluetooth Mesh device the normal settings screen could not pair.
Codex used Nordic’s Bluetooth Mesh tooling, wrote a local controller, and worked through a compatibility issue in the bulb’s responses. It provisioned the bulb and sent real color commands. I then asked for a podcast lighting console, and it built scenes, brightness and color sliders, a looping palette, and stop controls around the working connection.
I later asked to take it out of the browser. Codex packaged the Bluetooth helper inside a native SwiftUI menu-bar app with startup and reconnect behavior. After working through the app’s connection setup, it confirmed the bulb was responding from the menu-bar version.
This went from a device I could not see in Bluetooth settings to a control panel I could use while recording. Codex handled the protocol research, controller code, interface, and Mac packaging in the same conversation. I supplied the physical device and kept asking for the next useful version.