afterware
Resources
Saved
1/2
Interface · build

Tokibot: an e-ink pet that eats your agent's tokens

Original

A pixel critter on an e-paper screen mirrors what Claude Code is doing, and the tokens your agents burn become its food. It runs on a Raspberry Pi 5 with a stripped-down Buildroot image.

Build sheet
Base
Raspberry Pi, Buildroot image
Display
E-paper, pixel critter
Input
USB or Wi-Fi from client
Language
Python
Can I build this?Intermediate · AI 4/5 · $80–130
Difficulty
Intermediate
AI-buildability
4/5

Nearly all of the work is Python, hooks and a Buildroot image, which AI tools handle well, while the e-paper wiring and optional case need some hands-on assembly.

Time
A weekend
Cost
$80–130
Tools
computer for flashing3D printer (optional, for an enclosure)
Starter prompt

Based on "Tokibot: an e-ink pet that eats your agent's tokens" on Afterware: https://afterware.xyz/p/tokibot-an-e-ink-critter-fed-by-coding-agents

Write a Python service for a Raspberry Pi that drives a small e-paper display and shows a pixel critter whose mood changes with the state of a coding agent session. Accept state updates over HTTP from a hook script, and map states such as working, waiting for permission, done and rate limit to different pixel faces. Keep the display refresh slow and avoid flicker by holding each mood for at least 30 seconds.

Estimates based on the original write-up. How AI-buildability is scored. Building with an AI assistant? Connect it to Afterware (free MCP server).

Story

Tokibot is a Tamagotchi for the coding-agent era. A pixel critter lives on an e-paper display and shifts mood as your agents work: ready, working, permission, waiting, done, rate limit. Glance over and you know whether Claude Code is chugging along or stuck waiting on you. Every token spent feeds a food meter.

A client script taps Claude Code's hooks and status line, then pushes session state over USB or Wi-Fi to the Python Tokibot service on a Raspberry Pi. The image is built with Buildroot instead of Debian, an idea borrowed from Pwnagotchi. It holds the service and the bare minimum around it. Progress, XP and the food meter sit on a small writable data partition, so root filesystem updates don't wipe your pet.

There's also a leaderboard. The device signs a small score card with an Ed25519 key and posts it to a public highscore page. The author calls it a game, not an audit.

Resources · 4
More like this
More like this