Skip to content

Real-time pixel-art visualization of Agent (Cursor & Claude Code) activity

Notifications You must be signed in to change notification settings

JamsusMaximus/codemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏨 CodeMap Hotel

Watch your AI coding agents come to life! See Claude Code and Cursor as pixel-art characters moving through a hotel, working at desks, reading files, and writing code in real-time.

CodeMap Hotel Demo

⚡ One Command Setup

Paste this into Claude Code or Cursor in any project:

npx github:JamsusMaximus/codemap

That's it! The hotel opens automatically and your agent appears. ✨


✨ Features

Feature Description
🎮 Live Visualization Watch agents move between rooms as they work on your code
🏢 Smart Layout Folders become rooms, files become desks, arranged by git activity
👥 Multi-Agent See up to 10 agents working simultaneously
💬 Speech Bubbles See what tool and file each agent is working on
🦘 Stuck Detection Agents bounce when waiting for input — never waste time on a stuck agent
🎨 Themed Rooms Components (blue), Server (green), Tests (peach), and more
Real-time Updates Instant feedback as agents read, write, and think
🔄 Dynamic Refresh Hotel reorganizes on each git commit

🤖 Works With

  • Claude Code — Full support, automatic hook configuration
  • Cursor — Enhanced features: model name, completion badges, operation timing

🎯 What You'll See

  • 💻 Computer screens light up when files are accessed
  • 🟡 Yellow glow = reading a file
  • 🟢 Green glow = writing code
  • 💭 Thinking indicator when agent is processing
  • 🚶 Walking animations as agents move between rooms
  • 🦘 Bouncing when agent needs your input or permission
  • Coffee shop where idle agents hang out

🛠 Alternative Setup

Clone and Run Locally

git clone https://github.com/JamsusMaximus/codemap
cd codemap
npm install
npm run dev

Then open http://localhost:5173/hotel

Setup Hooks Only (no server start)

npx github:JamsusMaximus/codemap setup

📖 How It Works

🤖 AI Agent      →  📡 Hooks      →  🖥 Server      →  🎨 Browser
(Claude/Cursor)     (capture)       (broadcast)       (render)
  1. Your AI agent reads/writes files or runs commands
  2. Hook scripts capture these events
  3. Server tracks activity and broadcasts via WebSocket
  4. Browser renders the pixel-art hotel in real-time

🔧 Technical Details

Server API (Port 5174)
  • POST /api/activity — File read/write events
  • POST /api/thinking — Agent thinking state
  • GET /api/graph — File tree data
  • GET /api/hot-folders — Git-ranked folders
  • WebSocket at /ws for real-time updates
Client Routes (Port 5173)
  • /hotel — Pixel-art hotel visualization
  • / — Force-directed graph view
Hook Scripts
  • file-activity-hook.sh — Captures file operations
  • thinking-hook.sh — Captures agent state, model, duration
  • cursor-stop-hook.sh — Captures Cursor completion status
  • git-post-commit.sh — Triggers layout refresh
Troubleshooting

Server not starting?

lsof -i :5174  # Check if port in use
curl http://localhost:5174/api/health

Hooks not firing?

tail -f /tmp/codemap-hook.log

No agents appearing?

curl http://localhost:5174/api/thinking | jq
Development
npm install
npm run dev           # Start server + client
npm test --workspaces # Run all 248 tests

📄 License

MIT — Built with ❤️ for the AI coding community

About

Real-time pixel-art visualization of Agent (Cursor & Claude Code) activity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •