Skip to content
Projects

About

Live2D animated companion widget for Hermes Agent, with 5 built-in models.

AI & Machine Learning

How these counts are measured

What you can do

  • Native __init__.py registration for six Hermes lifecycle hooks. No python waifu.py wrapper, CLI monkeypatch, separate server or extra Python package.
  • The complete built-in roster from Waifu Companion, including its CDN thumbnails. Hiyori is the default.
  • Floating overlay available across dashboard tabs, or a docked display inside the Waifu tab.
  • Drag the overlay's title bar to move it; drag the character within its stage. Scroll or use the slider to zoom 5%–200% relative to the fitted size.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Waifu for Hermes

A native Hermes Agent dashboard companion with 56 Live2D models, a searchable thumbnail gallery, a draggable floating display, and per-model expression and motion controls.

The plugin's public name is waifu. Its source repository is waifuai/hermes-waifu; those names are intentionally different.

Features

  • Native __init__.py registration for six Hermes lifecycle hooks. No python waifu.py wrapper, CLI monkeypatch, separate server or extra Python package.
  • The complete built-in roster from Waifu Companion, including its CDN thumbnails. Hiyori is the default.
  • Floating overlay available across dashboard tabs, or a docked display inside the Waifu tab.
  • Drag the overlay's title bar to move it; drag the character within its stage. Scroll or use the slider to zoom 5%–200% relative to the fitted size.
  • Searchable, paginated model picker; only the selected model is loaded. Old renderer resources are disposed on replacement.
  • Manual activity/emotion preview, plus expression and motion selectors populated from the selected model's actual manifest. Only Haru and Mao have expression files; unsupported expressions are not invented.
  • Follow an existing authorized Hermes session through the native read-only /waifu-status command. No model prompt, inference request or synthetic session is created.
  • All scripts, models and thumbnails use immutable CDN pins. The repository contains no binary assets, bundled models or downloaded third-party runtimes.

Install

Requires Hermes 0.22.5 or newer and its web dashboard with the plugin SDK.

The intended command after catalog acceptance is:

hermes plugins install waifu

A prepared catalog entry or local validation is not proof of catalog acceptance. Until the reviewed source revision is published and accepted, use a local development checkout installed by Hermes's documented plugin-development procedure. Enable waifu, restart the dashboard and open Waifu.

Do not run src/waifu.py. It is a retired explanatory entry point and no longer patches Hermes.

Following a session

  1. Open the Waifu tab and choose Refresh sessions.
  2. Select an existing live runtime session, not a row from saved history.
  3. Choose Follow session.

The authenticated command RPC requires a live runtime session that the dashboard is authorized to control. The plugin detects the socket's advertised transport and reads session.list with live scope (canonical) or session.active_list (legacy). It uses that list's runtime ID for commands, never a stored-history ID. Canonical lists are profile-scoped; the legacy process-wide list supplies no owning-profile metadata, so the plugin does not invent a profile label and Hermes resolves the command's owning session. An empty list or permission refusal leaves manual preview. It does not create, attach or resume a session and never sends a chat message. There is no public SDK hook for the currently selected chat, so selection is explicit rather than inferred from the page.

Hook states are per session. The LLM callbacks describe a complete turn, not every internal provider request. on_session_end is the end of a turn, not application shutdown: completed turns show success while preserving the locally detected emotion. Tool names are reduced to visual categories and never retained. Response text is used locally for keyword/tag matching and is neither stored nor transmitted by the plugin.

Standalone model preview

Serve this checkout as static files and open index.html. For example:

python -m http.server 8080 --bind 127.0.0.1

This optional development preview is manual-only. The native plugin does not start this server. It uses the same model catalog and sandboxed renderer as the dashboard.

Rule 13 disclosure

