A virtual pet that lives inside your VS Code editor β reacts to your typing, errors, idle time, and even the hour of night.
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.
- ππππππ 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
| 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 |
| 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 |
| 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 |
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
Search for PetCode in the Extensions panel (Ctrl+Shift+X) and click Install, or install from the marketplace page.
- VS Code 1.80.0 or later
- No other dependencies
MIT β see LICENSE
