Factories > Integrations
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.
When the factory needs an answer, reply in Linear, or open the live run to steer the agent directly.
Prerequisites
Section titled “Prerequisites”- A factory with the agents and repositories needed for Linear work. See the Warp 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 for code changes and pull requests.
Install Linear for your workspace
Section titled “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.
- In the Warp Factories web app, open the top-level Integrations page and open Linear. If it already shows “Connected,” continue with factory team selection.
- Click Connect. In the Linear authorization tab, choose the intended workspace, review the requested access, and authorize Warp.
- Return to Warp and confirm Linear shows “Connected.” If it doesn’t, finish authorization in the Linear tab, then return to Warp again.
- Connect Linear to the factory and select the teams whose requests it handles. Workspace authorization alone doesn’t select those teams.
Permissions
Section titled “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 and app authentication model. 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
Section titled “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:
- Authorize Warp for your Linear workspace if it isn’t already connected.
- 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 from those teams to your factory. Issue and comment activity doesn’t start work until you add triggers for it.
Route agent sessions
Section titled “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 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.
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; session routing isn’t editable from the automation editor.
Configure Linear triggers
Section titled “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.
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, including separate examples for label intake and comment handling. An issue_labeled subscription doesn’t also subscribe to comment_created.
Supported events and outputs
Section titled “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
Section titled “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.
Replying to a waiting run
Section titled “Replying to a waiting run”For a label-started run, verify reply delivery:
- Apply your intake label to a test issue. Open the resulting run in the factory dashboard.
- When the agent asks a question and waits, have a teammate answer on the issue.
- Check the original conversation for the answer. If it’s missing, forward it below.
Send an answer to the original run
Section titled “Send an answer to the original run”Export a Warp API key authorized for the run as WARP_API_KEY. Factory follow-up restrictions still apply.
-
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_IDbelow.Terminal window RUN_ID=WAITING_RUN_IDcurl --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.
-
Send the answer in
message. Replace the sample answer and comment URL.Terminal window 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."}' -
Check the original conversation for the answer and continued work. HTTP
200means accepted, not acted on. See the follow-up API reference for delivery outcomes.
What the factory can do in Linear
Section titled “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
Section titled “Reconnect Linear”If the workspace connection is no longer authorized, an admin repeats the workspace installation procedure from Connect. 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, then authorize it again; this interrupts every factory using that workspace connection.
After reconnecting, confirm the intended teams are still selected in the factory’s Settings > Integrations and repeat the routing test. Reauthorization doesn’t prove a factory’s automation filters match.
Remove Linear
Section titled “Remove Linear”Removing the shared connection affects every factory using it, not just the factory you are viewing. You need permission to manage workspace integrations.
- In the Warp Factories web app, open the top-level Integrations page and open Linear.
- Click Remove Linear, review the scope in the confirmation, then click Delete.
- 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. 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
Section titled “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, 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. 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
Section titled “Related pages”- Permissions for factory integrations - Compare grants and review status across providers
- Connect your factory - Add other sources of factory work
- Standalone Linear integration - Configure Linear-triggered runs outside a factory