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

dasel

$ dasel Community Low Risk
Tom Wright · Database & Data · MIT · macos / linux / windows

dasel (Data-Selector) provides one consistent selector syntax across JSON, YAML, TOML, XML, and CSV files. Agents can read nested keys (-r toml -w json), convert formats cleanly, and run dasel put updates from a single static Go binary.

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

dasel -f Cargo.toml -w json reads and updates TOML, XML, YAML, and JSON using a single uniform CLI instead of format-specific parsers.

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 -r/-w format flags (json, yaml, toml, xml, csv), --pretty=false, and deterministic positional selectors.

  • Supports -r/-w json, --pretty=false, and typed put
Trust & Safety 23 / 25

Read-only by default; file mutations require explicit put / delete subcommands with -f.

  • Read-only query default; explicit put subcommand for writes
Setup & Portability 15 / 15

Single static Go binary via Homebrew, Nix, Scoop, and Releases.

  • Static Go binary across macOS, Linux, and Windows
Utility & Efficiency 13 / 15

Unifies TOML, XML, YAML, CSV, and JSON under one tiny tool.

  • Multi-format query, conversion, and mutation in one binary
Maintenance & Lineage 8 / 10

Well-regarded TomWright/dasel project under MIT license.

  • TomWright/dasel repository
Docs & Verifiability 7 / 10

Good docs at daseldocs.tomwright.uk, though v1 vs v2 selector syntax changes occasionally confuse older examples.

  • Official docs at daseldocs.tomwright.uk

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; operates strictly on local files and stdin/stdout.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# dasel Agent Rules
- Use `dasel -f <file> -w json '<selector>'` to inspect values read-only first.
- Specify `-t <type>` (`string`, `int`, `bool`) explicitly when running `dasel put`.
- Confirm `dasel --version` (v2 syntax drops the legacy `-s` flag in favor of positional selectors).

Agent-Ready Command Recipes

Safe Read-Only Queries

Read a TOML package version as JSON
dasel -f Cargo.toml -w json 'package.version'

Extracts a nested value from TOML using unified selector syntax and prints JSON.

Convert XML or YAML config to compact JSON
dasel -f config.yaml -w json --pretty=false '.'

Parses YAML and emits compact single-line JSON for downstream scripts.

Controlled Writes & Previews

Update a TOML or JSON property safely
dasel put -f config.toml -t string -v 'production' 'env.mode'

Writes a typed string value to a specific selector path in a local config file.

Strengths for Agents

  • + One selector syntax works across JSON, YAML, TOML, XML, and CSV.
  • + Especially valuable for TOML and XML, which jq and yq handle less uniformly.
  • + Zero-dependency Go binary.

Caveats & Pitfalls

  • ! v2 changed CLI flags from v1 (-p/-s replaced by -r/-w and positional selectors).
  • ! TOML/YAML writes may reformat comments compared to yq.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI