agent-svgtools

Close the loop for agents authoring SVG from images.

A machine-first Rust CLI that helps agents reconstruct raster artwork as maintainable SVG by inspecting structure, rendering candidates, scoring visual agreement, and localizing differences.

Install with Homebrew (macOS, Linux)

brew install wyrd-company/tools/agent-svgtools
Agent reconstructing an owl with agent-svgtools
Agent reconstructing an owl with agent-svgtools

What it does

  1. Scores a candidate SVG against a reference image with pixel match, SSIM and a combined score.

  2. Ranks the regions that differ most, with bounding boxes in reference-image pixels.

  3. Writes diff heatmaps, side-by-side panels, onion-skin blends and coordinate grids for vision models.

  4. Audits SVG structure, palette, naming and vector safety, which scores alone cannot judge.

  5. Prints TOON by default, with JSON, JSONL and pretty JSON on request.

  6. Ships as a single static Rust binary with no C runtime dependencies.

Install

brew install wyrd-company/tools/agent-svgtools

Documentation

Releases

Latest 0.2.1 Release notes on GitHub

Fixes

  • Publish the npm package under the @wyrd-company scope. Run it with npx @wyrd-company/agent-svgtools or install it with npm install --global @wyrd-company/agent-svgtools.
All releases