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

PDM

$ pdm Community Med Risk
Frost Ming · Code & DevOps · MIT · macos / linux / windows

PDM (pdm) is a PEP 621/582-aligned Python package manager featuring a cross-platform pdm.lock, optional uv backend acceleration, and clean automation flags including pdm list --json --fields and --dry-run on installs and updates.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install pdm
CLI vs MCP Decision CLI Preferred vs MCP

pdm operates directly on local pyproject.toml, pdm.lock, and .venv state; direct CLI execution is faster and avoids MCP overhead.

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 pdm list --json with --fields filtering, --dry-run on install/update/add, --frozen-lockfile, and NO_COLOR=1.

  • pdm list --fields ... --json supports field selection and JSON output
  • pdm install --dry-run and pdm sync --frozen-lockfile enable safe headless execution
Trust & Safety 21 / 25

Uses .venv isolation, --dry-run previews, --frozen-lockfile guards, and keyring/env-var isolation for pdm publish.

  • --dry-run previews lock and install mutations before applying
  • --frozen-lockfile prevents silent lockfile rewrites
Setup & Portability 13 / 15

Available via Homebrew, PyPI, pipx, uvx, and installer scripts across macOS, Linux, and Windows, requiring Python.

  • Installable via brew install pdm and uvx pdm
Utility & Efficiency 13 / 15

Flexible PEP 621 manager that can optionally delegate resolution/installs to uv via use_uv = true.

  • Optional uv backend speeds up resolution while keeping pdm.lock workflows
Maintenance & Lineage 8 / 10

Actively maintained by Frost Ming and contributors (pdm-project/pdm) under MIT license.

  • Active pdm-project/pdm repository under MIT license
Docs & Verifiability 9 / 10

Clear CLI reference and configuration guide at pdm-project.org.

  • Detailed CLI reference at pdm-project.org/en/latest/reference/cli

Security, Auth & Guardrails

Auth Modes
No Auth Config File Env API Key OS Keychain
Credential Storage

Stores repository credentials in OS keyring or pdm global config, and reads PDM_PUBLISH_USERNAME / PDM_PUBLISH_PASSWORD env vars.

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

MIT open-source CLI; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# PDM Agent Rules
- Use `pdm list --fields name,version --json` for compact package inspection.
- Preview changes with `pdm install --dry-run` or `pdm update --dry-run` and enforce `--frozen-lockfile` in CI.
- Never run `pdm publish` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List installed packages with selected JSON fields
pdm list --fields name,version,licenses --json

Emits JSON metadata for installed packages using explicit --fields projection.

Preview lockfile sync without writing
pdm install --dry-run --no-self

Pre-evaluates package additions or updates against pdm.lock without modifying .venv.

Controlled Writes & Previews

Sync environment strictly from pdm.lock
pdm sync --frozen-lockfile --no-editable

Installs exact locked packages into .venv without re-resolving or prompting.

Strengths for Agents

  • + pdm list --fields ... --json gives agents structured dependency inspection with field filtering.
  • + Supports --dry-run on add, update, and install plus --frozen-lockfile enforcement.
  • + Can optionally use uv under the hood for fast dependency resolution.

Caveats & Pitfalls

  • ! Non-JSON install and sync outputs remain line-oriented text.
  • ! Still requires a host Python installation to run pdm itself.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI