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

fselect

$ fselect Community Low Risk
jhspetersson · Files & Search · MIT OR Apache-2.0 · macos / linux / windows

fselect searches filesystems using SQL-like SELECT ... FROM ... WHERE ... ORDER BY ... LIMIT ... INTO json queries. It exposes file sizes, timestamps, permissions, hashes, EXIF/media attributes, and .gitignore filtering in a strictly read-only Rust CLI.

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

fselect ... into json performs local metadata/hash/EXIF queries in one command without an 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 22 / 25

Supports into json, SQL column selection (field_filtering), limit, and non-interactive execution.

  • Native into json output formatter and SQL select/where/limit projection
Trust & Safety 24 / 25

Strictly read-only SQL query engine with no -delete or -exec mutation actions.

  • Read-only filesystem metadata and content inspection
Setup & Portability 14 / 15

Static Rust binary distributed via brew install fselect, cargo install fselect, and GitHub Releases.

  • Cross-platform binary for macOS, Linux, and Windows
Utility & Efficiency 12 / 15

Combines find, stat, sha256, archive inspection, and media/EXIF fields into one declarative query.

  • Rich built-in functions (sha256, line_count, width, duration)
Maintenance & Lineage 8 / 10

Actively maintained community Rust project (jhspetersson/fselect) dual-licensed MIT/Apache-2.0.

  • Consistent updates on GitHub
Docs & Verifiability 8 / 10

Comprehensive docs/usage.md reference covering fields, functions, and into json.

  • Detailed SQL syntax and field docs in repository

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; read-only local filesystem query tool.

Side Effects
Read-Only
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# fselect Agent Rules
- Always append `limit <N> into json` to queries so results stay bounded and machine-parseable.
- Add `depth <= <N>` or `gitignore` when scanning large trees to avoid traversing `node_modules` or `target`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Find largest Rust source files as JSON
fselect "path, size, modified from . where ext = 'rs' order by size desc limit 20 into json"

Queries .rs files sorted by size descending and emits a structured JSON array via into json.

Find recently modified files respecting .gitignore
fselect "path, hsize from . gitignore where is_file = true and modified >= '2026-01-01' limit 50 into json"

Filters files using the gitignore keyword and human-readable sizes (hsize) in JSON output.

Strengths for Agents

  • + Declarative SQL projection + into json returns exact requested file attributes cleanly.
  • + Strictly read-only (unlike find, it has no -delete or -exec risks).

Caveats & Pitfalls

  • ! Does not skip .gitignore paths unless the gitignore keyword is included after the root path.
  • ! Expensive functions like sha256 or unbounded searches can be slow if depth or limit is omitted.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI