onefetch
$ onefetch Community Low Riskonefetch 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.
brew install onefetch onefetch --output json summarizes a local Git repo in one offline command without needing an MCP server.
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
Native --output json disables ASCII art/ANSI styling and emits clean structured JSON non-interactively.
- Supports
--output json(-o json),--no-merges, and--exclude
Strictly read-only local Git repository inspection with zero write modes or network requests.
- Read-only Git metadata and LOC analyzer
Static Rust binary available via brew install onefetch, cargo install onefetch, winget, and GitHub Releases.
- Cross-platform static binary for macOS, Linux, and Windows
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
Actively maintained MIT-licensed Rust project (o2sh/onefetch).
- Active
o2sh/onefetchrepository
Clear GitHub wiki and --help documenting --output, --exclude, and language options.
- Documented in GitHub README, wiki, and
--help
Security, Auth & Guardrails
None required; read-only local Git repository inspector.
100% free, offline, and open-source (MIT).
# 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
onefetch --output json .
Emits JSON containing detected languages, LOC percentages, license, contributors, and commit stats.
onefetch --output json --no-merges --exclude tests/ .
Filters out merge commits and tests/ when computing repo language and contributor metrics.
Strengths for Agents
- +
--output jsoneliminates 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 jsonoutputs decorative ASCII art and ANSI colors.