agent-rt

Local-first, agent-native developer tools.

View My GitHub Profile

imgctl

imgctl is the agent-first image processing CLI. A single static Rust binary with 16 commands for editing, visual analysis, and diagram generation — built for programmatic consumers, not GUIs. TSV output by default, JSON with --json, stable error codes everywhere.

# Convert + resize + crop
imgctl convert -i in.png -o out.jpg --quality 80
imgctl resize  -i in.png -o out.png --width 400 --fit contain
imgctl crop    -i in.png -o out.png --x 10 --y 20 --w 200 --h 150

# Annotate (text, arrows, boxes, blur)
imgctl annotate text -i in.png -o out.png --x 50 --y 100 --text "Hello"

# Mermaid → PNG (headless Chrome under the hood)
imgctl mermaid -i diagram.mmd -o diagram.png

Why agent-first

Existing image tools (ImageMagick, ffmpeg, …) weren’t built for AI agents — complex flags, prose error messages, no structured output. imgctl fixes those:

Position in the Agent-RT family

Tool Layer
imgctl Image processing & visual diagramming
skillctl Curated capability bundles
memctl Persistent agent memory
acpctl ACP agent invocation
mcpctl MCP server invocation

imgctl is invocation infrastructure — it doesn’t manage agent state. It’s used by agents that need to inspect or transform images during their workflow.

What’s inside

Get started

  1. Install — Homebrew or cargo install.
  2. Quickstart — convert, annotate, render a Mermaid diagram in two minutes.
  3. Commands — all 16 subcommands with stable I/O contracts.