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

pnpm

$ pnpm Community Med Risk
pnpm Contributors · Code & DevOps · MIT · macos / linux / windows

Disk-efficient, strict Node.js package manager using a global content-addressable store and symlinked node_modules. Provides --json output across list, outdated, and audit, plus CI=true / --reporter=append-only for clean agent logs.

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

Manages local node_modules, pnpm-lock.yaml, and workspace scripts directly on disk.

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

Supports --json on list, outdated, and audit, --frozen-lockfile, --reporter=append-only, and CI=true.

  • pnpm list --json and pnpm audit --json output clean JSON
  • --reporter=append-only prevents ANSI cursor rewrites
Trust & Safety 20 / 25

Strict node_modules prevents phantom dependency leaks and v10 restricts build scripts by default, though lifecycle hooks need --ignore-scripts on untrusted code.

  • --frozen-lockfile prevents silent lockfile drift
  • Strict non-flat symlinked dependency tree
Setup & Portability 14 / 15

Available as standalone executable, via Corepack, npm, or Homebrew across macOS, Linux, and Windows.

  • Cross-platform binary and Corepack support
Utility & Efficiency 15 / 15

Global content-addressable store makes monorepo installs fast and disk-frugal.

  • First-class workspace filtering (--filter)
Maintenance & Lineage 9 / 10

Widely adopted MIT project led by Zoltan Kochan and active contributors.

  • Active pnpm/pnpm repository
Docs & Verifiability 9 / 10

Clear CLI reference at pnpm.io covering every flag and workspace filter.

  • Complete command reference at pnpm.io

Security, Auth & Guardrails

Auth Modes
No Auth Config File Env API Key
Credential Storage

Reads npm registry auth tokens from ~/.npmrc or environment variables (e.g. NPM_TOKEN).

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

MIT open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# pnpm Agent Rules
- Use `pnpm install --frozen-lockfile --reporter=append-only` (with `CI=true`) when verifying existing projects.
- Pass `--ignore-scripts` when inspecting untrusted third-party repositories.
- Never run `pnpm publish` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List workspace dependencies as JSON
pnpm list --depth=0 --json

Exports top-level project dependencies and versions in JSON without modifying node_modules.

Audit vulnerabilities as JSON
pnpm audit --json

Returns known dependency advisories in structured JSON.

Controlled Writes & Previews

Install dependencies strictly from lockfile
pnpm install --frozen-lockfile --reporter=append-only

Installs exact versions from pnpm-lock.yaml without interactive spinners or lockfile edits.

Strengths for Agents

  • + Strict node_modules catches missing declared dependencies early in agent edits.
  • + pnpm list --json and pnpm audit --json provide clean structured inspection.
  • + --frozen-lockfile and --reporter=append-only give deterministic CI/agent logs.

Caveats & Pitfalls

  • ! pnpm install does not support a universal --dry-run flag across all phases.
  • ! Untrusted packages can run postinstall scripts unless --ignore-scripts or v10 onlyBuiltDependencies is enforced.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI