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

choose

$ choose Community Low Risk
theryangeary · Files & Search · GPL-3.0 · macos / linux / windows

choose slices stdin or file lines by field index, range (1:3), or character offset (-c), supporting regex delimiters (-f), negative indexing (-1), and non-greedy matching (-n). It runs strictly read-only in pipelines with zero prompts.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install choose-rust
CLI vs MCP Decision CLI Only

In-process Unix pipeline field slicing with choose is sub-millisecond and needs no MCP server.

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

Deterministic non-interactive stdin/stdout filter with clean exit codes, though it outputs plain text rather than --json.

  • Non-interactive pipeline filter with -i file input or stdin
  • No --json output mode
Trust & Safety 25 / 25

Strictly read-only text slicing with zero disk writes, network calls, or credentials.

  • Purely read-only stdin/file stream filter
Setup & Portability 13 / 15

Packaged via brew install choose-rust, cargo install choose, and GitHub release binaries across macOS, Linux, and Windows.

  • Available on Homebrew, crates.io, and GitHub Releases
Utility & Efficiency 13 / 15

Replaces verbose cut and awk one-liners with intuitive negative indices (-1) and regex -f separators.

  • Supports slices (1:3), negative indices, and character mode (-c)
Maintenance & Lineage 6 / 10

Established community Rust utility (theryangeary/choose) with low release churn.

  • Stable GPL-3.0 repository on GitHub
Docs & Verifiability 8 / 10

Clear README examples and --help output documenting indexing and separator flags.

  • Comprehensive flag reference in repository README

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates purely on stdin streams or readable local files.

Side Effects
Read-Only
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# choose Agent Rules
- Remember `choose` uses 0-based indexing by default unless `--one-indexed` is passed.
- Pass `-f` with single-quoted regexes when splitting on non-whitespace delimiters.

Agent-Ready Command Recipes

Safe Read-Only Queries

Extract first and last fields with regex delimiter
choose -f '[,;]' 0 -1 -i data.txt

Splits lines in data.txt by , or ; and prints the first (0) and last (-1) fields read-only.

Slice an inclusive field range from stdin
ps aux | choose 0 1 10:

Selects user, PID, and the remaining command columns (10:) without brittle awk syntax.

Strengths for Agents

  • + Strictly read-only with intuitive negative indices (-1) and Python-like slices (1:3).
  • + Handles multi-space whitespace and regex delimiters (-f) cleanly without cut quirks.

Caveats & Pitfalls

  • ! No --json output; emits plain text fields separated by -o or single spaces.
  • ! 0-based indexing differs from 1-based cut/awk unless --one-indexed is specified.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI