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

# Prompt breakdown

> Split prompts into tasks, assign capabilities per task, and reorder or merge steps before compiling.

Break Down mode lets you turn a single prompt into a structured plan. The canvas changes to show your original prompt connected to individual tasks, and each task connects to its own capabilities. The automatic suggestion produces at most six tasks, which you can edit, reorder, merge, and remove them, then compile everything into a single approved prompt.

## How task breakdown works

When you enable Break Down mode, EISPATCH suggests a task list using deterministic rules in `core/recommender.mjs`. It does not call any external AI service. The splitter tries strategies in order:

1. **Lines**: if the prompt has two or more non-empty lines, each line becomes a task (leading `-`, `*`, `•`, `1.`, or `1)` markers are removed).
2. **Clauses**: otherwise, a single paragraph is split on semicolons, commas, ", and", ", then", and the words "and then", "then", "and", "र", "अनि", and "तथा". Parts shorter than 3 characters are dropped. Two or more parts become tasks.
3. **Fallback**: if no split is found, two starter tasks are generated:
   * `Design & implement core functionality for: <prompt>`
   * `Verify behavior, edge cases, and polish for: <prompt>`

Examples of split behavior:

```text theme={null}
Create a login page; add validation; write tests.
```

This becomes three tasks because it uses semicolons.

```text theme={null}
Build a landing page and add a contact form.
```

This becomes two tasks because of "and".

```text theme={null}
मुख्य पृष्ठ बनाउनुहोस् र फारम थप्नुहोस्।
```

This also becomes two tasks because of the Nepali conjunction "र".

Each suggested task gets an ID (`task-1`, `task-2`, ...), a title made from its first five words with the first letter capitalized (longer than 36 characters is cut to 35 plus `…`), and the full clause as its prompt. Only the first six parts are kept.

## Editing tasks

After breakdown, you can:

* **Add** a new task.
* **Rename** a task title.
* **Edit** the task focus text.
* **Reorder** tasks by dragging.
* **Merge** two tasks into one.
* **Remove** a task.

Each task can have its own set of capabilities and per-task instructions. The same capability can appear under multiple tasks with independent instructions.

## Recommendations per task

In breakdown mode, the recommender suggests up to three capabilities per task. In simple mode, it suggests up to four capabilities for the whole prompt. The threshold is a score of 25; if no capability reaches it, the top two are still recommended.

Recommendations are explained in detail on the [Capabilities](https://eispatch.framewire.io/guides/capabilities.md) page.

## Graph shape

In Break Down mode, the canvas graph becomes:

```text theme={null}
Original Prompt → Task 1 → Capabilities for Task 1
                → Task 2 → Capabilities for Task 2
                → ...
```

## Compiled output

When you compile in breakdown mode, the output includes a `## Task Breakdown & Assigned Capabilities` section. The structure is:

```text theme={null}
<!-- DISPATCH_COMPILED_PROMPT v1.0 -->
## Objective
<original prompt>

## Task Breakdown & Assigned Capabilities
Execute the following user-approved task sections in order, applying each section’s assigned capabilities:

### 1. <task title>
- Task focus: <task prompt>
  1. **[KIND] `<capability label>`** *(advisory guidance)*
     - Instruction: <instruction>
     - Scoped Tools: `<tool>`, `<tool>`

### 2. <task title>
- Capabilities: Default host tools only.

## Execution Guardrail
This prompt was explicitly reviewed and approved by the user in EISPATCH. Proceed with execution.
```

* `- Task focus:` appears only when the task prompt differs from its title.
* A task without capabilities shows `- Capabilities: Default host tools only.`
* The same capability can appear under several tasks with different instructions.

See [Compiled prompt](https://eispatch.framewire.io/reference/compiled-prompt.md) for the full format.

See [Approve and dispatch](https://eispatch.framewire.io/guides/approve-and-dispatch.md) for how the compiled prompt is approved and sent to the agent.


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