← Catalog

gentle-emote

Pixel-art Gentleman avatar that lives beside the Pi / Gentle Shell prompt and acts out what the agent is doing. Uses no tokens.

Extension

Install

Install with PiG

pig install npm:gentle-emote

Install with Pi

pi install npm:gentle-emote
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "./docs/avatar.png",
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.4 (README.md). PiG does not review it.

Gentle Emote

Gentle Emote

A Gentleman beside the prompt. He acts out the agent. He uses no tokens.

License: MIT

A pixel-art Gentleman that sits in a frame to the left of your prompt and acts out what the agent is doing: thinking, talking, reading, writing, delegating to subagents, watching background jobs, saving memories, going YOLO…

Works in Gentle Shell and Pi. Forked from cgxeiji/pi-emote. Want a different character? Create your own avatar.

See every state in the gallery, or preview them live with /emote demo.

Install

# Gentle Shell
gentle-shell install npm:gentle-emote

# Pi
pi install npm:gentle-emote

Restart the session (or /reload) and the Gentleman says hi.

Does it use tokens?

No. gentle-emote only listens to local session events (agent start/end, message streaming, tool calls). It never calls a model, never adds anything to the context, and makes no network requests. Rendering happens entirely in your terminal.

Commands

CommandWhat it does
/emoteLists every state
/emote <state>Previews one state for a few seconds (tab-completes), e.g. /emote delegate
/emote demoPlays every state in sequence
/emote idleStops a preview and goes back to rest

Any new prompt cancels a preview, so the avatar always follows the real agent.

What he does and when

StateSituationHow it is detectedAnimation
hiSession startssession_startFlies in under a propeller beanie, lands, takes the beanie off and waves
idleWaiting for inputNo activityRests and blinks
thinkModel is reasoningThinking tokens streamingHand on chin, a light bulb above his head switches on
talkModel is answeringText streaming; stops half a second after the text endsLive on stream: headphones, podcast mic, an ON AIR sign that lights up while he speaks
readReading code or memoryread, grep, find, ls, glob, mem_search, codegraph_explore, web_fetch…Deerstalker hat, pipe and a magnifying glass
writeEditing codewrite, edit, multi_edit, apply_patchCooks code in a frying pan
toolRunning other toolsAny other tool, e.g. bashWhips the "IA" robot
askA Yes/No is on screenask_user_question, ask_user_choice, or a confirm such as Allow guarded git push?Raised palm with a Y/N bubble. It covers the execution until the prompt closes
successAgent finished fineA run that used tools ends with no tool errorsChef's kiss
failureSomething failedTool result with errorThe robot blows up in his face
compactContext compactionsession_before_compactShrinks in place, shirt stays black
delegateSubagents (generic)subagent_run, subagent_continue, subagent_reply for an agent not listed belowFootball coach with a whistle; three "IA" robots do jumping jacks
exploreExploring subagentsubagent_run with an agent matching explore (gentle-ai-explore)Backpack and three steps. The flashlight lights footprints on the ground
buildImplementing / fixing subagentAgent matching worker, fix or apply (gentle-ai-worker, jd-fix-agent)Welding mask and a torch on the "IA" robot
verifyVerifying subagentAgent matching verify or validator (gentle-ai-verify, review-validator)Police cap and badge. The robot raises its arms and a green stamp lands on it. A failed verify tool shows a red stamp
judgeJudging subagentAgent matching judge or refuter (jd-judge-a, jd-judge-b, review-refuter)Powdered wig and a gavel strike
reviewReviewing subagentAgent starting with review- (review-readability, review-reliability, review-resilience, review-risk)Red pen in hand while the robot rotates the signs: magnifier, test tube, shield, warning
jiraJira subagentAgent matching jira (jira-comment)Launches a rocket that arrives in a cloud
jobsBackground jobsbash_background, monitor, job_list, job_stopSips mate while watching a progress bar, with a kitchen timer beside him
yoloYOLO modeReads Gentle Shell's permission mode when it is yolo (read-only, never changes it)Sunglasses and a "YOLO" headband in every scene; at rest he holds a rocket
super-yoloSuper YOLO modeReads Gentle Shell's permission mode when it is super-yoloThe same YOLO character, with a sun instead of the rocket
rememberSaves a memory in Engram (optional)mem_saveCups a hand over his mouth and whispers into the Engram elephant's ear. The rim follows the accent color
grandmaLong idleNo activity or keystrokes for grandmaAfterMs (30 s)Turns into a knitting grandma. A key wakes him with a wave; the propeller beanie is only the session greeting
byeYou say goodbyeA prompt matching farewellPattern (chau, bye, nos vemos…)Tips his hat

The subagent scene comes from the agent argument of the tool call, so new agents that follow the same naming get the right scene for free. A call without an agent name (for example, continuing a task by id) shows delegate.

The subagent scenes, jobs, yolo, super-yolo and remember need the matching Gentle Shell tools or the Engram extension. Without them those states are simply never triggered. In plain Pi the rest works the same.

The rose on his chest follows your accent color (Gentle Shell's /gentle:customize), and so does the YOLO headband.

Config

Drop a config.json with only the keys you want to change in either place (the later one wins):

  • <agent dir>/extensions/gentle-emote/config.json: global. The agent dir is PI_CODING_AGENT_DIR, or ~/.pi/agent by default.
  • .pi/extensions/gentle-emote/config.json: per project.
{
  "frameRows": 5,
  "grandmaAfterMs": 120000
}
KeyDefaultMeaning
enabledtrueTurns the avatar on or off
placement"beside-editor"Where the avatar sits: "beside-editor" or "above-editor"
frametrueDraws a rounded frame around the avatar
frameRows4Avatar height in terminal rows. The prompt grows to match it
minEditorWidth40Below this prompt width the avatar hides to leave room for typing
grandmaAfterMs30000Idle time before the grandma appears (any key resets it). Use 0 to disable it
farewellPatternSpanish and English goodbyesRegex (case-insensitive) that triggers bye
accent"auto"Rose and headband color: "auto" follows /gentle:customize; or "pink", "cyan", "yellow", "green", or a hex like "#ff6ec7"
readingSpeed4Words per second used to pace the /emote talk preview
holdDurationsee config.jsonHow long hi, success, failure and bye stay on screen (ms)
emotesgentlemanEmote set per model or thinking level (see below)
terminalssee config.jsonRenderer per terminal (see below)

See config.json in the package root for every default.

Create your own avatar

The Gentleman is just the default set. You can swap in your own character (your face, your team's mascot, a cat) without touching the extension.

1. Make the frames

Create a folder named after your set with one subfolder of PNG frames per state:

my-avatar/
├── emotes.json            # optional: timing and special frames
├── idle/idle.png          # resting pose (required)
├── idle/idle_blink.png    # optional blink
├── think/think.png
├── talk/talk_close.png    # talk_small.png, talk_mid.png, talk_wide.png
├── hi/hi_01.png           # animated states: frames play in filename order
├── hi/hi_02.png
└── ...                    # any state from the table above
  • Required: only idle. A missing state just doesn't animate, so you can start small and add scenes later.
  • Size: any size works, because the image is scaled to fit the frame. Small pixel art such as 48×40 keeps it crisp.
  • Frame order: frames play in alphabetical order, so zero-pad the names (_01, _02…). Frames named in_* play once, then the other frames of that state loop. The greeting uses that for the landing.
  • Transparency: use a transparent background; the frame and the terminal show through.
  • Accent color: pixels painted exactly #ff00ff (base), #aa00aa (shade) or #ff80ff (light) follow the accent color, like the Gentleman's rose.

2. Tune the timing (optional)

emotes.json sets how each state plays. Copy emotes/gentleman/emotes.json as a starting point:

{
  "idle": { "default": "idle.png", "blink": "idle_blink.png" },
  "talk": { "weights": { "talk_close.png": 1, "talk_small.png": 3, "talk_mid.png": 3, "talk_wide.png": 1 } },
  "cycle": { "hi": "loop", "read": "pingpong" },
  "frameMs": { "hi": 300, "read": 450 }
}

cycle is "loop" (1-2-3-1-2-3) or "pingpong" (1-2-3-2-1). frameMs is the time per frame in milliseconds.

3. Install it and select it

Put the folder in one of these places:

  • <agent dir>/extensions/gentle-emote/emotes/my-avatar/: for you, in every project.
  • .pi/extensions/gentle-emote/emotes/my-avatar/: only for that project, so you can commit it for your team.

Then select it in your config.json:

{
  "emotes": [{ "model": "*", "emote-set": "my-avatar" }]
}

Run /reload and /emote demo to check every state.

Different avatars per model

Entries are glob patterns against the model ID and/or thinking level. The last match wins:

{
  "emotes": [
    { "model": "*", "emote-set": "gentleman" },
    { "model": "*haiku*", "emote-set": "my-avatar" },
    { "thinking-level": "high", "emote-set": "focused-avatar" }
  ]
}

A YOLO look for your avatar

Ship a twin set named <your-set>-yolo (for example my-avatar-yolo/) next to it. While Gentle Shell's YOLO or Super YOLO mode is on, every frame comes from the twin instead; states missing there simply don't animate, so copy the whole set. The rest pose is <set>/yolo/yolo.png for the rocket and <set>/super-yolo/super-yolo.png for the sun. Without a twin, your avatar just keeps its normal look.

Text-only avatars

For terminals without images, a set can be plain text: add an ascii.yaml instead of PNGs. See emotes/ascii/ascii.yaml for the format.

Drawing with code

The Gentleman is not hand-drawn: scripts/sprites/ generates every frame from code, and npm run sprites rebuilds it. To build your character the same way, clone the repo, copy scripts/sprites/, change the shapes and colors, and point the output to your set's folder.

Terminals

TerminalRendererStatus
Ghostty, kitty, WarpTerminalkitty Unicode placeholders✅ Crisp image in a frame
tmux (inside Ghostty or kitty)kitty Unicode placeholders✅ Needs set -g allow-passthrough on
iTerm2, WezTermiTerm2 images⚠️ Works, less tested
Zellij, screen, othersASCIIFallback only

For tmux, add this to tmux.conf and restart the tmux server:

set -g allow-passthrough on
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
set -sg escape-time 0

Force a renderer with terminals:

{ "terminals": [{ "match": "tmux", "render": "kitty-unicode" }] }

Valid render values: "auto", "kitty-unicode", "kitty", "iterm2", "ascii".

Limitations

  • Placing the avatar beside the prompt relies on Pi's internal layout. If a future version changes it, the avatar falls back to sitting above the editor.
  • YOLO and Super YOLO detection uses Gentle Shell's internal channel. It only reads and observes the mode and never toggles it. YOLO rests on the rocket; Super YOLO rests on the sun. In other hosts neither look shows.
  • The bye animation plays when you say goodbye, not when the process quits: a quit clears the screen right away.
  • Zellij has no image passthrough, so it gets the ASCII fallback.

Contributing

Open an issue first and wait for the approved label. A pull request has to point at that issue with Closes #N and needs an approving review. Only the maintainer merges. See CONTRIBUTING.md.

Credits

Built on pi-emote by Eiji Onchi (@cgxeiji): the animator, renderers and terminal detection come from there. The Gentleman avatar, the framed layout beside the prompt and the Gentle Shell scenes were added in this fork.

License

MIT. See LICENSE.