---
title: "Connect Linear to your factory"
description: "Connect Linear to your factory so planned issues flow in automatically and progress flows back to the issue."
canonical: "https://docs.warp.dev/factories/integrations/linear/"
---

> For the complete documentation index, see [llms.txt](https://docs.warp.dev/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Connect Linear to your factory

Connect Linear to your factory so planned issues flow in automatically and progress flows back to the issue.

Connect Linear to your factory so your team can send issues without leaving Linear. Assign an issue to the factory or tag it in a comment, and the factory picks it up with the issue’s full context, then keeps the issue updated as the work moves through [its stages](https://docs.warp.dev/factories/how-factories-work/).

When the factory needs an answer, reply in Linear, or open the live run to steer the agent directly.

## Prerequisites

-   A factory with the agents and repositories needed for Linear work. See the [Warp Factories quickstart](https://docs.warp.dev/factories/quickstart/).
-   A Linear workspace admin to authorize the Warp app and permission to connect workspace integrations in Warp.
-   A Warp account linked to your Linear user to start agent sessions.
-   Repository access through the factory’s [GitHub connection](https://docs.warp.dev/factories/integrations/github/) for code changes and pull requests.

## Install Linear for your workspace

Authorize the workspace connection once, then select the Linear teams each factory handles. You don’t need a separate environment for factory routing.

1.  In the [Warp Factories web app](https://platform.warp.dev), open the top-level **Integrations** page and open **Linear**. If it already shows “Connected”, continue with [factory team selection](#connect-linear).
2.  Click **Connect**. In the Linear authorization tab, choose the intended workspace, review the requested access, and authorize Warp.
3.  Return to Warp and confirm Linear shows “Connected”. If it doesn’t, finish authorization in the Linear tab, then return to Warp again.
4.  [Connect Linear to the factory](#connect-linear) and select the teams whose requests it handles. Workspace authorization alone doesn’t select those teams.

## Permissions

Linear app authorization is separate from linking a teammate’s Warp account. With Linear’s `actor=app` authorization model, a workspace admin installs the app, and updates are attributed to the app rather than the installer.

The table lists the scopes in Warp’s staging configuration recorded on 2026-10-29, which uses `actor=app`. It describes that configuration, not production authorization or existing workspace grants. Review Linear’s consent screen before approving workspace access.

| Configured scope | Granted access | Function in Warp | Boundary |
| --- | --- | --- | --- |
| `app:assignable` | Let the app be delegated issues and made a project member | Delegate work to the factory | Doesn’t grant repository access |
| `app:mentionable` | Let the app be mentioned in issues, documents, and other editor surfaces | Start an agent session with a mention | Not itself a grant to edit those resources |
| `comments:create` | Create issue comments | Acknowledge requests and post results | Narrower than the separately listed `write` scope |
| `issues:create` | Create and update issues, and create their attachments | Create or update tracked work | Despite its name, this scope isn’t create-only |
| `read` | Read data available to the app | Retrieve issue context and workspace metadata | Subject to the app’s team access in Linear |
| `write` | Broad write access available to the app | Update issues, workflow state, and delegation | Broader than comment creation; trigger filters don’t narrow this grant |

These scope meanings follow [Linear’s OAuth reference](https://linear.app/developers/oauth-2-0-authentication) and [app authentication model](https://linear.app/developers/agents#actor-and-scopes). A workspace admin can change or revoke the app’s team access in Linear. Selecting teams for a factory’s automations controls routing, not the underlying OAuth grant.

## Connect Linear

You connect Linear either while creating a factory, at the **Connect your issue trackers** step, or afterward from the factory’s **Settings**. Either way you do the same two things:

1.  [Authorize Warp for your Linear workspace](#install-linear-for-your-workspace) if it isn’t already connected.
2.  In the factory’s **Settings** > **Integrations**, connect **Linear**, select the Linear teams this factory handles, then click **Enable**. During factory creation, select those teams before finishing setup.

Warp then adds a default automation that routes new [agent sessions](#route-agent-sessions) from those teams to your factory. Issue and comment activity doesn’t start work until you [add triggers](#configure-linear-triggers) for it.

## Route agent sessions

If Warp can’t identify the session creator, Linear shows an authentication prompt instead of starting work. Complete that prompt with your own Warp account, then retry the request.

When someone mentions, assigns, or delegates the Warp app on an issue, Linear starts an agent session. The default automation created when you connected Linear routes new sessions from your selected teams to the factory, so assigning an issue or tagging the factory in a comment is enough to start work. If a session doesn’t match any automation, the [standalone Linear integration](https://docs.warp.dev/platform/integrations/linear/) handles it with its default behavior.

Test routing on an issue in a selected team: mention Warp with “Summarize this issue without changing it.” Confirm the run appears under the factory’s matching automation and the summary returns in the Linear session.

![A Linear issue with a comment mentioning the Warp app to request a tech spec, which starts an agent session.](https://docs.warp.dev/_astro/linear-agent-session.D-r81i87_17dyi0.webp?dpl=dpl_BASUgV5bFxd5eGwmnsz4i5V931wk)

Mentioning the Warp app in an issue comment starts an agent session.

Replies in an existing session continue that run rather than starting a new one. To narrow which sessions reach the factory, such as by creator or keyword, edit the `agent_session_created` trigger in the factory’s [definition files](https://docs.warp.dev/factories/factory-as-code/); session routing isn’t editable from the automation editor.

## Configure Linear triggers

Agent sessions cover explicit requests. To start work automatically from issue and comment activity too, add an automation with a **Linear** trigger for one of these events: **Issue created**, **Issue labeled**, **Issue state changed**, **Issue assigned**, or **Comment created**. To learn how to edit those filters, see [Automations](https://docs.warp.dev/factories/automations/#edit-filters-on-an-automation).

Available filters depend on the event. For example, issue triggers can select an assignee, while comment triggers can select a specific issue. Labels are case-insensitive names, not IDs.

For exact event strings, allowed keys, and value formats, see the [Linear trigger reference](https://docs.warp.dev/factories/automation-triggers/#linear), including separate examples for [label intake and comment handling](https://docs.warp.dev/factories/automation-triggers/#label-intake-and-comment-handling). An `issue_labeled` subscription doesn’t also subscribe to `comment_created`.

## Supported events and outputs

Each event determines the context the agent receives and the updates the factory sends back.

| Linear event | What the agent receives | What the factory sends back |
| --- | --- | --- |
| Issue created, labeled, state changed, or assigned | The issue’s title, description, team, project, labels, workflow state, and assignee | Work item progress, issue state or delegate changes, and links to results |
| Comment created | The new comment and its issue’s context | An acknowledgment, progress updates, and responses |
| Agent session created | The request that mentioned, assigned, or delegated the Warp app | Live progress in the session, plus links to the run and any pull request |
| Reply in an agent session | The new message and the session history | Continued work in the same session, not a separate work item |

## Follow-up events on the same issue

A matching comment can continue a work item associated with the same factory and issue. Without that association, fallback routing can start separate work. A label alone doesn’t establish run ownership. Native agent-session replies use a separate follow-up path; ordinary comments require a matching comment automation. See the [start and continuation limits](https://docs.warp.dev/factories/automation-triggers/#label-intake-and-comment-handling).

Caution

One comment can match two routes: a comment that creates an agent session can also match a **Comment created** trigger. If both point at your factory, a single action starts two runs. Scope your automations so one path owns each kind of request.

## Replying to a waiting run

For a label-started run, verify reply delivery:

1.  Apply your [intake label](https://docs.warp.dev/factories/automation-triggers/#label-intake-and-comment-handling) to a test issue. Open the resulting run in the factory dashboard.
2.  When the agent asks a question and waits, have a teammate answer on the issue.
3.  Check the original conversation for the answer. If it’s missing, forward it below.

### Send an answer to the original run

Export a [Warp API key](https://docs.warp.dev/agents/cli/oz-cli/api-keys/) authorized for the run as `WARP_API_KEY`. Factory follow-up restrictions still apply.

1.  In the factory dashboard, copy the ID from the original run’s details, not the issue, Linear session, or work item ID. Replace `WAITING_RUN_ID` below.
    
    ```bash
    RUN_ID=WAITING_RUN_ID
    curl --fail-with-body \
      "https://app.warp.dev/api/v1/agent/runs/${RUN_ID}" \
      --header "Authorization: Bearer ${WARP_API_KEY}"
    ```
    
    Confirm the returned details identify the run that asked the question.
    
2.  Send the answer in `message`. Replace the sample answer and comment URL.
    
    ```bash
    curl --fail-with-body --request POST \
      "https://app.warp.dev/api/v1/agent/runs/${RUN_ID}/followups" \
      --header "Authorization: Bearer ${WARP_API_KEY}" \
      --header "Content-Type: application/json" \
      --data '{"message":"Answer for ENG-42: use the existing API, not a new endpoint. Source: https://linear.app/YOUR_WORKSPACE/issue/ENG-42#COMMENT_ID. Continue from the question you asked."}'
    ```
    
3.  Check the original conversation for the answer and continued work. HTTP `200` means accepted, not acted on. See the [follow-up API reference](https://docs.warp.dev/api/) for delivery outcomes.
    

## What the factory can do in Linear

In an agent session, the factory posts its plan, actions, and results as it works. It can also attach a GitHub pull request to the issue, update the issue’s workflow state or delegate, link back to the run, and acknowledge comments it acts on. Its own Linear activity never triggers automations, so a factory can’t set itself off in a loop.

Only agent sessions require a linked Warp account. Issue and comment events from unlinked users still start work, but Warp may not record who requested it.

Connecting Linear doesn’t grant repository access. Branches and pull requests use the factory’s code-host credentials, and the pull request still waits for a person to review and merge.

## Reconnect Linear

If the workspace connection is no longer authorized, have a workspace admin repeat [Install Linear for your workspace](#install-linear-for-your-workspace) from **Connect** and confirm the expected Linear workspace and team access on the consent screen.

If Warp still shows “Connected” but teams don’t load, first check the app’s team access in Linear and reload Warp. Don’t remove a working workspace connection to change one factory’s team selection. If the connection must be replaced, [remove it](#remove-linear), then authorize it again; this interrupts every factory using that workspace connection.

After reconnecting, open the factory’s **Settings**, click **Integrations**, and confirm the intended teams are still selected. Repeat the [routing test](#route-agent-sessions). Reauthorization doesn’t prove a factory’s automation filters match.

## Remove Linear

Removing the shared connection affects every factory using it, not only the factory you are viewing. You need permission to manage workspace integrations.

1.  In the [Warp Factories web app](https://platform.warp.dev), open the top-level **Integrations** page and open **Linear**.
2.  Click **Remove Linear**, review the scope in the confirmation, then click **Delete**.
3.  Confirm Warp reports that the Linear integration was removed and the connection no longer shows “Connected”.

This removes Warp’s workspace connection. It doesn’t uninstall the app in Linear or disconnect personal accounts. To revoke the provider grant too, a Linear admin removes Warp’s access in Linear; see the [shared Linear uninstallation instructions](https://docs.warp.dev/platform/integrations/linear/#uninstallation-instructions). No factory can route new work through a removed connection. Reconnecting requires authorization and a routing test; don’t assume removal resets factory definitions.

## Troubleshooting

-   **An agent session shows an authentication prompt** - Complete the prompt to link your Linear user to your Warp account, then retry the request.
-   **Teams or filters don’t load** - Follow [Reconnect Linear](#reconnect-linear), then confirm the connection can access the workspace and team you expect.
-   **An event doesn’t start work** - Confirm the automation is enabled, the event type matches, and every filter matches the issue’s current values or the state change.
-   **One action starts multiple runs** - Look for overlapping agent-session and comment triggers, then narrow or remove one.
-   **A reply doesn’t resume a waiting run** - [Check delivery and forward the answer](#replying-to-a-waiting-run). A comment trigger doesn’t associate a label-started run with the issue.
-   **No pull request appears** - Check the factory’s code-host credentials and repository access. Linear authorization alone doesn’t allow code changes.

## Related pages

-   [Permissions for factory integrations](https://docs.warp.dev/factories/integrations/permissions/) - Compare grants and review status across providers
-   [Connect your factory](https://docs.warp.dev/factories/connect-your-factory/) - Add other sources of factory work
-   [Standalone Linear integration](https://docs.warp.dev/platform/integrations/linear/) - Configure Linear-triggered runs outside a factory
