> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oqoqo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Tasks and rubrics

> Write tasks for agents, define the rubric that decides pass or fail, import tasks in bulk, and know when to rerun evals.

A task is the work you ask an agent to do, plus everything that must stay the same for a fair comparison. Its rubric decides whether a run passed.

## What a task holds

| Tab | What it holds |
| - | - |
| **Instructions** | The task name and what the agent should do |
| **Rubric** | The criteria that decide pass or fail |
| **Files** | Folders placed in the agent's working directory |
| **Machine** | The environment the run executes in |

The task's **Runs** tab lists the runs of that task version in every experiment, and its **Experiments** and **Frictions** tabs list those runs' experiments and frictions.

Set up files and machines in [Machines and files](https://docs.oqoqo.ai/experiments/machines-and-files.md). Tools attach to a [treatment](https://docs.oqoqo.ai/experiments/treatments.md), not a task, and you choose agents at launch.

## Create a task

> [tab] Dashboard
>
> 1. Open **Manage → Tasks** and select **New task**.
> 2. Enter a **Task name** and the **Instructions**.
> 3. Add criteria under **Rubric**.
> 4. Attach folders on **Files**, and choose a machine on **Machine** or keep the project default.
> 5. Select **Create task**.
>
> You can also create a task from the task list in **New experiment**.

> [tab] CLI
>
> Write the task as a JSON operation and apply it:
>
> ```bash theme={null}
> oqoqo schema resources apply
> oqoqo resources apply --operation-file task.json
> ```
>
> The schema lists the fields, including `instructionsMarkdown`, the rubric, and `assetAttachments` with each file's `mountPath`. [`oqoqo resources apply`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-apply) has an example `task.json`.

> [tab] Plugin (MCP)
>
> Ask your AI assistant to create the task. It calls **Create or update a resource** ([`author_resource`](https://docs.oqoqo.ai/mcp-server/tools#author_resource)).
>
> ```text theme={null}
> Create an Oqoqo task named "Fix the checkout total" that asks the agent to fix the rounding bug in helpdesk-web/, with a rubric of three yes/no criteria.
> ```

## Write the instructions

Brief the agent as you would a capable engineer who is new to your product: the goal, the output you expect, and the limits. Vague tasks are hard to score, so be specific: "Refactor the auth module so `require()` calls are deterministic, without changing the public API."

Refer to attached folders by their [path relative to the working directory](https://docs.oqoqo.ai/experiments/machines-and-files.md#mount-paths), for example "Fix the app in `helpdesk-web/`."

![Task page with the task name, the Instructions tab, and the instructions text.](https://mintcdn.com/oqoqo/_r_byoercOECoPlh/images/screenshots/task-detail-light.png?fit=max\&auto=format\&n=_r_byoercOECoPlh\&q=85\&s=2dfd286edd33d820ecef3d00394b7956)

## Write the rubric

A rubric is a list of **criteria**, one outcome per row, and **Add criterion** adds the next row. Write each criterion so a judge can decide it for a single run:

* "Returns the five prices in page order" checks the output.
* "Calls the batch endpoint once instead of one request per page" checks a step.

After each run, **Evals** use a judge model to read the run's [recorded work](https://docs.oqoqo.ai/evaluation/evals.md#what-evals-read), including the files it changed, and give each criterion a result. By default, criteria are **Yes / no**, and a run passes when it meets all of them. **Advanced mode** lets you choose how each criterion gets its result and what makes the run pass.

![Task Rubric tab with a list of criteria and the Add criterion control.](https://mintcdn.com/oqoqo/YO1ysyUx4SPwBwoz/images/screenshots/task-rubric-light.png?fit=max\&auto=format\&n=YO1ysyUx4SPwBwoz\&q=85\&s=aaaeb19e388d4f831000b8b8df2b8130)

## Draft a rubric with Ask Oqo or your AI assistant

**Ask Oqo** or your AI assistant can draft the criteria for you. Tell it what "done" means, and it saves the rubric to the task. Review the rubric before you launch.

> [tab] Dashboard
>
> Open [Ask Oqo](https://docs.oqoqo.ai/operate/ask-oqo.md) and ask it to draft the rubric:
>
> ```text theme={null}
> Draft a rubric for the task "Fix the checkout total". Done means the total is correct for discounts and the existing tests still pass.
> ```

> [tab] CLI
>
> The CLI doesn't draft criteria. Write the rubric in the task's JSON operation and apply it with [`oqoqo resources apply`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-apply).

> [tab] Plugin (MCP)
>
> Ask your AI assistant to draft and save the rubric. It reads the task with **Get a resource and its versions** ([`inspect_resource`](https://docs.oqoqo.ai/mcp-server/tools#inspect_resource)) and saves it with **Create or update a resource** ([`author_resource`](https://docs.oqoqo.ai/mcp-server/tools#author_resource)).

## Task versions

Each saved change to a task or its rubric makes a new version. Older versions can't change, and every run stays tied to the version that produced it.

| Launch | Task version used |
| - | - |
| New experiment | The current version, unless you pick another in the task list |
| **Launch again** and scheduled launches | The latest version |
| `oqoqo experiments rerun --versions experiment` | The experiment's own versions |

## Rerun evals or launch a new experiment

| You changed | Do this |
| - | - |
| Only the rubric | Select **Rerun evals** on the experiment (**Run evals** if Evals haven't run) to score the same recorded work against the new rubric. |
| The instructions, files, or machine | Launch a new experiment. The recorded work came from the old task, so rescoring it doesn't measure the change. |

## Import tasks

To add many tasks at once, import a ZIP file.

> [tab] Dashboard
>
> 1. Open **Manage → Tasks**.
> 2. In **More task actions**, select **Download template** for the ZIP format.
> 3. In **More task actions**, select **Import tasks** and drop your ZIP file.

> [tab] CLI
>
> ```bash theme={null}
> oqoqo uploads create ./tasks.zip --kind task
> ```
>
> [`oqoqo uploads create`](https://docs.oqoqo.ai/cli/catalog#oqoqo-uploads-create) uploads the ZIP and imports its tasks.

> [tab] Plugin (MCP)
>
> Your AI assistant calls **Start an archive upload** ([`create_upload`](https://docs.oqoqo.ai/mcp-server/tools#create_upload)) and then **Complete an archive upload** ([`complete_upload`](https://docs.oqoqo.ai/mcp-server/tools#complete_upload)).

## From the CLI and the plugin

| Task | CLI | Plugin (MCP) |
| - | - | - |
| List tasks | [`oqoqo catalog list --kind task`](https://docs.oqoqo.ai/cli/catalog#oqoqo-catalog-list) | [`inspect_catalog`](https://docs.oqoqo.ai/mcp-server/tools#inspect_catalog) |
| Read a task and its versions | [`oqoqo resources inspect task`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-inspect) | [`inspect_resource`](https://docs.oqoqo.ai/mcp-server/tools#inspect_resource) |
| Create or change a task | [`oqoqo resources apply`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-apply) | [`author_resource`](https://docs.oqoqo.ai/mcp-server/tools#author_resource) |
| Create or change up to 20 at once | [`oqoqo resources bulk-apply`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-bulk-apply) | [`bulk_author_resources`](https://docs.oqoqo.ai/mcp-server/tools#bulk_author_resources) |
| Import tasks from a ZIP | [`oqoqo uploads create --kind task`](https://docs.oqoqo.ai/cli/catalog#oqoqo-uploads-create) | [`create_upload`](https://docs.oqoqo.ai/mcp-server/tools#create_upload), [`complete_upload`](https://docs.oqoqo.ai/mcp-server/tools#complete_upload) |
| Rerun evals after a rubric change | [`oqoqo evals trigger`](https://docs.oqoqo.ai/cli/evals-and-insights#oqoqo-evals-trigger) | [`trigger_evals`](https://docs.oqoqo.ai/mcp-server/tools#trigger_evals) |

## Next steps

> [card] [Machines and files](https://docs.oqoqo.ai/experiments/machines-and-files.md)
>
> Give a task its starting folders and the machine it runs on.

> [card] [Tools](https://docs.oqoqo.ai/experiments/tools.md)
>
> Add the skills, MCP servers, CLIs, and SDKs you want to compare.

> [card] [Launch an experiment](https://docs.oqoqo.ai/experiments/launch.md)
>
> Run your tasks with agents and treatments.

> [card] [Evals](https://docs.oqoqo.ai/evaluation/evals.md)
>
> Learn how each run is scored against the rubric.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.