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

typos

$ typos Community Low Risk
crate-ci · Code & DevOps · MIT · macos / linux / windows

Fast Rust spell checker designed specifically for source code, identifiers, comments, and docs without flooding CI with false positives. Outputs structured --format json (NDJSON) findings, previews patches with --diff, and fixes unambiguously safe typos via --write-changes.

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

Scans entire repositories locally in milliseconds; no MCP server needed.

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

Supports --format json (NDJSON), --diff, --color never, --no-ignore, and clear exit codes (0 clean, 2 typos found).

  • --format json returns clean NDJSON typo records with candidate replacements
  • --diff and --color never support clean previews
Trust & Safety 23 / 25

Read-only by default; skips ambiguous corrections during --write-changes and offers --diff preview.

  • Read-only default and --diff dry-run preview
Setup & Portability 15 / 15

Single static Rust binary via Homebrew (typos-cli), Cargo, and GitHub Releases.

  • Zero-dependency native binary on macOS, Linux, and Windows
Utility & Efficiency 14 / 15

Scans massive monorepos in milliseconds with low false positives by matching known typos rather than dictionary-failing every identifier.

  • Identifier-aware CamelCase/snake_case splitting and .gitignore respect
Maintenance & Lineage 8 / 10

Actively maintained by crate-ci (Ed Page) under MIT/Apache-2.0.

  • Active crate-ci/typos repository
Docs & Verifiability 8 / 10

Clear README covering _typos.toml configuration, false-positive exclusions, and CLI flags.

  • Official README and --help reference

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Offline local source spell checker; no credentials stored or required.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT/Apache-2.0 dual-licensed Rust binary; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# typos Agent Rules
- Always run `typos --format json --color never` (or `typos --diff`) before `--write-changes`.
- Never run `--write-changes` blindly on public API identifiers without reviewing the diff first.

Agent-Ready Command Recipes

Safe Read-Only Queries

Scan repository typos with JSON output
typos --format json --color never

Emits newline-delimited JSON objects with file path, line, typo token, and suggested corrections without editing files.

Preview spelling fixes as unified diff
typos --diff

Displays exact unified diffs of proposed fixes without modifying disk files.

Controlled Writes & Previews

Apply unambiguous spelling fixes in place
typos --write-changes

Rewrites unambiguous typo corrections across tracked files.

Strengths for Agents

  • + Native --format json NDJSON output and --diff preview make spell-fix automation safe and concise.
  • + Low false-positive rate and millisecond Rust scan speed across large repositories.

Caveats & Pitfalls

  • ! Note the Homebrew formula is typos-cli while the binary is typos.
  • ! Exits with code 2 when typos are detected; --write-changes can rename code identifiers if unreviewed.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI