Gum
$ gum Community Low RiskCharmbracelet 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.
brew install gum Interactive shell UI prompts and terminal styling belong inside local shell scripts (gum), not MCP tools.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Subcommands like format, style, join, and log run headlessly, while its core interactive widgets (choose, filter, confirm, input) require a TTY.
- Non-interactive
gum formatandgum log --structured - Interactive prompt subcommands hang in non-TTY automation
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;
spinruns explicit user command
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
Standardizes interactive shell scripts for human operators, eliminating brittle read -p and ANSI boilerplate.
- Composable Unix-friendly widgets (
gum confirm && ...)
Actively maintained flagship Charmbracelet Go project (charmbracelet/gum) under MIT.
- Strong upstream maintenance and wide adoption
Well-documented subcommands and --help output with clear shell examples.
- Comprehensive GitHub README and per-subcommand
--help
Security, Auth & Guardrails
None required; operates purely on CLI args and stdio.
100% free, offline, and open-source (MIT).
# 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
gum format -t markdown "# Build Report" "- Status: OK"
Uses gum format to render formatted text to stdout without waiting for TTY input.
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.