npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agents-mini-rpg

v0.1.2

Published

Terminal-based multi-agent RPG that mirrors live Claude Code activity via an MCP file-bridge

Downloads

279

Readme

agents-mini-rpg

🤖 Terminal multi-agent RPG · powered by Claude Code CLI 🌲

npm version CI License: MIT Node ≥ 20 TypeScript Platform Tests PRs Welcome

Every running Claude Code process becomes an in-game agent.
The world freezes when no Claude is active — it literally mirrors your AI workflow in real time.


📸 Screenshots

| 🌲 Agents Aventure Mode | 🤖 Agents vs Bugs Mode | |:-:|:-:| | Agents Aventure mode | Bugs mode | | Forest fantasy · quests · beasts | Cyber-tech · bugs scale per round |


🎬 Demo

🌲 Agents Aventure Mode

https://github.com/Mundo-Dev0ps/agents-mini-rpg/raw/main/docs/agents-aventure.mp4

🤖 Agents vs Bugs Mode

https://github.com/Mundo-Dev0ps/agents-mini-rpg/raw/main/docs/agents-vs-bugs.mp4

Tip: GitHub renderiza .mp4 raw URLs como player inline. Si prefieres embed nativo (CDN user-images.githubusercontent.com), arrastra el archivo dentro de un issue/PR y reemplaza la URL.


✨ What is this?

Terminal tile-grid RPG where your Claude Code CLI sessions are the characters.

  Claude editing a file  →  Agent moves toward resource
  Claude running Bash    →  Agent attacks a bug
  Claude spawning Task   →  Sub-agent appears on map
  Claude goes idle       →  World freezes, map dims

Connects via MCP file-bridge — real tool calls (Edit, Bash, Read, Task…) appear live in the event log. Game runs standalone without Claude too.


🎮 Features

| | | |--|--| | 🌲🤖 Two modes | Agents Aventure (forest) and Agents vs Bugs (cyber-tech) | | 🧝🧙🧚🛡️ 4 avatars per mode | Distinct stats, abilities, aura colors | | ⚔️ Round-based progression | Enemies scale, boss waves, concurrent cap, deescalate | | 📡 MCP live event log | Every Claude tool call appears in-game | | 🧠 Process-aware engine | Tick freezes when all Claude PIDs go idle | | 🔔 Input-needed alerts | Audio + blinking badge when Claude needs you | | 👁️ Observer mode | Spectate agents, no player | | 🌙 Night mode | Toggleable dim map + star overlay | | ⬆️ Agent leveling | XP → level-up → full heal + stat boost |


🌲 Agents Aventure Mode

| Icon | Avatar | Ability | |:----:|--------|---------| | 🧝 | Elf | Elven Leap — phase through terrain | | 🧙 | Wizard | Arcane Spell — remote heal on ally | | 🧚 | Fairy | Magic Flight — fly over all obstacles | | 🛡️ | Knight | Heroic Charge — pack hunt scan |

| Tier | Icons | Example names | |:----:|:-----:|---------------| | L1 | 🐺 🐯 | WildWolf, ForestSnake | | L2 | 🐻 🦍 | ShadowBeast, MossOgre | | L3 | 🦏 🐃 | RootGolem, FrostLynx | | Boss | 🐗 🦏 🦣 🦖 🐲 | Named per wave |


🤖 Agents vs Bugs Mode

| Icon | Avatar | Ability | |:----:|--------|---------| | 🤖 | Robot | Turbo-Deploy — x2 speed when BUSY | | 🛰️ | Drone | Bypass — fly over walls | | 🛡️ | Firewall | Block Packet — terrain bypass + block | | 🔧 | Debugger | Remote Patch — heals nearby allies |

| Tier | Icons | Example names | |:----:|:-----:|---------------| | L1 | 🐛 🐜 | TimeoutError, TypeError | | L2 | 👾 🦂 | RaceCondition, MemoryLeak | | L3 | 🕷️ 🦠 | SegFault, InfiniteLoop | | Boss | 🦟 🐉 🤖 👹 💀 | Named per wave |


🗺️ Map Tiles

| Tile | Agents Aventure | Bugs | Effect | |:----:|-----------|------|--------| | ❤️ | Heart | Heart | +10 HP | | 🥩 / 🔋 | Meat | Battery | Refills hunger | | ⚔️ | Weapon | Crate | ATK +1 | | 🗡️ | Rare weapon | Hammer | ATK +2 | | ➕ | Cure | Cure | Heals | | 🕳️ | Trap | Trap | −3 HP | | 💰 | Gold | Gold | Score | | 🌲 | Tree | 🧱 Wall | Obstacle | | 🪨 | Rock | 🧱 Wall | Obstacle | | 🧱 | Brick wall | Brick wall | Built via BUILD |


🚀 Quick Start

Install from npm

npm install -g agents-mini-rpg
agent-rpg

Run from source

git clone https://github.com/Mundo-Dev0ps/agents-mini-rpg.git
cd agents-mini-rpg
npm install
npm run dev        # ts-node, no build step

Terminal size: minimum 107×34, recommended 140×42.
The game shows a resize gate if your window is too small — just resize to dismiss.

On first launch: mode menu → avatar menu → game starts. Navigate with ↑/↓ ↵, back with b, quit with q. Press 12 in mode menu or 16 in avatar menu for instant selection.


⌨️ Controls

| Key | Action | |:---:|--------| | ↑ ↓ ← → | Move | | space / | Interact (attack, pick up, talk) | | a | Class ability | | r | Respawn | | p | Pause / resume | | i / tab | Inspect agent panel | | m / esc | Settings overlay | | 12 / 16 | Quick-select in mode / avatar menus | | 15 | Filter event log (in-game) | | s | Toggle audio | | q | Quit |


📚 Documentation

| Doc | Contents | |-----|----------| | Compatibility | Supported agents, OS, terminals, requirements, troubleshooting | | MCP Integration | Setup, hook wiring, event log filters, privacy | | Settings & CLI Flags | In-game settings, --flags, env vars, audio | | Architecture | Layer overview, design decisions, engine internals | | Release & Contributing | CI, npm publish, adding agents/classes, PR guidelines |


📄 License

MIT — © agents-mini-rpg contributors


Built with ❤️ for the Claude Code community

⭐ Star this repo if it made your AI workflow more fun!

Star History Chart