All plugins

klieg

Motion design for Hermes. klieg_motion lets the agent author a scene - kinetic type, transitions, lower-thirds, logo stings, loops, explainers - as a declarative spec, a template, or raw HTML+GSAP, and render it to MP4/GIF locally with no API keys; rendering is deterministic (seek + screenshot per frame) so motion is smooth, and each render is a detached job verified by its artefact. The same job engine drives Blender and other DCC hosts (Houdini, Nuke, Cinema 4D, After Effects, Resolve) behind one adapter interface: probe what is installed, run scripts inside the host, render frame ranges as resumable jobs that survive the agent's shell. A job is only "done" when its artefact is newer than the job started - klieg_jobs verify compares mtime and the promised frame count, so a render that dies at frame 3 of 288, or emits frames from a blend that failed to rebuild, cannot report success. klieg_plan resolves a pass without running or writing anything. One GPU, one render: a second request queues behind the holder, queue=false refuses, and killing the holder dispatches the next job. klieg_publish encodes with explicit BT.709 conversion and colour tags, including mid-sequence and gapped frame sets. Built-in gates (flash, loop, stats, safe_band) measure any frame set with numpy/Pillow, no DCC required. klieg_ledger seals a finished job's provenance - scene, script, every frame, colour manifest, encode - into sha256 commitments and checks it for drift later. Children get a 13-variable environment allow-list, never os.environ, and key/token/secret names are dropped and recorded. Disclosure - klieg_run, klieg_track and klieg_gate script=... execute model-authored Python inside the host application with the user's privileges; klieg_motion render/preview executes model-authored HTML+JavaScript in a headless browser (playwright/chromium) and spawns ffmpeg. All are approval-gated per action (read-only actions of mixed tools pass free); unattended runs fail closed. Klieg is not a sandbox: an approved script or scene is arbitrary code, and a malicious scene file executes when the host opens it. Outputs are refused under system and credential paths. The flash gate is a screening approximation, not a certified Harding test; the ledger detects drift but is not a signature. A live session bridge into a running Blender is available through klieg_session; other hosts remain batch-only. After Effects and Resolve are reported present-but-unsupported rather than faked. Motion rendering requires playwright + a chromium headless shell (reported as data when absent). Built with AI assistance (Hermes Agent); author-reviewed and tested. Disclosure — klieg_run, klieg_track, klieg_gate with a script and klieg_session eval run model-written Python inside Blender or another installed DCC app with your user privileges, and klieg_motion runs model-written HTML and JavaScript in a headless Chromium (playwright, sandbox off) and spawns ffmpeg; each of these, plus renders, encodes and job kills, asks for approval first and fails closed in unattended runs. Opening a scene file in the host app can run code stored in it. Detached render jobs keep running after the agent's shell exits. Job logs, scenes, the taste model and ledger live in the plugin's data folder.

LangerSword9Toolsv0.3.1Updated 7 days ago

About

Motion design for Hermes. klieg_motion lets the agent author a scene - kinetic type, transitions, lower-thirds, logo stings, loops, explainers - as a declarative spec, a template, or raw HTML+GSAP, and render it to MP4/GIF locally with no API keys; rendering is deterministic (seek + screenshot per frame) so motion is smooth, and each render is a detached job verified by its artefact. The same job engine drives Blender and other DCC hosts (Houdini, Nuke, Cinema 4D, After Effects, Resolve) behind one adapter interface: probe what is installed, run scripts inside the host, render frame ranges as resumable jobs that survive the agent's shell. A job is only "done" when its artefact is newer than the job started - klieg_jobs verify compares mtime and the promised frame count, so a render that dies at frame 3 of 288, or emits frames from a blend that failed to rebuild, cannot report success. klieg_plan resolves a pass without running or writing anything. One GPU, one render: a second request queues behind the holder, queue=false refuses, and killing the holder dispatches the next job. klieg_publish encodes with explicit BT.709 conversion and colour tags, including mid-sequence and gapped frame sets. Built-in gates (flash, loop, stats, safe_band) measure any frame set with numpy/Pillow, no DCC required. klieg_ledger seals a finished job's provenance - scene, script, every frame, colour manifest, encode - into sha256 commitments and checks it for drift later. Children get a 13-variable environment allow-list, never os.environ, and key/token/secret names are dropped and recorded.
Disclosure - klieg_run, klieg_track and klieg_gate script=... execute model-authored Python inside the host application with the user's privileges; klieg_motion render/preview executes model-authored HTML+JavaScript in a headless browser (playwright/chromium) and spawns ffmpeg. All are approval-gated per action (read-only actions of mixed tools pass free); unattended runs fail closed. Klieg is not a sandbox: an approved script or scene is arbitrary code, and a malicious scene file executes when the host opens it. Outputs are refused under system and credential paths. The flash gate is a screening approximation, not a certified Harding test; the ledger detects drift but is not a signature. A live session bridge into a running Blender is available through klieg_session; other hosts remain batch-only. After Effects and Resolve are reported present-but-unsupported rather than faked. Motion rendering requires playwright + a chromium headless shell (reported as data when absent). Built with AI assistance (Hermes Agent); author-reviewed and tested. Disclosure — klieg_run, klieg_track, klieg_gate with a script and klieg_session eval run model-written Python inside Blender or another installed DCC app with your user privileges, and klieg_motion runs model-written HTML and JavaScript in a headless Chromium (playwright, sandbox off) and spawns ffmpeg; each of these, plus renders, encodes and job kills, asks for approval first and fails closed in unattended runs. Opening a scene file in the host app can run code stored in it. Detached render jobs keep running after the agent's shell exits. Job logs, scenes, the taste model and ledger live in the plugin's data folder.

