# Coding agents on your own computer

Truetask runs AI coding agents like Claude Code, Codex and the Cursor CLI on your own computer. Code stays there; the task, run and review stay in Truetask.

URL: https://docs.truetask.io/agents/desktop

Truetask runs your AI agents' coding work on your own computer: Truetask Helper starts Claude Code, Codex or the Cursor CLI there for a task, one git worktree per task.
The code stays on that computer, while the conversation, the run and the results stay in Truetask, where your team reads them.

| Question | Answer |
| --- | --- |
| Where does the code run? | On your computer, in the board's working folder, with each task in its own git worktree. |
| What does the workspace store? | The chat, the task, the run and its log, the work notes, comments and the done proposal. Not the code: Truetask reads the agent's changes from your computer when you look, and keeps none. |
| Which tools? | Claude Code (`claude`), Codex (`codex`) and the Cursor CLI (`agent`), each as a command line tool. |
| Whose sign-in and billing? | Each tool runs on your computer under your own sign-in for that tool, and its use and billing are between you and the tool's vendor. Truetask never sees the sign-in. |
| What happens when the computer is offline? | A task handed to it waits, is sent again every minute, and starts when a computer of yours comes online; a kickoff nothing takes within 24 hours expires. A chat can be answered by the workspace's model instead. See [When your computer is unreachable](https://docs.truetask.io/agents/desktop#when-your-computer-is-unreachable). |
| Do tasks running side by side collide? | No: each task works in its own worktree, and two computers never take the same task. See [One worktree per task](https://docs.truetask.io/agents/desktop#one-worktree-per-task). |

[Truetask Helper](https://docs.truetask.io/helper/) is the program that runs them there; Truetask Desktop is a window on your workspace and runs no agents.
To set a computer up, see [Your agents on your computer](https://docs.truetask.io/helper/agents).
For how a coding agent's work lands on the task whichever tool does it, see [A task board for coding agents](https://docs.truetask.io/agents/coding-agents).

## What runs where

| Part | Where it lives |
| --- | --- |
| The chat, the task, the run, the log | Truetask |
| The model call | Your coding tool, on your computer |
| Files, terminal, code | Your computer, inside the working folder |
| The code of the agent's edits | Your computer only. Truetask reads the changes from it when you look, and keeps none. |
| Your Claude, ChatGPT or Cursor sign-in | The coding tool itself. Truetask never sees it. |

## Connect a coding tool

Claude Code, Codex and the Cursor CLI each have a card in Integrations, under **Coding tools**.
Open the **App menu** (the grid button before your avatar) and choose **Integrations** under **Extend**.

Truetask runs the command line tool, never the app of the same name.

| Card | What Truetask starts | What is not used |
| --- | --- | --- |
| **Claude Code** | The `claude` command in your terminal | The Claude desktop app. Signing in there does not count here. |
| **Codex** | The `codex` command in your terminal | The ChatGPT app and the Codex web app |
| **Cursor CLI** | The `agent` command in your terminal | The Cursor editor |

The card lists each of your computers that runs Truetask Helper, with the tool's state there:

| State | Means |
| --- | --- |
| **Linked**, or **Linked, signed in as** an account | Your agents run with it on that computer. **Unlink** stops that. |
| **Signed in, not linked** | Ready to link. **Link** links it. |
| **Not signed in** | Sign in in your terminal first. |
| **Installed, sign-in unreadable** | Truetask found the tool and could not read its sign-in. **Link** tries again. |
| **Installed, Node.js missing** | The tool's agent adapter needs Node.js, and none could be found or brought. |
| **Not installed** | The tool is not on that computer. |
| **No computer online** | None of your computers is answering. |

![The Claude Code card in Truetask Integrations, linked and signed in on one computer, with Unlink](https://docs.truetask.io/screenshots/coding-tool-claude-code.webp)

When a computer still needs something, the card says what under **On** that computer, with the exact line to run and a copy button.

| Tool | Sign in | Install on macOS and Linux |
| --- | --- | --- |
| Claude Code | `claude auth login` | `curl -fsSL https://claude.ai/install.sh \| bash` |
| Codex | `codex login` | `npm install -g @openai/codex` |
| Cursor CLI | `agent login` | `curl https://cursor.com/install -fsS \| bash` |

On Windows, Claude Code installs with `irm https://claude.ai/install.ps1 | iex`, and Codex with the same `npm` line.

Truetask only reads whether a sign-in exists.
It never signs a tool in, out, or into another account for you.

With no computer paired yet, the card shows how to get Truetask Helper instead.

### What Link does

**Link** reports each step as it happens, and ends in **Linked** or a named reason.

1. It checks the tool's sign-in.
2. It brings the Node.js the tool's agent adapter runs on, about 50 MB, if the computer has none of its own.
   This happens once.
3. It installs the agent adapter, if the computer has none.
   The row shows the download's size while it runs, and this happens once too.
4. It starts the adapter and waits for its first answer.

**Linked** always means it works: a link is refused unless the tool is installed, signed in and its adapter answers.
The reason a link failed stays on the computer's row until a link works.

| The row says | What fixes it |
| --- | --- |
| Truetask Helper could not find the tool | Install it, or set its path under **Program paths** on the computer's page |
| The tool is signed out | Run the sign-in line in a terminal there, then link again |
| Truetask Helper could not read whether it is signed in | Run the tool in a terminal there and see what it says |
| The agent adapter needs Node.js | Install Node.js yourself, then link again |
| A download stopped, broke off or took too long | Link again: it carries on from what it already got |
| The adapter could not be installed, or would not start | Link again, and ask for help if it keeps happening |
| The computer did not pick this up | Check that Truetask Helper is running there |

A link belongs to one computer.
Linking on your laptop says nothing about your desktop, and your agents are offered a tool only while a computer that has it linked is online.
**Unlink** leaves the tool and its sign-in alone; it only stops Truetask sending work there.

You can also link from the agent's page and from the Truetask Helper window.
See [Your agents on your computer](https://docs.truetask.io/helper/agents#link-a-coding-tool).

## The chat's agent settings

A task's **Agent** channel and the Truetask AI window carry the agent you are talking to, then one **Agent settings** button.
Its menu lists what the agent runs with, each row naming what it is set to and opening its choices at its side:

| Row | What it sets |
| --- | --- |
| **Model** | The model, from every coding tool linked on your computers and the workspace's models. |
| **Effort** | How hard the agent thinks: higher is slower and more thorough. Only for a tool with effort levels. |
| **Permissions** | What the agent may do without asking. See below. |
| **Computer** | Which of your computers answers, once two can. See [Your agents on your computer](https://docs.truetask.io/helper/agents#which-computer-a-chat-runs-on). |
| **Folder** | Where the agent works on that computer. See [Working folders and storage](https://docs.truetask.io/helper/folders#the-folder-a-chat-works-in). |

![The Agent settings menu in a Truetask task's Agent channel, with the Model, Effort, Permissions and Folder rows](https://docs.truetask.io/screenshots/task-chat.webp)

Picking a model also picks the coding tool it belongs to.
Each chat keeps its own tool and model, and one computer runs tasks on different tools and models at the same time.
Picking another tool or model in one chat never ends a turn running in another.

### Favorites

A star on a row of the **Model**, **Effort** or **Permissions** menu makes it your favorite: **Tasks start on your favorite unless you pick another for the task**.
Each coding tool has one favorite model and one favorite effort, and you have one favorite permission level, so starring another replaces it.
Favorites are yours, on every device, and a chat that never picked its own follows a new favorite at once.

## Permissions

How much the agent asks before it acts is one permission level, in Truetask's words, on every coding tool.

| Level | Claude Code and Cursor CLI | Codex |
| --- | --- | --- |
| **Ask every time** | Asks before every edit and command. | Reads only; asks to edit files or run commands. |
| **Accept edits** | File edits go through; commands still ask. | Edits files and runs commands in this folder. |
| **Autonomous** | Edits and commands go through without asking. | Also edits outside this folder and uses the network. |

**Autonomous** wears amber with a warning, on its row and on the **Agent settings** button, wherever it is picked.
A tool's own extra modes, such as Claude Code's Plan, stay reachable under the three levels, marked **Only on** that tool.
A level a tool cannot give runs one step tighter, never looser, and the menu says so.
The modes appear once the agent starts, so send a message first.

When the agent needs permission, the chat shows what it wants to do, with **Allow once**, **Always allow** or **Reject**.
A command says it **Runs a shell command on this computer.**
You can also type what it should do instead.

A request nobody answers does not hang forever: half way through the agent's **Permission timeout** it becomes a question on the task anyone can answer, and at the full timeout the run stops.

A chat you run yourself uses the level in its **Permissions** row.
A run nobody is watching, started by [the queue](https://docs.truetask.io/agents/pipelines), an automation or another agent, runs at the level it was given: see [Permission levels](https://docs.truetask.io/agents/delegating#permission-levels).

## One worktree per task

When an AI agent works a task in a git repository on your computer, the task gets its own git worktree next to your checkout, in `<repository>.worktrees/<branch>`, branched from whatever your checkout is on.
Tasks running side by side never edit the same files, and your checkout is never in the agent's way.

The agent works, checks and commits in its worktree, then lands its branch with a script Truetask Helper keeps in the repository's git folder:

```sh
sh "$(git rev-parse --git-common-dir)/truetask/land.sh"
```

Landing fast-forwards your checkout's branch, one task at a time.
Uncommitted edits you have in your checkout are carried across when they merge cleanly with the task's change, and a copy stays in `git stash list` until the landing has finished.
Edits that would conflict are never touched: the script stops, names the files, and leaves the decision to you.

Once a task has landed, its worktree and its branch go when the agent's turn ends.
The branch follows the workspace's **Task branches** setting, **Delete a task's branch once it merges**.
A worktree that still holds work that has not landed is never removed; one that never landed is cleared away after a day unused.

## See what changed

Once a task has run on one of your computers, its **Agent** channel has a **Changes** button: what the agent changed in this task, read from your computer.

The drawer lists the changed files with their diffs, drawn like a pull request's review, with no git provider and no pull request needed.
It says whether the change has **Landed** or is **Not landed yet**, and whether it reads **Live from** your computer.
**Read again** reads it once more.
Click a file the agent changed in the conversation to open the drawer on that file.

Nothing of the diff is stored: Truetask reads it from the computer each time you open it.
So the computer has to be online, with a folder for the board; the drawer says what is missing when it cannot read the changes.

## The Truetask skill

Coding agents work better in Truetask with the Truetask skill installed.
It teaches the tool to report so the app draws its answers as components, to ask so you answer with one tap, and to work a task without wasting calls.
The tool runs without it; it just reports in plain Markdown.

**Install the skill** on the MCP setup page gives the command to run where your agent works.
See [Teach your agent the protocol](https://docs.truetask.io/agents/mcp#teach-your-agent-the-protocol).

## While it works

You see its thinking and its tool steps inline as it works, folded into rows you can open with **Show all**.
When it proposes a plan, **Run plan** carries it out.
The stop button in the composer stops the agent, wherever it runs.

When the agent runs on another of your computers, the chat says **Your agent on** that computer **answers here**.
While a turn runs there, **Check** asks that computer what the agent is doing right now.

## When your computer is unreachable

When none of your computers can answer for the agent, the chat says so rather than going quiet.
When the workspace has its own model and the agent may use it, that model answers the turn instead, and the chat says **The workspace's model answers for** the agent, with **Check that Truetask Helper is running on your computer**.
An agent that answers only with its coding tools asks you to open Truetask Helper and send the message again.

## Running while you are away

A task can reach your computer with nobody at the keyboard, as long as the computer is ready for it:

- Truetask Helper runs, with **Start at login** on and **Taking jobs** on;
- **Run my agents here** is on, with a coding tool linked;
- **Keep this computer awake** is on, which it is by default;
- the board has a working folder on that computer;
- the run's [permission level](https://docs.truetask.io/agents/delegating#permission-levels) does not wait for an approval nobody will give.

A run nobody is watching still ends the way every agent task does: the agent proposes done, and a person approves it or sends it back.
See [Human in the loop for AI agents](https://docs.truetask.io/agents/human-in-the-loop).

## Frequently asked questions

### Does Truetask see my code when an agent works on my computer?

No.
The code, the terminal and the agent's edits stay on your computer, and Truetask reads the changes from it only when you open **Changes**, keeping none.

### Which coding agents can Truetask run on my computer?

Claude Code, Codex and the Cursor CLI, each as its command line tool, through Truetask Helper.
Any other AI tool can still work in Truetask through the [MCP server](https://docs.truetask.io/agents/mcp).

### Who pays for Claude Code, Codex or Cursor when Truetask runs them?

Each tool runs on your computer under your own sign-in for that tool, so its use and billing are between you and the tool's vendor.
Truetask only reads whether a sign-in exists, and never signs a tool in or out.

### What happens to an agent's task when my computer is offline?

The task waits and starts as soon as one of your computers with the tool linked comes online, without spending a retry.
A chat turn can be answered by the workspace's model instead, when the agent may use it.

### Do I need Truetask Desktop to run coding agents?

No.
Truetask Helper runs your agents; Truetask Desktop is a window on your workspace and runs none of them.

## Related

- [A task board for coding agents](https://docs.truetask.io/agents/coding-agents)
- [Your agents on your computer](https://docs.truetask.io/helper/agents)
- [Truetask Helper](https://docs.truetask.io/helper/)
- [Connect Claude Code](https://docs.truetask.io/agents/connect-claude-code), [Codex](https://docs.truetask.io/agents/connect-codex) or [Cursor](https://docs.truetask.io/agents/connect-cursor)
- [Creating an agent](https://docs.truetask.io/agents/creating)
- [Agent workflows](https://docs.truetask.io/agents/workflows)
- [Truetask AI](https://docs.truetask.io/agents/truetask-ai)
