Skip to content
Arnav8452Public

About

Pixel mascot for Google Antigravity and the agy CLI: 19 animated states, moods, and per-model quota sleep

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

72 stars

Watchers

0 watching

Forks

Latest commit

 

History

96 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atom: a pixel mascot for Google Antigravity, app and CLI

Atom - a prompt-bar mascot for Antigravity

GitHub stars License: MIT CI CodeQL Python 3 stdlib Platforms


Atom Lab skin showcase: the curtain closes and Atom comes back as Atom V2, Cozy Chibi and the Orchestrator outfit

A tiny, zero-dependency pixel companion that sits on the prompt bar in the Antigravity desktop app and reacts in real time to what the agent is doing.

If Atom made you smile, a ⭐ helps others find it.

New: skins! Right-click on Atom to open Atom Lab and explore the new skins :D (Atom V2, Cozy Chibi, base qt. and the Nobility Outfits). Want to make your own? See MAKING_SKINS.md.

New: Atom for Antigravity CLI. Atom also lives in agy's status line, as a one-line bar or a big pixel Atom V2 that you switch between with atom-toggle. See Atom for Antigravity CLI and the full guide in CLI.md.

Atom is a community project, driven by r/google_antigravity. Its skins were ideated by members there; see Community & Credits.

  • 19 animated states: Code-generated 150×120 lossless WebP sprite sheets with 60fps 140 ms crossfades and a 1.2 s minimum dwell so rapid tool steps don't flicker.
  • Sustained moods (angry & sad): Frustration or insults tint Atom red/blue with tilted \ / or / \ eyes across every working animation until the reply finishes.
  • Quota sleep & wake: Sleeps (Zzz) when the active model hits its 5-hour or weekly quota limit, and wakes immediately when you switch models.
  • Swarm crew: When the agent delegates or runs a swarm, Atom puts on the Orchestrator outfit and calls in mini-Atoms dressed for each worker's model (built by Omkar Joshi).
  • Responsive sizing: Scales to 9% of the prompt bar width (72–132 px) and tracks sidebar/layout changes automatically.

Swarms bring a crew: the Orchestrator Atom calls in three mini-Atoms in hydrogen, neon and carbon outfits, they work beside it and walk back in

Atom with angry brows and a spiky pom-pom, holding a QUOTA RESET! picket sign
Out of quota one too many times.

Quick Controls

Action What it does
Click Makes Atom dance (when calm and awake)
Right-click Opens Atom Lab to explore and switch skins
Alt + Click Moves Atom between the left and right side of the prompt bar
Shift + Click Switches skins (when multiple folders exist in assets/)

Contents

Install & Download

Runtime requirements: Python 3 only (zero pip dependencies; git optional if downloading a release zip).

Easy Install (Paste into Antigravity)

Want Antigravity to set it up for you? Copy this prompt and paste it into chat:

Install https://github.com/Arnav8452/atom for my OS and verify setup.

Tip

Make sure Antigravity is fully quit before launching the Atom shortcut - on Windows/Linux check the system tray, and on macOS press Cmd+Q (or Quit from the Dock) instead of just closing the window.

  • Linux: Plugin ~/.gemini/config/plugins/atom · Launcher ~/.local/share/applications/antigravity.desktop
    • Command: curl -fsSL https://raw.githubusercontent.com/Arnav8452/atom/main/install.sh | bash
  • macOS: Plugin ~/.gemini/config/plugins/atom · Launcher ~/Applications/Antigravity (Atom).app
    • Command: curl -fsSL https://raw.githubusercontent.com/Arnav8452/atom/main/install.sh | bash
  • Windows: Plugin %USERPROFILE%\.gemini\config\plugins\atom · Shortcut Antigravity (Atom) (Start Menu & Desktop)
    • Command: irm https://raw.githubusercontent.com/Arnav8452/atom/main/install.ps1 | iex

Environment overrides: ATOM_REPO, ATOM_DIR, ATOM_HOME (default ~/.antigravity-atom), ANTIGRAVITY_BIN, ANTIGRAVITY_PLUGINS_DIR. See AGENTS.md for full details.

Antigravity CLI (agy) users: run agy plugin install https://github.com/Arnav8452/atom, then python3 ~/.gemini/config/plugins/atom/atom_cli_setup.py, and restart agy. If desktop Atom is already installed, only the second command is needed. See CLI.md.


Option 1: One-line remote install (recommended)

Linux & macOS:

curl -fsSL https://raw.githubusercontent.com/Arnav8452/atom/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/Arnav8452/atom/main/install.ps1 | iex

(Prefer to inspect before running? Download install.sh / install.ps1, review it, then execute ./install.sh or .\install.ps1.)


Other install methods (Git clone, ZIP, Portable, AUR, Homebrew, Scoop, Winget)

Git clone & local install

git clone https://github.com/Arnav8452/atom.git atom && cd atom
./install.sh          # Linux / macOS
git clone https://github.com/Arnav8452/atom.git atom; cd atom
.\install.ps1         # Windows PowerShell

Option 3: Direct ZIP download (no Git required)

  1. Download the repository archive: https://github.com/Arnav8452/atom/archive/refs/heads/main.zip
  2. Extract it to a permanent folder (e.g. ~/.local/share/antigravity-atom or %LOCALAPPDATA%\antigravity-atom).
  3. Run ./install.sh (Linux/macOS) or .\install.ps1 (Windows) inside the extracted folder.

Option 4: Zero-install portable run

From any clone or extracted archive, run the launcher directly - atom_launch.py automatically links/copies the hooks plugin into ~/.gemini/config/plugins/atom on first start:

python3 atom_launch.py

Option 5: Native OS Package Manifests (packaging/)

Ready-to-use manifests live under packaging/:

Updating & Uninstalling

  • Update: re-run the one-line installer, or run git pull inside your clone.
  • Uninstall (Linux/macOS): ./install.sh --uninstall
  • Uninstall (Windows): .\install.ps1 -Uninstall
  • Quit Antigravity completely and reopen it through the installed launcher/shortcut to meet Atom. (If Antigravity is still open in the background, the new shortcut won't attach Atom - make sure to quit it completely first.)

Atom for Antigravity CLI

Atom also runs in Antigravity CLI (agy), in the status line right under the prompt. It reacts to the same things as on the desktop (thinking, writing code, running commands, waiting for your approval, done, errors, moods and quota sleep) and comes in two views:

Bar (default): agy's own auto · model · effort info, with a small Atom face pinned to the end of the line.

Atom as a one-line status bar in Antigravity CLI

Big: the same line with the pixel Atom V2 underneath.

Switching to the big pixel Atom with atom-toggle

Install

Pick one. Each needs only Python 3 and agy:

# 1. Straight from GitHub (recommended)
agy plugin install https://github.com/Arnav8452/atom
python3 ~/.gemini/config/plugins/atom/atom_cli_setup.py

# 2. From a git clone
git clone https://github.com/Arnav8452/atom.git
agy plugin install ./atom
python3 atom/atom_cli_setup.py

# 3. Desktop Atom already installed: the CLI shares its plugin
python3 ~/.gemini/config/plugins/atom/atom_cli_setup.py

Activate

atom_cli_setup.py adds Atom as agy's custom status line in ~/.gemini/antigravity-cli/settings.json (nothing else in the file changes, and it won't replace a status line you already have without --force). It also installs the atom-toggle command in ~/.local/bin. Quit agy and start it again to meet Atom.

Switch between the bar and the big Atom

Inside agy, type ! on its own (the prompt turns into a blue !, which is agy's shell mode), then atom-toggle and Enter. Atom switches straight away. No model is involved and no quota is used. Atom remembers the view you picked across restarts.

Skins and options

Re-run setup with any of these:

Option
--skin v2 (default) · atom · chibi · base-qt · neon-cat terminal versions of the desktop skins
--style switch (default) · bar · big · sprite switchable / always bar / always big / big Atom under agy's normal line
--color 256 · none for terminals without 24-bit colour / no colour

Preview everything without agy: python3 atom_status.py --demo --skin all.

Update & uninstall

  • Update: run the same install commands again (or git pull in your clone first). Re-running setup is safe.
  • Turn off: python3 <atom>/atom_cli_setup.py --uninstall removes the status line and atom-toggle. Add agy plugin uninstall atom to remove the hooks if you don't use desktop Atom. To hide Atom temporarily, use /statusline disable in agy.

The CLI version only uses features Antigravity documents for this (plugin hooks, the custom status line, and agy's ! shell mode). It never wraps or injects into agy, and never stores or prints your email, paths or prompts. Full guide, troubleshooting and details: CLI.md.

States (19 code-generated states)

State Type When Art
idle Base SessionStart, Stop (fidgets once after 7 s idle) hover + thin beanie + organic coloured electrons
thinking Base PreInvocation (model reasoning) sky-blue + tucked legs + calm orbits & beanie shimmer
typing Base PreToolUse for write_file / edit_file / patches / delete sustained open laptop + overhead loading wave
working Base PostToolUse, PostInvocation, other active tools spinning pixel gears + focused eyes
exploring Base PreToolUse for read_file / grep / search_web / browser pixel document + sweeping cyan scan bar
running Base PreToolUse for run_command / bash / terminal dark pixel terminal with scrolling emerald lines
delegating Base PreToolUse for invoke_subagent / swarm (add/spawn) / run_workflow 3 orbiting mini-Atom buddies; spawns mini-Atoms with model outfits & Orchestrator lead
asking Base PreToolUse for ask_question speech bubble with pulsing ? glyph
listening Client User actively typing in the prompt box (while idle/closed) downward attentive gaze toward the prompt bar
watching Base Stop with fullyIdle: false or swarm_wait sweeping eyes + pulsing radar ping
closed Base No activity for 5 min, or active model reached its 5-hour / weekly quota limit (wakes immediately on switching to an available model) sleepy dim blue body + closed eyes + rising Zzz
dance Reaction Click Atom's body bouncy side-to-side groove, blinks & music notes
done Reaction Stop (NO_TOOL_CALL) completing a busy turn victory hop + ^ ^ eyes + pixel confetti
happy Reaction Praise ("thanks", "perfect!", "nice work") bright cyan glow + bouncy hop + rising hearts
sad Turn mood Insults ("idiot", "useless", "stupid", "worthless", ...) muted blue tint + tilted / \ eyes across active states until reply ends
angry Turn mood Abuse/frustration ("wtf", "fuck u", "shut up", ALL CAPS, ...) red tint + tilted \ / eyes across active states until reply ends
error Reaction PostToolUse with error or Stop (ERROR) startled jolt + X X eyes + flashing ! badge
canceled Reaction Stop (USER_CANCELED) wide O O surprised eyes + muted electrons
tired Reaction Stop (MAX_INVOCATIONS / token limit) heavy droop + half-lidded eyes + sweat drop

How to trigger reactions & test states

  • On screen: click Atom's body to make it dance (Alt+click toggles between the left and right sides of the prompt bar; Shift+click switches skins if more than one is installed; clicking does not dance while angry, sad, or sleeping from a quota limit).

  • In chat:

    • angry: send curses, hostility, or frustration like "wtf", "fuck u", "shut up", "stfu", "still broken", or an ALL-CAPS sentence like "WHY IS THIS NOT WORKING". Atom heats up to red with tilted \ / eyes across every active work animation (thinking, exploring, typing, running, working, etc.) until the response finishes, then cools back to blue.
    • sad: send insults like "idiot", "useless", "worthless", "stupid", "you're garbage", "this code is trash", or "you suck". Atom shifts to a muted blue tint with tilted / \ eyes across all work animations until the response finishes, then warms back up.
    • happy: send thanks/praise like "thanks!", "perfect!", or "nice work".
  • Live preview CLI & gallery (triggers any state/mood live, or views all 19 × 3 combinations in your browser):

    Interactive browser gallery (all 19 states × Normal/Angry/Sad):

    python3 tools/trigger_state.py --gallery

    Live angry-tinted + tilted-eye typing:

    python3 tools/trigger_state.py typing --mood angry

    Live sad-tinted + tilted-eye thinking:

    python3 tools/trigger_state.py thinking --mood sad

    Cycle work states in angry mood:

    python3 tools/trigger_state.py --tour --mood angry

    Cycle normal, angry, and sad work states:

    python3 tools/trigger_state.py --tour-all

    Simulate 5h/weekly quota sleep:

    python3 tools/trigger_state.py --limit gemini-3.8-flash

    Clear simulated quota sleep:

    python3 tools/trigger_state.py --clear-limit gemini-3.8-flash

    Simulate active swarm/subagent mini-Atoms and peer/main messages:

    python3 tools/trigger_state.py --swarm 3 --models gemini-4-hydrogen-high,claude-sonnet-4.5,gemini-3-pro
    python3 tools/trigger_state.py --msg main swarm-worker-1
    python3 tools/trigger_state.py --swarm 0
  • Smooth transitions & dwell time. Switches finish the current frame cleanly and crossfade at 60fps over 140 ms without fast-forwarding. Busy states stay on screen for at least 1.2 s before switching so rapid tool steps remain easy to spot.

  • Reactions vs. turn moods. One-shot reactions (dance / happy / done / error / canceled / tired) play once at natural speed and return to the agent's state. Turn moods (angry / sad) tint Atom's body and tilt its eyes across every active working state for that message, suppress dancing while active, and smoothly cool/recover on Stop.

  • What counts as an emotion: they come from your message (lastUserInput on the first model call of a turn). Code in backticks, URLs, and paths are ignored, common technical phrases (e.g., "garbage collector", "worst-case", SQL queries) are filtered out, and words like "amazing" only count in short replies.

  • Fallback art: States without custom art reuse idle with a colour tint and adjusted speed (FALLBACK_LOOK in atom_inject.js). Recolouring runs in small steps so the app never lags.

How it works

flowchart LR
    Agent["Antigravity Agent"] -- "hooks.json" --> Hook["atom_hook.py"]
    Hook -- "writes" --> State["~/.antigravity-atom/*.json"]
    Launcher["atom_launch.py"] -- "starts" --> App["Antigravity App"]
    Launcher -- "DevTools CDP" --> Inject["atom_inject.js (Main Window)"]
    State -- "state + mood + limits" --> Inject
    State -- "state + mood + limits" --> Status["atom_status.py (agy status line)"]
Loading
  • Hooks (plugin.json + hooks.json): Runs python3 -S -I ./atom_hook.py <Event> on 6 lifecycle events (SessionStart, PreInvocation, PreToolUse, PostToolUse, PostInvocation, Stop), writes per-conversation state/mood/limit JSON, and wakes the launcher via notify.sock (POSIX) or loopback UDP notify.port (Windows).
  • In the CLI (atom_status.py): agy runs it as its custom status line with the session state on stdin; it combines that with the same hook files and prints the bar or the big Atom. See CLI.md.
  • In-app rendering (atom_launch.py + atom_inject.js): Launches Antigravity with --remote-debugging-pipe on every OS (Windows gets the pipe handles through STARTUPINFO.lpReserved2; ATOM_WIN_DEVTOOLS=port falls back to a loopback --remote-debugging-port), injects the <36 KB bootstrap, and streams WebP sprites lazily into localhost pages mounting [data-testid="agent-input-box"] (lazily loading atom_lab.js and atom_swarm.js on demand).

Project Layout

View repository structure
plugin.json, hooks.json         Antigravity plugin manifest & lifecycle hooks
atom_hook.py                    hook -> state/mood/limit files (stdlib, ~20 ms per event)
atom_launch.py                  cross-platform launcher & CDP injector (Linux/macOS/Windows)
atom_inject.js                  in-app mascot renderer, 60fps crossfades, mood & limit sync
atom_lab.js                     Atom Lab: in-app skin & state playground
atom_swarm.js                   swarm/subagent mini-Atoms, model outfits, messages & overflow bucket
atom_status.py                  Antigravity CLI status line: bar & big Atom, skins (stdlib)
atom_cli_setup.py               turns the CLI status line + atom-toggle on/off (stdlib)
CLI.md                          Atom for Antigravity CLI guide
assets/v2/                      Atom V2, the default skin (19 sheets + JSON)
assets/atom/                    the classic Atom skin: 19 lossless WebP sheets + frame/loop JSON
assets/chibi/, base-qt/         Cozy Chibi and base qt. skins
assets/v2-wardrobe/             Nobility Outfits: Carbon, Neon, Hydrogen, Orchestrator
assets/neon-cat/                Atomic Neon Cat: cozy hoodie cat (19 sheets + JSON)
assets/mad-scientist/           The Mad Scientist: Einstein hair, brass goggles & lab coat (19 sheets + JSON)
assets/screenshots/             README & website screenshots
assets/readme_showcase.gif      README hero: Atom Lab's curtain cycling through the skins
assets/moodboard.{gif,webp}     animated 16:9 showcase card
tools/render_all.py             code-generated renderer for all 19 states, every skin
tools/render_gallery.py         website gallery builder (GIFs + art; Pillow)
tools/render_gemini_typing.py   base silhouette extractor & rainbow crown sampler
tools/render_idle.py            standalone idle GIF/RGBA renderer
tools/render_moodboard.py       animated mood board builder (GIF + WebP)
tools/render_hoodie_cat.py      Atomic Neon Cat renderer: cuts art/hoodie_cat_poses_*.jpg (Pillow + numpy)
tools/render_mad_scientist.py   The Mad Scientist programmatic pixel-art renderer (Pillow)
tools/trigger_state.py          live preview CLI + local --gallery server
tools/preview.html              interactive browser gallery (19 states × Normal/Angry/Sad)
tools/make_sprite.py            custom render -> sprite sheet helper (optional Pillow)
tools/build_assets.sh           rebuild all 19 sprite sheets
art/                            original source artwork and reference renders
packaging/                      AUR PKGBUILD, Homebrew formula, Scoop & Winget manifests
tests/                          Python & Node.js unit test suite + GitHub Actions CI & CodeQL
site/                           atom.log product website (deployed via GitHub Pages)
.github/                        CI, CodeQL, GitHub Pages, Dependabot & templates
install.sh, install.ps1         Linux/macOS (.app bundle) & Windows remote/local installers
CONTRIBUTING.md, .agents/       contributor, AI-agent (rules/AGENTS.md, skills/), governance & security documentation
SECURITY.md, CODE_OF_CONDUCT.md security policy & Contributor Covenant v2.1
LICENSE                         MIT License

Adding art

Sprites are frame grids, assets/<skin>/<state>.webp (150×120 per frame, lossless), with <state>.json for the timings and optional "loop": [start, end] segment bounds. ./tools/build_assets.sh runs tools/render_all.py to programmatically regenerate all 19 states directly onto transparent RGBA sheets from art/base.gif and art/gemini.gif. To add custom art for a state or second skin:

uv run --with pillow tools/make_sprite.py sad_render.gif atom sad --center-x 417

A second folder under assets/ becomes a second skin; with more than one, Shift+click on Atom's body switches between them. A fresh install starts as Atom V2 (assets/v2); the skin you pick is remembered from then on.

--center-x is the x of the body's centre in the render; feet are assumed at y≈222, so every state lines up. If a haze shows around the sprite, raise --floor (thinking uses --floor 44). Restart the app to pick up new art.

Security & Privacy

  • Zero network / telemetry: Atom never opens outbound sockets or sends data off your machine.
  • Localhost-only injection: atom_launch.py attaches only to http(s)://127.0.0.1:<port>/ or http(s)://localhost:<port>/ targets and uses a DevTools pipe (no TCP port) on Linux, macOS and Windows. Only the opt-in ATOM_WIN_DEVTOOLS=port fallback uses a loopback-only WebSocket, and it refuses non-loopback endpoints.
  • User-private state & sockets: runtime state files and UNIX wakeup sockets in ~/.antigravity-atom use owner-only permissions (0700 dirs, 0600 socket on POSIX) and never persist raw user prompts.
  • CLI status line: atom_status.py reads the CLI's status line JSON but never stores or prints its email, conversation title, paths or prompts; it writes only the current view and reaction under ~/.antigravity-atom/cli.
  • Isolated hooks: atom_hook.py runs under python3 -S -I with empty stdout on PreToolUse so Antigravity's own permission controls remain untouched.
  • See SECURITY.md for reporting vulnerabilities privately via GitHub Security Advisories.

Community & Credits

Atom is driven by the community at r/google_antigravity: skin ideas, art, memes and testing all come from there.

Skin ideas

Skin Ideated by
Atom V2 (the default) u/AaverageRed
base qt. u/Mental-Armadillo3320
Cozy Chibi u/whimsicalgods
Nobility Outfits u/XXYZZYXZYX (Omkar Joshi)
Atomic Neon Cat the-kringel, who also made it
The Mad Scientist Omkar Joshi, who also made it

Contributors: Rohan Gadakh · Omkar Joshi (swarm mini-Atoms, The Mad Scientist skin, the pixel-art Atom Lab curtain and the atom-skin-creator agent skill) · the-kringel (Atomic Neon Cat skin and its orbiting electrons, the Windows DevTools pipe that closes the open debug port, and fixes for false quota alerts, stale reload scripts and leftover temp files)

Edge cases: u/Altruistic-Friend372

Special thanks: u/aalopaneer

Contributing & Community

Contributions, bug reports, new animations, and extra skins are welcome!

Tests

python3 -m unittest discover -s tests -v
node --test tests/test_atom_inject.mjs

Notes

  • Licensed under the MIT License - see LICENSE.
  • PreToolUse prints nothing, so Antigravity's own permission settings still decide whether a tool runs.
  • Placement relies on the app's data-testid="agent-input-box". If an app update renames it, Atom just doesn't appear; the app itself is unaffected.

About

Pixel mascot for Google Antigravity and the agy CLI: 19 animated states, moods, and per-model quota sleep

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

72 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages