Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Chafa

$ chafa Community Low Risk
Hans Petter Jansson · AI & Media · LGPL-3.0-or-later · macos / linux / windows

chafa converts raster images and animated GIFs into Unicode symbols, ANSI color blocks, Sixels, Kitty graphics, or iTerm2 inline images on stdout. With --animate off, --colors none, and --size, it is strictly read-only and ideal for terminal previews.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install chafa
CLI vs MCP Decision CLI Only

Terminal ASCII/Unicode/Sixel image previewing writes solely to stdout and has no MCP equivalent.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Clean GNU-style CLI with --colors none, --animate off, and --size controls; strictly stdout-driven, though lacks JSON metadata output.

  • Supports --colors none, --animate off, and -f symbols
  • No JSON output
Trust & Safety 24 / 25

Strictly read-only tool that never writes or modifies files on disk.

  • Zero filesystem write operations
Setup & Portability 14 / 15

Fast C binary distributed on Homebrew, Linux distros, and Windows.

  • Available via brew install chafa and OS repositories
Utility & Efficiency 12 / 15

Supports Sixel, Kitty, iTerm2, and Unicode block rendering with SVG/PNG/GIF/WebP loaders.

  • Handles multiple terminal graphics protocols and Unicode symbol fallbacks
Maintenance & Lineage 8 / 10

Actively maintained by Hans Petter Jansson (hpjansson/chafa) under LGPL-3.0-or-later.

  • Active hpjansson/chafa GitHub repository
Docs & Verifiability 8 / 10

Clear HTML man page (chafa-cli.html) and structured --help output.

  • Official CLI reference at hpjansson.org/chafa/ref/chafa-cli.html

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads local image files or stdin and prints to stdout.

Side Effects
Read-Only
Cost & Quotas

Free LGPL-3.0-or-later open-source C binary.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Chafa Agent Rules
- Pass `--animate off` on GIFs/WebPs so `chafa` does not loop indefinitely in a non-TTY subprocess.
- Use `-f symbols --colors none` when capturing stdout into logs or LLM context to avoid ANSI escape noise.

Agent-Ready Command Recipes

Safe Read-Only Queries

Render a static plain-text Unicode preview
chafa -f symbols --colors none --animate off --size 80x24 image.png

Prints a clean monochrome Unicode art preview to stdout with zero ANSI escape sequences.

Render 24-bit ANSI terminal preview
chafa -f symbols --animate off --size 80x40 image.png

Displays a colorized Unicode-block preview sized to 80x40 cells for interactive terminals.

Strengths for Agents

  • + Strictly read-only with --colors none and --animate off for safe agent stdout capture.
  • + Supports modern Kitty/Sixel/iTerm2 terminal graphics alongside universal Unicode symbols.

Caveats & Pitfalls

  • ! Animated GIFs/WebPs loop endlessly unless --animate off is passed.
  • ! Terminal graphics output (Sixel/Kitty) emits binary escape payloads unsuitable for raw text logs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI