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

onefetch

$ onefetch Community Low Risk
o2sh · Files & Search · MIT · macos / linux / windows

onefetch inspects a local Git repository and summarizes languages, LOC, top authors, commit count, repo size, and license. Passing --output json skips ASCII art and terminal colors to return a clean structured JSON summary for agent onboarding.

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

onefetch --output json summarizes a local Git repo in one offline command without needing 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

Native --output json disables ASCII art/ANSI styling and emits clean structured JSON non-interactively.

  • Supports --output json (-o json), --no-merges, and --exclude
Trust & Safety 25 / 25

Strictly read-only local Git repository inspection with zero write modes or network requests.

  • Read-only Git metadata and LOC analyzer
Setup & Portability 14 / 15

Static Rust binary available via brew install onefetch, cargo install onefetch, winget, and GitHub Releases.

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

Handy single-command onboarding snapshot combining language percentages, license, and top authors, though narrower than tokei + git log.

  • Aggregates Git stats, license, and language breakdown in one call
Maintenance & Lineage 9 / 10

Actively maintained MIT-licensed Rust project (o2sh/onefetch).

  • Active o2sh/onefetch repository
Docs & Verifiability 8 / 10

Clear GitHub wiki and --help documenting --output, --exclude, and language options.

  • Documented in GitHub README, wiki, and --help

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; read-only local Git repository inspector.

Side Effects
Read-Only
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# onefetch Agent Rules
- ALWAYS pass `--output json` (or `-o json`) so `onefetch` does not emit ASCII art or ANSI escape codes.
- Run inside a Git repository with at least one commit; empty or non-Git directories exit non-zero.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect Git repository summary as JSON
onefetch --output json .

Emits JSON containing detected languages, LOC percentages, license, contributors, and commit stats.

Summarize repository excluding merge commits and tests
onefetch --output json --no-merges --exclude tests/ .

Filters out merge commits and tests/ when computing repo language and contributor metrics.

Strengths for Agents

  • + --output json eliminates ASCII logos and returns structured repo metadata in one shot.
  • + Combines language breakdown, license detection, and contributor stats.

Caveats & Pitfalls

  • ! Requires a valid Git repository with at least one commit (fails on plain directories).
  • ! Default invocation without --output json outputs decorative ASCII art and ANSI colors.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI