zulfikar-ditya/claude-mods-oyen
oyen
一只住在 Claude Code 提示符上方的橙色像素猫,会对提交、测试、构建和 todo tick 做出反应,并持续保留心情与 xp。
关于这个 mod
Oyen 是一个 Claude Code mod(function hooks 插件),在终端中显示一只橙色像素猫。它会散步、追球,并对仓库事件做出反应:提交时开心并被喂食(+10 xp),提交或测试失败时变得暴躁,测试通过(+5 xp)和 todo.md 项目打勾时欢呼,构建失败时躲进盒子,闲置后睡觉。状态(心情、等级、喂过的提交数、每日连续记录)会在本机持久保存。命令包括 /oyen、/oyen feed、/oyen pet 和 /oyen play。设置(enabled、language、walk、sound、idleMinutes、minColumns)可通过 /config 或 ~/.claude/settings.json 配置。需要 Claude Code 2.1.287+。使用 /plugin marketplace add 和 /plugin install 安装。MIT 授权。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add zulfikar-ditya/claude-mods-oyen claude plugin install oyen
原文 / README
Oyen
An orange pixel cat that lives above the Claude Code prompt. It strolls back and forth, chases a ball, and reacts to what Claude does in your repo: happy on a commit, grumpy when one fails, cheering when tests pass or a todo.md item gets ticked, hiding in a box when the build breaks, and asleep when you've been away.
Oyen is a Claude Code mod (a plugin of function hooks). Its mood, level, commits fed and daily streak are kept across sessions, on your machine only.
Install
/plugin marketplace add zulfikar-ditya/claude-mods-oyen
/plugin install oyen@oyen
Needs Claude Code 2.1.287 or later. The pixel cat is drawn in the terminal; the desktop app shows an ASCII cat instead.
What it reacts to
| When Claude… | Oyen |
| --- | --- |
| commits | is happy and gets fed (+10 xp) |
| tries a commit that fails or is blocked | is grumpy |
| runs tests that pass | cheers (+5 xp) |
| runs tests that fail | is grumpy |
| runs a build that fails | hides in a box |
| ticks a - [ ] item in todo.md | cheers (+5 xp per item) |
| does nothing for 10 minutes | falls asleep, until your next prompt |
Test and build output is read too, so a failure piped through tail still counts. Only Claude's commands count; your own terminal is left alone.
Commands
/oyen: level, xp, mood, commits fed and streak/oyen feed: a fish/oyen pet: a purr (and a meow, if sound is on)/oyen play: a game of chasing the ball
Settings
In /config under oyen, or in ~/.claude/settings.json under pluginConfigs.oyen.options:
| Setting | Default | |
| --- | --- | --- |
| enabled | true | Show the cat |
| language | en | en, ms, id, zh-Hans, zh-Hant or ja |
| walk | true | Stroll and play while idle |
| sound | false | Meow on level-up and on /oyen pet |
| idleMinutes | 10 | Minutes before it falls asleep |
| minColumns | 60 | Hidden on terminals narrower than this |
Turning it off
- Hide the cat: set
enabledtofalse. It still keeps count. - Keep it still or quiet: set
walkorsoundtofalse. - Remove it:
/plugin uninstall oyen@oyen.
Developing
claude --plugin-dir . # run it from this folder
claude plugin validate .
claude plugin test .
The poses are drawn as letter grids in hooks/pixels.ts (o fur, k eyes and mouth, . see-through) and the lines live in hooks/lines.ts.
License
MIT, see LICENSE.
