Build Your Own Player with AI — Create a Custom Interface with Claude Code and Codex
Introduction
“Make the buttons a little bigger, and the album cover bigger too—but the window smaller. Oh, and could it spin like a turntable?” Tastes in players are every bit as varied as tastes in music. While working through these exacting yet much-appreciated requests one by one, the developer had a thought: “What if people could make the screen they wanted themselves?” So we changed our approach. Tell AI what you have in mind, and build a player screen to suit your own taste. In this rapidly changing world of AI, it may sound like a developer’s declaration of surrender, but at least it has a respectable name: MyPlayer.
MyPlayer is a player interface built with real programming languages. Create a folder and add the player code, and Pine Player/Pro lists it by its folder name under Window › MyPlayer. The app handles playback, playlists, album artwork, lyrics, and the spectrum; MyPlayer decides how to show them.
Add a coding agent such as Claude Code or OpenAI Codex, and things become almost absurdly easy. Say “a player that spins like an LP turntable” or “a wall of album covers,” and the agent writes, checks, and fixes the files. This guide walks you through the process from start to finish.

One player, many styles: a turntable, a music library, an audio analyzer, and a music server interface.
What you need
Item | Details |
|---|---|
Pine Player Pro | Adding custom MyPlayers and using MyPlayer settings require the Pro edition. Enable custom MyPlayers under Settings › Program Settings. |
A coding agent | Either Claude Code or OpenAI Codex. Use a terminal app or a desktop app that lets you choose a working folder. |
Python 3 | Needed for the validation and packaging scripts. If python3 runs in your Mac’s terminal, you are ready. No additional Python packages are required. |
It bears repeating: in the age of AI, you do not need to know a programming language. If you do, you may simply need to practice resisting the entirely unnecessary urge to edit the agent’s code yourself.
Inside the MyPlayer folder
Each time Pine Player Pro starts, it places an AI authoring kit in ~/Music/PinePlayerPro/MyPlayer. Open that folder as your working folder so the agent can use its instructions. Choose Window › MyPlayer › Open MyPlayer Folder to open it directly in Finder.
MyPlayer/
├── CLAUDE.md
├── AGENTS.md
└─── .claude/skills/pine-myplayer/
├── SKILL.md
├── reference/
└── scripts/
├── check_myplayer.py
└── pack_myplayer.py
CLAUDE.md · AGENTS.md: Short instructions explaining that this is the MyPlayer folder and that the agent should read SKILL.md before creating anything. You may edit them; once you do, the app stops overwriting them.
The pine-myplayer skill: The agent’s manual. It covers the workflow, manifest format, <pine-…> components, app integration API, permissions, sandbox rules, and final checklist.
reference/: Includes the authoring guide, pine.d.ts, pine.css, and complete example code for built-in players such as Standard, Gallery, Vinyl, and Rhythm.
scripts/: check_myplayer.py validates a player using the same rules as the app; pack_myplayer.py creates a .myplayer package.
The app rewrites the .claude/ folder when it updates. Do not edit the files inside it.
Your first MyPlayer — Claude Code
For this example, we will make a small player with sunset colors.
1. Start in the MyPlayer folder
Run these commands in the terminal.
cd ~/Music/PinePlayerPro/MyPlayer
claudeIf you use a desktop app, open this folder as the working folder. Ask the agent to read CLAUDE.md and the pine-myplayer skill before starting.
2. Describe the player you want
Make a small player with an orange-to-purple gradient background, like an evening sunset. Put large album artwork in the center, the track title and playback buttons below it, and a spectrum at the bottom. Name the folder Sunset.
3. Watch the agent build it
It uses the built-in player examples as a reference, creates a Sunset/ folder, and adds a unique id (user.sunset) and only the necessary permissions to manifest.json.
It writes the screen’s appearance and behavior using programming languages.
It runs check_myplayer.py and fixes issues until there are no ERROR results.
If it asks for permission to create files or run commands, review the request before approving it.
4. Open it in the app
Sunset appears under Window › MyPlayer. Select it to open a window with your new interface.
5. Enable development mode
Turn on MyPlayer Development Mode in the same menu. The window reloads whenever the agent saves a file. You can also right-click to inspect elements.
6. Refine what you see
Simply describe what needs changing: “The title is too small,” “I can’t read the text in dark mode,” or “Replace the spectrum bars with a curve.”
In development mode, console output and errors are written to ~/Music/PinePlayerPro/pineplayerpro.log with the prefix [myplayer <id>]. If something goes wrong, ask the agent to check the log and find the cause.
The result made with Claude Code

