---
title: "coding.sh dataset · coding.sh docs"
description: "Manage versioned datasets of cases. Every option of coding.sh dataset and its subcommands, from its own --help."
canonical: https://coding.sh/docs/cli/dataset
human_url: https://coding.sh/docs/cli/dataset
markdown_url: https://coding.sh/docs/cli/dataset.md
agents_url: https://coding.sh/agents.md
llms_url: https://coding.sh/llms.txt
updated: 2026-11-11
---

# coding.sh dataset

Manage versioned datasets of cases. Every option of coding.sh dataset and its subcommands, from its own --help.

coding.sh dataset --help

```
coding.sh dataset <action>

  Manage versioned datasets of cases

Commands
  add           Add cases to a dataset (creates it when missing)
  import        Import cases from a JSONL, JSON or CSV file
  list          List datasets
```

## `coding.sh dataset add`

Add cases to a dataset (creates it when missing).

coding.sh dataset add --help

```
coding.sh dataset add <NAME> [options]

  Add cases to a dataset (creates it when missing)

Arguments
  name          Dataset name

Options
  --case <JSON>    Case as JSON: {"input":…,"expected":…} (repeatable)
  --session <ID>   Case from a captured session (repeatable)
  --split <SPLIT>  Split for the added cases (default: stable hash of the case id, 60/20/20)
  --kind <KIND>    Kind for the added cases: bad fails before the fix, guard and control pass before and after
  --note <TEXT>    Version note

Examples
  coding.sh dataset add smoke --case '{"input":"2+2","expected":"4"}'
  coding.sh dataset add labelled --session <ID> --split test
  coding.sh dataset add prompt-fix --kind control --case '{"input":"What is 2+2?","expected":"4"}'
```

## `coding.sh dataset import`

Import cases from a JSONL, JSON or CSV file.

coding.sh dataset import --help

```
coding.sh dataset import <FILE> [options]

  Import cases from a JSONL, JSON or CSV file

Arguments
  file          Path to the file

Options
  --name <NAME>  Dataset name (default: file name)
  --note <TEXT>  Version note
```

## `coding.sh dataset list`

List datasets.

coding.sh dataset list --help

```
coding.sh dataset list

  List datasets
```

[All commands](https://coding.sh/docs/cli) · [Global options](https://coding.sh/docs/cli#global)

To set coding.sh up for a user, follow the agent workflow at [/agents.md](https://coding.sh/agents.md).
