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

F2

$ f2 Community Med Risk
Ayooluwa Isaiah · Files & Search · MIT · macos / linux / windows

f2 is a cross-platform Go bulk file renamer engineered for safety: it runs in dry-run preview mode by default and requires -x (--exec) to actually rename files. It natively supports --json output, conflict detection, --no-color, and --undo to revert the last batch rename.

FCRS-1.0 Score
92 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install f2
CLI vs MCP Decision CLI Only

f2 handles complex regex, EXIF, and conflict-checked batch renames locally with --json and dry-run defaults.

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

Dry-run by default, native --json structured diff plans, --no-color, and zero interactive prompts make f2 ideal for coding agents.

  • Supports --json output for both dry-run and -x execution
  • Dry-run preview is the default behavior unless -x is passed
Trust & Safety 24 / 25

Prevents accidental writes via default dry-run, validates filename conflicts automatically, and supports --undo rollback.

  • Requires explicit -x (--exec) to mutate filenames
  • Built-in --undo reverses the previous rename batch
Setup & Portability 14 / 15

Single static Go binary available via brew install f2, go install, and GitHub releases on macOS, Linux, and Windows.

  • Cross-platform zero-dependency Go binary
Utility & Efficiency 14 / 15

Replaces fragile mv loops with regex capture groups, EXIF/ID3 variables, and automatic collision checking.

  • Handles recursive (-R), regex, and metadata-driven renames in one command
Maintenance & Lineage 8 / 10

Actively maintained MIT-licensed Go project (ayoisaiah/f2) with v2 releases.

  • Active upstream repository and regular releases
Docs & Verifiability 9 / 10

Thorough documentation covering variables, flags (-f, -r, -x, --undo, --json), and examples.

  • Comprehensive README and --help output

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; stores local undo map files under the user cache/state directory when -x runs.

Side Effects
Read-Only Local Write
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# F2 Agent Rules
- ALWAYS run `f2 ... --json` WITHOUT `-x` first to verify old/new paths and confirm zero conflicts.
- Only add `-x` (`--exec`) after inspecting the dry-run JSON plan; use `f2 --undo` if a batch needs rollback.

Agent-Ready Command Recipes

Safe Read-Only Queries

Preview batch rename plan in JSON (dry-run default)
f2 -f 'IMG_(\d+)' -r 'photo_$1' --json assets/

Computes source-to-target mappings and conflict checks in --json without touching any file (-x omitted).

Controlled Writes & Previews

Execute verified batch rename with JSON report
f2 -f 'IMG_(\d+)' -r 'photo_$1' -x --json assets/

Applies the previewed rename using -x (--exec) and records an undo map reversible via f2 --undo.

Strengths for Agents

  • + Dry-run by default (-x required to write) eliminates accidental blind renames.
  • + Native --json output, conflict detection, and --undo rollback.

Caveats & Pitfalls

  • ! Note -r is --replace while uppercase -R is --recursive; verify flags carefully.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI