Skip to content
jadhavgauravPublic

About

A macOS desktop pet that reacts to your git commits, test runs, deploys and Claude Code sessions

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Bitling

A desktop pet for macOS that lives on your dev activity.

Kid Goku flying on the Flying Nimbus across Mount Paozu, catching git commits, launching push rockets, blasting failing test bugs with Ki blasts, and obliterating boss bugs with the full Kamehameha wave

Kid Goku, flying on his golden Flying Nimbus over Mount Paozu and Karin Tower. He lives on your dev activity: catches git commits, celebrates pushes, hunts failing test bugs with rapid Ki blasts, and obliterates boss bugs with the full Kamehameha wave.

No install, no signup. Unbox it, pat it, throw it, and press the buttons to fire real developer events at it.

Download Try it in your browser macOS 13+ Apple Silicon and Intel

A small robot stands on the bottom edge of your screen, watches your cursor, walks around, and reacts to what you are actually doing: your commits, your test runs, your deploys and your Claude Code sessions.


Try it without installing anything

jadhavgaurav.github.io/bitling runs the whole creature in your browser. Tap the box to unbox it, pat it, drag it, throw it, and use the Try it row to fire real developer events at it: commit, push, merge, rebase, failing tests, passing tests, a deploy, a Claude Code session. Everything the desktop app does to the pet itself, minus the parts that need your actual repositories.

Install

curl -fsSL https://raw.githubusercontent.com/jadhavgaurav/bitling/main/install.sh | bash

That downloads the latest release, installs it to /Applications, links the bitling command and opens it. Nothing to click through. (Read the script first if you would rather see what it does.)

Bitling puts an icon in the Dock: click it to open the control room. There is also a smiling face in the menu bar. If you would rather it stayed out of the way, turn off Show in the Dock in the control room's Setup tab and use the menu bar instead.

Prefer to download the .dmg by hand?

Grab it from the releases page, open it, and drag Bitling into Applications.

macOS will then refuse to open it: "Apple could not verify Bitling is free of malware." That is Gatekeeper reacting to an app signed ad hoc rather than with a paid Apple Developer ID, which this one is. Nothing is wrong with the app, but macOS cannot tell.

Click Done, never Move to Trash. Then either:

  • open System Settings → Privacy & Security, scroll down to "Bitling was blocked to protect your Mac", and click Open Anyway, or
  • run this once:
xattr -dr com.apple.quarantine /Applications/Bitling.app

The one-line installer above exists precisely so you can skip all of that.


Choose your pet

Bitling is a roster, not a single creature. Open the control room, go to Pets, and pick one. Your pet keeps its name, its age and everything it has caught; only the body changes, and with it how it moves, what it says and how it deals with a bug.

Avatar Pet Type Moves Deals with bugs
Bitling Bitling
The Little Machine
Walker Stands on your dock, walks along the bottom edge of your screen Twin cyan laser beams from its eyes
Ember Ember
Baby Dragon
Floater Floats in mid-air, flaps its wings, and stays wherever you let go of it Streams of dragon fire
Spider-Man Spider-Man
Friendly Neighborhood Hero
Walker 3D suit, skyline swinging, expressive eye shutters, and Spidey-Sense warnings Web Thwip & Slingshot dive attacks
Thor Thor
God of Thunder
Floater Wields Mjolnir, commands lightning storms, and forges Stormbreaker at 25+ commits Divine Thunder & Mjolnir hammer spin
Goku Goku
Kid Goku
Floater Rides the Flying Nimbus (Kintoun) with Power Pole and Turtle School Gi Rapid Ki Blasts for small bugs; Kamehameha wave for bosses
Pikachu Pikachu
Electric Mouse
Walker Four-legged scamper, walks your screen, cute scruff-drag with dangling paws Crackling Electro Balls for small bugs; 100,000-Volt sky Thunderbolts for bosses
Iron Man Iron Man
Armored Avenger
Floater Hovers with active pulse repulsor boot thrusters in classic Mark III armor Palm Repulsor Blasts for small bugs; chest Arc Reactor Unibeam for bosses
Rumble Rumble
Atomic Titan
Walker Heavy planted footsteps, sweeping tail, and luminous cyan dorsal plates Stomps nearby bugs; fires cyan atomic breath
Naruto Naruto
Ninja of the Leaf
Walker Low-profile ninja sprint with arms swept back, Konoha headband and orange jumpsuit Spinning Chakra Shurikens for small bugs; spiraling Fuuton Rasenshuriken for bosses
CR7 CR7
Cristiano Ronaldo
Walker High-definition real CR7 likeness with free unattached soccer ball physics, dynamic dribbles, juggling, and interactive kicking Kicks the free soccer ball with knuckleball/SIUUU strikes to smash and kill bugs; blasts top bins into a stadium goal net on git push
Mario Mario
Super Mario
Walker High-definition 3D animated character likeness (Disney / Illumination movie style) with commit-based evolution (Small → Super → Fire → Star Mario) Jump stomps bugs with dynamic bounce; hurls 3D blazing fireballs; headbutts 3D ? blocks for Super Mushrooms/spinning coins and leaps into 3D green Warp Pipes
  • Mario (Super Mario) delivers an animated 3D movie-quality experience (Illumination / Disney style) powered by your git activity. Mario starts as Small Mario (0 commits), leaping up to punch floating 3D ? Question Mark blocks on commits to spawn 3D Super Mushrooms and spinning gold coins. With more commits, he levels up and grows into full-height Super Mario (1.35× height), Fire Mario (classic white-and-red fire suit, hurling blazing 3D fireballs that incinerate bugs), and Star Mario (orbiting 3D Super Star and rainbow-cycling invincibility). Failing test suites trigger a power-down shrink penalty, and code deployments (git push) summon a 3D green Warp Pipe with the nostalgic Course Clear! flagpole victory fanfare and fireworks.
  • Rumble takes off the way Godzilla did in Godzilla vs. Hedorah (1971), the one film where he flies: it points its jaw at the ground and rides its own breath.
  • Goku flies on his golden Flying Nimbus with his Power Pole and Turtle School Gi, firing rapid Ki energy balls at small pests and charging the full Kamehameha wave against boss bugs.
  • Pikachu speaks real synthesized voice lines ("Pika-pika!", "Pikachu!", "Pika-CHUUU!"), sparks its rosy cheeks, flings crackling yellow Electro Balls at small pests, and summons 100,000-Volt sky Thunderbolts with ground shockwaves against boss bugs.
  • Iron Man hovers with pulse repulsor boot jets firing, speaks Jarvis diagnostics, blasts small pests with palm repulsors, and unleashes the high-intensity chest Arc Reactor Unibeam against boss bugs.
  • Naruto sprints in the classic ninja posture with arms swept back, gathers swirling cyan wind chakra with ninja cross-hand seals, flings rapid Chakra Shurikens at small pests, and obliterates boss bugs with the rotating wind-blade Fuuton: Rasenshuriken ("Believe it!").
  • CR7 (Cristiano Ronaldo) features a crisp, realistic likeness with a completely unattached free soccer ball that rolls, bounces, and reacts to clicks. He chases down the ball, dribbles, juggles, snipes bugs by launching power-kick strikes directly at them, and celebrates every code push / deployment with a theatrical "GOAL!" sequence (stadium net, top-bins net bulge, referee whistle, crowd roar, golden confetti, and the iconic mid-air spin landing "SIUUUU!").

Bugs are not only about tests. They crawl out of a failing test suite, a failing GitHub Actions run, a failed deploy, a revert commit, a fix commit, and a run of three tool errors inside half a minute. Whatever breaks, something scuttles across your screen and your pet goes after it.

A walker stands on the bottom edge of the screen, wanders, and opens a parachute if you throw it. A floater never touches the ground: it hangs in mid air, drifts somewhere new now and then, and when you drag it and let go it stays exactly where you left it.

From a shell: bitling pet mario, bitling pet ronaldo, bitling pet naruto, bitling pet spiderman, bitling pet thor, bitling pet ironman, bitling pet pikachu, bitling pet goku, bitling pet kaiju, bitling pet dragon, or bitling pet robot.

Adding one is a drawing and a voice, not a fork. A species declares its look, its proportions, how it gets around, the phrases it replaces, and how it attacks; the needs, growth, events and speech bubbles are shared. See SPECIES in apps/macos/web/bitling.html.

Meet Bitling

Bitling the robot: it beams with heart eyes when patted, catches a commit, then its screen turns red with ERR as beetles crawl in and it fires twin laser beams from its eyes to destroy them

