fixter-dev/flappy-code
flappy
Flappy Code: Claude가 작업하는 동안 패널에서 마스코트를 조종해 diff 헝크 사이를 통과하는 게임입니다.
이 mod 소개
Flappy Code는 Claude Code용 모드로, Claude가 생각하는 동안 /flappy 명령으로 터미널 패널에서 즐길 수 있습니다. 플레이어는 Claude 마스코트를 조종해 빨간색 삭제 줄과 초록색 추가 줄 사이의 틈을 통과합니다. diff 블록에 부딪히면 MERGE CONFLICT가, 바닥에 떨어지면 CORE DUMPED가 표시됩니다. Space/Enter로 점프하고, 화면을 클릭해도 점프하며, Esc로 끝낼 수 있습니다. 최고 점수가 저장되고, 터미널 너비에 따라 레이아웃이 자동으로 조정됩니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add fixter-dev/flappy-code claude plugin install flappy@flappy-code
원문 / README
Get it
claude plugin marketplace add fixter-dev/flappy-code
claude plugin install flappy@flappy-code
Then type /flappy and start jumping.
Just want a quick look? Run it straight from a clone instead:
git clone https://github.com/fixter-dev/flappy-code.git
claude --plugin-dir ./flappy-code
Flappy Code is a Claude Code mod. Mods are still early access, so you need a build of Claude Code that has them switched on.
How to play
- Space jumps. So do Enter and any letter key.
- Click the game to jump too. A click also hands the game your keyboard directly, which makes it feel noticeably snappier.
- Esc quits. Press it twice if you clicked the game first.
Slip through the gap between the red removed lines and the green added lines. Clip a hunk and you
get a MERGE CONFLICT. Hit the floor and it's CORE DUMPED.
Why you'll like it
- It doesn't wait for Claude.
/flappyopens right away, even in the middle of a turn. - It knows when you're bored. After a minute of thinking, a small line above the prompt asks
if you fancy a round. Press
1to play or2to wave it off. Prefer it to just open by itself, or to stay quiet? Set When Claude thinks for a minute toopenoroffin/config. - It remembers your best score between sessions.
/flappy resetstarts you over. - It fits your terminal. Wide terminals get a tall side pane; drag its edge for a wider playfield. Narrow ones get a shorter game above the prompt, with the gap and the jump scaled to match.
- It has a plan B outside the terminal. Where the game's drawing code can't run, such as the desktop app, it draws every frame as a picture instead. That mode is experimental and a little slower, but it is the same game.
Under the hood
The game is split into small files:
hooks/physics.tsis the game itself: gravity, jumps, hunks, collisions and scoring, written as pure functions.hooks/scene.tspaints a game state: two pixels into every character cell, using half blocks.hooks/game.tsxruns the game on Claude Code's drawing thread in the terminal.hooks/picture.tsturns the same scene into an SVG for surfaces that can't run the drawing code.hooks/register.tsxwires it into Claude Code: the/flappycommand, the pane, the nudge above the prompt and the saved best score.
Hacking on it
claude plugin validate . # check the manifest and the hooks
claude plugin test . # run the tests
If the game doesn't show up somewhere, /flappy debug reports, for each surface, how big the pane is
and whether the drawing code is running there.
Pull requests and silly ideas are welcome.
License
MIT. Flappy Code is a fan project and is not affiliated with or endorsed by Anthropic.
배지 받기
내 프로젝트인가요? 이 배지를 README나 웹사이트에 넣으면 이 페이지로 연결됩니다.



