# keys-wasserman/hermes-imagination-studio — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `media`
- Overall score: `3.9/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `4aec4c265dba` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/keys-wasserman/hermes-imagination-studio
- Radar entry: https://radar.alplab.co/#repo/keys-wasserman/hermes-imagination-studio
- License: `Apache-2.0`
- Tags: `hermes-plugin`, `media-generation`, `local-ai`, `http-client`, `image-video-audio`, `security-hardening`

## Summary

A Hermes plugin that bridges chat to a separate local 'Imagination Studio' app over HTTP: ten studio_* tools plus a /studio command that queue picture/clip/voice/song/sfx jobs and deliver the files as MEDIA lines.

## Implementation Check

The code implements everything the README claims for the plugin side: all ten tools and handlers (tools.py), the careful HTTP client (studio.py), registration and /studio command (__init__.py); rendering itself is honestly delegated to the external Studio repo.

## When to Use

When you run Hermes on or near a machine with Imagination Studio (and its GPU/MLX stack) installed and want chat-driven local image, video, voice, song and sfx generation. Not useful without that separate Studio running, and the Studio repo itself was not reviewed here.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 4.5/5 |
| integration | 4.0/5 |

## Code Evidence

studio.py implements a stdlib-only client with no-redirect policy (_NoRedirect, so the X-Studio-Key can never follow a 3xx elsewhere), refuses the key over plain http to non-private hosts (_private_host check in Studio.__init__), sanitises all paths (safe_name, library_path rejecting '..', '\\', '://', '~', control chars) and caps downloads (limit_bytes, deadline, O_EXCL|O_NOFOLLOW temp-file writes confined to the plugin folder). tools.py validates every numeric arg (_pick with _NUMBERS ranges) and filters control chars out of MEDIA lines. tests/test_plugin.py has ~39 tests against a fake Studio including hostile-response regressions: traversal job ids, forged 'MEDIA:' names, redirect key-leak, lying Content-Length, slow-drip downloads. README's disclosure section matches the code exactly (no subprocess, threads, telemetry).

## Issues Found

README references ~9 walkthrough images under assets/catalog/walkthrough/ that do not exist in the repository (only assets/catalog/banner.png, assets/catalog/imagination-studio.png and assets/demo/walkthrough.gif are present). No CI workflow despite the test suite. tests/pytest.ini only works when pytest is invoked from inside tests/ or with that ini, which the README documents but nothing enforces.

## Key Risks

Nothing was executed: the suite is read, not run, and there is no CI config to keep it green. All actual rendering lives in the unreviewed drowzeys/Imagination-Studio-by-keys-Wasserman repo, so output quality, engine licences and the Studio's own API shape are taken on trust. Project is 2 days old, 1 contributor, 9 commits (hackathon submission); the Studio HTTP API may still move. README's per-tool screenshots (assets/catalog/walkthrough/*.jpg) are not in the tree, so those images are broken in the repo.

## Reviewed Files

- `README.md`
- `plugin.yaml`
- `__init__.py`
- `studio.py`
- `tools.py`
- `tests/test_plugin.py`
- `tests/pytest.ini`
- `skills/imagination-studio/SKILL.md`