A cardboard box marked FRAGILE saying a new box arrives
It arrives in a box
Tap it three times to unbox.
The robot hovering with a thruster flame beneath it
It flies
Off to hover somewhere else, then back.
The robot descending under a teal and white ram-air parafoil, saying engaging drag
Throw it
It deploys a parafoil on the way down.
The robot beside two red beetles saying bugs squash them
Bug hunting
It stomps them. So can you.
The robot asleep with closed eyes saying night night
It sleeps
And wakes up for a commit.
The robot waving with a question mark on its screen saying Claude needs you
It waves
When something needs you.

Its screen is its face: pixel eyes that follow your cursor, a spinner while it works, a progress bar while a deploy runs. The antenna changes colour with its mood. The three LEDs on its chest are its needs. It has around 390 things to say, drawn so the same line never lands twice in a row.


It reacts to your git activity

A glowing commit node with a short hash falling toward the robot, which says commit add parafoil physics A rocket climbing away above the robot, which says off to origin
A commit drops a node it catches and eats A push launches a rocket

Bitling watches every repository on the machine, with nothing to configure. It finds them by scanning your home folder and any mounted volumes, then tails each repository's reflog, so reactions land within about two seconds without ever running git status in a loop.

You do Bitling does
commit catches a falling commit node stamped with the short hash, and eats it
commit saying "fix" or "bug" a beetle appears and gets stomped
commit saying "wip" "wip. bold of you to admit it"
commit over 400 changed lines "chonky commit!"
a very short message asks whether that was really the message
commit after 23:00 "go to sleep, human"
push launches a rocket, "main has left the building"
merge confetti, and it eats a purple merge node
checkout glances around, "we live on feature/x now"
rebase, then finish spinning dizzy eyes, then relief
pull, stash, reset, cherry-pick a line for each
10 or more uncommitted files nags now and then
no commit all day "git log is lonely"

Optional global git hooks make it instant instead of near-instant. The menu bar item points git's global core.hooksPath at a small folder of its own, and every hook there runs your repository's own hook straight afterwards, so husky and friends keep working. Disconnecting puts the setting back.


It reacts to tests and deploys

The robot with a red ERR screen and red antenna saying 3 tests failing in api, with beetles around it
Tests fail
The robot with a green OK screen saying zero bugs for now
Tests pass
The robot with an amber screen and a progress bar saying deploying production
A deploy runs

When tests fail its screen goes red, its eyes become crosses, and it shakes. A deploy fills a progress bar on its screen and ends in a rocket, or in smoke and "rollback time".

Your whole screen is the stage

Beetles labelled with failing test names crawling across a desktop, twin red laser beams striking one of them, a boss beetle with a health bar, and a rocket climbing away

A failing test suite does not stay politely inside the pet's little window. The beetles crawl out across your entire screen, over your editor and your browser, and each one wears the name of the test that is failing. You can read what is broken without opening CI.

The pet turns, charges its eyes red, and fires twin laser beams across the desktop.

It only shoots the ones you have actually fixed. A beetle stands for a currently failing test, so it stays there, crawling around, until that test passes. Run the suite again and the pet vaporises exactly the beetles whose tests now pass, and leaves the rest alone. Go green and it clears the board in a volley. Scorch marks fade where they fell.

A badly failing run sends out a boss instead: bigger, armoured, with a health bar equal to the number of failures, whittled down as you fix them. A push launches the rocket up the full height of your screen rather than fading at the top of a small window.

None of this can be clicked. The overlay never accepts a mouse event, so it cannot steal a click or block anything you are working in, and it disappears completely when there is nothing to draw. Turn it off with Let bugs loose on the screen in the menu and everything stays inside the pet's own window, where it stomps and lasers as before.

Three sources feed this, all optional:

  1. GitHub Actions and GitHub Deployments, for any watched repo whose origin is on github.com. Uses the gh CLI's login when gh is installed, or Connect GitHub in the control room's Setup tab otherwise, a one-time device-flow sign-in with no gh CLI and no pasted token. Workflows named deploy, release, publish, cd or rollout count as deploys; the rest count as tests. Vercel and similar services record GitHub Deployments, so those appear too.
  2. Local pytest runs, detected from .pytest_cache, including the failure count and the names of the failing tests, which is what the beetles wear.
  3. The bitling command, for everything else.
bitling run npm test                    # reports pass or fail, keeps the exit status
bitling run pytest -q
bitling deploy production ./deploy.sh   # start, then finished or failed
bitling event test-failed count=3 name=api tests=test_alpha,test_beta,test_gamma
bitling say "lunch?"
bitling panel                           # open the control room

The command talks to the app over a bitling:// URL, so it works from any shell, Makefile, npm script or git hook. If the installer could not link it for you:

sudo ln -sf /Applications/Bitling.app/Contents/Resources/bitling /usr/local/bin/bitling

(The one-line installer does this for you when /usr/local/bin is writable.)


It reacts to your Claude Code sessions

The robot with an amber antenna and three typing dots on its screen The robot waving with a question mark on its screen saying Claude needs you
Typing dots while Claude works A wave when it needs your permission

This needs no configuration either: Bitling tails the session transcripts Claude Code writes under ~/.claude/projects, so it works with the terminal, the desktop app and the IDE extensions.

Claude Code Bitling does
you send a prompt "on it", antenna turns amber, typing dots, it stops strolling and stares at the code
it edits, runs, reads, searches occasional chatter: "editing files…", "running tests…", "reading around…"
a tool call errors a brief flicker, "well, that failed"
it finishes a turn "over to you", sparkles, arms up
it waits for your permission waves both arms, "?" on screen, and a chime
a session starts, idles or ends a line for each

Connecting the optional Claude Code hooks from the menu makes reactions instant and is what enables the permission wave. It merges into ~/.claude/settings.json, keeps your other hooks, writes a backup next to the file, and removes only its own entries when disconnected.


Care and feeding

Click to pat it. Drag to carry it: its legs dangle, and if you throw it, it tumbles, opens a parafoil and lands on its feet. Feed it batteries, chips and cookies. Send it bug hunting. Let it sleep.

It grows through three stages with age and care: Bootling, then Bitling, then Overclocked Bitling with two antennas and a halo. Its needs drift while the app is closed, capped at twelve hours. It never dies. It only sulks.

The menu bar holds the full set: the three meters, Pat, Feed, Debug bugs, Sleep, Hide, Bring pet to this screen, Rename, Sound, Start over, Open at login, and a Dev activity submenu with what is being watched, today's counts, and "Pretend…" items to see any reaction on demand.


The control room

Click Bitling's Dock icon, or right click the pet, or use the menu bar, and pick Control room. bitling panel opens it from a shell. It answers "what has this thing actually seen today?".

Activity holds a live portrait of your pet, blinking, dozing or thinking in orange while Claude works, with its name, stage, age and three gauges. Under it: today's commits, pushes, prompts and tool calls, a twelve-hour timeline where every event is a tick coloured by what it was, and the stream itself, every commit subject, push, merge, failing suite, deploy and Claude turn in the order they happened. The stream survives a restart, and "Start over" wipes it along with the pet. Pat, Feed, Debug and Sleep sit along the bottom.

Setup is everything the menu used to bury: how many repositories are being watched and a rescan, extra folders outside home, whether GitHub Actions is reachable, how many Claude Code sessions are open, switches for the global git hooks, the Claude Code hooks and the screen-wide bug swarm, and the pet's own name, sound, open at login, hide and start over.

Nothing in it phones home. Every number comes from the same watchers the pet reacts to, and the window loads no fonts, scripts or images from the network.

What connects to where

Worth being explicit, because a pet that reads your git history should be easy to reason about:

  • git needs no account. Bitling reads .git/logs on your own disk. No token, no OAuth, no network call, no GitHub. It works offline and on repositories that were never pushed anywhere. This is the whole git feature.
  • GitHub Actions and Deployments are the one part that talks to GitHub. They borrow the gh CLI's existing login when gh is installed and logged in; otherwise Connect GitHub in the control room's Setup tab starts a device-flow sign-in (the same kind CLI tools use: a one-time code approved at github.com, no password or token ever typed into Bitling). The token is stored in the macOS Keychain, nowhere else. Skip both and that one feature stays off, with the control room saying so; everything else keeps working.
  • Claude Code is read from the transcript files Claude Code already writes locally, plus optional hooks in your own ~/.claude/settings.json.

Build from source

Requires macOS 13 or newer and the Xcode Command Line Tools (xcode-select --install).

git clone https://github.com/jadhavgaurav/bitling.git
cd bitling
./apps/macos/build.sh

That derives the pet page, compiles a universal binary, draws the icon, ad-hoc signs the bundle, installs /Applications/Bitling.app, and links the bitling command. Use INSTALL=0 ./apps/macos/build.sh to build without installing, or NATIVE=1 to skip the second architecture while developing.

An ad-hoc signature changes with every build, so macOS treats each rebuild as a new app and asks again for folder access (Desktop, Documents, Downloads) and for keychain approvals. If you rebuild often, run ./apps/macos/setup-signing.sh once. It creates a local code-signing identity in its own keychain at ~/.bitling-signing, build.sh then prefers it, and each question is asked once instead of after every build. ./apps/macos/setup-signing.sh --remove deletes it, and release.sh never uses it.

Usage limits on the pet

Hover the pet to see your 5 hour and weekly Claude and Codex limits. Each figure is live when it can be, and otherwise comes from what the tool logged, with its age printed beside it.

  • Codex is asked through codex app-server, which answers with its own sign-in. Bitling reads no Codex credential.
  • Claude is asked by running claude -p /usage every 5 minutes and reading its text. Claude reads its own sign-in, so Bitling never touches the keychain or any token and macOS never asks for a password. The run costs a few seconds of CPU, saves no session and is ignored by Bitling's Claude hooks.
  • Both can be switched off in the control room, under Live Claude usage and Live Codex usage.

To check changes on macOS, use Node.js 22.13+ and Google Chrome:

npm ci
npm run lint
npm test
npm run build:macos        # host architecture, without installing

The tests cover foot contact, desktop animation bounds and bridge actions, and render the native atomic breath to check its color. Set BITLING_BROWSER_CHANNEL=chromium to use a Playwright Chromium installation instead of Chrome.

./apps/macos/release.sh              # apps/macos/build/Bitling-<version>.dmg
./apps/macos/release.sh --publish    # tag, push and create the GitHub release

Pushing a v* tag runs .github/workflows/release.yml, which rebuilds on a macOS runner and attaches the disk image to the release. To ship a build with no Gatekeeper warning you need an Apple Developer Program membership: set SIGN_ID to your Developer ID Application certificate and NOTARY_PROFILE to a notarytool keychain profile, and apps/macos/release.sh signs, notarizes and staples it.

How it works

The creature is one HTML canvas page. The macOS host renders it in a borderless, transparent, always-on-top WKWebView and supplies everything a web page cannot do: moving the window when you drag the pet, gravity and screen edges, the menu bar, native dialogs, durable state, and the watchers.

That window is much bigger than the robot, because it has to hold a parachute, a rocket and a speech bubble. Only about eight percent of it is ever painted, so the rest must not eat your clicks. Every frame the page probes its own canvas where the cursor is: on the desktop the canvas is cleared each frame and nothing but the creature is drawn on it, which makes its alpha channel an exact mask of the pet. It tells the host what the cursor is over and the host sets ignoresMouseEvents to match, so a click lands on the robot or goes straight through to whatever is behind it. If the page ever stops reporting, the host stops swallowing clicks rather than trapping your cursor in an invisible box.

apps/macos/Sources/main.swift          window, drag and physics, menu bar, bridge, bitling:// scheme
apps/macos/Sources/GitWatcher.swift    repository discovery and reflog tailing
apps/macos/Sources/CIWatcher.swift     gh runs and deployments, pytest caches
apps/macos/Sources/ClaudeWatcher.swift Claude Code transcript tailing
apps/macos/Sources/QuotaWatcher.swift  Claude and Codex usage limits, live where possible, else from their logs
apps/macos/Sources/ControlPanel.swift  the control room window and the activity log
apps/macos/web/panel.html              the control room UI
apps/macos/web/bitling.html            the creature: drawing, animation, personality
packages/pet-engine/scripts/make_pet_html.py  derives the desktop page from the web page
apps/macos/build.sh, apps/macos/release.sh  build, sign, package, publish

State lives in ~/Library/Preferences/app.bitling.pet.plist.

License

MIT. Use it, fork it, ship your own pet.

The app loads the Fredoka and Atkinson Hyperlegible typefaces from Google Fonts at runtime; both are under the SIL Open Font License and are not redistributed here.

Uninstall

Quit it from the menu bar, then:

rm -rf /Applications/Bitling.app
rm -f /usr/local/bin/bitling
defaults delete app.bitling.pet          # forget the pet
git config --global --unset core.hooksPath   # only if you connected the git hooks

About

A macOS desktop pet that reacts to your git commits, test runs, deploys and Claude Code sessions

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages