ClaudeMods
☰
KO
● — 명 접속 중 · 조회 — 회
후원프로젝트 제출
GitHub 저장소 · 작성자 delexw

miod

miod은 에이전트가 작업하는 동안 오리지널 MIDI 음악을 즉석에서 만드는 Claude Code 모드입니다. 분위기를 에이전트의 활동(생각, 편집, 테스트, 배포, 실패)에 연결하고, 실시간 상태 줄과 파형 시각화를 보여 줍니다.

번역 완료

이 mod 소개

miod("MIDI + mod")은 Claude가 작업하는 동안 실시간으로 음악을 작곡하는 Claude Code 플러그인입니다. 음악 파일, 라이브러리, AI 모델은 쓰지 않습니다.

  • 각 작업은 고유한 스타일(lo-fi, chiptune, ambient, jazzy 등), 조성, 코드 진행, 템포, 사운드, 테마를 고릅니다.
  • 분위기는 에이전트가 하는 일을 따라가며, 그 분위기에 맞는 가중치 목록에서 음계를 고릅니다. 분위기마다 10가지 변형이 있어 활동이 바뀔 때마다, 그리고 4개 악절마다 돌아가며 쓰입니다.
  • 토큰 소모 속도가 빨라지면 음악의 밀도가 높아집니다. 컨텍스트 창이 차오르면 멜로디가 앞으로 나오고, 80%를 넘으면 낮은 드론이 더해집니다.
  • 프롬프트 위의 상태 줄에는 분위기, 스타일, 조성, 템포, 에너지가 표시되고, 음악과 함께 흘러가는 색상 구분 파형도 있습니다.
  • 작업들은 관련 조성을 따라 이어집니다. 악절이 끝날 때 새 입력이 없으면 마무리 코드가 서서히 사라집니다.

설치 (macOS의 Claude Code 2.1.290 이상 필요):

claude plugin marketplace add delexw/miod
claude plugin install miod@miod

명령: /miod (켜짐/꺼짐 상태), /miod off, /miod on, /miod wave (파형 모양 목록 보기 또는 전환).

사용자 지정은 훅 파일로 합니다. hooks/moods.ts의 MOODS와 MOOD_SCALES, hooks/flavours.ts의 FLAVOURS, hooks/theory.ts의 SCALES와 PROGRESSIONS, hooks/waves/의 파형 모양, hooks/styles.ts의 STYLES입니다. 검증은 claude plugin validate .와 claude plugin test .로 하며, 설치하지 않고 실행하려면 claude --plugin-dir <path>를 씁니다.

제한 사항: macOS에서만 테스트했습니다(오디오는 afplay로 재생). 사운드는 단순한 chiptune 계열이며, 불러온 세션의 소리만 들립니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add delexw/miod
claude plugin install miod@miod
원문 / README
<p align="center"> <img src="docs/miod.png" alt="miod logo: a honey-amber music note with code brackets" width="200"> </p>

miod

[!IMPORTANT] Only tested on macOS. Not sure yet how it behaves on Linux or Windows.

I'm an engineer, but these days I solve the boring problems entirely by vibe coding. Somewhere along the way I felt I had lost the creativity and curiosity I used to have when writing code myself.

So I started thinking about how to make vibe coding fun again. miod is the first try: while the agent does the work, you get to hear it think, read, edit, fail and fix, with a little piece of music no one has heard before.

Feel free to add more moods, flavours and styles. Each mood is one row in hooks/moods.ts, each flavour one row in hooks/flavours.ts, each sound style one entry in hooks/styles.ts, and each wave look one file in hooks/waves/.

Feeling it's a bit too noisy? 🙉 No hard feelings. Just turn it off with /miod off.

What it is

