Skip to content

Latest commit

Β 

History

History
103 lines (72 loc) Β· 3.8 KB

File metadata and controls

103 lines (72 loc) Β· 3.8 KB

PetCode 🐾

A virtual pet that lives inside your VS Code editor β€” reacts to your typing, errors, idle time, and even the hour of night.

PetCode demo


What is PetCode?

PetCode is a tiny animated companion that sits at the end of your cursor line and reacts to everything you do in real time. Type a lot and it runs happily alongside you. Leave it alone and it wanders around, fidgets, and eventually falls asleep. Rack up errors and it gets worried β€” then scared. Fix them all and it celebrates with a bark (or a moo πŸ„).

It lives entirely inside the editor as a text decoration β€” no panels, no sidebars, no popups.


Features

  • πŸ•πŸˆπŸ„πŸ’πŸ‡πŸ‘ Dog, cat, cow, monkey, rabbit, or sheep β€” switch your companion any time from the settings menu
  • πŸ’Ύ Remembers your pet β€” your chosen pet and name persist across VS Code restarts
  • πŸƒ Follows your cursor β€” moves smoothly line by line as you navigate
  • ✨ Happy running β€” gets excited when you type for 4+ seconds straight
  • 😱 Scared of errors β€” reacts as your error count climbs
  • πŸŽ‰ Barks when errors clear β€” celebrates when you fix all the bugs
  • πŸ’€ Falls asleep β€” naps after ~25 seconds of inactivity
  • πŸŒ™ Night mode β€” switches to a calm idle between 4–6 AM
  • 🐾 Wanders & hops β€” starts exploring your file when bored
  • 🏷️ Name your pet β€” give your companion a custom name
  • πŸ“Š Live status bar β€” shows your pet's current state emoji in real time
  • πŸ”‡ Toggle on/off β€” hide when you need to focus
  • πŸ”• Auto-hides during debug sessions β€” stays out of the way when you're debugging

Companions

Pet Emoji Personality
Dog πŸ• Loyal and eager β€” cheers you on and barks with enthusiasm
Cat 🐈 Aloof and judgmental β€” tolerates your presence, barely
Cow πŸ„ Gentle and wholesome β€” moos its way through your codebase
Monkey πŸ’ Chaotic and excitable β€” swings through your code with energy
Rabbit πŸ‡ Bouncy and skittish β€” hops along and squeaks when startled
Sheep πŸ‘ Calm and woolly β€” grazes through your code, baaas when surprised

Commands

Command Keybinding Description
PetCode: Make your pet bark Ctrl+Alt+B / Cmd+Alt+B Triggers a bark animation
PetCode: Toggle pet visibility β€” Show or hide the pet
PetCode: Open settings Click the status bar item Opens the settings menu

Pet States

State What triggers it
Running Actively typing
Happy running Typing for 4+ seconds straight
Idle 6 seconds of no activity
Fidgeting 8 seconds idle β€” does a little hop
Wandering 12 seconds idle β€” walks along the line
Tired 22 seconds idle β€” droops before sleeping
Sleeping 25 seconds idle β€” fully asleep
Worried 2+ errors in the active file
Scared 5+ errors in the active file
Barking Errors cleared, or Ctrl+Alt+B
Night idle Between 4–6 AM
Jumping Hops during wander / fidget animations

Settings Menu

Click the 🐾 PetCode item in your status bar to open the quick-pick menu. From there you can:

  • Show or hide the pet
  • Switch between dog, cat, cow, monkey, rabbit, and sheep
  • Name your pet
  • Trigger a bark

Installation

Search for PetCode in the Extensions panel (Ctrl+Shift+X) and click Install, or install from the marketplace page.


Requirements

  • VS Code 1.80.0 or later
  • No other dependencies

License

MIT β€” see LICENSE