Preface¶
When building e-commerce or operations-related agents in DeepSeek Harness (DSH), models often receive JSON, CSV, or Excel files exported from scripts or browsers. If you have to open separate Python scripts or spreadsheet software for previewing, missing value statistics, and filtering/deduplication every time, the conversation flow is frequently interrupted. The community-maintained howtimeschange/dsh-crawshrimp-data (Crawshrimp Data Plugin) turns these operations into local tools within the DSH process: reading and writing are completed within a configured working directory. It does not rely on the Crawshrimp application, Crawshrimp backend, or API Tokens, nor is it an official DeepSeek plugin.
What is this¶
The Crawshrimp Data Plugin is a standalone local data plugin for DSH, maintained by howtimeschange and categorized as a networking tool on SkillHub. It allows for previewing, profiling, cleaning, and exporting JSON, CSV, and Excel (XLSX) files within DSH. It is suitable for product table inspection, inventory aggregation, order organization, and converting browser or script outputs into new spreadsheet files. Its capability design references the Crawshrimp local artifact processing flow, while the implementation uses independent Node libraries; it is MIT licensed.
Core Features¶
The plugin exposes capabilities through four tools, with read and write paths strictly limited to the configured workspaceDir:
| Tool | Capability |
|---|---|
crawshrimp_data_preview |
Reads JSON, CSV, XLSX; selects worksheets; returns up to 100 rows per page |
crawshrimp_data_profile |
Calculates missing values, distinct value counts, and min, max, sum, and mean for numeric columns |
crawshrimp_data_export |
Writes JSON records to a new CSV or XLSX; does not overwrite existing files |
crawshrimp_data_transform |
Declarative filtering, deduplication, sorting, column selection, and renaming; can preview or save a new file |
File writing goes through DSH native approval: when a session is in danger-full-access mode and the native approval policy is set to never, existing full permission grants bypass per-operation approval; otherwise, it follows native approval, failing closed if approval cannot be obtained. Sessions of the same plugin instance share the working directory.
JSON input can be an array of records or script output in the shape of { "success": true, "data": [...] }; success: false will be rejected. The processing order for crawshrimp_data_transform is fixed as: Filter -> Deduplicate (keep first) -> Sort -> Select/Rename columns. If outputPath is not provided, it only returns a preview, row count, and statistics.
Installation and Activation¶
Environment requirements: Node.js ^22.19.0 || >=24.0.0, and a verified DSH 0.2.1-alpha.4. The current release version is v0.2.1 (engines.dsh in package.json is >=0.2.1-alpha.4 <0.2.1-alpha.5).
Install the pre-packaged version via GitHub Release, or install the tag containing JavaScript artifacts:
dsh plugin --profile ecommerce add -w github:howtimeschange/dsh-crawshrimp-data#v0.2.1
DSH_DATA_WORKSPACE=/absolute/path/to/data dsh --profile ecommerce --dump-config
DSH_DATA_WORKSPACE=/absolute/path/to/data dsh --profile ecommerce
DSH_DATA_WORKSPACE specifies the working directory used by the plugin; if unspecified, it defaults to the DSH launch directory. It can also be configured in the profile patch:
- id: crawshrimp-data
config:
workspaceDir: /absolute/path/to/data
For local development, you can run npm ci in the repository and then install the directory (no need to execute the package build script):
dsh plugin --profile ecommerce add -w /absolute/path/to/dsh-crawshrimp-data
Distribution is primarily via GitHub; publication to npm is not assumed. For more complete bundle installation instructions, refer to the DSH official publish documentation.
Typical Usage¶
You can describe tasks to DSH directly in natural language, for example:
Preview
products.xlsx, count missing prices and stock, then export selected records toproducts-clean.csv.
When exporting, you can pass JSON records to crawshrimp_data_export:
{
"path": "products-clean.csv",
"rows": [
{ "sku": "A001", "price": 39.5, "stock": 8 },
{ "sku": "A002", "price": 60.5, "stock": 0 }
]
}
SKUs starting with zero must be passed as JSON strings, e.g., "00123". CSV export adds a leading single quote to text (including headers) that might be recognized as a formula by spreadsheet software.
Declarative transformation example (passed to crawshrimp_data_transform):
{
"path": "products.json",
"filters": [{ "column": "stock", "op": "gt", "value": 0 }],
"dedupeBy": ["sku"],
"sortBy": [{ "column": "price", "numeric": true, "direction": "desc" }],
"columns": ["sku", "price", "stock"],
"rename": { "sku": "product_id" }
}
Adding "outputPath": "products-clean.xlsx" or .csv will save a new file after passing the permission check. Filter conditions are combined via AND and support eq, ne, contains, in, gt, gte, lt, lte, is_empty, not_empty, etc.; up to 20 filter conditions and 5 sort keys are allowed. The repository’s examples/sample-products.json and examples/transform-products.json can be used for reference.
Use Cases and Notes¶
Suitable for scenarios requiring quick inspection of table structures, overviews of missing values and distributions, and conditional cleaning and exporting of new files within a DSH session, especially for e-commerce product tables, inventory, and order-type flattened data. It can be installed separately and run independently alongside the Browser Plugin and Office Plugin; web scripting and page-turning capabilities belong to the Browser Plugin.
Please note before use:
- Single file input must not exceed 10 MiB; table limits are 10,000 rows, 200 columns, 200,000 cells, etc. Exceeding these limits will result in a clear error rather than silent truncation.
- XLSX formula cells only read saved cache values and do not recalculate formulas; the plugin does not edit complex workbooks or connect to seller or merchant systems.
- The plugin accesses local paths with the current DSH process permissions; it is recommended to read the source code and MIT license before installation to ensure the
workspaceDirscope aligns with your security policy.
The DSH ecosystem emphasizes “Everything is a Plugin”; the SkillHub directory page is a community site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
The Crawshrimp Data Plugin consolidates the previewing, profiling, transformation, and export of JSON / CSV / XLSX into DSH tool calls, allowing common spreadsheet organization to be completed within a fixed working directory without needing the Crawshrimp backend. For further information, visit the SkillHub Plugin Page and the GitHub Repository.