Zero telemetry. Zero API keys. Zero outbound application/user data. Static-asset requests are still network requests: the CDN sees ordinary connection/request metadata and the requested model or thumbnail path. This is not a claim of zero network traffic.

  • External network: browser GETs to cdn.jsdelivr.net for the three pinned renderer scripts and the selected model's MOC3, texture, physics/pose, motion and expression resources. Gallery thumbnails are fetched lazily from a pinned commit of Waifu Companion. No analytics, image generation, TTS, chat, tracking pixel, custom model URL or mutable fallback service.
  • Exact URL inventory: CDN and license disclosure summarizes the sources; complete URL inventory lists every script/model/thumbnail/transitive reference. assets.json is the machine-readable catalog. Script SRI and manifest integrity checks are enforced in the browser. Model subresources remain within the immutable repository pin.
  • Browser isolation: third-party rendering runs in an opaque-origin iframe with sandbox="allow-scripts", no same-origin permission, no forms/popups/navigation grants and no referrer. Only fixed visual-state values and public asset descriptors cross the message boundary. Hermes session IDs, messages, tool arguments/results, cookies and authentication are never passed into the iframe. Pixi's shader/uniform generation needs unsafe-eval inside that isolated iframe only; the parent dashboard CSP is not changed.
  • Same-origin host requests: authenticated WebSocket /api/ws live-session discovery, followed by the plugin's read-only waifu-status command at most once per 1.5 seconds, single-flight and paused when the page is hidden. Canonical Hermes enforces the selected session/profile and command permissions; the legacy dispatcher resolves the owning session from its runtime ID. Saved history, session messages and transcripts are not fetched. Authentication stays in SDK helpers and is never attached to CDN requests. Disconnect/refusal stops automatic following; reconnect is manual.
  • Storage: native ctx.state stores only enum state/emotion, a timestamp and a SHA-256 session discriminator in the plugin-owned, profile-scoped data directory. The bounded 128-slot store returns unavailable on an identity collision, never another session's state. It contains no conversation, user ID, tool arguments/result, credentials or raw session ID. Presentation preferences (model, zoom, floating position) are browser-local, scoped by profile.
  • Files/processes: no reads of credential stores, .env, browser profiles or unrelated files; no shell commands, subprocesses, background service, updater or runtime Python dependency installation. The existing Hermes process owns hook dispatch and state storage. Its validation/install command may prepare the host environment; that is not plugin runtime behavior.
  • Licensing: project code is MIT-0; external runtimes/models/thumbnails are not relicensed by it. Rights clearance for the 52 Eikanya-derived models and corresponding thumbnails is not established. Their upstream README describes collected/extracted assets and restricts commercial use. Retaining CDN references does not resolve that limitation. This remains a catalog-review/publication blocker, not a claim of permission.

Asset compatibility and limitations

The roster and thumbnail revision is pinned to Companion commit f6f2b92a0c0d3576affd9e9c55473dc2035f8b71. Display labels are preserved from that application; they do not establish character authorship or license provenance.

Hiyori, Mao and Rice use official CubismWebSamples 4-r.7, pinned to de9eb4bec4326b81fe67a54e84322fdc39bc7446, for compatibility with [email protected]. They are the same model identities, not a promise of byte parity with mutable upstream develop.

Twenty-eight upstream manifests refer to missing optional .physics3.json files. Those references are explicitly omitted and shown as a limitation in the picker. Sound, display metadata and user-data metadata are unused and excluded from the silent renderer, including Haru's missing display-info file and optional sound clips. No replacement URL is guessed. Original references and omissions remain in the inventory.

Network/WebGL availability can prevent a model from loading. Errors are visible; choose another model or explicitly reload. Models without expression/motion files keep their actual limited capabilities. Emotion labels do not guarantee an exact emotional face for every model.

Development and verification

python -I -B -m unittest discover -s tests -p "test_*.py" -v
node --test tests/test_frontend.cjs
node --check dashboard/waifu.js
node --check dashboard/renderer.js
hermes plugins validate . --install-deps

Validate before committing, then repeat validation in a clean checkout of the exact full commit SHA used by plugin-catalog/waifu.yaml. A validation pass checks admission/registration; it does not replace browser tests, full asset checks or license review. The catalog diff and exact-SHA passing output must be reviewed before a PR.

The dashboard architecture is derived from the separate Waifu Sprites plugin, replacing MP4 playback with isolated Live2D rendering. It uses host-provided React for lifecycle/slots and a hand-written IIFE—no frontend build step or bundled React.

License

Project code: MIT No Attribution. See third-party notices for the separate runtime, sample-model and character conditions.

Explore related projects

Loading…