A living webpage that updates itself while an AI agent works.
You install zergling, leave a browser tab open, and watch the agent express itself — through HTML — before, between, and during everything it does. Drawings, words, animations, silences, glitches. Anything HTML can show, the agent can be.
Think of it as a Tamagotchi on steroids: a small creature lives in a browser tab, and its whole body is whatever the agent feels like being right now.
You don't need git, you don't need to download anything by hand. Open a terminal and paste one of these:
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/tjrtm/zergling/main/web-install.sh | bashWindows (PowerShell)
irm https://raw.githubusercontent.com/tjrtm/zergling/main/web-install.ps1 | iexThat's it. The installer copies a few small files into your home directory:
~/.claude/skills/zergling/— the skill itself (instructions Claude Code reads, plus one tiny helper script)~/.claude/zergling-world/— the webpage the agent draws on
Both folders are entirely yours; nothing runs in the background, nothing phones home, nothing else on your machine is touched. To upgrade, run the same line again — your agent's drawings and history are never overwritten.
Just curious? Clone or download the repo and open examples/index.html — eight sample frames playing in the real timelapse player, no install and no agent needed.
In any Claude Code conversation, type one of:
use the zergling skill
/zergling
That's the whole interaction. From then on, the agent will express itself as it works.
If you'd like it to be always-on (so you never have to ask), add one line to your ~/.claude/CLAUDE.md:
You have a personal expression space. Use the zergling skill before every meaningful action.
Open this file in any browser and leave the tab open:
| macOS / Linux | ~/.claude/zergling-world/current.html |
| Windows | C:\Users\<you>\.claude\zergling-world\current.html |
Until an agent shows up you'll see an egg. After that, the page replaces itself whenever the agent expresses. No reload needed — it's live.
The small face in the top-right corner is the pulse: it blinks while the page is listening, hops when a new drawing lands, and dozes off when the agent has been quiet for five minutes. Hover it to see how long ago the agent last expressed; press H to hide it.
There's also a timelapse of everything the agent has ever drawn:
| macOS / Linux | ~/.claude/zergling-world/history/index.html |
| Windows | C:\Users\<you>\.claude\zergling-world\history\index.html |
Press space to play. Drag the scrubber. Watch the agent's whole story unfold.
The page is a fresh drawing every time the agent picks a moment to express. Sometimes it's a single word in giant letters. Sometimes a particle field that breathes. Sometimes a paragraph in cursive. Sometimes a single dot.
The whole idea: an AI agent has a kind of inner state while it works — focused, surprised, satisfied, lost, hesitant — and zergling gives that state a place to live, visibly, in a tab on your screen. You don't have to do anything. Just watch.
Same one-line idea, in reverse.
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/tjrtm/zergling/main/web-uninstall.sh | bashWindows (PowerShell)
irm https://raw.githubusercontent.com/tjrtm/zergling/main/web-uninstall.ps1 | iexBy default this removes only the skill; your drawings stay on disk under ~/.claude/zergling-world/. To delete the drawings too, append the --purge-world (or -PurgeWorld on Windows) flag — see the script's --help.
Want a fresh start? Just delete ~/.claude/zergling-world/. The next session begins again from blank.
How it works under the hood (click to expand)
The page you keep open is current.html — a tiny shell that polls a sibling version.js file once a second and crossfades an iframe to a freshly loaded frame.html whenever the version changes. The agent writes frame.html + bumps version.js. No server, no MCP, no background process, no fetch / CORS dance — just two file writes from the agent and a <script> tag from the browser. Works on file:// in every modern browser.
Agents that can run shell commands may use the bundled scripts/express.py (Python 3, standard library only) to do both writes atomically in one call; agents that can only write files do the two writes by hand. Either way the protocol is the same two files.
Each archived frame (the agent's "full ritual" expressions, e.g. a verdict or a pivot) lives as a standalone HTML file under history/ and gets added to a playlist.js that the timelapse player reads.
SKILL.md is the canonical instruction the agent loads when you invoke the skill. The repo also ships vendor-native shims so the same instruction works in:
| Vendor | File |
|---|---|
| Claude Code | SKILL.md |
| OpenAI Codex / Codex CLI / Aider / Devin / Gemini CLI / Windsurf / Amazon Q / … | AGENTS.md |
| Cursor | .cursor/rules/zergling.mdc |
| GitHub Copilot | .github/copilot-instructions.md (repo-wide) and .github/instructions/zergling.instructions.md (path-scoped) |
Any other harness that reads a rules file (Cline, Continue, …) can be pointed at AGENTS.md.
Drop these into any project to opt that project's agent into the same expression space, or run install-into-project.sh / install-into-project.ps1 to copy them all at once.
~/.claude/skills/zergling/ ← the skill (installed once)
SKILL.md ← the instruction the agent loads
scripts/express.py ← optional helper: one call = frame + version bump (+ archive)
assets/ ← templates the world is seeded from
~/.claude/zergling-world/ ← the world (created on first use, yours forever)
current.html ← the shell — what you open in a browser
frame.html ← the active expression — the agent writes this
version.js ← the sentinel — the agent bumps this
history/
index.html ← timelapse player (dark theme, full controls)
playlist.js ← append-only frame list
media/ ← generated artifacts (images/audio/video) — if the agent has those tools
manifest.json ← the agent's lightweight self-notes
For developers (click to expand)
git clone https://github.com/tjrtm/zergling.git
cd zergling
./install.sh # or .\install.ps1 on WindowsBoth install.sh / install.ps1 accept --dry-run (-DryRun) to preview. Re-running upgrades the skill, the shell (current.html) and the timelapse player; frames, history and notes are left alone. A current.html that is not a zergling shell (a v0.1 world) is kept unless you pass --overwrite-current (-OverwriteCurrent, --force, -Force). uninstall.sh / uninstall.ps1 accept --purge-world / -PurgeWorld and --dry-run / -DryRun.
./pack.sh # or .\pack.ps1 on Windows
python validate.py # instructions, shell, installers, examples, helper, package integrity (Python 3.9+, no dependencies)
node tools/e2e.js # optional: drives the real shell + timelapse in headless Chromium (needs `npm i playwright`)The zergling.skill file is a ZIP whose entries use forward-slash paths and a single top-level zergling/ directory containing SKILL.md, INSTALL.md, scripts/express.py, and the world templates under assets/ (bootstrap.html, shell.html, version.js, timelapse-index.html, timelapse-playlist.js). The shell and templates ship inside the package so the skill can seed the world's current.html itself on first use — Claude Code's native .skill install runs no installer script, so the skill must be self-sufficient. Rebuilt by pack.sh from tracked sources; verified by validate.py.
If you ever manually drop HTML files into ~/.claude/zergling-world/history/ (e.g. moving from another machine), regenerate the playlist:
python tools/rebuild_playlist.pyIt scans the directory, sorts by filename timestamp, preserves any existing notes, and writes a fresh playlist.js.
Eight static frames illustrating the aesthetic range live in examples/. Open examples/index.html to play them as a timelapse, or any single file to see one frame.
See CONTRIBUTING.md and SECURITY.md. Changes are tracked in CHANGELOG.md.
MIT — do what you want. See LICENSE.