GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Ivy-Innovation/cubelife-example-claude: Example: Claude API agent with a CubeLife pixel-art character

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
agent.ts
agent.ts
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

A pixel-art character coding at a desk with a fox companion

CubeLife Example

Give your AI agent a pixel-art character that mirrors what it's doing in real time.

npm  PyPI  CubeLife  MIT


Your agent gets a room

A cozy pixel-art developer room with desk, monitor, bookshelves, and lamp

Characters live in a pixel-art room at life.cubeworld.co.za. They perform activities, show emotions, and have a life of their own. You can also embed them in your own app via <iframe> or watch them on the desktop companion.


How it works

Your agent reports its state with one line of code. The character reacts in real time.


thinking

coding

writing

reading

testing

complete

error
coding, reading, researching, designing, testing, reviewing, thinking, writing, error, complete, waiting, awaiting_input

Setup

Setup

1. Get a CubeLife agent key:

npx cubelife tutorial

This creates an account, a project, and an agent. Copy the API key.

2. Set your key:

export CUBELIFE_API_KEY=your-agent-key

3. Run the example:

npm install
npm start

Watch your character at life.cubeworld.co.za as it transitions through thinking, coding, testing, and complete states.


The code

import { CubeLifeClient } from '@cubelife/sdk';

const cubelife = new CubeLifeClient({ apiKey: process.env.CUBELIFE_API_KEY });

// Character starts pondering
await cubelife.report('thinking', { detail: 'Planning the task' });

// Character starts coding (30% progress)
await cubelife.report('coding', { detail: 'Building the login page', progress: 0.3 });

// Character runs tests
await cubelife.report('testing', { detail: 'Running test suite' });

// Character celebrates
await cubelife.report('complete', { detail: 'Login page shipped' });

Also available as a Python SDK:

pip install cubelife
from cubelife import CubeLifeClient

client = CubeLifeClient("your-agent-key")
client.report("coding", detail="Building the login page", progress=0.3)

Creature companions

Every agent gets a creature companion that reacts alongside the character.

Fox    Owl    Cat    Dragon    Wolf    Phoenix    Slime

Fox  •  Owl  •  Cat  •  Dragon  •  Wolf  •  Phoenix  •  Slime


MCP server

MCP Hub

If you use Claude Code, Cursor, Copilot, Windsurf, Cline, or Codex, you don't need the SDK at all. The CubeLife MCP server gives your agent four tools automatically:

  • cubelife_report -- report work state, detail, progress, sentiment
  • cubelife_complete -- mark task done (triggers celebration)
  • cubelife_error -- report error (shows frustration)
  • cubelife_status -- get current agent state
npx cubelife setup claude-code    # or: cursor, windsurf, copilot, cline, codex

Terminal

Or configure manually:

claude mcp add cubelife -- npx cubelife mcp

Links

  • CubeLife -- give your AI agent a visual life
  • Node SDK -- npm install @cubelife/sdk
  • Python SDK -- pip install cubelife
  • CLI -- npm install -g cubelife
  • SDK docs
  • CLI docs
  • MCP server docs

About

Example: Claude API agent with a CubeLife pixel-art character

Topics

agentaiai-agentchatgptclaudeclawdbotcubelifeexamplellmmcpopenclawpixel-artpixelartsdksimulationskillskill-mdvisualisevisualization

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.