claude-play

watch tv while claude codes.

View on GitHub

demo coming soon

-
stars
-
forks
-
commits

How it works

Claude Code fires hooks on lifecycle events. claude-play listens to those hooks and controls mpv, playing your videos when Claude is working and pausing instantly when you need to respond.

Claude Code
hooks
claude-play
daemon
mpv
video
Claude working    โ†’ video plays
Claude done       โ†’ video keeps playing
Permission needed โ†’ video pauses + hides
You respond       โ†’ video resumes

Works across multiple sessions. Saves your playback position between pauses and restarts. Streams from URLs. No downloads needed.

Get started

  1. Clone and install
    git clone https://github.com/mlekhi/claude-play.git && cd claude-play && bash install.sh
  2. Configure your videos
    Edit ~/.claude-play/config.json with your video URLs or local file path.
  3. Add hooks to Claude Code
    Copy the hooks JSON from the install output into ~/.claude/settings.json.
  4. Run the daemon
    .venv/bin/python claude_play.py