dsq
$ dsq Community Low Riskdsq imports JSON, NDJSON, CSV, TSV, Parquet, and Excel files into SQLite under the hood, letting agents run standard SQL (SELECT ... FROM {}) and get JSON results back on stdout in one command.
brew install dsq Executes SQLite queries on local files and emits JSON directly (dsq data.json "SELECT ... FROM {}"), replacing ad-hoc Python scripts.
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
Outputs compact JSON arrays by default, supports --schema, --pretty, -s for stdin, and non-interactive one-shot queries.
- JSON array stdout by default
- Supports
--schemaand-sstdin format flag
Executes read-only queries against ephemeral SQLite tables unless -C (--cache) persists local cache files.
- Ephemeral SQLite import by default; read-only queries
Distributed as a Go binary via Homebrew and GitHub Releases across macOS, Linux, and Windows.
- Available via
brew install dsq
Unifies SQLite SQL querying across JSON, CSV, Parquet, and Excel using {} table shorthand.
- Multi-format SQL querying with
{}/{0}placeholders
Apache-2.0 project from Multiprocess Labs, though release cadence has slowed compared to duckdb.
multiprocessio/dsqunder Apache-2.0
Clear README examples and --help covering joins, stdin, and caching flags.
- Documented flags and multi-file join examples in README
Security, Auth & Guardrails
None; optionally caches imported SQLite tables locally when -C (--cache) is passed.
Apache-2.0 open-source CLI; completely free.
# dsq Agent Rules - Always include `LIMIT` in exploratory `SELECT` queries so large tables do not overflow stdout. - Pass `-s <ext>` (e.g. `-s csv`) when piping data via stdin.
Agent-Ready Command Recipes
Safe Read-Only Queries
dsq data.json "SELECT status, count(*) AS cnt FROM {} GROUP BY status" Queries data.json using SQLite SQL and returns grouped counts as a JSON array.
dsq --schema data.csv
Prints the inferred column names and types without scanning rows into context.
Strengths for Agents
- + Zero-ceremony
dsq file.json "SELECT ... FROM {}"syntax returns JSON immediately. - +
--schemalets agents inspect column names before running queries. - + Supports multi-file SQL joins (
{0},{1}) across mixed formats.
Caveats & Pitfalls
- ! Slower and less actively developed than
duckdbon large Parquet/analytical datasets. - ! Passing
-i(--interactive) starts a REPL—avoid in automated agent runs.