I Built a Tamagotchi That Judges Your GitHub Activity 🐾 (and it's brutally honest)

Published: (February 15, 2026 at 12:43 AM EST)
4 min read
Source: Dev.to

Source: Dev.to

Introduction

You know that guilt when you haven’t pushed code in a few days? Imagine that feeling had a face—a tiny ASCII octocat staring at you from your terminal, slowly starving to death.

cli‑pet is a virtual pet that lives in your terminal and is powered by your real GitHub activity. Your commits are food, green CI builds keep it healthy, merged PRs are pure serotonin, and coding streaks act as energy drinks. Stop coding for a few days and your pet literally withers away; its stats decay in real‑time, and the ASCII art shifts from a happy bouncing creature to a sad, hungry mess with (;.;) eyes.

I didn’t build a productivity tool. I built emotional manipulation as a service. And honestly? It works. I’ve never been more motivated to push commits.

You can adopt one of four pets:

  • 🐱 Cat – purrs when your CI is green
  • 🐶 Dog – fetches your GitHub notifications (get it?)
  • 🐉 Dragon – breathes fire on failing tests
  • 🐙 Octocat – the ultimate GitHub companion

How cli‑pet works

Stats

Your pet has four stats, each mapped to real GitHub data:

StatWhat feeds itWhat happens when it drops
🍕 HungerYour commitsPet starts begging you to write code
❤️ HealthCI/CD success rateFailing pipelines → sick pet
😊 HappinessMerged PRs & code reviewsPet thrives on collaboration
EnergyCoding streak daysConsistency is key

Stats decay over time, so a weekend of ghosting your repo will return a dramatically different ASCII creature.

Commands

cli-pet adopt   # 🏠 Choose your pet and name it
cli-pet status  # 👀 Check on your little buddy
cli-pet feed    # 🍕 Fetch GitHub data and feed your pet
cli-pet play    # 🎮 Play a number‑guessing game together
cli-pet stats   # 📊 See the full GitHub activity breakdown
cli-pet tips    # 🧠 Get personalized coding advice from your pet

Tips feature

The tips command is a favorite. Your pet analyzes your coding patterns and offers relevant advice:

  • Haven’t reviewed any PRs lately? The pet will call you out.
  • CI is flaky? It’ll suggest pre‑commit hooks.
  • 7‑day streak? It’ll remind you that rest is productive too.

Repository

🔗 GitHub Repository:

Installation

npx cli-pet

Requires Node.js 18+ and either gh auth login or a GITHUB_TOKEN environment variable.

Development with Copilot CLI

Real talk: this project would have taken me far longer without Copilot CLI.

  1. Idea & Architecture – I described a “virtual pet but GitHub” and Copilot helped break it into modules: pet state machine, GitHub activity fetcher, ASCII art renderer, CLI commands.
  2. Stat Decay & Mood Math – Iteratively refined equations for hunger decrease per hour, handling neglect over multiple days.
  3. GitHub API Integration – Copilot guided me through Octokit to fetch push events, calculate CI success rates, and compute coding streaks from activity dates.
  4. Streak Calculation – Implemented backward date traversal to detect consecutive days; Copilot handled the tricky date math.
  5. ASCII Art Generation – Produced 4 pet species × 8 moods = 32 variants; Copilot generated base art, I tweaked for distinct moods (e.g., the sad cat with (;.;) eyes).
  6. Debugging – Resolved ESM module issues, TypeScript errors with Chalk, and module resolution quirks in seconds thanks to Copilot’s contextual suggestions.
  7. Iterative Pair‑Programming – Copilot read files, ran commands, spotted errors, and applied fixes across the codebase, effectively acting as a pair programmer at 3× speed.

The result? A fully functional terminal pet that gamifies real work without feeling like a forced chore.

Conclusion

If you haven’t adopted a terminal pet yet, what are you waiting for? Run cli-pet adopt and give your coding habits the accountability partner they deserve. 🐾

And if your pet dies… that’s on you. I just built the thing.

0 views
Back to Blog

Related posts

Read more »

🐾GitPet - No more lonely debuging

!Cover image for 🐾GitPet - No more lonely debuginghttps://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fde...

SoundBoardio: Github-driven soundboards

Turn your GitHub repository into a shareable soundboard. Simple config, PWA‑ready, and completely free. A perfectly timed sound bite is often worth a thousand w...