A Claude Code mod (MIDI + mod) that writes music on the spot while Claude works. No music files, no library, no AI model.

  • Every task picks its own flavour (lo-fi, chiptune, ambient, jazzy and 8 more), key, chord progression, tempo, sound and theme.
  • The mood follows what the agent is doing, and the mood picks the scale (16 of them) from its own weighted list: failing leans on minor and harmonic minor, shipping on mixolydian and major. Every mood has 10 variants, and a new variant and scale are picked as the task goes: whenever the activity changes, and every 4 phrases. The task's flavour bends it too, so editing in a lo-fi task sounds nothing like editing in a chiptune one.
  • The faster it spends tokens, the busier the music.
  • Above the prompt, one line shows the mood, flavour, key, tempo and energy, with a wave under it that scrolls with the music, coloured by mood:

miod's status line and moving wave

  • Tasks flow into each other: the next task fades in, in a related key. If no new task comes, a closing chord fades out at the end of the phrase.

Install

Needs Claude Code 2.1.290 or newer, on macOS.

claude plugin marketplace add delexw/miod
claude plugin install miod@miod

Then start a new session.

Usage

/miod        is it on or off?
/miod off    stop the music
/miod on     play again from the next task
/miod wave   list the wave looks: bars, line, mirror, dots, pulse
/miod wave dots   switch the wave to the dots look

How the mood is picked

Each row shows the mood's first variant and its most likely scale. The variants are in MOODS and the scale weights in MOOD_SCALES, both in hooks/moods.ts.

| The agent is… | When it uses… | Sounds | | --- | --- | --- | | thinking | no tool | calm | | reading | Read, Grep, Glob, MCP tools | airy | | exploring | WebSearch, WebFetch | curious (lydian) | | planning | TodoWrite, plan mode | hopeful (major pentatonic) | | asking | AskUserQuestion | waiting, almost silent | | editing | Edit, Write | bright (major) | | running | Bash | driving beat | | installing | npm, bun, pip, brew… install | patient (minor pentatonic) | | testing | test, check, lint, tsc | focused (dorian), busy beat | | shipping | git commit, push, merge, gh pr | triumphant (mixolydian) | | deleting | rm -r, git reset --hard, git clean | ominous (phrygian), low drone | | delegating | Agent | one harmony voice per subagent | | failing | a Bash command that failed | tense (minor), until a command passes |

When several happen in one 8-beat phrase, the one higher in STRONGEST_FIRST (hooks/activity.ts) wins. A filling context window lifts the melody and, past 80%, adds a low drone.

The scales follow how musicians describe each mode (musical-u, Jiang et al. 2024).

Add a mood or style

  • Mood variant: add a row to that mood's list in MOODS in hooks/moods.ts.
  • New mood: add the name to Activity and STRONGEST_FIRST in hooks/activity.ts, map tools or commands to it there, give it a list of at least 10 variants in MOODS and a row of scale weights in MOOD_SCALES.
  • Flavour: add a row to FLAVOURS in hooks/flavours.ts. Each field nudges every mood: brighter or darker scale, busier or calmer, drums up or down, swing, bass line.
  • Scale: add it to SCALES in hooks/theory.ts, then give it a weight in at least one mood's MOOD_SCALES row. A test fails if a scale belongs to no mood.
  • Chords: add to PROGRESSIONS in hooks/theory.ts.
  • Wave look: add a file to hooks/waves/ that exports a WaveLook (how many rows, and a draw function), then list it in WAVES in hooks/waves/index.ts.
  • Style: add a wave function to STYLES in hooks/styles.ts. It must return values between -1 and 1.

Then check it:

claude plugin validate .
claude plugin test .

Run a checkout without installing it with claude --plugin-dir <path to this repo>.

Limitations

  • Only tested on macOS, where Claude Code plays the audio through afplay.
  • The sound is simple chiptune-style tones.
  • miod only hears the session it's loaded in.

배지 받기

내 프로젝트인가요? 이 배지를 README나 웹사이트에 넣으면 이 페이지로 연결됩니다.

Featured on ClaudeMods
크기
테마
Markdown
HTML

비슷한 프로젝트