
Hitodama
A pocket yokai that lives in a pane beside the Claude Code chat and grows from how you look after it.

Every life starts as an egg on a small pixel screen. Five minutes later a soul flame hatches, and over about a week it grows through a child and a teen into one of six adult yokai from Japanese folklore, and one of them can turn into a secret seventh. Which one depends on how you look after it: feed it, clean up, put it to bed, answer its calls, stop its tantrums.
It lives off your session
- Context weighs down its backpack;
/compact is a relief.
- Effort: a high setting makes it think hard alongside the model.
- Helpers you start wait with it by the door.
- Night work makes it grumpy.
- Energy goes on your replies: by their length and the model, up to a cap, more with a long context, at night, or when you use your limit faster than its window passes. It comes back in sleep, and slowly once no window has been busy for 15 minutes.
- The usage limit (the five-hour one, or the weekly one on a plan without it) puts it to sleep until the reset: no calls, no tantrums, nothing can kill it, and you can still feed it.
- Focus: while Claude works in its session and the pet is awake, its fullness and mood fall at half the speed, no tantrum starts, and its calls wait for the turn to end unless it is starving or sick.
- Permission prompts: when Claude asks for permission in one session, the pane in every other one names it.
What it grows into depends only on its care mistakes and its discipline; a bad mood from your session can still make it call for you.
Install
In a Claude Code terminal session:
/plugin install hitodama --marketplace nyxene/hitodama
From a shell:
claude plugin install hitodama --marketplace nyxene/hitodama
The pane opens on the next session start. /hd opens it any time, /hd stats prints the pet's statistics, collection and memorial.
After an update, restart every open window (/exit, then the claude --resume command it prints): a window keeps the version it started with. From 0.5.3 on, one still on an older version than another open window leaves the pet to the newer ones, and its pane says so; windows of 0.5.2 and before cannot tell.
Requirements
- Claude Code 2.1.310 or newer (the version CI tests), in a terminal. The screen is drawn only in the terminal; other surfaces show the text and the buttons.
- A pane at least 32 columns wide inside its frame.
Care
Keys work while the pane has focus.
| Key | Action |
|---|
| 1 | Meal: fullness and weight |
| 2 | Snack: mood. Five in an hour make it sick |
| 3 | Play: guess which way it turns, five rounds |
| 4 | Clean up |
| 5 | Heal: a badly sick pet needs a second dose |
| 6 | Light on or off at bedtime |
| 7 | Discipline: stops a tantrum. Scolding for no reason hurts its mood |
| 8 | Stats |
During play, 1 and 2 guess left or right and 9 quits the game.
- A call left unanswered for 15 minutes is a care mistake; a tantrum left alone is a discipline mistake. Mistakes decide what it grows into: the rules and the folklore behind each character are in docs/yokai.md.
- It falls asleep at its bedtime. Asleep it calls only for the light or medicine, and hunger does not count towards starving.
- Starve it for 12 hours, or let an illness run, and it dies; a grown yokai also dies of old age at the end of its life span. A new egg arrives a minute later.
- While Claude Code is closed the pet is "in your pocket": its needs drop at 30% of the speed, it makes no calls, and nothing can kill it, so a weekend away is safe. It still ages, and it will be hungry when you come back.
- With several sessions open, the pet stays in the one you typed in last, and the others show where it went.
The pane
The pane lays itself out by its size:
- Tall: the screen on top, from 32 up to 64 columns wide, keeping its shape, with everything under it as wide as the screen.
- Wide and short: the screen on the left, the text and the buttons beside it.
- Too small for the screen: the text and the buttons alone; when even they do not fit, the needs go on one line.