Wire your Cosmos Experts up to Linear to listen for workspace activity — a new issue, a status change, or a comment command — and to read and update Linear data through theDocumentation Index
Fetch the complete documentation index at: https://docs.augmentcode.com/llms.txt
Use this file to discover all available pages before exploring further.
linear-api GraphQL tool.
Prerequisites
Linear has two integration flavors. Pick the one that matches how your Expert should act:| Flavor | Capability | When to use |
|---|---|---|
| Linear App (team install) | LINEAR_APP | Expert reads and writes Linear data using a team-level token shared across all Experts in the tenant |
| Linear user OAuth | LINEAR | Expert posts as the author who triggered it — e.g. a personal triage Expert running under your own credentials |
- Go to Configuration → Integrations in the sidebar.
- On the Linear tile, click Connect and complete the Linear Agent install flow.
- Open My settings → Integrations 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. Cosmos automatically wires up thelinear-api tool — a thin wrapper around Linear’s GraphQL API — with no further setup required.
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 Configuration → 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.