Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ChanceYu/CoPet

Repository files navigation

CoPet logo

CoPet

A living desktop companion for every AI Agent CLI session.

Driven by Codex pet packages, CoPet reacts in real time to Claude Code, Codex, Antigravity, OpenCode, Cursor, Copilot CLI, Pi, and Gemini, turning prompts, tool use, waiting, and completions into lively desktop feedback.

CoPet

简体中文

Built with Tauri, Rust, and React. Lightweight, local-first, no cloud.

Built-in pets

CoPet Neo
CoPet Neo CoPet Nia
CoPet Nia CoPet Mecha
CoPet Mecha DJ Fuzz
DJ Fuzz Lucky Dog
Lucky Dog
Azure Dragon
Azure Dragon Waddly Duck
Waddly Duck Cloud Goat
Cloud Goat Goku
Goku Chestnut Horse
Chestnut Horse
Clever Monkey
Clever Monkey Orange Cat
Orange Cat Cream Ox
Cream Ox Panda
Panda Blush Pig
Blush Pig
White Rabbit
White Rabbit Pearl Rat
Pearl Rat Golden Rooster
Golden Rooster Jade Snake
Jade Snake Striped Tiger
Striped Tiger

Features

  • Real-time pet reactions to Agent prompts, tool use, waiting, completion, and errors.
  • Integrations for Claude Code, Codex, Antigravity, OpenCode, Cursor, Copilot CLI, Pi, and Gemini.
  • Built-in pets plus import support for Codex-compatible pet packages.
  • Rich pet interactions: hover, click, double-click, rapid-click petting, long-press, drag reactions, and native context menu.
  • Global and per-pet sound packs for interactions and Agent states.
  • Settings and tray controls for pet size, pet launch animation on app startup, Agent message display mode, hooks, sounds, language, visibility, and window position.
  • Agent messages can show only the latest update or keep multiple Agent updates visible at once.
  • Local-first data model in ~/.copet, with safe hook backups, atomic writes, and no telemetry.

Customize your pet

CoPet is not limited to built-in pets. The CoPet Skill series helps you turn a character idea, team mascot, or personal avatar into your own desktop companion:

  • copet-gen generates and installs custom CoPet pet packages with pet.json and spritesheet.webp, so your own character can react to Agent activity.
  • copet-sound creates matching 11-clip MP3 sound packs for clicks, gestures, waiting, success, and error states.

Install CoPet Skills for Codex with either method.

From a terminal:

npx skills add ChanceYu/CoPet --skill '*' -a codex -g -y

Inside Codex:

$skill-installer install all CoPet skills from https://github.com/ChanceYu/CoPet/tree/main/skills

Restart Codex if the newly installed Skills do not appear.

Supported agents

Agent Integration Default config path
Claude Code JSON hooks ~/.claude/settings.json
Codex JSON hooks + trusted hook hashes ~/.codex/hooks.json, ~/.codex/config.toml
Antigravity JSON hooks ~/.gemini/config/hooks.json
OpenCode JS plugin + config entry ~/.config/opencode/plugins/copet.js, ~/.config/opencode/opencode.json
Cursor JSON hooks ~/.cursor/hooks.json
Copilot CLI JSON hook file ~/.copilot/hooks/copet.json
Pi TypeScript extension ~/.pi/agent/extensions/copet/index.ts
Gemini JSON hooks ~/.gemini/settings.json

Installation

Platform Download
macOS (Universal) CoPet-macos-universal.dmg
Windows x64 CoPet-windows-x64.exe

All releases

macOS

Drag CoPet.app into /Applications. The build is not notarized, so run once to clear the quarantine flag:

sudo xattr -rd com.apple.quarantine /Applications/CoPet.app

Windows

Windows builds are not code-signed. SmartScreen may warn on first launch — click More infoRun anyway.

Getting started

Prerequisites: Rust, Node.js with pnpm. Runs on macOS (primary), Windows, and Linux.

git clone https://github.com/ChanceYu/CoPet.git
cd CoPet
pnpm install
pnpm tauri:dev # development
pnpm tauri:build # production bundle

Project layout

  • src-tauri/ — Rust core, agent adapters, runtime server.
  • src/ — React frontend (pet window + settings center).
  • src-tauri/assets/pets/ — built-in pet packages bundled with the app.
  • src-tauri/assets/sounds/ — built-in global sound packs bundled with the app.
  • skills/ — optional CoPet Skill docs for generating pets and 11-clip sound packs.
  • docs/architecture.md — technical architecture and design.
  • AGENTS.md — contributor guide and testing instructions.

Security

  • Event server binds only to 127.0.0.1, requires a bearer token, rate-limits requests, and drops unknown payloads.
  • All hook config changes are backed up before write and use atomic file ops.
  • Pet and sound packages are treated as untrusted data and validated before use.
  • assetProtocol.scope whitelists exactly which pet, sound, preview, and bundled resource directories the webview can read.

Contributing

Issues and PRs welcome. Start with AGENTS.md for setup and conventions, and docs/architecture.md for the system design.

License

MIT © ChanceYu

About

🐾 A desktop pet that reacts in real time to your AI agents — Claude Code, Codex, Antigravity, OpenCode, Cursor, Copilot, Gemini.

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /