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

ty

$ ty Official Low Risk
Astral · Code & DevOps · MIT · macos / linux / windows

Astral's Rust-powered Python type checker and language server built for sub-second workspace diagnostics. ty check supports concise output formats, --no-progress, and strict exit codes for rapid agent edit-verify loops.

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

Runs sub-second incremental Rust type checking locally; CLI execution beats any MCP wrapper.

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 ty check --output-format concise (plus full, gitlab, github), --no-progress, --color never, and --exit-zero.

  • --output-format concise and --no-progress produce compact agent-ready lines
Trust & Safety 24 / 25

Purely read-only static type checker; never executes inspected Python modules.

  • Strictly read-only static analysis
Setup & Portability 14 / 15

Prebuilt Rust binary available via Homebrew, PyPI, uvx, and Astral installers.

  • Cross-platform native binary via uvx ty or brew install ty
Utility & Efficiency 13 / 15

Dramatically faster than mypy and pyright for rapid agent feedback, though rule coverage is still growing.

  • Sub-second Rust type checking on medium-to-large Python repos
Maintenance & Lineage 8 / 10

Official Astral project (astral-sh/ty, makers of uv and ruff) under MIT license, currently in active early-stage maturation.

  • Maintained by Astral (astral-sh/ty)
Docs & Verifiability 8 / 10

Clean official docs at docs.astral.sh/ty/ and structured --help.

  • Official docs at docs.astral.sh/ty/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Offline local Python type checker; no credentials stored or required.

Side Effects
Read-Only
Cost & Quotas

MIT open-source Rust CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# ty Agent Rules
- Pass `--output-format concise --no-progress --color never` for clean single-line diagnostics.
- Because `ty` is still maturing, cross-check edge-case typing failures against `pyright` or `mypy` if a repo pins them.

Agent-Ready Command Recipes

Safe Read-Only Queries

Type-check Python workspace with concise output
ty check --output-format concise --no-progress --color never .

Prints compact one-line-per-diagnostic errors without progress bars or ANSI color codes.

Check a specific Python module
ty check src/module.py

Runs fast targeted type checking on modified files.

Strengths for Agents

  • + Sub-second Rust type checking makes edit-check loops nearly instantaneous for agents.
  • + Explicit --output-format concise --no-progress --color never flags avoid noisy terminal formatting.

Caveats & Pitfalls

  • ! Newer than mypy and pyright; diagnostic parity and plugin support (e.g. Django/Pydantic) are still evolving.
  • ! Lacks a generic --output-format json flag compared to pyright --outputjson.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI