ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 PhucUSk20

pixel-pet

提示列上方的像素寵物會演出每次工具呼叫,下方還有 HP/MP/ST HUD

PhucUSk20@PhucUSk20

PhucUSk20/pixel-familiars/tree/main/plugins/pixel-pet

已翻譯

關於這個 mod

<p align="center"> <img src="docs/images/slime.gif" width="160" alt="會呼吸、眨眼、跳躍和歡呼的像素史萊姆"> </p> <h1 align="center">Pixel Familiars</h1> <p align="center">為 <strong>Codex</strong> 和 <strong>Claude Code</strong> 提供會動的像素夥伴。<br>透過鮮活的像素世界查看 AI 的活動、上下文和配額。</p> <p align="center"> <a href="#codex"><img alt="Codex companion" src="https://img.shields.io/badge/Codex-VS_Code-5aa9ff"></a> <a href="#claude-code"><img alt="Claude Code companion" src="https://img.shields.io/badge/Claude_Code-terminal-ffe25a"></a> <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-5aa9ff"></a> </p>

由 PhucUSk20 擁有並維護。基於 Namenomeaning/pixel-pet,保留原作者資訊與 MIT 聲明。

選擇你的夥伴

兩個整合都使用共用的像素引擎和主題格式。每個整合都連接自己的執行階段;由於事件串流和顯示介面不同,功能也會有所差異。

| | Codex | Claude Code | | --- | --- | --- | | 顯示 | 自適應 VS Code 面板 | 提示列上方的寵物,下方的 HUD | | 活動 | 原生 hooks,無法使用時退回工作階段記錄 | Claude Code mod 事件 | | 共用寵物動作 | 讀取、搜尋、寫入、終端機、網頁、思考和慶祝 | 讀取、搜尋、寫入、終端機、網頁、思考和慶祝 | | HUD | 剩餘上下文和回報的配額/重設時間 | 剩餘上下文和回報的配額/重設時間 | | 自訂 | MCP 主題工具、預覽和匯入 | 外掛 skill、預覽和主題工具 | | 任務夥伴 | Portal workers、subagent minis 和自動專案 Mini | 跟隨主寵物的 subagent minis | | 閒置遊戲 | 獨立漫遊和 20 種寵物互動 | 呼吸、環顧四周和睡眠 | | Legendary Pet | 帶有五個 Mega Rayquaza 動作的獨立面板 | 可透過 Codex VS Code companion 使用 | | 詳細指南 | Codex guide | Claude Code guide |

觀察和動畫都在本機執行,不會產生 AI 呼叫或 token。請 AI 重新設計主題時,使用的是一般聊天/工具流程。

開始使用

將此儲存庫複製下來,即可安裝 Codex companion,或直接從原始碼載入 Claude 外掛:

git clone https://github.com/PhucUSk20/pixel-familiars.git
cd pixel-familiars

Codex

需求:Node 22.18+、可使用 code 指令的 VS Code,以及已安裝 Codex 擴充功能。

在複製的資料夾中執行一個安裝指令:

npm.cmd run install:codex

在 macOS/Linux 上使用 npm run install:codex。安裝程式會下載相依套件、建置/打包擴充功能、安裝擴充功能,並設定本機觀察器 hooks 和 MCP 主題工具。它會開啟內建的 Codex CLI 供你檢查 hooks:

  1. 如果出現提示,允許資料夾信任。輸入 /hooks,檢查並信任 12 個 Pixel Pet observer 項目。
  2. 結束檢查 CLI。執行 Developer: Reload Window,然後在 VS Code 中執行 Pixel Pet: Open Companion。
  3. 開始新的 Codex 對話並執行工具。收到真實事件後,面板應顯示 Direct hooks。

Direct hooks 能提供最完整的工具/subagent 計時和壓縮動畫。原生事件無法使用時仍可使用 Log fallback,但無法恢復每個巢狀啟動時間。檢查是 Codex 要求的步驟,不會自動授予權限。核准後可以關閉檢查 CLI。

<p align="center"><img src="docs/images/codex-pet-summoning.gif" width="816" alt="Codex 示範:天空傳送門召喚獨立的 Read、Edit 和 Run worker,並帶回結果"></p>

工具會透過彩色天空傳送門召喚 worker minis。平行工作會讓獨立 worker 一直保留,直到記錄完成。成功時,主寵物會收到一個包裹;失敗時,會出現可點擊的錯誤標誌。持續存在的 Mini 會自動觀察已記錄的檢查和編輯器錯誤。

