SOP-019: Linear Integration
Document Control
- Version: 1.0
- Last Updated: 2024
- Category: Integrations
Purpose
Connect Cursor with Linear to use Cloud Agents directly from Linear by delegating issues or mentioning @Cursor.
Scope
This SOP covers:
- Installing the Linear integration
- Delegating issues to Cursor
- Configuring repository mappings
- Using follow-up instructions
Prerequisites
- Linear workspace with admin access
- Cursor admin account
- GitHub connected to Cursor
- Usage-based pricing enabled
Procedure
Step 1: Connect Linear
- Go to Cursor Integrations
- Click Connect next to Linear
- Select your Linear workspace and team
- Click Authorize
- Complete Cloud Agent setup:
- Connect GitHub
- Select default repository
- Enable usage-based pricing
Step 2: Delegate Issues
Assign issues to Cursor for automatic processing:
- Open a Linear issue
- Click the assignee field
- Select "Cursor"
Cursor analyzes the issue and starts a Cloud Agent.
Step 3: Use @Cursor Mentions
Mention Cursor in comments:
@Cursor fix the authentication bug described aboveThis works for:
- Adding context to an issue
- Providing follow-up instructions
- Starting new agents on existing issues
Step 4: Configure Repository Mapping
Cursor determines which repository to use in this order:
- Issue text:
[repo=owner/repository]in description/comments - Issue labels: Repository labels on the issue
- Project labels: Repository labels on the project
- Default: Dashboard default repository
Setting Up Repository Labels:
- Go to Linear Settings > Labels
- Click New group
- Name the group "repo" (exactly)
- Create labels for each repository:
owner/repo
Step 5: Monitor Progress
Track agent status:
- Linear Activity: Real-time status updates
- Cursor Dashboard: Cloud Agents tab
- PR Creation: Automatic when agent completes
Step 6: Provide Follow-up Instructions
Reply in the agent session:
@Cursor also add error handling for edge casesConfiguration Options
Use [key=value] syntax in issue text:
| Option | Example | Description |
|---|---|---|
repo | [repo=org/repo] | Target repository |
branch | [branch=develop] | Base branch |
model | [model=claude-sonnet] | AI model |
Dashboard Settings
Configure defaults at Cloud Agents Dashboard:
| Setting | Description |
|---|---|
| Default Repository | Primary repo when not specified |
| Default Model | AI model for agents |
| Base Branch | Branch for PR creation |
Verification Checklist
- [ ] Linear integration connected
- [ ] Account linking completed
- [ ] Default repository configured
- [ ] Test delegation works
- [ ] PR created successfully
Troubleshooting
| Issue | Solution |
|---|---|
| Agent not starting | Check issue is development work |
| Wrong repository | Add repo label or use [repo=...] |
| Account not linked | Complete first-use linking flow |
| No PR created | Check GitHub integration status |