CLI ToolsMay 11, 2026·3 min read

Ty — Astral's Fast Python Type Checker

Ty is Astral's Rust-based Python type checker and language server. Use it to trial fast type feedback next to Ruff and uv before standardizing on CI.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Stage only · 17/100Stage only
Agent surface
Any MCP/CLI agent
Kind
CLI Tool
Install
Single
Trust
Trust: New
Entrypoint
Asset
Universal CLI install command
npx tokrepo install d4b6fc04-0b89-4fea-9456-49d7361b6a32
Intro

Ty is a verified GitHub-backed tool for modern AI and developer workflows, sourced from astral-sh/ty with 18,572 stars and a MIT license snapshot. Best for: Python teams that already like Astral tooling and want faster type feedback without rewriting the project around a new framework. Works with: Python projects, pyproject.toml, uv-managed environments, editor language-server workflows. Setup time: 6 minutes. Use it when you need a concrete, repeatable path rather than another one-off shell snippet.


Operating Pattern

Fit check

Question Practical answer
What do you install? ty from astral-sh/ty
What is the first command? ty check .
What proves it works? ty check .
How long should a pilot take? 6 minutes for a small repo or sandbox

Adoption loop

  1. Run the tool on a disposable branch or sandbox project.
  2. Capture before/after output so reviewers can see the exact effect.
  3. Add the smallest CI or local check that prevents regressions.
  4. Document owner, upgrade command, and rollback command in the repo.

Recommended use

Run Ty beside your current checker for a week. Compare false positives, speed, and editor feedback before deciding whether to make it a required CI gate.

Guardrails

Mark it as an evaluation tool in docs if your team still relies on mypy or pyright for final enforcement.

Rollout checklist

  • Pin the package or release version before using it in CI.
  • Keep credentials in environment variables or the platform secret store.
  • Add one owner who is responsible for upgrades and breaking-change triage.
  • Re-check the GitHub repo before writing docs that mention APIs or install paths.

FAQ

Q: Is this production-ready? A: The repo exists at https://github.com/astral-sh/ty and has 18,572 GitHub stars. Treat the first rollout as a controlled pilot until your team has tested install, rollback, and CI behavior.

Q: Why use it instead of a generic script? A: The value is repeatability: a named package, a documented command, a source repo, and a small verification path that can be reviewed by teammates.

Q: What should I measure first? A: Measure setup time against the 6 minutes target, count how many files or tasks it changes, and record whether the CI command catches the same issue locally.


🙏

Source & Thanks

Built from astral-sh/ty. License: MIT.

GitHub stars verified from api.github.com/repos/astral-sh/ty: 18,572.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets