XD3an/PachinCode

XD3an/PachinCode

Claude가 긴 답변과 코드를 작성하는 동안 파친코를 플레이합니다.
PachinCode는 Claude Code mod입니다. 터미널에 픽셀 아트 파친코 기계를 놓습니다. Claude가 몇 글자를 쓸 때마다 공 하나가 상皿에 떨어집니다. 홀드 램프가 가득 차면 발사를 멈추고 답변을 읽습니다. 大当たり를 맞으면 右打ち로 바꿔 점수를 올리고, 다음 질문은 確変으로 실행할 수 있습니다.
답변을 따라가는 공, 실제 파친코 물리, 홀드와 止め打ち, LCD 연출, 세 종류의 大当たり, 右打ち와 PachinPoints, 골드 답변, 영속 상태, 합성 사운드 클립 15개를 제공합니다.
요구 사항: Claude Code 2.1.288 이상, 트루컬러 터미널, 플랫폼별 사운드 지원.
플러그인 marketplace로 설치합니다.
/plugin marketplace add xd3an/pachincode
/plugin install pachincode@pachincode
소스에서 설치하려면 git clone https://github.com/XD3an/pachincode.git을 실행한 다음 claude --plugin-dir ./pachincode를 실행합니다. 명령은 /pachinko, /pachinko off, /pachinko mute|unmute, /pachinko stats입니다. MIT 라이선스입니다.
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add XD3an/PachinCode claude plugin install pachincode
Play pachinko while Claude writes your long answers and code.

PachinCode is a Claude Code mod. It puts a pixel-art pachinko machine in your terminal. Every few characters Claude writes drop another ball into your tray (上皿). When the hold lamps fill up, you stop shooting and read the reply. Hit a 大当たり, switch to 右打ち to rack up points, and your next question can run in 確変.
Balls that follow the reply: every prompt loads 30 balls, and every 4 characters Claude generates adds one more.
Real pachinko physics: balls climb the launch rail, clear the top and bounce down through brass pins. A shot too weak to clear the rail rolls back (戻り球) and costs nothing.
Holds and 止め打ち: four hold lamps (保留). Once they are full, any ball that goes in is lost, so stop shooting and use the spin to read what Claude just wrote.
LCD performances: the central screen has its own scenes for normal play, 予告 (premonitions), リーチ and 大当たり, plus a day–night cycle and changing weather.
Three kinds of 大当たり:
| Kind | Digits | Rounds | Afterwards | |---|---|---|---| | プレミアム | 7-7-7 | 10 | 確変 | | 確変大当たり | odd | 8 | 確変 | | 通常大当たり | even | 5 | back to normal |
Overall jackpot odds are 1/99, ten times better during 確変 (1/9.9).
右打ち and PachinPoints: during a 大当たり the attacker (大入賞口) opens. Every ball you shoot right into it earns 15 points. Shooting right at any other time does nothing, and the machine tells you to go back to 左打ち.
Gold replies: any reply Claude writes during a 大当たり gets a gold frame and a rainbow banner that stay with it for good.
Persistent state: PachinPoints, 確変 and gold replies carry over between sessions.
Sound: 15 synthesized WAV clips for launches, pins, spins, リーチ, 大当たり and more.
/plugin marketplace add xd3an/pachincode
/plugin install pachincode@pachincode
Restart Claude Code. The machine opens after your first prompt, or with /pachinko.
git clone https://github.com/XD3an/pachincode.git
claude --plugin-dir ./pachincode
Loaded this way, Claude Code watches the folder and reloads the plugin whenever you save.
| Action | How |
|---|---|
| Shoot | Hold the left mouse button on the machine, or click the machine once and press Space (tap for one ball, hold for continuous fire) |
| Power | ← →, or the 「力−」「力+」 buttons |
| 左打ち / 右打ち | L (30%) / R (95%) |
| Auto-fire on/off | S |
If your terminal does not report mouse clicks:
ctrl+x then tab in the prompt to hand the keyboard to the machine pane.S, F (shoot), A, D, L, R, or click the buttons below the machine.Esc to give the keyboard back to the prompt.| Command | What it does |
|---|---|
| /pachinko or /pachinko on | Open the machine |
| /pachinko off | Close the machine |
| /pachinko mute / unmute | Turn sound off / on |
| /pachinko stats | Show PachinPoints, balls fired and jackpots hit |
# Check the manifest and the hooks module
claude plugin validate .
# Type-check (.claude-plugin/types is written by Claude Code when it loads the plugin)
npx -p typescript tsc -p .
# Run the tests
claude plugin test .
node tools/make-sounds.mjs # all clips
node tools/make-sounds.mjs pin warn # only the clips you name
On Windows the running player keeps the loaded WAV files open. Close the machine or quit Claude Code before overwriting them.
npx esbuild hooks/game/index.ts --bundle --format=esm --outfile=/tmp/machine.mjs
MACHINE=file:///tmp/machine.mjs node tools/preview.mjs ./out 70 36
Issues and pull requests are welcome. Please run claude plugin validate . and claude plugin test . before opening a PR.