Agents write most of my code these days. That leaves me with this question: what do I do with all this free time?
I considered learning a new framework, but that sounds suspiciously like work. Luckily, the VS Code team has a better idea. They gave me something to take care of.
What is the VS Code pet?
The pet is an interactive character that sits above the chat input box. It reacts to chat activity and to whatever you do to it.
So while the agent works, the pet watches. Before, I was the only one staring at the progress indicator while pretending to supervise. Now I have company.
Remark: The pet is marked as experimental, so it might change or be removed. Don't get too attached. (I got attached within five minutes.)
Adopting your pet
Type /vscode-pet in the chat input to show or hide it.
In the new-session view of the Agents window, you can also right-click outside the input box and select Pet (/vscode-pet).
Show or hide. That's the entire commitment. As far as I can tell, there is no feeding schedule, no vet, and no 3 AM walks. Compared to my Kubernetes cluster, it's remarkably low maintenance.
Spending quality time
My calendar is suddenly wide open, so let's see what we can do together:
- Select it to trigger a reaction. With the keyboard, press Tab to focus it, then Enter or Space. Yes, the pet is accessible. Your accessibility audit will be thrilled.
- Drag it around the chat and drop it wherever you like. It's like rearranging the furniture, except the furniture has opinions.
- Flick it to throw it. Don't worry, the pet comes back.
- Hop it with the Left and Right arrow keys while it has focus.
- Throw it at a wall by holding Shift with an arrow key.
That last one is officially documented. I'm not sure what it says about the creators, but I hope they are feeling well.
Right-click the pet (or press Shift+F10 when it has focus) and you get a context menu where you can:
- view its achievements
- send it on the run
- resize it
- switch between Stable and Insiders colors
Achievements are the interesting part. For the first time, there is a way to measure how well I'm doing as a pet owner. Finally, a metric I can bring to my next performance review. "Delivered 14 microservices" doesn't land like "Unlocked all pet achievements."
One pet, many sessions
Only one pet appears at a time in the active chat surface. Its position and size are shared across chats and windows, and they persist after you restart VS Code.
So, the pet remembers where you left it. That's more than I can say for most of my agents, who forget everything the moment the context window fills up. 😁
Remark: VS Code supports running multiple agent sessions in parallel. Parallel pets are not supported. I think the priorities are clear.
So, what now?
Does this mean I should spend my newly found free time playing with a pet in my editor? Probably not.
But right now, my agent is refactoring a legacy module, my pet is hopping around, and I'm drinking coffee. One of us is being productive, and I have a strong suspicion it's not me.
That's it. Back to work. Or at least back to the pet.