---
title: "Automations, goals, and parallel work"
description: "Schedule prompts, wake a thread on a loop, set a goal for long-running work, and follow many tasks on Kanban."
slug: "working-with-autohand-code/code/desktop/automations-and-goals"
sidebar:
  label: "Automations and goals"
---

## Create an automation

Open **Automations** in the navigation rail and choose **New automation**.

<img className="ah-shot-light" src="/images/desktop/app/automations-light.webp" alt="Automations page with the message 'No automations yet. Schedule a prompt to run on its own, or wake an existing thread on a loop.' and a New automation button." width="2880" height="1800" />
<img className="ah-shot-dark" src="/images/desktop/app/automations-dark.webp" alt="Automations page with the message 'No automations yet. Schedule a prompt to run on its own, or wake an existing thread on a loop.' and a New automation button." width="2880" height="1800" />

The Automations page before any automation exists. New automation is at the top right.

1. Enter an **Automation title** and an **Automation prompt**, or start from **Suggested templates**.
2. Choose the project and where it runs. With a worktree, read **Worktree cleanup** to see whether generated checkouts and branches are kept. **Auto fallback may use local checkout** lets a run fall back to your project folder if a worktree cannot be created; leave it off if the task must stay isolated.
3. Set the **Schedule**: **Manual**, **Once**, **Hourly**, **Daily**, **Weekdays**, **Weekly**, **Custom**, or **Cron**. Check **Run at** and the **Timezone**.
4. Choose the **Run mode**:
   - **Standalone**: each run starts its own thread.
   - **Dedicated thread**: runs continue in one thread.
   - **Heartbeat**: wakes an existing **Target thread** on a loop. Set **Stop when** (for example, "PR is ready to merge"), **Max iterations**, and what happens **On failure**.
5. Choose **Notify** (**All runs** or **Failed runs only**), **Permissions** (**Approval required** or **Full access**), and the agent, model, and account.
6. Create the automation.

Start with a read-only task:

```text
Inspect this repository for TODOs added since the last run. Group them by
file and report actionable items. Do not edit, commit, push, or deploy.
```

Automations run in Desktop, so the app needs to be running, and the agent signed in, when a run is due. A run with **Approval required** can stop and wait for you. Open an automation to see its runs and their threads. Multi-step automations show their steps as a workflow with live status, and let you retry a failed step without losing earlier results.

**Settings > Automations** controls how Desktop suggests automations for your projects. Turn off or delete an automation you no longer need.

## Set a goal for long-running work

For a long investigation or build, choose **+ > Goal** in the composer and describe the outcome, the constraints, when to stop, and how to verify it. The agent keeps working toward the goal across turns; the thread shows when it is pursuing the goal or paused.

A goal does not bypass permissions or guarantee success. Keep important decisions in files and check the result yourself.

## Run tasks in parallel

Give each task that edits the same repository its own [worktree](/working-with-autohand-code/code/desktop/projects#use-a-worktree), and make shared services and ports explicit. Review each task's evidence before you merge its branch. To run work away from your machine, use a [cloud sandbox or connected host](/working-with-autohand-code/code/desktop/sandboxes).

**Kanban** shows every task as a card, grouped by project, with the agent, branch, age, and status.

<img className="ah-shot-light" src="/images/desktop/app/kanban-light.webp" alt="Kanban board titled '2 tasks' with a harbor-web card marked Done on main and a Chats card marked Pending Approval and Awaiting approval." width="2880" height="1800" loading="lazy" />
<img className="ah-shot-dark" src="/images/desktop/app/kanban-dark.webp" alt="Kanban board titled '2 tasks' with a harbor-web card marked Done on main and a Chats card marked Pending Approval and Awaiting approval." width="2880" height="1800" loading="lazy" />

Kanban with one finished task in harbor-web and one chat waiting for approval.

- **Attention** puts tasks that need you first; **Classic** shows the familiar column layout.
- **Needs review** filters to tasks waiting for your review.
- **New task**, or **+** on a column, starts a task in that project.

Open a card's thread when it needs input. Do not expect local agents to keep working after you quit Desktop.

## A useful completion request

```text
Finish this task only after the focused tests and project build pass.
Report the files changed, commands run, their results, and any remaining
limitations. Stop and ask if an external deployment or new account access
is needed. Do not commit or push.
```

See [sessions and context](/working-with-autohand-code/code/desktop/sessions-and-context) for keeping context, and [review and delivery](/working-with-autohand-code/code/desktop/review-and-delivery) for the final checks.