Klieg

Motion design for Hermes.

Hermes can describe an animation; Klieg gives it hands to actually make one. Author a
scene - kinetic type, a transition, a lower-third, a logo sting, a loop - and Klieg
renders it to MP4/GIF locally, no API keys. The same job engine that drives Blender
survives the wall-clock: detached, logged, and verified by the artefact on disk, not the
exit code. Then it seals what was produced, so you can prove later that nothing drifted.

Catalog entry · if this is useful, a star helps the next person find it.

how klieg works

Whiteboard: agent, approval gate, adapter, job directory, verify. 1600x900.

50s launch film — a cinematic explainer, not a screencast:
the stale-frame trap, the artefact rule, the six-stop pipeline, then the ledger seals the
frames and catches a re-touched one. GSAP motion, captions in the picture, an in-repo synth
bed; no AI voice, no terminal.
Rebuild: python scripts/render_explainer.py (renders the HTML frame-by-frame, then muxes).
Source: docs/explainer/index.html.

Motion design (the core)

klieg_motion turns a scene into a film. Hermes authors a declarative spec (layers,
keyframes, easing), raw HTML+GSAP, or starts from a template:

  • action=templates - starters: title-reveal, lower-third, kinetic-quote, logo-sting.
  • action=render template=title-reveal params={"word":"KLIEG"} out=clip.mp4 - compiles
    the scene and renders it frame-by-frame to MP4/GIF as a detached job; poll with
    klieg_jobs, confirm with verify.
  • action=preview ... t=2.5 - render one frame to iterate cheaply before a full render.

Effects: fade, rise, drop, slide, scale, pop, blur, spin. Easing: expo / power / back /
elastic. Text splits into chars or words for staggered kinetic type. Backgrounds: solid,
gradient, grain, vignette. Output: 1080p, square, or vertical for social.

Needs playwright + a chromium headless shell in the render interpreter (point
KLIEG_PYTHON at it). Rendering is deterministic - every frame is fully painted, so
motion is smooth with no screencast frame-drops.

Six decisions

1. A job is done only when its artefact is newer than the job start.
klieg_jobs action=verify compares each expected file with the job start time. It also
counts the frames. A render that stops at frame 3 of 288 fails. A render that emits 288
frames from a scene that did not rebuild fails.

2. Plan costs nothing.
klieg_plan returns the argv, the expected files, a predicted duration, and the blockers.
It does not start a render and it writes nothing. Check a weak model in one call, before it
spends an hour.

3. One GPU, one render.
klieg_render takes a lock for each host. A second render enters the queue and reports its
position in that host's queue. queue=false refuses. Killing the holder hands the GPU to
the next queued job immediately.

4. Approval is per action.
Verbs that execute code, spend GPU time, or overwrite deliverables send an approval
request. Read-only actions of a mixed tool do not: klieg_session status/list/colour,
klieg_colour probe/compare/tags, built-in klieg_gate gate=..., klieg_ledger check/show. Unattended runs fail closed.

5. Colour is a record, not a tag.
klieg_colour action=write stores the view transform, the look, the exposure, and the
sha256 of the OCIO config in colour_manifest.json. action=compare reports each field
that changed. A different view transform gives a different film.

6. Provenance is a hash, not a claim.
klieg_ledger action=seal hashes the scene, the script, every frame, the colour manifest
and the encode into a ledger; action=check re-hashes and reports every changed, missing
or added file. "These exact frames came from this exact scene" becomes checkable.

Tools

tooluse
klieg_motionauthor + render 2D motion design: scenes/templates -> MP4/GIF, preview a frame
klieg_probelist the hosts on this machine and their versions
klieg_planresolve a render without running it (writes nothing)
klieg_sceneread the engine, resolution, frame range, view transform, and object count
klieg_runrun a script in a host; detach it when it is long
klieg_renderrender a frame range as a job that queues behind the GPU holder
klieg_trackrun a projection script and confirm the file it wrote
klieg_gatebuilt-in gates over frames (flash, loop, stats, safe_band), or a DCC script that prints KLIIEG_GATE {json}
klieg_jobslist, queue, status, log, verify, kill
klieg_publishencode frames with BT.709 conversion and colour tags; mid-sequence and gapped frame sets included
klieg_sessionopen a socket to a running Blender, run code, read colour state, stop
klieg_colourwrite, compare, or check a colour manifest
klieg_tasterecord verdicts, train a preference (held-out accuracy), score a frame
klieg_ledgerseal a finished job's provenance; check it for drift; show the seal

Built-in gates

klieg_gate gate=<name> frames_dir=<dir> measures any numbered PNG sequence with
numpy/Pillow — no DCC, no model-authored code, no approval prompt:

  • flash — full-field luminance transitions per second, against the 3-flashes/s
    photosensitivity guideline. An approximation, explicitly not a certified Harding test.
  • loop — first-vs-last frame difference and changed bbox: does the sequence close?
  • stats — per-frame exposure/clipping, temporal stability, exposure drift.
  • safe_band — worst-frame detail (edge energy) inside platform UI margins.

Run it

git clone https://github.com/LangerSword/hermes-klieg ~/.hermes/plugins/klieg
hermes plugins enable klieg
# Start a new session. Then list the hosts:
klieg_probe

# Proof 1: render two frames, verify them, encode them.
python3 scripts/e2e.py

# Proof 2: start a real Blender and drive it over a socket.
python3 scripts/test_bridge.py

# The test suite. No Blender and no GPU are necessary; numpy/Pillow optional
# (pixel tests skip cleanly without them).
python3 -m unittest discover -s tests

Blender finds its Python library from the first python3 on PATH. A pyenv or conda entry
breaks that lookup. Run Blender with PATH=/usr/bin:/bin.

Evidence

checkcommandresult
tests (deps installed)python3 -W error::ResourceWarning -m unittest discover -s tests159 tests, OK (1 skip)
tests (bare stdlib)same, without numpy/Pillow/playwright159 tests, OK (26 skips)
motion, liveklieg_cli.py motion render --template title-reveal …title-reveal rendered to a verified 1080p MP4
live bridgepython3 scripts/test_bridge.py10 of 10 checks on Blender 5.3.0; supports 4.2+
end to endpython3 scripts/e2e.pyframes 1-2 rendered, verified, encoded, 5,573 bytes
ledger, liveklieg_cli.py ledger seal/check --job e2e-…sealed, intact: true
gates, liveklieg_cli.py gate loop/stats/flash --frames …loop closed at 0.0 diff; 0 flashes/s
plugin admissionhermes plugins validate .validation passed
registrationhermes plugins doctor .14 tools, 1 hook
served surfacepython3 smoke_load.pyload + register + hook/handler dispatch, LOAD SMOKE OK (stdlib only)

VERIFICATION.md gives each check with its output, and each claim that is not verified.

Limits

  • This repository includes the GUI add-on. The tests do not cover it. This machine had no
    interactive Blender. The headless server uses the same protocol, and it passes the bridge test.
  • The live bridge supports Blender only. Houdini, Nuke, and After Effects need their own
    protocols.
  • The taste model has no real verdicts. It refuses to score below 12 verdicts, and reports
    held-out accuracy once trained. Pillow loads Blender's 16-bit RGBA PNGs as 8-bit; taste
    features are computed on those 8-bit samples (16-bit grayscale is scaled correctly).
  • klieg_publish has encoded two frames, not a full film.
  • The flash gate is a screening approximation, not a certification.
  • The ledger detects drift; it is not a signature. Anyone who can edit the files can edit
    the ledger.
  • klieg_motion needs playwright + a chromium headless shell; without them, render/preview
    report the missing dependency as data (the compiler and templates still work).

Security

Read SECURITY.md before you install.

  • Children get a 13-variable environment allow-list.
  • Klieg drops any name that matches KEY, TOKEN, SECRET, or PASSWORD. It records the drop.
  • klieg_render, klieg_publish, klieg_colour write, and klieg_motion render/preview
    refuse to write under system paths (/etc, /usr, …) and credential/persistence paths
    (~/.ssh, ~/.aws, ~/.config/gh, shell rc files, ~/.config/autostart, ~/.local/bin, …).
  • Klieg is not a sandbox. An approved script is arbitrary code.

Stack

componentrole
Python 3.10+ standard librarythe plugin, the job engine, the socket client, the ledger, the motion compiler
numpy, Pillowklieg_taste features/scoring and the built-in gates; declared in plugin.yaml, imported on demand
playwright + chromium headless shellklieg_motion frame rendering; optional, set KLIEG_PYTHON to an interpreter that has it
Blender 4.2 or laterthe render host; klieg_colour reads display_device from display_settings (4.2-compatible path, tested against a fake 4.2 bpy)
ffmpegencode, colour tags, probe
POSIX unix socketthe live bridge; no TCP port

Layout

plugin.yaml           manifest: 14 tools
klieg_core.py         jobs, queue, history, locks, verify
klieg_adapters.py     six hosts, one interface
klieg_tools.py        the verbs
klieg_hooks.py        per-action approval policy
klieg_bridge.py       unix socket client
klieg_colour.py       manifest, diff, tag check
klieg_taste.py        features, verdicts, held-out model
klieg_ledger.py       provenance: seal, check, show
klieg_gates.py        flash, loop, stats, safe_band
klieg_motion.py       motion compiler + templates (the authoring core)
blender/              headless server and GUI add-on
scripts/              cli, motion_render, e2e, bridge test, explainer, qa
tests/                159 cases, hermetic

MIT. The whiteboard, the demo, and the sample frames in this repository come from the
scripts in scripts/.

README from the reviewed commit 790b9f0; it updates when the author re-pins.

More by LangerSword

4 plugins by LangerSword in the catalog.

LangerSwordigniTwo complete card games inside Hermes Agent: a Gwent-style row war and an Arena mana duel, with 21 pixel-art cards, a hidden-hand rule-based opponent, a TUI scoreboard and a playable desktop page. Disclosure: no network calls, no telemetry, no credentials; reads and writes one active table plus a hand-free scoreboard snapshot under the profile's plugin data and $HERMES_HOME/igni/board.json; installs its optional TUI widget into $HERMES_HOME/tui-widgets; the desktop half is enabled by default and can be disabled in Capabilities.Communitytools6LangerSwordpilotGive Hermes a real interactive terminal. Pilot runs commands inside a private tmux server, so the agent can drive programs that need a TTY: ssh logins, vim/nano, htop/btop, fzf, less, package installers, ncurses menus and REPLs. It types literal text and named keys, reads the pane back as plain text, and keeps sessions alive across tool calls; a human can attach to the same pane and take over. The suite exposes 24 tools for session control, scripted expect flows, scrollback search, snapshots/diffs, logging, signals, resize, health and base64 file transfer. Disclosure — Pilot starts a private, profile-scoped tmux server as your user and runs model-requested commands and keystrokes in it (each one asks for your approval); terminal text, including output from remote hosts, enters the model's context; snapshots, pane logs and downloaded files can hold sensitive output and are kept under plugin-data/pilot; pilot_upload can type a local file into a remote session after approval.Communitytools6LangerSworddeny-recordAfter you deny an agent's cronjob_manage create proposal, this plugin remembers the normalized job and adds a 'you denied a similar job on <date>' note if the agent proposes it again under a new name or phrasing. Only create proposals are annotated; direct hermes cron add and unrelated approvals are untouched. Disclosure — while enabled, every agent cronjob_manage create proposal goes through the normal Hermes approval prompt (unattended runs follow approvals.cron_mode or fail closed); writes one hash-only JSON line per explicit user denial to <HERMES_HOME>/deny-record/denied-jobs.jsonl (0700 dir, 0600 file, profile-scoped) and reads it on later create proposals; makes no network calls.Communitytools4

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section