All plugins

stitchslop

Work on the embroidery design open in Stitch Slop, watch it in a pane, and digitize artwork into machine stitch files. Ships the bridge its tab dials into (loopback WebSocket, protocol 1 of stitchslop.com/agent), a viewer page that streams a dedicated Chrome window and forwards clicks and keys, four tools, an arc-typesetting and art-prep script, and a bundled skill covering the digitizing workflow. Disclosure — writes ~/.stitchslop (pairing, Chrome profile, exports, logs), shared by every Hermes profile on the machine; starts a loopback WebSocket bridge, a token-gated viewer server and a dedicated Chrome (launched with --no-sandbox and Local Network Access checks off) on a private X display; the viewer binds to loopback only unless you set STITCHSLOP_PANE_BIND to a Tailscale address, which exposes the token-gated viewer (live view and click/key control of that Chrome, logged into your Stitch Slop account) to your tailnet; navigation is limited to https://stitchslop.com; first pairing needs you to paste the Agent-panel token by hand.

mojomast7Toolsv0.2.2Updated 21 days ago

About

Work on the embroidery design open in Stitch Slop, watch it in a pane, and digitize artwork into machine stitch files. Ships the bridge its tab dials into (loopback WebSocket, protocol 1 of stitchslop.com/agent), a viewer page that streams a dedicated Chrome window and forwards clicks and keys, four tools, an arc-typesetting and art-prep script, and a bundled skill covering the digitizing workflow. Disclosure — writes ~/.stitchslop (pairing, Chrome profile, exports, logs), shared by every Hermes profile on the machine; starts a loopback WebSocket bridge, a token-gated viewer server and a dedicated Chrome (launched with --no-sandbox and Local Network Access checks off) on a private X display; the viewer binds to loopback only unless you set STITCHSLOP_PANE_BIND to a Tailscale address, which exposes the token-gated viewer (live view and click/key control of that Chrome, logged into your Stitch Slop account) to your tailnet; navigation is limited to https://stitchslop.com; first pairing needs you to paste the Agent-panel token by hand.


Why this exists

Stitch Slop is a browser embroidery digitizer whose designs live in a tab. A chat agent cannot
reach that tab: the site refuses to be framed (frame-ancestors 'none'), and even if it didn't, an
agent can't click.

This plugin solves both halves.

  • The tab dials out. Stitch Slop publishes a bridge protocol
    (stitchslop.com/agent): the page opens a loopback WebSocket
    and then accepts JSON commands. This plugin implements that bridge in the standard library.
  • The pane is real. A plugin-owned Chrome draws the app on a private X display; the pane shows
    a viewer that streams it over CDP and forwards your clicks and keys back.

The result is a loop — you see the design, the agent edits it, you take over whenever you like.

Install

hermes plugins install mojomast/hermes-stitchslop
hermes plugins enable stitchslop

Then pair once by hand (the agent tool refuses a model-supplied token, same rule as
Hermagotchi pane-only pairing):

  1. In Stitch Slop: open ⌁ Agent → switch on Enable Agent Connections → Copy.
  2. Paste the tok_… yourself into ~/.stitchslop/token at mode 0600 and start
    the bridge once. The agent must not write this file.
mkdir -p ~/.stitchslop && chmod 700 ~/.stitchslop
# paste the tok_… into ~/.stitchslop/token, then:
chmod 600 ~/.stitchslop/token
python3 bridge/stitchslop_bridge.py --token-file ~/.stitchslop/token
rm -f ~/.stitchslop/token
  1. Call stitchslop_connect() with no token so Hermes waits for the tab. First pairing
    mints ~/.stitchslop/pairing.json (0600). Later sessions only need stitchslop_connect().

stitchslop_connect(token=…) returns unsupported_operation / pair_via_pane on purpose —
chat, lobby, or page content must not be able to talk the agent into pairing.

The four tools

ToolWhat it does
stitchslop_statusBridge, tab, Chrome, relay and pane in one call. Start here when something looks wrong.
stitchslop_connectStarts the bridge and waits for the tab using the stored pairing. Refuses a model-supplied token (pair_via_pane); first pairing is hand/--token-file only.
stitchslop_callRuns one app verb (scene.describe, background.digitize, design.export, …). Images and exports are written to disk and returned as paths.
stitchslop_browserStarts/stops the pane: Xvfb + Chrome + capture relay, returns viewerUrl. overlay=false turns off the paced click/typing overlay.

The app owns the command list — over 80 verbs. Discover them by asking for one that doesn't exist:
stitchslop_call("x.list") answers with every real name.

How it works

Two paths, both loopback:

  • Commands — the tab dials the bridge (ws://127.0.0.1:8787), the tools speak HTTP to the same
    port with a key from a 0600 session file. The bridge verifies the exact origin, refuses
    page-originated control requests, and treats the bootstrap token as one-time.
  • Pixels — Chrome is launched headful on a private Xvfb display (headless emits no frames for
    this app), and one Page.captureScreenshot loop feeds the viewer. Deliberately one capture
    pipeline: mixing screencast frames with stills makes the video flash between two colour grades.

Why the pane embeds a viewer instead of the site: the renderer blocks a sandboxed document from
reaching loopback, and frame-ancestors 'none' blocks the site outright. The viewer is served by
the relay, so its fetches are same-origin. Open the viewerUrl returned by
stitchslop_browser — it includes ?t=, which is required to load the page, frames, and ping.
The relay binds loopback by default; set STITCHSLOP_PANE_BIND=tailscale (or an explicit
Tailscale address) when a remote browser must reach the host (because 127.0.0.1 inside that
browser means the viewer's machine, not the host's). Wildcards such as 0.0.0.0 and public or
LAN addresses are refused.

Make something real

That badge was made end to end from a chat session: artwork composed, traced to stitches, verified,
exported.

  • 51 objects, 5,248 stitches, 83.1 × 83.1 mm inside a 100 mm hoop
  • two thread colours, 49 trims, 6.2 m of thread, problems.list → 0
  • DST 18 KB and PES 12 KB, committed in examples/ so you can open them in any
    machine or stitch viewer

The moves that got there are written down in the bundled skill:

Prep before tracingThe tracer reproduces whatever it's given: a highlight sliver becomes a hole, a crop edge becomes a gouge. prep_art.py fills specks, closes hairline gaps and scales the subject to its ring.
Measure the referenceRing radii and the sentence gap come from sampling the artwork, not from eyeballing it.
Never typeset an arc with a single-line fontAt any cap that fits the ring, its stems are thinner than one stitch. Render a bold face onto the arc (arc_text.py), then trace that.
Big masses → tatami, thin forms → satinLetter shapes traced from art come back as satin fills.
Look at it in 3DA figure can look solid in stitch view only because the source photo shows through at low opacity.

What ships with it

The plugin bundles a skill, three references and two scripts — so the agent doesn't rediscover the
same pitfalls every session.

skills/stitchslop/
├── SKILL.md                  connect → drive → digitize → letter → pane → pitfalls
├── references/
│   ├── bridge-protocol.md    handshake, pairing, control plane, the quirks
│   ├── digitizing.md         prep, trace, treatments, verification, traps
│   └── pane.md               capture loop, network gates, remote access, action overlay
└── scripts/
    ├── arc_text.py           typeset a sentence onto an arc (cw or ccw)
    └── prep_art.py           mask cleanup: fill holes, close gaps, scale to fit

Both scripts are optional and need Pillow and NumPy, declared in the art extra
(pip install 'stitchslop-hermes[art]', or pip install 'pillow>=10,<14' 'numpy>=1.26,<3').
They are not required to load the plugin. Both also run standalone:

python3 skills/stitchslop/scripts/arc_text.py \
    --text "REBELLION TO TYRANTS" --out ring.png \
    --band-in 33.8 --band-out 42.3 --span 308 --center 270

What it writes, and what it doesn't

Everything stays local:

PathContents
~/.stitchslop/pairing.jsonthe long-lived pairing secret (0600)
~/.stitchslop/pane/Chrome profile, logs, last render
~/.stitchslop/exports/DST/PES and their .col sidecar
  • No outbound network beyond the site itself. No telemetry, no analytics, no fonts or CDNs in the
    viewer — it is one self-contained page.
  • The relay and bridge bind loopback only by default. To reach the viewer from another
    machine on your tailnet, set STITCHSLOP_PANE_BIND=tailscale or an explicit Tailscale
    address in 100.64.0.0/10 / fd7a:115c:a1e0::/48. This is an explicit opt-in: the
    token-gated viewer then becomes reachable on your tailnet, so treat that bind as you
    would any other private service. Wildcards (0.0.0.0, ::) and public or LAN
    addresses are refused.
  • /viewer is served only with a matching ?t=. /frame.jpg and /ping require the
    same token (query or x-stitchslop-pane header). /ping never returns the token.
    The relay rejects a Host header that is not the bind address with port.
    nav events may only go to https://stitchslop.com and its subdomains.
  • Chrome and helper processes get a minimal environment — a short allowlist of non-secret
    variables, never the agent's whole process environment.

Tests

python3 -m unittest discover -s tests

The unit suite (standard library, plus the optional art extra for geometry checks) pins the
things that actually broke: the one-time token, the origin allowlist, the control-plane key, the
{"tools": […], "id": null} envelope shape, export files[] persistence (and path traversal),
the arc typesetter's geometry, the overlay's event order, token gate and persisted flag, and
the relay's token/Host/nav/bind gates.

hermes plugins validate and plugins doctor --ci pass. Tool schemas measure 477 o200k
tokens (unchanged in this branch; includes the optional overlay argument). The bootstrap
token is accepted only via --token-file. The user pastes it into a 0600 file by hand;
the model must not write that file.

Troubleshooting

SymptomCause & fix
Pane says no relay / failed to fetchA sandboxed document can't reach loopback. Embed the viewerUrl in the preview pane; don't fetch 127.0.0.1 from the pane.
Video flickers between two contrastsTwo capture paths running. Use one Page.captureScreenshot loop only.
Tab never dials inThe page dials on the switch gesture: flip Enable Agent Connections after the bridge is up. Chrome's Local Network Access gate can also hang an https→loopback socket — see the launch flags in references/pane.md.
bad_credential after a reloadThe panel mints a new token each time it opens. Read the current line and reconnect.
Tool list looks emptyThe app sends {tools: […], id: null}; id: null is not a reply.
Design "exceeds hoop"Usually band + text. Check hoopFit before exporting.

Contributing

Issues and PRs welcome. Two ground rules: the bridge and relay stay standard-library only, and a
behaviour change lands with a test that would have caught the bug.

If you're extending the pane, read skills/stitchslop/references/pane.md first — the network gates
are subtle and cost more debugging time than the stitching does.

License

MIT © mojomast. Not affiliated with Stitch Slop or Nous Research.
Stitch Slop is a separate product; this plugin speaks its published bridge protocol.

README from the reviewed commit 51c12d0; it updates when the author re-pins.

More by mojomast

13 plugins by mojomast in the catalog.

mojomastgodseyeEye Of Hermes (EOH) puts a live 3D globe beside your Hermes chat that the agent can fly, read, annotate and watch. It is built on God's Eye View (bilawalsidhu/gods-eye-view, MIT). Eleven composable tools (godseye_view, godseye_query, godseye_layers, godseye_feeds, godseye_annotate, godseye_nav, godseye_track, godseye_scene, godseye_watch, godseye_capture, godseye_admin) work on public data (aircraft, ships, satellites, earthquakes, fires, weather, infrastructure and public SDR receivers) and drive the pane in Hermes Desktop and the Webapp. The agent can fly to a place and switch the visual style (night vision, thermal, noir and others); answer "what am I looking at" from the camera, the open pin or your last click; search for places and pin them with research drawers and an attached YouTube or X clip; measure distances and areas and draw walk, bike and drive routes and reach isochrones; compare imagery before and after with Esri Wayback and replay earthquakes and fires on a time slider; walk a route in Street View; follow a public aircraft, ship or satellite by its identifier; play Director camera scenes; leave area watches that report new items on the next chat turn; and save an investigation as an HTML or Markdown report, GeoJSON or KML. The Overlays sidebar lists pins, routes, areas, watches and scenes and imports or exports eoh.overlays.v1 JSON. HUD summaries use your Hermes model (ctx.llm), not OpenAI. Use it for situation briefs on a region, place and travel research, checking a fire or an earthquake, and any answer that is clearer on a map. To start, you need Hermes 0.23.0 or newer, Node 24 or newer (God's Eye View documents 24.14 or later, or 26.x) and a running God's Eye View checkout; the public SDR layer needs gods-eye-view main at or after b361a25. Run hermes plugins install godseye, hermes plugins enable godseye and hermes plugins doctor godseye, open the Eye Of Hermes pane, and start a new chat. Try "Fly to Tokyo and switch to night vision" or "Any earthquakes above magnitude 5 in the last day?" (data questions work with the pane closed). The bundled skill is godseye:godseye-analyst. Photorealistic 3D tiles need CESIUM_ION_TOKEN, live ships need AISSTREAM_API_KEY and fires need FIRMS_MAP_KEY; the Google Maps, Mapillary and TomTom keys are optional. Set them as Hermes secrets. Named-person search, face recognition and tracking of individuals are refused. Disclosure — processes: starts one node MCP child from your God's Eye View checkout, plus git rev-parse, node and systemctl --user children, all with a minimal environment. godseye_admin app_start, app_stop, app_restart and rebuild require confirm=true, are refused inside batch, may run systemctl --user on gods-eye-view.service, start Node on the checkout's vite.js, or run npm run build:panel in the checkout, and refuse a foreign listener. Disclosure — background work and prompt: runs loopback-only HUD bridge (127.0.0.1:18791) and live relay (127.0.0.1:18792) threads gated by a random token stored 0600 in plugin-data; registers a godseye.live-globe system-prompt section and ships the godseye-analyst skill; a pre_llm_call hook may add a short map line and queued watch alerts, whose feed titles are passed as quoted third-party text; an active area watch polls USGS, NASA FIRMS, OpenSky (falling back to api.adsb.lol when OpenSky fails), the local app, or Overpass/Nominatim from a daemon thread. Disclosure — network: place search, routes, isochrones, Wayback metadata and pin research call public services (Nominatim, Overpass and public Overpass mirrors, OSRM, Valhalla, Esri, Wikipedia, Wikidata, Wikimedia and venue sites), and private-LAN service URLs are refused. Feed tools, including fire_check, and godseye_query op=sdr_receivers talk to your God's Eye View app, which itself fetches public third-party data feeds and the public SDR receiver directory. Disclosure — credentials: all provider credentials are declared in plugin.yaml requires_env and read only through agent.secret_scope.get_secret; no plugin dotenv reads, key-file installation or process-wide credential mutation. Browser-facing credentials are written only to gitignored mode-0600 runtime config, and server-only secrets never enter the pane. Disclosure — files and pane: overlay import and export stay under plugin-data/godseye/overlays and are not uploaded, and credential-named files are refused for import. Opening a pin drawer that has a clip loads a www.youtube-nocookie.com/embed or platform.twitter.com/embed iframe inside the sandboxed frame. Pane link opens and Ask Hermes run only after a click on the pane's confirm bar. The pane backend adds a base tag, an opt-in UI flag, a Cesium worker shim, the overlay sidebar and Director bridge scripts, and the live agent script inside the sandboxed frame only.Communitytools20mojomastaircraft-doppler-geolocationDetect aircraft flyovers in a recording (Doppler tones, plus experimental ground-reflection broadband jet passes) and estimate where it was made by scoring them against adsb.lol ADS-B history, with a posterior heatmap, 68/95% areas and a confidence flag. Provides the doppler_detect and doppler_locate tools and a dopplergeo CLI. Results on unseen real recordings are weak (2 of 18 held-out runs under 3 km); treat output as a hypothesis. Disclosure — doppler_locate / dopplergeo locate makes unauthenticated HTTPS GETs to GitHub (adsb.lol release assets, streamed, about 3 GB read per uncached day; only the crop is cached), raw.githubusercontent.com (tar1090-db types), the Copernicus DEM S3 bucket and Open-Meteo, caching results under ~/.cache/doppler-geo (or DOPPLER_GEO_CACHE); offline mode uses the local cache only; no credentials, uploads or telemetry. doppler_detect and the skill scripts make no network calls; the tools and scripts run ffmpeg/ffprobe (no shell) on the recording you name and write CSV/PNG/JSON at the output path you give (default <recording>.doppler/). PyPI packages (numpy, scipy, soundfile, matplotlib, tifffile) install only after Hermes dependency consent. The method can geolocate where a recording was made, so use it only on recordings you are entitled to analyse.Communitytools19mojomastphoto-to-partPhoto to Part for Hermes: turn photos, a few measurements, or a messy 3D scan into a parametric printable part, and check the mesh locally before you print. The agent writes the solid in code, checks that it is watertight and the right size, and renders views you can hold next to the original. Six tools: photo_part_template (watertight starting shapes such as plates with holes, an L-bracket, a print-in-place hinge, thread, knurl, hex standoff, bottle cap, spur gear and strap hinge), photo_part_build (runs one local build script after Hermes approval), photo_part_validate (watertightness, shell count, size, bores, printability and spec.json dimension checks), photo_part_render (fitted views, a comparison sheet and a silhouette overlay scored against your photo), photo_part_heal (weld, fill holes and clean up a scan) and photo_part_measure (pixels per millimetre from a coin, a ruler or an ArUco/AprilTag marker). Output is STL or 3MF; a STEP solid needs CadQuery or build123d in the project environment. A millimetre value you state is never replaced by a photo measurement. Hermes Desktop 0.23 or newer can show an optional Part studio pane with the stage, photo and overlay, renders, history and file paths while a run is in progress; the six tools still install and run when that pane is unavailable. It is for makers replacing a broken clip, bracket, knob, cap or gear, printing a fit test, or turning a scan into a clean solid. To start, run hermes plugins install photo-to-part and enable it, then start a new session. Attach a photo with a coin or ruler in frame, give any dimensions you know, and ask for a printable replacement. The skill id is photo-to-part:photo-to-printable-part. Pass that exact string only to skill_view. Do not pass it to skills_list, and do not add a plugin: prefix or a slash. Disclosure — files and network: tools read and write only the paths you pass (STL, 3MF, PNG, JSON), plus progress notes in a .photopart folder inside those project folders and a pane index under the Hermes plugin-data folder. Build scripts run with a minimal environment that carries no provider keys. No credentials and no printer connection. Enabling the plugin installs its Python packages from PyPI after Hermes dependency consent. Installing CadQuery or build123d for a STEP solid downloads packages and can take several minutes. Chat photos still go to your model provider. In a session that uses the plugin, it adds short tool-call budget notes (a 40-call default) to other tools' results. Disclosure — build approval: photo_part_build asks for approval before it runs a local Python file with a timeout. Hermes --yolo auto-approves a build prompt; this plugin does not block that flag.Communitytools13mojomasthyperrizzHyperrizz: tell Hermes the story and watch your HyperFrames film take shape in a live review pane, then get a verified MP4. Hermes researches, art-directs, writes the scenes, builds, checks and iterates on a HyperFrames project while the pane plays the actual composition with sound, a scrubber and frame stepping. Pause on a moment, write a note and press Iterate with Hermes: the note carries the project, revision and exact frame back into the chat. Full editor opens HyperFrames Studio inside the pane (timeline, assets, code, layers, inspector), and the agent reconciles your manual edits before it rebuilds. Renders are separate, cancellable jobs; a failed build keeps the last working revision and a failed export keeps the last verified MP4. Three tools: hyperrizz_project (create, inspect, edit, restore and reconcile projects), hyperrizz_review (open the pane, exchange frame notes, hand off to Studio) and hyperrizz_produce (build, check, render, inspect jobs, cancel), plus the hyperrizz:production skill with its guides, a broadcast kit and starter templates. Use it for product promos, release announcements, music-led cuts, and restyling or rescuing an existing film. To start, you need Hermes 0.23.0 or newer, Node 22 or newer, Python 3.11 or newer and FFmpeg; Linux is the tested platform. Run hermes plugins install hyperrizz and hermes plugins enable hyperrizz, enable Hyperrizz under Capabilities → Plugins to show the pane, then ask: "Use Hyperrizz to make a 30-second film about this release. Show the live project as you work, then deliver the MP4." The first build installs the pinned npm dependencies. No API keys or hosted generation. Disclosure — processes: spawns local Node, Chromium and FFmpeg child processes with a minimal non-secret environment; runs background build, check and render workers and an optional loopback Studio sidecar (token-gated, 512 KiB capture budget, no redirects); the embedded HyperFrames Studio server listens on loopback without a token. Disclosure — code execution: project write can edit the project's scripts/*.mjs and package.json, and build, check and render run them with Node at your full privileges (no filesystem or network sandbox), the same power as file writes plus the terminal. npm downloads pinned dependencies on first build, and npm ci runs package lifecycle scripts. Disclosure — data: projects are stored in profile-scoped plugin data; the Desktop pane uses ctx.rest only; a post_tool_call hook binds projects to the host session. No credentials, no telemetry, no self-update.CommunityDesktop app12

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section