omdsh-dev/dsh-tool-csv

DSH CSV data tool plug-in: parse/query/statistics/convert CSV text (RFC 4180), zero-dependency state machine parser, registered csv tool

Deterministic CSV data tool for agent sessions: parse/query/stats/to_json on CSV text — zero dependencies, pure functions, hand-written RFC 4180 state machine (single pass, O(n)). Safety: no file I/O, no network, no eval; exact-match filtering only; 256,000-byte input budget (hard error, no truncation), timeoutMs 2000, limit default 100 rows. Handles quoted commas/newlines, "" escapes, BOM, CRLF, unterminated-quote errors, and proto/constructor/prototype headers via null-prototype objects.

Files & Data ★ 4 updated 2026-09-10 ⚠️ needs adapt
View on GitHub ↗

Install

dsh plugin --profile web add github:omdsh-dev/dsh-tool-csv

GitHub install per README (English edition, DSH 0.1.0-rc.8): dsh plugin --profile web add github:omdsh-dev/dsh-tool-csv (web profile) and dsh plugin --profile headless add github:omdsh-dev/dsh-tool-csv (headless — dsh run uses headless by default). Tarball path: git clone, npm install && npm pack, then dsh plugin --profile web add ./deepseek-ai-dsh-tool-csv-*.tgz. The in-package dsh.bundle.patch auto-adds the plugin row (id: tool-csv). No npm package published.

Compatibility

DSH 0.1.0-rc.8 profile/bundle plugin system (web and headless profiles are independent — installing into web does not cover headless).

Details

Recent updates

RFC 4180 state-machine parser; parse/query/stats/to_json actions; strict quoting errors; 256KB budget; null-prototype header safety.

FAQ

What actions does the csv tool support?
parse (CSV → JSON array), query (exact-match column filter), stats (rows/columns/warnings), and to_json (model-friendly parse alias).
Is it safe for untrusted input?
Yes — zero dependencies, pure functions, no file/network/eval; filtering is literal exact-match only, and oversized input is rejected with a hard error.
How do I install it?
dsh plugin --profile web add github:omdsh-dev/dsh-tool-csv (and headless for dsh run); the bundle patch auto-adds the tool-csv row.

Alternatives

csiroqa/dsh-command-opt · omdsh-dev/dsh-toolkit · Electricitysheep/dsh-tool-turbo

More plugins in Files & Data

Browse more in Files & Data

Guides for Files & Data plugins