pi-chinese-motivation

Plays motivational music while Chinese-origin models (DeepSeek, MiMo, Kimi, etc.) are thinking — with dynamic volume ramp and bit-crusher distortion that gets worse the longer the model thinks.

Packages

Package details

extension

Install pi-chinese-motivation from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-chinese-motivation
Package
pi-chinese-motivation
Version
1.0.1
Published
May 28, 2026
Downloads
not available
Author
kauedm
License
MIT
Types
extension
Size
99.6 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ],
  "image": "./image.jpg"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-chinese-motivation

Plays motivational music while Chinese-origin models (DeepSeek, MiMo, MiniMax, Kimi, Qwen, etc.) are thinking — so the longer DeepSeek takes, the more intense the soundtrack gets.

  • Starts as a quiet murmur at 15% volume
  • Ramps up +4% every 1.5 seconds to 75%
  • After ~20 seconds of thinking: 💥 bit-crusher distortion kicks in
  • Distortion worsens from 10-bit → 3-bit (completely blown out)

Stops instantly when the model responds. Only mpv is needed for full modulation; ffplay/vlc work as fallback players with cached audio.

Install

# From npm (once published)
pi install npm:pi-chinese-motivation

# From git
pi install git:github.com/kaueDM/pi-chinese-motivation

# Local development
pi install ./path/to/pi-deepseek-motivation

Usage

Enabled by default for Chinese-origin models. Disable with CLI flag or slash command:

pi --no-motivation-music
Command Effect
/motivation-music Full status
/motivation-music on/off Toggle
/motivation-music cache Pre-download audio to /tmp/pi-motivation-music/
/motivation-music url <url> Change the YouTube soundtrack

Prerequisites

  • mpv — for YouTube streaming + real-time modulation
  • yt-dlp — required by mpv for YouTube; also used for caching
  • Optional: ffplay or cvlc — fallback players for cached files
# Ubuntu/Debian
sudo apt install mpv yt-dlp

# macOS
brew install mpv yt-dlp

# Arch
sudo pacman -S mpv yt-dlp

How it works

agent_start fires
  ├─ mpv starts via IPC socket (--input-ipc-server)
  ├─ Volume ramp: 15% → 75% over ~22s
  ├─ After 20s: lavfi-acrusher activates
  └─ agent_end → killed instantly

The extension hooks into pi's agent_start/agent_end events and only triggers when the active model matches known Chinese AI providers (DeepSeek, Moonshot/Kimi, Alibaba/Qwen, ByteDance/Doubao, Zhipu/GLM, Baidu/ERNIE, Tencent/Hunyuan, Xiaomi/MiMo, MiniMax, StepFun, 01.AI/Yi, Baichuan, SenseTime).

License

MIT