linear-api.
Prerequisites
Linear has two integration flavors. Pick the one that matches how your Expert should act:
To connect a team-wide install:
- Go to Settings → Capabilities → Integrations from the Cosmos menu.
- On the Linear tile, click Connect and complete the Linear Agent install flow.
- Open Settings → Personal → Linked Accounts from the user menu.
- On the Linear card, click Connect and complete the OAuth flow.
LINEAR_APP and LINEAR are independent, and different Experts in the same tenant can use either.
Enabling Linear as a Tool on an Expert
In the Expert editor, the Capabilities section lists every capability you can grant the Expert. Toggle on Linear App (or Linear for per-user) and save. Saving adds thelinear-api tool to the Expert — a thin wrapper around Linear’s GraphQL API. Nothing else to configure.
The capability mode determines authentication:
- Linear App — requests are signed with the team-level Agent token
- Linear — requests are signed with the invoking user’s OAuth token
Configuring Linear Triggers
Linear triggers are added from the Triggers section of the Expert editor. Pick Linear as the trigger type, set Event type to a Linear webhooktype value (see below), and (optionally) write a Filter — a JSONLogic expression evaluated against the raw Linear webhook payload. The trigger fires only when the filter returns true.
Top-level keys available to filter on: action, type, data, url, createdAt, organizationId, webhookTimestamp, webhookId.
Available event types:
Issue,Comment,IssueLabel,Project,ProjectUpdate,Cycle,Reaction,Attachment— each withaction∈create,update,remove
Triage Every New Issue in a Specific Team
Pick Event typeIssue and filter on the action and team key:
React to a Status Change
Pick Event typeIssue and filter on the new state name:
Slash-Style Command in Comments
Pick Event typeComment and match on the comment body:
Common Filter Recipes
Disabling Linear Access
You can scale back Linear access at three levels, from least to most disruptive:- Remove a single trigger. Delete the trigger row from the Expert editor and save. The Expert keeps the
linear-apitool but no longer wakes up on that event. - Remove the Linear capability. Toggle off Linear App (or Linear) in the Expert’s Capabilities section. The Expert loses the
linear-apitool and any remaining Linear triggers will be rejected when you save. - Disconnect the integration. From Settings → Capabilities → Integrations, click Disconnect on the Linear tile, or revoke the install from Linear’s Settings → API → Applications page. This revokes the token for every Expert in the tenant using that capability.