All plugins

igni

Two 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.

LangerSword6Toolsv0.3.1Updated 3 days ago

About

Two 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.

Igni

A Witcher-inspired card game plugin for Hermes Agent. Igni runs two real,
deterministic card games against a hidden-hand opponent, with pixel-art cards
and a rule engine that validates every move. Play from chat, the TUI, or a
clickable desktop table.

tests
Hermes Catalog PR #159369
license

60 second demo: the real table, both games, and the hidden-hand boundary.

Igni cover: a print artifact with the word IGNI and a fanned pixel hand

What is Igni?

Igni is an unofficial Hermes Agent
plugin named after the Witcher sign of fire. It ships two complete card games:

  • Gwent: rows, weather, spies, horns, scorch, best of three.
  • Arena: 30 health, mana, taunts, charge, divine shield, spells.

The opponent is a local rule-based AI. It sees its own hand and the public
board, never yours. The agent is the referee, not the player: it asks for your
move, relays it exactly, and shows the new board.

No API keys. No network. No model calls. The engine is Python standard library;
the desktop page uses the Hermes plugin SDK.

Install

Requires Hermes Agent 0.23 or newer. The engine has no third-party runtime
dependencies.

hermes plugins install LangerSword/hermes-igni
hermes plugins enable igni
hermes table install-widget

Open a new Hermes session for the tools. The TUI widget is optional; open it
with /table-board. In the desktop app, open Capabilities → Plugins → Igni.
The desktop half loads by default; the Python half is gated by plugins enable.

From a checkout, replace the first two commands with:

git clone https://github.com/LangerSword/hermes-igni
cd hermes-igni
python3 scripts/sync_plugin.py
hermes plugins enable igni
hermes table install-widget

table is the game surface: table_* tools, the /table command, and
hermes table. The plugin name is Igni.

Play

you:    play gwent
hermes: [table_new, board, asks for your move]

you:    play 3
hermes: [table_play, your card, the opponent's reply, new board]

Arena moves: play <hand#>, attack <your board#> <enemy board#|hero>,
end turn. Gwent moves: play <hand#>, play <hand#> <row> for the horn,
pass.

Slash commands:

/table                     show the active board
/table rules [mode]        rules and the full card pool
/table new [gwent|arena] [seed]
/table install-widget

Desktop:

sidebar: Igni
palette: Igni: open the card table
chip:    🔥 igni
page:    /table

Igni desktop table with pixel-art cards

CLI, including an AI-vs-AI demo:

hermes table demo gwent --seed 7
hermes table play arena
python3 table_cli.py demo gwent --seed 7

hermes table runs when the plugin is loaded in-process. Under
plugins.isolation: host the host skips CLI subcommands; use the Python entry
point.

The two games

Gwent, best of three

  • Rows: melee, ranged, siege.
  • Win two rounds. A round ends when both sides pass; a tie awards it to both.
  • Weather sets every non-hero unit on one row to 1, for both sides.
  • Commander's Horn doubles one row. Clear Weather removes all weather.
  • Spies join the enemy row and draw two cards. Scorch destroys the strongest
    non-hero unit(s) on the board, both sides.
  • Heroes are immune to weather. Hands carry between rounds; the board clears.

Arena, a mana duel

  • 30 health, mana 1 to 10, refill each turn, draw one.
  • Minions have summoning sickness unless they have Charge.
  • Taunts must be attacked first; Divine Shield absorbs the first hit.
  • Battlecries draw, heal, or damage all enemy minions.
  • An empty deck deals rising fatigue damage.

Art

  • Cover: a Nous-style print artifact, 1600×900, in docs/cover.png. Source:
    cover/cover.html, rendered with python3 scripts/render_cover.py.
  • Catalog banner: the 2:1 image the Hermes plugin catalog shows on Igni's card,
    1200×600, in docs/banner.png. Source: cover/catalog.html, same renderer.
    The catalog spec requires 2:1, so this is its own composition rather than a crop
    of the 16:9 cover.
  • Cards: 21 WebP files in art/, each 256×256 and quantized to 24 colours.
    Pure pixel art, image-rendering: pixelated, written for this project.
    Rebuild with python3 scripts/build_card_art.py.
  • Desktop: pixel cards on hard 2 px frames and scanline panels. The TUI
    stays typographic; the board is the art there.

Twenty-one pixel card archetypes

How it works

table_new / table_play
        │
        ▼
   table_engine ──────► table_gwent | table_arena
        │                         │
        │                         ▼
        │                 profile-scoped JSON state
        ├──────────────► hand-free widget snapshot
        └──────────────► /api/plugins/igni (desktop)

Four invariants carry the plugin:

  1. The opponent hand never crosses a boundary. It stays in the engine.
    public_view, the widget snapshot and every tool result carry counts only.
  2. The same seed gives the same deal. The engines are deterministic and the
    AI reads only its own hand plus the public board.
  3. One call resolves both sides. table_play applies your move and the
    opponent's reply before it returns, so a chat turn never ends waiting.
  4. State is profile-scoped and atomic. One active table per profile, JSON
    written with a temporary file and os.replace.

Verify

python3 -m unittest discover -s tests -v   # 29 tests
python3 smoke_test.py                      # 40 self-played matches
python3 smoke_load.py                      # real register() + tool dispatch
hermes plugins validate .                  # manifest and capability probe

The tests cover deck sizes, scoring, spies, scorch, round ties, mana, taunts,
lethal attacks, AI pass discipline, hidden-hand boundaries, tool errors,
widget install, art coverage, persistence, backend routes, and self-play
termination. The CI badge runs the first three on every push.

FAQ

Does Igni need an API key? No. The engine is local and uses no network.

Can the agent see my hand? The opponent cannot. The agent relays your move
and sees the public board; the opponent's hidden hand never enters a tool
result, snapshot, or desktop response.

Is this an official Witcher game? No. It is an unaffiliated fan project.
The Witcher and Gwent names belong to CD Projekt Red. The Arena mode, rules
engines, code and pixel art are original.

Does it work in Discord or Telegram? The tools work in any Hermes session.
The TUI scoreboard and desktop page are local surfaces.

Where is the game state? Under the Hermes plugin data directory, plus a
hand-free scoreboard snapshot at $HERMES_HOME/igni/board.json.

Credits

Built for Hermes Agent. Fonts are under the SIL Open Font License; see
assets/fonts/README.md and the OFL-*.txt files. Pixel art was generated for
this project and quantized to 24 colours. No assets from a commercial game are
included. Demo music: "Achaidh Cheide" by Kevin MacLeod (incompetech.com),
CC BY 4.0; see demo/CREDITS.md.

If Igni earns a spot in your setup, star the repo. That is the whole ask.

License

MIT. See LICENSE.

README from the reviewed commit 75ef49b; it updates when the author re-pins.

More by LangerSword

4 plugins by LangerSword in the catalog.

LangerSwordkliegMotion 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.Communitytools9LangerSwordpilotGive 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