Building with Codex
Codex works in the same folder and follows the same process. The initial instruction file differs, but the authoring kit is the same.
cd ~/Music/PinePlayerPro/MyPlayer
codexFollowing AGENTS.md, Codex refers to .claude/skills/pine-myplayer/SKILL.md. It uses the same authoring rules, validation and packaging scripts, and examples as Claude Code.
Item | Claude Code | Codex |
|---|---|---|
Start command | claude | codex |
Instructions | CLAUDE.md and the pine-myplayer skill | AGENTS.md → SKILL.md |
Validation and packaging | Shared scripts | Shared scripts |
Tip: Add “Read AGENTS.md and SKILL.md before you start” to your first request to make your intent clear. You can also alternate between the two agents: ask one to modify a folder the other created, using the same authoring kit.
The result made with Codex

Writing a useful prompt
A good prompt describes three things: mood, layout, and features. The agent can fill in the rest from the skill.
Mood: Colors, materials, or objects to take inspiration from. “A wooden stereo from the 1970s,” “neon signs,” or “a printed magazine.”
Layout: What goes where. “A playlist on the left, large album artwork on the right.”
Features: Information and controls to include, such as lyrics, a spectrum, VU meters, or library browsing.
You do not have to specify everything at once. Start small and add one thing at a time.
What to make | Example prompt |
|---|---|
Change the colors | Make a MyPlayer based on the standard player with pink accents. Make it work well in dark mode too. |
Change the layout | Put a playlist on the left and large album artwork and playback buttons on the right. Make the window title bar transparent. |
Lyrics | Add lyrics at the bottom, with the current line filling in like karaoke subtitles. |
Visualization | A player with two analog VU meters and moving needles. |
Library | Arrange album covers in a grid and play an album when I click it. Let me browse by artist and genre. |
Settings | Let me change the accent color and text size in MyPlayer settings. |
You can also start from an existing player. Ask for something like “a turntable like the Vinyl example, but with a nighttime background,” and the agent can refer to the examples in reference/.
What MyPlayer can do
MyPlayer offers three levels of customization. Ask the agent to use the simplest approach that meets your request.
Theme only: manifest.json + theme.css. Change the standard player’s colors, corners, and similar details.
Components: Arrange ready-made parts such as <pine-artwork>, <pine-transport>, and <pine-tracklist> using programming languages. No separate script is needed.
Scripts: Draw and animate directly through the Pine API. Turntable tonearms, VU needles, and cover-flow interfaces belong here.
Features and permissions
MyPlayer can use only the permissions listed in manifest.json. Most do not require a separate consent prompt; file paths and network access do.
Permission | What it allows | User consent |
|---|---|---|
playback | Play, pause, seek, volume, repeat, and shuffle | No separate prompt |
library | Playlists, track lists, and the library (smart lists, artists, albums, genres, and ratings) | No separate prompt |
artwork | Artwork for the current track and individual tracks | No separate prompt |
audio | Level meters, spectrum, and EQ presets | No separate prompt |
lyrics | Lyrics and the current line of synchronized lyrics | No separate prompt |
library.paths | Actual file paths and browsing folders on disk | Required |
network | Access to specified web addresses | Required for each address |
Limitations to know
Keep the fonts, images, and libraries your interface needs inside the MyPlayer folder. You cannot load CDN resources, Google Fonts, or external web images as you would on an ordinary web page.
If the page does not connect to the app within five seconds, the app falls back to the Standard player. Development mode shows the problem instead of falling back.
Interface text can be translated into the app’s nine languages. Ask the agent to include Korean and Japanese translations, for example.
Refining and sharing
You can reopen the agent in the same folder at any time and continue with requests such as “Add a lyrics panel to the Sunset player.”
Before you finish
□ check_myplayer.py passes with no ERROR results.
□ Text is readable in both light and dark modes.
□ The layout holds up at the smallest window size, and long titles are shortened with an ellipsis (…).
□ If the title bar is transparent, dragging the top of the window moves it.
□ No unused permissions are requested.
Ask the agent to go through the checklist. Also check the appearance and behavior in the actual app.
Sharing a .myplayer package
Ask the agent to package the player for sharing. It runs this command:
python3 .claude/skills/pine-myplayer/scripts/pack_myplayer.py "Sunset"A file named Sunset-1.0.0.myplayer appears beside the folder. You can also create it from MyPlayer › Export MyPlayer… in the app.
Recipients can double-click the file or use Install MyPlayer…. The installer displays the permissions the player uses.
When sharing a revised version, increase version in manifest.json. A higher version with the same id updates the installed player while preserving user settings and permission approvals.
Package limits: 2,000 files, 32 MB per file, and 64 MB in total.
Security: what protects you, and what to watch for
MyPlayer is treated as untrusted code. Whether you wrote it or received it from someone else, the app runs it within the same restrictions. Coding agents, however, work on your Mac outside MyPlayer’s runtime, so they need separate consideration.
How the app restricts MyPlayer
Inside its own folder: MyPlayer opens through a dedicated address (myplayer://), not file://. It cannot read files outside its folder, traverse ../ paths, or follow symbolic links. Navigation to other pages is blocked too.
Internet access is blocked by default: Only addresses listed under network in manifest.json and approved by the user are accessible. The consent dialog explains that track information may be sent to that address.
Stricter rules with network access: A MyPlayer allowed to connect to the internet can execute code only from .js files in its folder. Inline scripts, inline event handlers such as onclick, and eval are blocked to reduce the risk of external content being executed as code.
App communication goes through the Pine API: Only commands covered by permissions in manifest.json are available. Unauthorized commands return permission denied. Commands beyond the limit of 200 per second are rejected as well.
File paths require consent: Basic permissions expose track titles and lists, but hide actual file paths. Path access and folder browsing (library.paths) require approval. When you drag files in from Finder, the app handles them without exposing their paths to the page.
Installing someone else’s .myplayer
The app checks each package entry in a temporary folder. It refuses installation if it finds paths pointing outside the folder, links, encrypted entries, or an uncompressed size exceeding the limits.
CLAUDE.md, AGENTS.md, GEMINI.md, and hidden folders such as .claude are discarded from packages. This reduces the risk of someone embedding instructions aimed at your coding agent.
Review the permissions in the installer. If a request for network access or file paths has no clear reason, hold off on installing.
Built-in player IDs (com.digipine.*) cannot be overwritten. However, a higher version with the same id replaces an installed custom MyPlayer, so install updates only from sources you trust.
Using coding agents
The app’s restrictions apply to the MyPlayer page. The files Claude Code or Codex can read and write, and the commands they can run, depend on the agent’s permissions and runtime settings.
Always choose the MyPlayer folder as the working folder. This helps the agent find the authoring kit and keeps the task scope clear. Choosing a working folder alone does not completely block access to other folders.
Read permission dialogs before approving them. Typical MyPlayer work involves writing files inside the player folder, running Python validation and packaging scripts, and reading logs. If the agent requests sudo, rm -rf, changes to other folders, npm install, or pip install, check why it is necessary.
Avoid settings that skip all permission checks. Keep approval controls enabled so you can review which files the agent accesses and which commands it runs.
When editing someone else’s MyPlayer, remember that comments or file contents may contain instructions aimed at the agent. If it starts doing something you did not request, stop and check.
Do not include private account information or passwords in prompts. What the agent needs is a description of the screen. Prompts and files it reads may contain information sent to the service, so review that service’s data-handling settings too.
When connecting a web service, check what will be sent. Features requiring network access, such as fetching lyrics online, may send track information to an external address depending on the implementation. Anyone receiving your package can read API keys stored in its files, so do not include them in a MyPlayer you share.
Before sharing
□ manifest.json lists only permissions actually used.
□ Files contain no API keys, personal paths, email addresses, or other private information.
□ You can explain why every network address is needed.
Troubleshooting
Symptom | What to check |
|---|---|
My MyPlayer is missing from the menu | Check that custom MyPlayers are enabled under Settings › Program Settings and that the player folder sits directly inside MyPlayer. |
The menu item is dimmed | The app could not read the folder. Hover over the item and tell the agent the reason shown. |
The Standard player opens instead | The page could not connect to the app. Enable development mode and reopen it to see the problem. |
Clicking a button does nothing | Check for missing permissions. Development mode displays rejected commands in a corner of the window. |
I cannot drag the window | If the title bar is transparent or hidden, ask the agent to make the top of the window draggable. |
Fonts or images are missing | Check whether the code references an external web address and whether paths to files inside the folder are correct. |
The agent edits the wrong folder | Check that you started in the MyPlayer folder and name the specific player folder in your request. |
If you cannot find the cause, enable development mode and ask the agent to investigate the log. Its console output and errors can help narrow down the problem.
Final thoughts
Open the MyPlayer folder, start your agent, and describe the player you want. The skills and validation tools supplied by the app help you build an interface of your own.
Share your creation with others as a .myplayer package. If you have made a one-of-a-kind player, show it off!



Comments