All plugins

waifu-sprites

Video waifu companion that reacts to agent activity in real time — 12 states, 12 emotions, draggable dashboard overlay. Disclosure — by default the dashboard overlay downloads its video clips from jsDelivr (cdn.jsdelivr.net, a pinned commit of waifuai/waifuai.github.io), so jsDelivr sees your IP when the dashboard is open; set Clip source to local to serve your own clips. No agent text leaves the host.

thewaifuai22Desktopv3.2.0Updated 21 days ago

About

Video waifu companion that reacts to agent activity in real time — 12 states, 12 emotions, draggable dashboard overlay. Disclosure — by default the dashboard overlay downloads its video clips from jsDelivr (cdn.jsdelivr.net, a pinned commit of waifuai/waifuai.github.io), so jsDelivr sees your IP when the dashboard is open; set Clip source to local to serve your own clips. No agent text leaves the host.

🎬 waifu-sprites

Video-based AI companion for hermes-agent.

A dashboard plugin that displays a video-based waifu companion that reacts to your agent's state in real-time — idle, typing, thinking, calculating, and more.


✨ Features

  • Real-time state tracking — companion video changes based on agent activity (idle, typing, thinking, speaking, etc.)
  • Emotion detection — agent replies are scanned for emotional cues and matched to expressive clips; a RANSOC picker keeps repeats varied so the same face never plays twice in a row
  • Floating overlay — draggable sprite that stays visible over any dashboard page, or dock it inside the plugin tab
  • Manual controls — trigger any of the 12 states or 12 emotions from the dashboard tab
  • Settings — overlay toggle and size, state refresh interval, and clip source, editable right in the tab
  • Zero dependencies — pure Python backend (FastAPI, already part of Hermes) and a single hand-written frontend file; no build step

🏗️ Architecture

┌──────────────────────────────────────────────┐
│  hermes-agent                                │
│                                              │
│  __init__.py                                 │
│  └─ Hooks (pre_tool, post_llm, etc.)         │
└──────────────┬───────────────────────────────┘
               │ writes state.json
               ▼
┌──────────────────────────────────────────────┐
│  waifu-sprites plugin                        │
│                                              │
│  dashboard/plugin_api.py   (FastAPI backend) │
│  ├─ GET /status            current state     │
│  ├─ GET /video/{key}       serve local clips │
│  ├─ POST /state            manual override   │
│  └─ GET/POST /config       settings          │
│                                              │
│  dashboard/waifu.js        (frontend, IIFE)  │
│  ├─ Video player           crossfade swaps   │
│  ├─ Floating overlay       draggable         │
│  └─ Controls + settings                      │
└──────────────────────────────────────────────┘

Agent hooks update state.json, the backend exposes it under
/api/plugins/waifu-sprites/* (behind dashboard auth), and the frontend polls
/status and plays the matching clip.

Clips: by default the frontend streams clips from a pinned commit of the
sprite set hosted on jsDelivr, so the plugin itself stays small. Drop .mp4
files into videos/ (or docs/videos/) and set Clips → Local (or Auto) to
serve them from the plugin instead — useful offline. Clip files are numbered:
1.mp4–12.mp4 for states, e1.mp4–e12.mp4 for emotions, with -1/-2
alternates.


🎭 State Mapping

Agent states and emotions map to video files:

State/EmotionVideo FileDescription
idle1.mp4Default waiting state
listening2.mp4When agent is waiting for input
speaking3.mp4While agent is generating text
thinking4.mp4During LLM processing
typing5.mp4During file or code edits
searching6.mp4During web or file searches
......See plugin_api.py for the full map

Emotions are detected from reply text (celebratory → happy, apologies → sorry,
"let me…" → planning, and so on) — the keyword tables live in __init__.py
and plugin_api.py.


🔧 Configuration

Settings are editable in the dashboard tab and stored in config.json:

KeyDefaultMeaning
overlay_enabledtrueShow the floating draggable sprite
overlay_size320Overlay width in pixels (120–480)
poll_interval_ms2000How often the frontend polls agent state
video_sourceautoauto (local clips if present, else CDN), cdn, or local

🔒 Privacy & Network

  • The only third-party network traffic is fetching video clips from
    cdn.jsdelivr.net (a pinned, immutable commit) when video_source is
    auto/cdn. Point the plugin at local clips to run fully offline.
  • No telemetry, no analytics, no phone-home.
  • The backend API is served only through the authenticated dashboard.
  • state.json (sprite state only — no conversation content) lives beside the
    plugin; config.json stores your display preferences.

🚀 Installation

cd ~/.hermes/plugins
git clone <this-repo> waifu-sprites

Then restart the dashboard (plugin routes mount at startup) and enable the
plugin if prompted. Requires hermes-agent 0.13 or newer (requires_hermes: ">=0.13").


📁 Project Structure

waifu-sprites/
├── __init__.py              # Agent hooks (updates state.json)
├── state.json               # Shared state file (created at runtime)
├── config.json              # Plugin configuration
├── plugin.yaml              # Hermes plugin descriptor
├── videos/                  # Optional local video clips (MP4)
└── dashboard/
    ├── manifest.json        # Dashboard plugin manifest
    ├── plugin_api.py        # FastAPI backend
    ├── waifu.js             # Frontend (vanilla IIFE, no build step)
    └── waifu.css            # Frontend styles

🛠️ Stack

  • Backend: Python + FastAPI (mounted by the Hermes dashboard)
  • Frontend: hand-written IIFE on the Hermes dashboard plugin SDK (React provided by the host)
  • Video: HTML5 video with two stacked elements for gapless crossfade swaps

README from the reviewed commit 143e960; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section