#### Integrations

# Linear

Use [Cloud Agents](/build/agents-window/cloud-agent) directly from Linear by delegating issues to Grok Build or mentioning `@Cursor` in comments. The app is still listed as **Cursor** in Linear, so that is the name you assign issues to. The handle becomes `@Build` on Dec 7. You don't need to reinstall or reauthorize the app.

[Video: watch the walkthrough](https://media.x.ai/v1/docs/agents-window-integrations-linear-linear-agent-5a42fa22.mp4)

## Get started

### Installation

> [!NOTE]
>
> You must be a Grok Build admin to connect the Linear integration. Other team
> settings are available to non-admin members.

1. Go to [Grok Build integrations](https://grok.com/dashboard/integrations)
2. Click *Connect* next to Linear
3. Connect your Linear workspace and select team
4. Click *Authorize*
5. Complete any remaining Cloud Agent setup in the Agents Window:
   * Connect a repository provider and select a default repository
   * Enable usage-based pricing
   * Confirm privacy settings

### Account linking

First use prompts account linking between Grok Build and Linear. A repository provider connection is required for PR creation.

## How to use

Delegate issues to Grok Build or mention `@Cursor` in comments. Grok Build analyzes issues and filters out non-development work automatically.

### Delegating issues

1. Open Linear issue
2. Click assignee field
3. Select **Cursor**

![Delegating an issue to Grok Build in Linear](https://media.x.ai/v1/docs/agents-window-integrations-linear-linear-delegate-327c48b3.png)

### Mentioning Grok Build

Mention `@Cursor` in a comment to assign a new agent or provide additional instructions, for example: `@Cursor fix the authentication bug described above`.

## Workflow

Cloud Agents show real-time status in Linear and create PRs automatically when complete. Track progress in [Grok Dashboard](https://grok.com/dashboard/cloud-agents).

![Cloud Agent status updates in Linear](https://media.x.ai/v1/docs/agents-window-integrations-linear-linear-activity-5cb13e47.png)

### Follow-up instructions

You can respond in the agent session and it'll get sent as a follow-up to the agent. Simply mention `@Cursor` in a Linear comment to provide additional guidance to a running Cloud Agent.

## Configuration

Configure Cloud Agent settings from [Grok Dashboard → Cloud Agents](https://grok.com/dashboard/cloud-agents).

| Setting                | Location         | Description                                            |
| :--------------------- | :--------------- | :----------------------------------------------------- |
| **Default Repository** | Grok Dashboard | Primary repository when no project repository configured  |
| **Default Model**      | Grok Dashboard | AI model for Cloud Agents                              |
| **Base Branch**        | Grok Dashboard | Branch to create PRs from (typically `main` or `develop`) |

### Configuration options

You can configure Cloud Agent behavior using several methods:

**Issue description or comments**: Use `[key=value]` syntax, for example:

* `@cursor please fix [repo=anysphere/everysphere]`
* `@cursor implement feature [model=claude-sonnet-5-5] [branch=feature-branch]`

**Issue labels**: Use parent-child label structure where the parent label is the configuration key and the child label is the value.

**Project labels**: Same parent-child structure as issue labels, applied at the project level.

Supported configuration keys:

* `repo`: Specify target repository (e.g., `owner/repository`)
* `branch`: Specify base branch for PR creation
* `model`: Specify AI model to use

### Repository selection

Grok Build determines which repository to work on using this priority order:

1. **Issue description/comments**: `[repo=owner/repository]` syntax in issue text or comments
2. **Issue labels**: Repository labels attached to the specific Linear issue
3. **Project labels**: Repository labels attached to the Linear project
4. **Default repository**: Repository specified in Grok Dashboard settings

#### Setting up repository labels

To create repository labels in Linear:

1. Go to **Settings** in your Linear workspace
2. Click **Labels**
3. Click **New group**
4. Name the group "repo" (case insensitive - must be exactly "repo", not "Repository" or other variations)
5. Within that group, create labels for each repository using the format `owner/repo`

These labels can then be assigned to issues or projects to specify which repository the Cloud Agent should work on.

![Configuring repository labels in Linear](https://media.x.ai/v1/docs/agents-window-integrations-linear-linear-project-labels-9f203067.png)

## Advanced features

### Triage rules (advanced)

Set up automation rules in Linear to automatically delegate issues to Grok Build:

1. Go to Linear project settings
2. Navigate to triage rules
3. Create rules that automatically:
   * Add specific labels
   * Assign issues to Grok Build
   * Trigger Cloud Agents based on conditions

> [!NOTE]
>
> Triage rules are an advanced feature with some current limitations. Linear
> requires a human assignee for rules to fire, though this requirement may be
> removed in future updates.

### Getting help

Check [agent activity](https://grok.com/dashboard/cloud-agents) and include request IDs when contacting support.

## Feedback

Share feedback through Linear comments or your Grok Dashboard support channels.
