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

Gum

$ gum Community Low Risk
Charmbracelet · Files & Search · MIT · macos / linux / windows

Charmbracelet gum provides polished terminal widgets for shell scripts—including interactive prompts (choose, filter, input, confirm) as well as non-interactive helpers (format, style, join, spin, log). Agents can call gum format or gum log safely, but must avoid interactive subcommands in headless runs.

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

Interactive shell UI prompts and terminal styling belong inside local shell scripts (gum), not MCP tools.

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 14 / 25

Subcommands like format, style, join, and log run headlessly, while its core interactive widgets (choose, filter, confirm, input) require a TTY.

  • Non-interactive gum format and gum log --structured
  • Interactive prompt subcommands hang in non-TTY automation
Trust & Safety 23 / 25

Does not modify files directly (only writes selection to stdout or executes the explicit command passed to gum spin -- <cmd>).

  • Side-effect-free UI components; spin runs explicit user command
Setup & Portability 15 / 15

Single static Go binary available via Homebrew, apt, dnf, apk, Winget, Scoop, and go install across macOS, Linux, and Windows.

  • Broad cross-platform binary packaging
Utility & Efficiency 13 / 15

Standardizes interactive shell scripts for human operators, eliminating brittle read -p and ANSI boilerplate.

  • Composable Unix-friendly widgets (gum confirm && ...)
Maintenance & Lineage 9 / 10

Actively maintained flagship Charmbracelet Go project (charmbracelet/gum) under MIT.

  • Strong upstream maintenance and wide adoption
Docs & Verifiability 8 / 10

Well-documented subcommands and --help output with clear shell examples.

  • Comprehensive GitHub README and per-subcommand --help

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates purely on CLI args and stdio.

Side Effects
Read-Only
Cost & Quotas

100% free, offline, and open-source (MIT).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Gum Agent Rules
- NEVER call `gum choose`, `gum filter`, `gum input`, `gum write`, `gum file`, or `gum confirm` in headless agent shells—they wait for interactive TTY input.
- Safe non-interactive subcommands are limited to `gum style`, `gum format`, `gum join`, `gum log`, and `gum spin`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Render Markdown or code via gum format non-interactively
gum format -t markdown "# Build Report" "- Status: OK"

Uses gum format to render formatted text to stdout without waiting for TTY input.

Emit structured log lines via gum log
gum log --structured --level info "Migration verified" step 3

Writes clean key-value or --structured logfmt lines non-interactively.

Strengths for Agents

  • + Turns shell scripts into clean human-facing TUIs (choose, confirm, filter) with standard exit codes.
  • + Single zero-dependency Go binary across macOS, Linux, and Windows.

Caveats & Pitfalls

  • ! Interactive subcommands (choose, filter, input, confirm) stall if invoked by a non-TTY agent.
  • ! Designed for human terminal scripts rather than machine JSON pipelines.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI