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

Vagrant

$ vagrant Official High Risk
HashiCorp · Cloud & Infra · BSL-1.1 · macos / linux / windows

vagrant provisions and manages virtual machine environments defined in Ruby-based Vagrantfile descriptors across VirtualBox, VMware, Libvirt, and cloud providers. While --machine-readable provides CSV-like event lines, VM lifecycle operations are slow, stateful, and lack --json output.

FCRS-1.0 Score
67 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install --cask vagrant
CLI vs MCP Decision CLI Only

Local hypervisor and VM lifecycle controller; requires host-level virtualization drivers unavailable to remote MCP servers.

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

Offers --machine-readable CSV-formatted output and vagrant validate, but lacks --json, runs slowly over Ruby/hypervisor IPC, and can prompt interactively on destroy without -f.

  • Uses custom --machine-readable CSV format instead of JSON
  • Prompts for confirmation on vagrant destroy unless -f is passed
Trust & Safety 16 / 25

vagrant destroy irreversibly deletes VM disks and snapshots, and Vagrantfile executes arbitrary Ruby code on evaluation.

  • Vagrantfile executes arbitrary Ruby during validate or status
  • No --dry-run flag on vagrant up or vagrant destroy
Setup & Portability 11 / 15

Installers exist for macOS, Linux, and Windows, but requires a heavy external hypervisor (VirtualBox, VMware, or Libvirt) and fails on Apple Silicon for x86 boxes without emulation.

  • Requires external hypervisor installation; heavy footprint
Utility & Efficiency 10 / 15

Useful for legacy VM workflows, though containers and Lima/OrbStack/Colima are much faster for agent test loops.

  • Slow VM boot/box download loops compared to containers
Maintenance & Lineage 8 / 10

Official HashiCorp tool (hashicorp/vagrant), though relicensed to BSL-1.1 in 2023 and slower-moving than cloud-native tools.

  • Official HashiCorp repository under BSL-1.1
Docs & Verifiability 9 / 10

Extensive official documentation at developer.hashicorp.com/vagrant/docs.

  • Comprehensive CLI and provider docs on HashiCorp Developer

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Local hypervisors require no login; Vagrant Cloud tokens and provider keys live in ~/.vagrant.d/data or env vars like VAGRANT_CLOUD_TOKEN.

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

BSL-1.1 license (free for internal/non-competing use); optional paid VMware plugin or HCP Vagrant Registry tiers.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Vagrant Agent Rules
- Always run `vagrant validate` and `vagrant status --machine-readable` first.
- Never run `vagrant destroy -f` without explicit user approval, as it permanently deletes VM disks.
- Pass `-f` / `--force` only when user confirmed non-interactive destruction.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect VM status in machine-readable format
vagrant status --machine-readable

Emits comma-separated state records for machines in the current Vagrantfile without starting or stopping VMs.

Validate Vagrantfile syntax
vagrant validate

Checks the Vagrantfile Ruby syntax and basic configuration without provisioning machines.

Controlled Writes & Previews

Boot VM without interactive provisioning
vagrant up --no-provision

Starts the VM defined in Vagrantfile while skipping potentially destructive provisioning scripts.

Strengths for Agents

  • + vagrant validate and vagrant status --machine-readable check config and state safely.
  • + Supports multiple hypervisor providers behind one Vagrantfile workflow.
  • + Detailed official documentation across providers and provisioners.

Caveats & Pitfalls

  • ! No JSON output (--machine-readable emits CSV-style lines).
  • ! Evaluating Vagrantfile executes arbitrary Ruby, and vagrant destroy -f permanently deletes VM disks without --dry-run.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI