dasel
$ dasel Community Low Riskdasel (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.
brew install dasel 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
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -r/-w format flags (json, yaml, toml, xml, csv), --pretty=false, and deterministic positional selectors.
- Supports
-r/-w json,--pretty=false, and typedput
Read-only by default; file mutations require explicit put / delete subcommands with -f.
- Read-only query default; explicit
putsubcommand for writes
Single static Go binary via Homebrew, Nix, Scoop, and Releases.
- Static Go binary across macOS, Linux, and Windows
Unifies TOML, XML, YAML, CSV, and JSON under one tiny tool.
- Multi-format query, conversion, and mutation in one binary
Well-regarded TomWright/dasel project under MIT license.
TomWright/daselrepository
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
None; operates strictly on local files and stdin/stdout.
100% free and MIT open-source.
# 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
dasel -f Cargo.toml -w json 'package.version'
Extracts a nested value from TOML using unified selector syntax and prints JSON.
dasel -f config.yaml -w json --pretty=false '.'
Parses YAML and emits compact single-line JSON for downstream scripts.
Controlled Writes & Previews
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
TOMLandXML, whichjqandyqhandle less uniformly. - + Zero-dependency Go binary.
Caveats & Pitfalls
- ! v2 changed CLI flags from v1 (
-p/-sreplaced by-r/-wand positional selectors). - ! TOML/YAML writes may reformat comments compared to
yq.