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

asdf

$ asdf Community Low Risk
asdf-vm · Code & DevOps · MIT · macos / linux

asdf manages multiple runtime and CLI versions across languages through community plugins and project .tool-versions files. Rewritten in Go in v0.16+, it removes bash performance overhead on shims, though its subcommands emit plain text without --json.

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

asdf manages local runtime installations and .tool-versions shim resolution directly on disk; MCP is not applicable.

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

Deterministic asdf current, asdf which, and asdf exec commands work cleanly non-interactively, though all output is plain text with no --json or --dry-run.

  • asdf current and asdf list emit plain text only
  • asdf exec runs commands with resolved tool PATH without shell hooks
Trust & Safety 19 / 25

Keeps installations isolated in ~/.asdf/, though third-party asdf plugins execute arbitrary shell install scripts from external Git repos.

  • Plugin install scripts run unsandboxed shell code from Git repositories
Setup & Portability 12 / 15

Go binary (v0.16+) distributed via Homebrew and GitHub releases for macOS and Linux; Windows requires WSL.

  • Single Go binary on macOS/Linux; relies on POSIX shell plugins
Utility & Efficiency 12 / 15

Unifies dozens of language version managers via .tool-versions, though mise offers faster parallel installs and --json support with the same file format.

  • Broad plugin ecosystem around .tool-versions, slower than mise native backends
Maintenance & Lineage 8 / 10

Maintained by asdf-vm (asdf-vm/asdf) under MIT license, recently modernized to Go.

  • Active asdf-vm/asdf repository under MIT license
Docs & Verifiability 8 / 10

Clear command and migration documentation at asdf-vm.com.

  • Official command docs at asdf-vm.com/manage/commands.html

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Core CLI needs no auth; GitHub-hosted plugin installs optionally read GITHUB_API_TOKEN to avoid rate limits.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source CLI; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# asdf Agent Rules
- Run `asdf current` to check active `.tool-versions` pins before executing language runtimes.
- Prefer `asdf exec <cmd>` or `asdf which <bin>` if subagent shells lack `~/.asdf/shims` on `PATH`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Show active tool versions for current directory
asdf current

Prints each configured plugin's active version and which .tool-versions file set it.

Resolve exact executable path for a managed tool
asdf which node

Returns the real binary path selected by .tool-versions without invoking a shim.

Controlled Writes & Previews

Pin a tool version in local .tool-versions
asdf set nodejs 22.11.0

Writes the tool version entry to the current directory's .tool-versions file (asdf 0.16+).

Strengths for Agents

  • + Standard .tool-versions format covers Node, Python, Ruby, Go, Terraform, and hundreds of plugins.
  • + asdf exec and asdf which bypass missing shim initialization in subagent shells.
  • + v0.16+ Go rewrite removes legacy Bash shim dispatch latency.

Caveats & Pitfalls

  • ! No --json output or --dry-run mode on any subcommand.
  • ! v0.16+ replaced asdf local/global with asdf set, which can cause version-skew confusion across older docs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI