# How to use Codex to build a card-controlled music player

An author worked with Codex on a card-controlled phone music player, supplying a depth-camera idea that resolved a conflict between NFC scanning and a blank playback screen.

Agent: Codex
Tools: Codex, Phone NFC, Phone depth camera
Category: Hardware
Date: 2026-10-02

Outcome: The author reports a working player that starts and resumes music when cards are placed on the phone and stops playback when a card is removed.

## Steps

1. Research the interface and technology stack, then write a detailed Codex brief.
2. Iterate with Codex for about two hours on the player.
3. Propose depth-camera detection to control when the NFC scanning interface returns.
4. Implement the reported card placement, removal and playback-resume behavior.

Human oversight: The author researched feasibility, specified the interface and intervened when Codex could not resolve the NFC behavior.

Source: [jonplackett on Hacker News](https://news.ycombinator.com/item?id=49933568)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-build-a-card-controlled-music-player/
