csvtk
$ csvtk Community Low Riskcsvtk is a single-binary Go toolkit with 35+ subcommands (dim, summary, freq, join, filter2, csv2json, pretty) for high-throughput CSV/TSV wrangling, supporting multi-core processing, gzipped inputs, and header-name selection.
brew install csvtk Performs fast Go-native CSV joins, grouped summaries, and csv2json conversions locally without Python dependencies.
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
Provides csv2json, --tabular output on dim/stats, field-name addressing (-f), clean exit codes, and non-interactive streaming.
- Supports
csvtk csv2jsonandcsvtk dim --tabular - Zero interactive prompts
Read-only stdout processing by default; only writes files when -o (--out-file) is explicitly supplied.
- Stdout default; explicit
-orequired for file writes
Single static Go binary across macOS, Linux, and Windows with built-in .gz/.xz/.zst transparent decompression.
- Static Go binary (
brew install csvtk)
Fast multi-threaded CSV/TSV joins, frequency tables (freq), grouped summary, and plot subcommands.
- 35+ subcommands covering joins, stats, and conversion
Actively maintained by Shen Wei (shenwei356/csvtk) under MIT license.
- Active
shenwei356/csvtkGitHub repository
Detailed usage docs and subcommand examples on bioinf.shenwei.me/csvtk.
- Subcommand docs and
--helpflags
Security, Auth & Guardrails
None; operates purely on local CSV/TSV files and stdin/stdout.
MIT open-source CLI; completely free.
# csvtk Agent Rules - Check `csvtk dim --tabular` and `csvtk headers` before printing full CSV tables. - Pass `-t` for TSV inputs and `-o <file>` when writing outputs; omit `-o` to stream safely to stdout.
Agent-Ready Command Recipes
Safe Read-Only Queries
csvtk dim --tabular data.csv
Reports row and column counts in clean tabular output without dumping file contents.
csvtk csv2json -n data.csv
Converts CSV records to JSON while parsing numeric columns cleanly via -n (--parse-num).
Controlled Writes & Previews
csvtk join -f id a.csv b.csv -o joined.csv
Performs an inner join on column id and writes the merged table to joined.csv.
Strengths for Agents
- + Zero-dependency static Go binary handles gzipped/zstd CSVs directly.
- +
csvtk csv2jsonandcsvtk dim --tabularintegrate smoothly into JSON-centric agent pipelines. - + Significantly faster than Python
csvkiton large tables.
Caveats & Pitfalls
- ! Requires
-texplicitly for tab-separated (.tsv) input unless configured. - ! Only
csv2jsonoutputs JSON; analytical commands (summary,freq) output CSV/TSV.