寵物也會獨立探索,偶爾進行 20 種不同的閒置互動。Feed 會邀請野餐,Play 會開始接物遊戲,Rest 會暫停自動遊戲。實際工作會中斷遊戲。草地會填滿面板寬度,面板較窄時,精簡 HUD 會移到角落。工作場所建築暫時停用。

<p align="center"><img src="docs/images/codex-pet-actions.gif" width="816" alt="Codex 示範:20 種不同的本機寵物互動畫廊"></p>

Codex GIF 使用生產渲染器模擬活動。重新執行安裝程式並檢查變更後的 hook 定義即可更新。請閱讀 Codex guide,了解工作階段選擇、配額讀數、設定、隱私和面板位置。寵物是獨立檢視,不是 Codex 聊天的嵌入部分。

Claude Code

需求:Claude Code 2.1.287+(claude --version)。透過此儲存庫的 marketplace 安裝外掛:

claude plugin marketplace add PhucUSk20/pixel-familiars
claude plugin install pixel-pet@pixel-pet

開始新的工作階段,或執行 /reload-plugins。寵物會出現在終端機提示列上方,下面是上下文/配額 HUD。

marketplace 和外掛會保留既有的 pixel-pet 識別字。如果已經使用原始 marketplace,可以在不改變現有安裝的情況下,用這個 checkout 試用一個工作階段:

claude --plugin-dir ./plugins/pixel-pet
<p align="center"><img src="docs/images/demo.gif" width="806" alt="Claude Code 示範:讀取、搜尋、subagent minis、網頁擷取、編輯、失敗測試和慶祝"></p>

寵物會演出讀取、搜尋、寫入、終端機指令和網頁活動。subagent 會獲得持續到完成為止的 minis。工具失敗會改變寵物表情;回合完成時它會歡呼。閒置時會呼吸、眨眼和睡覺。

執行 /plugin configure pixel-pet@pixel-pet 可設定速度、睡眠、HUD、狀態文字和 subagent minis。請 Claude 自訂寵物,或執行 /pixel-pet:pixel-pet;套用主題前先檢查瀏覽器預覽。請閱讀 Claude Code guide,了解設定、更新、支援的顯示介面、隱私和開發檢查。

上下文和配額 HUD

  • HP:剩餘上下文視窗。
  • MP:回報的剩餘 5 小時配額,並顯示重設倒數。
  • ST:回報的剩餘 7 天配額,並顯示重設倒數。

配額可用性取決於執行階段和帳號。缺少的讀數會保持未知。進度條反映觀察到的使用量,不代表額外權限或保證的工作容量。讀數偏低時,顏色和寵物表情會改變。

打造自己的風格

兩個整合都透過共用的主題格式支援自訂像素寵物、道具、效果、狀態文字、HUD 色彩和場景。

試試紫色史萊姆、橡皮鴨、月亮場景、用於網頁搜尋的雷達,或名為 FUEL 的 HUD。Codex 使用 get_theme、get_theme_format、preview_theme 和 set_theme;Claude Code 使用它的外掛 skill 和主題工具。套用前先預覽結果。

<p align="center"><img src="docs/images/pets.gif" width="440" alt="像素史萊姆和自訂橡皮鴨並排出現"></p>

Legendary Pet

在 VS Code 中執行 Pixel Pet: Open Legendary Pet 開啟獨立面板。Mega Rayquaza 有五個動作:flight、curled sleep、roar、Dragon Pulse 和 dash/braking,帶有平滑轉場、Auto 和 Pause。Hình gốc 會播放未變更的原始影格,方便比較。

<p align="center"><img src="docs/images/legendary-source-actions.gif" width="700" alt="五個 Mega Rayquaza 動作,帶有平滑轉場和清楚可見的睡眠頭部"></p>

動畫在本機執行,不共用 AI 工作階段,也不會發出模型請求。

開發

  • 共用引擎和 Claude adapter: plugins/pixel-pet/。
  • Codex adapter 和 VS Code 面板: extensions/codex/。
  • 建置、打包和錄製: tools/codex/。
  • 獨立儲存庫工作流程和上游貢獻: development guide。

對 Codex companion,執行 npm.cmd ci、npm.cmd run typecheck、npm.cmd test 和 npm.cmd run package。主機、渲染器或 bridge 有變更後,也要執行 npm.cmd run test:ui。在 macOS/Linux 上使用 npm。

對 Claude 外掛變更,遵循 CLAUDE.md 並執行:

claude plugin validate . --strict
claude plugin validate plugins/pixel-pet --strict
claude plugin test plugins/pixel-pet

Claude Code guide 包含產生型別的設定和預覽檢查。使用 npm.cmd run record:codex-pets 或 npm.cmd run record:legendary 重新建立 Codex GIF(需要 Chrome/Edge 和 ffmpeg)。

隱私和安全

Codex companion 會觀察本機 hooks、工作區範圍的工作階段記錄和專案診斷。它保留經過清理的活動中繼資料,不保留提示、推理或完整工具輸出。它不會修改 OpenAI 已安裝的擴充功能,也不會核准工具。

Claude 外掛 在 Claude Code 內執行,讀取其主題/工作階段使用量/subagent 狀態並繪製寵物。這個 mod 不發出網路請求、不啟動處理程序,也不讀取環境變數。可選的狀態目標會顯示簡短的檔案/指令提示;分享畫面時請關閉它們。

詳情請參閱各整合的指南。請透過私密安全公告回報漏洞。

授權和致謝

MIT。Pixel Familiars 由 PhucUSk20 維護。原始 Pixel Pet 由 halluqinate 製作,來自 Namenomeaning/pixel-pet。原始版權聲明和提交作者資訊均予以保留。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add PhucUSk20/pixel-familiars
claude plugin install pixel-pet
原文 / README
<p align="center"> <img src="docs/images/slime.gif" width="160" alt="A pixel slime breathing, blinking, jumping and cheering"> </p> <h1 align="center">Pixel Familiars</h1> <p align="center">Animated pixel companions for <strong>Codex</strong> and <strong>Claude Code</strong>.<br>See your AI's activity, context and quota through a living pixel world.</p> <p align="center"> <a href="#codex"><img alt="Codex companion" src="https://img.shields.io/badge/Codex-VS_Code-5aa9ff"></a> <a href="#claude-code"><img alt="Claude Code companion" src="https://img.shields.io/badge/Claude_Code-terminal-ffe25a"></a> <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-5aa9ff"></a> </p>

Owned and maintained by PhucUSk20. Based on Namenomeaning/pixel-pet, with original authorship and MIT notices preserved.

Choose your companion

Both integrations use the shared pixel engine and theme format. Each connects to its own runtime; features differ where their event streams and display surfaces differ.

| | Codex | Claude Code | | --- | --- | --- | | Display | Responsive VS Code panel | Pet above the terminal prompt, HUD below | | Activity | Native hooks, with a session-log fallback | Claude Code mod events | | Shared pet motions | Read, search, write, terminal, web, think and celebrate | Read, search, write, terminal, web, think and celebrate | | HUD | Context remaining and reported quota/reset times | Context remaining and reported quota/reset times | | Customization | MCP theme tools, preview and import | Plugin skill, preview and theme tools | | Task companions | Portal workers, subagent minis and automatic project Mini | Subagent minis following the main pet | | Idle play | Independent roaming and 20 pet interactions | Breathing, looking around and sleep | | Legendary Pet | Independent panel with five Mega Rayquaza actions | Available through the Codex VS Code companion | | Detailed guide | Codex guide | Claude Code guide |

Observation and animation run locally and add no AI calls or tokens. Asking an AI to redesign a theme uses its normal chat/tool workflow.

Get started

Clone this repository to install the Codex companion or load the Claude plugin directly from source:

git clone https://github.com/PhucUSk20/pixel-familiars.git
cd pixel-familiars

Codex

Requirements: Node 22.18+, VS Code with the code command available, and the Codex extension installed.

Run one installation command from the cloned folder:

npm.cmd run install:codex

On macOS/Linux, use npm run install:codex. The installer downloads dependencies, builds/packages the extension, installs it and configures the local observer hooks and MCP theme tools. It opens the bundled Codex CLI for hook review:

  1. Approve folder trust if prompted. Enter /hooks, review and trust the 12 Pixel Pet observer entries.
  2. Exit the review CLI. Run Developer: Reload Window, then Pixel Pet: Open Companion in VS Code.
  3. Start a new Codex conversation and run a tool. The panel should show Direct hooks after receiving a real event.

Direct hooks provides the fullest tool/subagent timing and compaction animations. Log fallback remains available when native events are unavailable; it cannot recover every nested start time. Review is required by Codex and is not granted automatically. The review CLI can close after approval.

<p align="center"><img src="docs/images/codex-pet-summoning.gif" width="816" alt="Codex demo: sky portals summon independent Read, Edit and Run workers, with result deliveries"></p>

Tools summon worker minis through colored sky portals. Parallel work keeps separate workers until recorded completion. Success brings a parcel back to the main pet; failure brings a clickable error sign. The persistent Mini watches observed checks and editor errors automatically.

The pets also explore independently and occasionally meet for 20 different idle interactions. Feed invites a picnic, Play starts catch, and Rest pauses autonomous play. Real work interrupts play. The meadow fills the panel width, and short panels move the compact HUD into a corner. Workplace buildings are temporarily disabled.

<p align="center"><img src="docs/images/codex-pet-actions.gif" width="816" alt="Codex demo gallery of 20 different local pet interactions"></p>

The Codex GIFs use simulated activity with the production renderer. Update by rerunning the installer and reviewing changed hook definitions. Read the Codex guide for session selection, quota readings, settings, privacy and panel placement. The pet is a separate view rather than an embedded part of Codex's chat.

Claude Code

Requirement: Claude Code 2.1.287+ (claude --version). Install the plugin from this repository's marketplace:

claude plugin marketplace add PhucUSk20/pixel-familiars
claude plugin install pixel-pet@pixel-pet

Start a new session, or run /reload-plugins. The pet appears above the terminal prompt with its context/quota HUD below.

The marketplace and plugin retain their established pixel-pet identifiers. If you already use the original marketplace, you can try this checkout for one session without changing that installation:

claude --plugin-dir ./plugins/pixel-pet
<p align="center"><img src="docs/images/demo.gif" width="806" alt="Claude Code demo: reading, searching, subagent minis, web fetching, editing, failed tests and celebration"></p>

The pet acts out reading, searching, writing, terminal commands and web activity. Subagents get minis that remain until they finish. Tool failures change the pet's expression; completed turns make it cheer. Idle time brings breathing, blinking and sleep.

Run /plugin configure pixel-pet@pixel-pet for speed, sleep, HUD, status text and subagent minis. Ask Claude to customize a pet or run /pixel-pet:pixel-pet; review its browser preview before applying the theme. See the Claude Code guide for settings, updating, supported displays, privacy and development checks.

Context and quota HUD

  • HP: context window remaining.
  • MP: remaining reported 5-hour quota, with a reset countdown.
  • ST: remaining reported 7-day quota, with a reset countdown.

Quota availability depends on the runtime and account. Missing readings stay unknown. The bars reflect observed usage, not extra permissions or guaranteed task capacity. Low readings change colors and pet expressions.

Make it yours

Both integrations support custom pixel pets, props, effects, status text, HUD colors and scenes through the shared theme format.

Try a purple slime, a rubber duck, a moon scene, a radar for web searches or a HUD named FUEL. Codex uses get_theme, get_theme_format, preview_theme and set_theme; Claude Code uses its plugin skill and theme tools. Preview the result before applying it.

<p align="center"><img src="docs/images/pets.gif" width="440" alt="A pixel slime beside a custom rubber duck"></p>

Legendary Pet

In VS Code, run Pixel Pet: Open Legendary Pet for an independent panel. Mega Rayquaza has five actions: flight, curled sleep, roar, Dragon Pulse and dash/braking, with smooth transitions, Auto and Pause. Hình gốc plays the unchanged source frames for comparison.

<p align="center"><img src="docs/images/legendary-source-actions.gif" width="700" alt="Five Mega Rayquaza actions with smooth transitions and a visible sleeping head"></p>

Its animation runs locally, shares no AI session and makes no model requests.

Develop

  • Shared engine and Claude adapter: plugins/pixel-pet/.
  • Codex adapter and VS Code panels: extensions/codex/.
  • Build, packaging and recordings: tools/codex/.
  • Independent repo workflow and upstream contributions: development guide.

For the Codex companion, run npm.cmd ci, npm.cmd run typecheck, npm.cmd test and npm.cmd run package. Also run npm.cmd run test:ui after host, renderer or bridge changes. On macOS/Linux, use npm.

For Claude plugin changes, follow CLAUDE.md and run:

claude plugin validate . --strict
claude plugin validate plugins/pixel-pet --strict
claude plugin test plugins/pixel-pet

The Claude Code guide includes generated-type setup and preview checks. Recreate Codex GIFs with npm.cmd run record:codex-pets or npm.cmd run record:legendary (Chrome/Edge and ffmpeg required).

Privacy and security

The Codex companion observes local hooks, workspace-scoped session logs and project diagnostics. It retains sanitized activity metadata, not prompts, reasoning or full tool output. It does not modify OpenAI's installed extension or approve tools.

The Claude plugin runs inside Claude Code, reads its theme/session usage/subagent state and draws the pet. The mod makes no network requests, starts no processes and reads no environment variables. Its optional status targets show short file/command hints; turn those off when sharing your screen.

See each integration's guide for details. Report vulnerabilities through a private security advisory.

License and attribution

MIT. Pixel Familiars is maintained by PhucUSk20. Original Pixel Pet by halluqinate, from Namenomeaning/pixel-pet. Original copyright notices and commit authorship are preserved.

其他同名作品

更多類似作品