Skip to main content
Glama
README.md
# ๐Ÿฆ€ Claudemon

[![License: MIT](https://img.shields.io/badge/license-MIT-4aa3df.svg)](LICENSE)
![For Claude Code](https://img.shields.io/badge/for-Claude%20Code-c25e2a)
![Zero npm deps](https://img.shields.io/badge/npm%20deps-0-7fce85)
[![Support on Ko-fi](https://img.shields.io/badge/support-Ko--fi-FF5E5B?logo=ko-fi&logoColor=white)](https://ko-fi.com/kiowa)

**A friendlier way to run your Claude Code agents โ€” your crew is a bunch of pixel creatures you can actually watch work. And it's secretly a whole game.**

Claudemon turns your Claude Code agents into a little crew of pixel creatures. Point one at a folder,
tell it what to build, and it gets to work in your files while you follow along from its tank. Each
creature is a real agent with its own personality and working style. When you want a break, one click
drops you into **Clawland**, a top-down brawler where a tiny creature eats its way across an island.

It plugs into Claude Code (that's the one requirement). Free and open source. A little gift for the community. ๐ŸŽ

> **๐ŸŒ Multiplayer is coming soon.** A shared-world version (realms *Phobos* and *Deimos*) is already
> built and tested; it flips on in a future release.

<p align="center">
  <img src="docs/hatch-full.gif" width="300" alt="Choosing an egg and hatching Clawde" /><br>
  <em>Pick an egg, watch it hatch, and meet your first agent.</em>
</p>

<p align="center">
  <img src="docs/idle-clawde.gif" width="120" alt="Clawde" />
  <img src="docs/idle-mosskit.gif" width="120" alt="Mosskit" />
  <img src="docs/idle-dunepup.gif" width="120" alt="Dunepup" /><br>
  <em>Clawde ยท Mosskit ยท Dunepup โ€” three starters, a bigger roster to unlock.</em>
</p>

---

## What you get

- **Agents you can see.** An MCP server gives Claude a tank of pixel creatures. Point one at a folder,
  say what you want built, and watch it work โ€” then check your files, not a chat log.
- **A crew with personalities.** Every creature is its own agent with a working style. Collect a roster
  and send whoever fits the job.
- **It talks while it works.** Claude voices your creature in character as it goes (toggle it off any
  time in Settings).
- **Clawland, the game.** A full single-player `.io` brawler, one click from the app.

## Quick start

Claudemon plugs into **Claude Code** โ€” that's really the only thing you need (plus Node โ‰ฅ 24). Pick whichever's easiest:

### ๐Ÿ”Œ Install as a plugin (easiest)
Run these two **inside Claude Code**:
```
/plugin marketplace add OriginalName457/claudemon
/plugin install claudemon@claudemon-plugins
```
The MCP server registers and starts automatically โ€” no paths, no config editing, no restart. Then say **โ€œlaunch Claudemon.โ€** ๐ŸŽฎ

### ๐Ÿ—ฃ๏ธ Just ask Claude
Already in Claude Code? Paste this and it installs itself โ€” no terminal wrangling:

> **Install Claudemon from github.com/OriginalName457/claudemon โ€” clone it, run `npm run setup` inside, then tell me to restart.**

When it says so, restart Claude Code and say **โ€œlaunch Claudemon.โ€** It'll open your handheld and offer to drop a desktop shortcut. ๐ŸŽฎ

### โŒจ๏ธ Or run it yourself
```bash
git clone https://github.com/OriginalName457/claudemon
cd claudemon
npm run setup        # auto-detects the path + installs the Claude CLI if missing
```
Restart Claude Code and say **โ€œshow Clawde.โ€** Your tank opens at <http://localhost:4573>. That's it.

- **Want the pixel pet in your terminal statusline too?**  `npm run setup -- --statusline`
- **Just poking around without Claude?**  `npm run app` opens the tank window ยท `npm run serve` runs the server only.

---

## ๐ŸŒ Clawland โ€” the game

<p align="center">
  <img src="docs/gameplay-1.gif" width="420" alt="Clawland gameplay โ€” foraging the jungle" />
  <img src="docs/gameplay-2.gif" width="420" alt="Clawland gameplay โ€” taking territory" />
</p>

From the app, hit **๐ŸŒ Clawland** in the nav (or the big **Enter Clawland** button on the Tank page).
Leave any time with **๐Ÿ  exit** or **Esc**.

**The loop:** spawn as a hatchling, eat to grow (๐Ÿฃ โ†’ ๐Ÿฅ‰ โ†’ ๐Ÿฅˆ โ†’ ๐Ÿฅ‡), level up to unlock moves, and stand
on glowing **nodes** to capture them โ€” founding a clan and spreading territory against rival clans and
the Corrupted. It doesn't really end; only death (or leaving) ends a run.

- **Controls:** WASD move ยท left-click attack ยท right-click special ยท Space dash ยท U ultra ยท
  middle-click ping teammates ยท M map ยท C stats ยท ๐Ÿ‘ฅ clan ยท scroll zoom.
- **Per-creature progression** that persists across runs โ€” each creature levels up and earns an
  attribute point every 10 levels to spend permanently.
- **Procedural attack VFX and synthesized sound** (no audio files โ€” it's all generated live), with a mute toggle.

---

## Under the hood โ€” the creature layer

Your starter grows as you interact with it and as Claude does real work for you.

```
๐Ÿฅš Egg โ”€โ”€(3 interactions)โ”€โ”€โ–ถ ๐Ÿซง Blip โ”€โ”€(xpโ‰ฅ10)โ”€โ”€โ–ถ ๐Ÿฆ€ Clawde โ”€โ”€(xpโ‰ฅ30)โ”€โ”€โ–ถ โ”ฌโ”€ careโ‰ฅ55 โ”€โ–ถ ๐Ÿฆž Prismshell โ”€โ”€โ–ถ ๐Ÿ‘‘ Aurelian
                                                                          โ””โ”€ care<55 โ”€โ–ถ ๐Ÿฆ€ Rustclaw   โ”€โ”€โ–ถ ๐Ÿ‘พ Voidmaw
```

- **xp** comes from interactions and from Claude calling `work` after real coding tasks.
- **care** is a rolling average of wellbeing (keep the stats up) โ€” it decides which branch it evolves into.
- **Stats** (0โ€“100, decay in real time): ๐Ÿ– fullness ยท ๐Ÿ’ง hydration ยท โšก energy ยท โค๏ธ happiness.

**MCP tools Claude can call:** `get_status` ยท `get_roster` ยท `feed` ยท `water` ยท `pet` ยท `play` ยท `rest` ยท
`work` ยท `rename`. The **๐Ÿ—ฃ Pet voice** toggle in Settings controls whether Claude speaks in-character.

## Run it without Claude

```bash
npm run app        # desktop app window (starts a server if needed)
npm run serve      # standalone tank server only, no window
npm start          # full MCP server + tank (for Claude Code)
npm run status     # print pet status
npm run reset      # reset to a fresh egg
```

## Tuning knobs

- Decay / action strengths โ€” `src/state.js`.
- Evolution thresholds โ€” `src/creatures.js`.
- Clawland balance & content โ€” `web/clawland.html` (and `src/species.js`).
- Egg art โ€” the procedural renderer lives in `web/play.html` (cel-shaded, per-biome).
- Sound โ€” `web/sfx.js` (procedural). VFX โ€” `web/fx-attacks.js`.
- Port โ€” `CLAUDEMON_PORT`. State location โ€” `CLAUDEMON_HOME`.

## Support

Claudemon is free and always will be. If it saved you some time or made you smile, a โญ on this repo
(or sending it to a friend) genuinely helps โ€” and if you want to fund new creatures, biomes, and the
multiplayer server:

[![Support me on Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/kiowa)

## License

[MIT](LICENSE) โ€” free to use, fork, and share. If you build something fun with it, I'd love to see it. ๐Ÿฆ€