Skip to content

Multi-session manager for Claude Code with interactive 3D visualization

License

Notifications You must be signed in to change notification settings

scorredoira/claudex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claudex

Claudex

A multi-session manager for Claude Code with an interactive 3D visualization.
Run and monitor multiple Claude Code instances from a single web interface.

Claudex 3D World

Features

Session Management

  • Multiple Sessions: Run several Claude Code instances simultaneously
  • Auto-Resume: Automatically resumes your last Claude Code session when opening a robot (sessions < 24h)
  • Session Experiments: Fork any session to create experimental branches
  • Fullscreen Terminal: Sessions open in fullscreen with complete xterm.js terminal
  • State Persistence: Sessions, camera position, and UI preferences are saved server-side

3D World

  • Interactive Environment: Navigate your sessions in a 3D world with cute robots on hexagonal tiles
  • Robot Customization: Personalize each robot with different models, colors, and accessories
  • Living World: Grass details with flowers, tufts, and small rocks; animated clouds
  • Separate Islands: Create disconnected hex islands by double-clicking on empty space
  • Real-time Status: Visual indicators show what each session is doing (idle, thinking, executing, waiting for input)

Claude Code Integration

  • Claude State Detection: Reads Claude Code JSONL transcripts to show current tool, model, and token usage in tooltips
  • Multiline Input: Shift+Enter inserts newlines without executing (like native Claude Code)
  • Desktop Notifications: Get notified when a session needs your attention

UI

  • Light/Dark Theme: Toggle between themes with persistent preference
  • Two Views: 3D World or traditional Cards grid layout

Terminal Session

Quick Start

Prerequisites

Run

cd server
go build -o claudex .
./claudex

Open http://localhost:9090

Keyboard Shortcuts

3D View

Shortcut Action
Click on robot/tile Open session
Right-click on robot/tile Show action menu (experiment, customize, restart, delete)
Click on empty tile Create new session
Double-click on empty space Create new island
Space Center camera on sessions
Cmd/Ctrl (hold) Show session labels on tiles

Terminal

Shortcut Action
Shift+Enter Insert newline (multiline input)
Shift+Escape Close session

Architecture

claudex/
├── server/              # Go backend
│   ├── main.go          # HTTP server entry point
│   ├── claude/
│   │   └── transcript.go # Claude Code JSONL transcript reader
│   ├── session/
│   │   ├── session.go   # PTY session with Claude Code
│   │   └── manager.go   # Multi-session management
│   └── ws/
│       └── handler.go   # WebSocket for real-time communication
├── web/                 # Frontend
│   ├── index.html
│   ├── css/style.css
│   └── js/
│       ├── app.js       # Main application logic
│       └── world3d.js   # Three.js 3D world
└── sessions/            # Session persistence (JSON)

Technology Stack

API

REST Endpoints

Method Endpoint Description
GET /api/sessions List all sessions
POST /api/sessions/create Create new session
DELETE /api/sessions/{id} Delete session
PUT /api/sessions/{id}/name Rename session
PUT /api/sessions/{id}/customize Update robot customization
POST /api/sessions/{id}/experiment Create experiment fork
GET /api/sessions/{id}/claude-state Get Claude Code state
GET /api/sessions/{id}/claude-session Check for resumable Claude session
GET /api/client-state Get UI state (camera, theme, etc.)
PUT /api/client-state Save UI state

WebSocket Messages

Client → Server:

  • subscribe / unsubscribe: Session output subscription
  • start / stop: Control Claude Code process
  • input: Send terminal input
  • resize: Update terminal dimensions

Server → Client:

  • output: Terminal data (Base64)
  • status: Session state changes

License

MIT

About

Multi-session manager for Claude Code with interactive 3D visualization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •