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

uv

$ uv Official Low Risk
Astral · Code & DevOps · Apache-2.0 · macos / linux / windows

Astral's all-in-one Rust replacement for pip, pip-tools, pipx, poetry, and pyenv. Delivers 10-100x faster dependency resolution, deterministic uv.lock syncing, --dry-run install previews, --format json inspection, and uvx ephemeral tool execution.

FCRS-1.0 Score
94 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install uv
CLI vs MCP Decision CLI Only

Manages local Python interpreters, .venv sandboxes, and uv.lock resolution directly on disk at Rust speed.

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

Supports uv pip list --format json, uv sync --dry-run, --locked, --color never, NO_COLOR=1, and crisp non-interactive diagnostics.

  • uv pip list --format json and uv tree provide clean inspection
  • --dry-run and --locked enforce deterministic headless runs
Trust & Safety 22 / 25

Isolates environments inside project .venv and uv.lock, with --dry-run on sync/pip install and explicit opt-in for uv publish.

  • uv sync --dry-run previews changes before modifying .venv
Setup & Portability 15 / 15

Single static Rust binary with zero Python prerequisite—can even download managed Python interpreters itself.

  • Self-contained static binary across macOS, Linux, and Windows
Utility & Efficiency 15 / 15

Orders-of-magnitude faster than pip/poetry with global hardlink cache, saving huge time in agent test loops.

  • Sub-second cached environment resolution and uvx runner
Maintenance & Lineage 10 / 10

Backed by Astral (astral-sh/uv) with rapid, high-quality releases under Apache-2.0/MIT.

  • Official astral-sh/uv project
Docs & Verifiability 9 / 10

Exemplary documentation at docs.astral.sh/uv/ with clear CLI reference.

  • Comprehensive CLI and lockfile guide at docs.astral.sh/uv

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Package installs need no auth; private index or uv publish tokens use UV_PUBLISH_TOKEN, keyring, or ~/.netrc.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Dual Apache-2.0 / MIT open-source Rust binary; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# uv Agent Rules
- Prefer `uv run --locked <cmd>` or `uv sync --dry-run` before mutating `.venv`.
- Pass `--color never` (or `NO_COLOR=1`) for clean logs.
- Never run `uv publish` without explicit user confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

List installed packages as JSON
uv pip list --format json

Emits installed package names and exact versions in structured JSON.

Preview dependency sync without installing
uv sync --dry-run --color never

Reports packages that would be added, upgraded, or removed without touching .venv.

Controlled Writes & Previews

Run a project command in a locked environment
uv run --locked pytest -q

Executes pytest using the exact uv.lock environment, failing safely if the lockfile is stale.

Strengths for Agents

  • + Single Rust binary requires no pre-installed Python and provisions interpreters automatically.
  • + uv sync --dry-run, --locked, and uv pip list --format json give agents tight control over Python envs.
  • + Near-instant cached installs dramatically accelerate agent iteration.

Caveats & Pitfalls

  • ! uv sync stdout is plain text rather than JSON.
  • ! Installing source distributions (sdists) without pre-built wheels still runs package setup.py build hooks.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI