Skip to content
Open the app

Linear ​

Connect your Linear workspace so issues can start agent work and receive its progress: someone delegates an issue to Kadmo or mentions Kadmo in a comment, an agent works it, and the issue shows each step, in its agent session and in the agents' reports. This page covers connecting Linear, linking a Linear team to a workspace, handing an issue to Kadmo, the rule the first connect adds, and what agents do on an issue. The rules that decide which other issues start work — team, label, assignee, status and event filters — are set up under Automations.

Two ways to connect ​

Open Integrations → Issue Tracking → Linear. Depending on what the card offers, connect with the Linear app or with a personal API key.

Linear app (OAuth)Personal API key
ButtonConnect with LinearThe key form (under Manual setup when the app is offered)
Identity in LinearA Kadmo app user in your workspace — not a billable seatThe Linear user who owns the key
Who approvesA Linear workspace admin approves the app; a Kadmo Admin starts the connectionA Kadmo Admin saves the key
CredentialAccess token renewed automaticallyThe key, rotated by you
Inbound eventsDelivered through the Kadmo app's shared webhook — nothing to deployA per-account webhook you register with Deploy
AgentsReceive a current Linear access token automaticallyNeed their own LINEAR_API_KEY in their environment

Connect with the Linear app ​

  1. In the Linear dialog, press Connect with Linear.
  2. Approve the app in Linear. If your workspace queues third-party app approvals, the request waits until a workspace admin clears it.
  3. You land back on Integrations with Connected to Linear. The dialog shows the Workspace, the Identity (Kadmo app user), Token health, the access token's state (Auto-renewing) and the granted scopes.

The first connect also adds an automation, Delegated to Kadmo, so that an issue handed to Kadmo starts work at once. The notice says The automation “Delegated to Kadmo” was added and links it with Open it in Automations: see The rule the first connect adds.

The app asks for these scopes:

ScopeWhy
read, writeRead issues, teams and workflow states; update issues
issues:create, comments:createCreate issues and post step comments
app:assignable, app:mentionableLet people assign and mention the Kadmo app user
initiative:read, initiative:writeRead and write initiatives, which Goals use

If token refresh starts failing, the dialog says Token refresh is failing — Linear access is degraded — press Reconnect. If the app was removed (disconnected here or uninstalled in Linear), the dialog offers Reconnect with Linear.

Already on a personal key? The dialog offers Upgrade to the Linear app. Connecting replaces the stored key on this connection.

Connect with a personal API key ​

  1. Create a personal API key at linear.app/settings/api. No workspace URL is needed — the key identifies your workspace.
  2. Paste it into API Key and optionally set a Default team (for example ENG).
  3. Press Test Connection — it answers Connected as … — then Save.
  4. In the Webhook block, press Deploy to register the webhook with Linear for Issue and Comment events.

Keep the webhook URL private: see Per-account webhooks.

With a personal key, Kadmo does not hand a Linear credential to your agents. If agents should read and write Linear themselves, add LINEAR_API_KEY to each agent's environment (see Agents).

A workspace declares the Linear team it serves, so an issue routes to the right repository and agents. Open the workspace's edit page and set the Linear team field on the Work intake card, using the team key (for example ENG). If the account has more than one tracker connected, pick Linear as the provider first. The rules of a link, and when one is made for you, are under Tracker routing.

Hand an issue to Kadmo ​

On the Linear app's connection, Kadmo is an app user of your Linear workspace, and people hand it an issue where they work:

  • Delegate it. Choose Kadmo in the issue's assignee menu.
  • Mention it. Write a comment that mentions Kadmo and says what you need.

Linear opens an agent session on the issue, a thread in which Kadmo reports as it works, and Kadmo answers there within seconds. What starts is decided by the rule that takes the issue. After a first connect that is Delegated to Kadmo: it adds the issue to Tasks with the playbook its first label routes to, and the run starts when its turn comes. The checks every event meets still apply (What happens when an event arrives).

A personal API key has no app user: nobody can delegate to it or mention it, and no session opens. On that connection, rules of your own start the work.

What Kadmo posts in the session ​

The session follows the work from the first reply to the result. The sentences are quoted as Kadmo writes them, for an issue ENG-12.

WhenIn the session
The session opens and a rule takes the issueThe first reply: On it — Kadmo will run the playbook its issue type routes to on ENG-12. It names the playbook, or the workflow, when the rule names one.
The task is held for reviewThe task waits for approval in Kadmo before it runs, with the task's page
The work has a page in KadmoThe session's link: Kadmo task, then Kadmo run once the run exists; Kadmo job for a workflow
A step startsRunning and the step, for example Step 1 · Investigate + Plan
A step reportsThe step, its verdict and the first line of its summary, with the link of the report comment on the issue
The agent asks a questionThe question with its options, and Reply here to answer. A reply in the session is the answer.
The agent proposes a planThe plan, and Approve or reject the plan in Kadmo, with the page where it is decided
The run is held for a person: a gate, a pause, a fork to pickWhat is to decide, and Decide on the run page, with the link
A job opens a pull requestThe pull request joins the session's links
The run endsThe final response: Done — ENG-12 is resolved., or what else became of the run, with the last report comment, the pull requests and the run's page. A failed run ends in an error: The run on ENG-12 failed at step 2. A workflow ends with Done — the job on ENG-12 finished., or that it failed or was cancelled.
Nothing new for 25 minutes while the work is openStill working on ENG-12 — step 2. (— the job. when no run has started), until the next entry replaces it. It also shows while the task still waits in Tasks.
Work on the issue was already goingKadmo is already working on ENG-12, and the session follows that work. Words written with the mention go to its agent when one is running a step; otherwise the session says No agent is running a step on ENG-12 right now, so your message was not passed on.
Nothing takes the issue, or nothing could startAn error with the reason: see Troubleshooting

Linear also writes a comment into the session's thread for each question or decision Kadmo asks for, each final response and each error; the other entries show in the session only. The full report of each step stays the comment its agent posts on the issue (Agent reports). None of the session's entries is one of Kadmo's notices: the Reporting settings do not change them.

A follow-up ​

A reply in the session is a follow-up. What it does depends on what the work is doing at that moment:

The workYour reply
The agent has a question openIs the answer: Passed your answer to the agent. An answer holds 2,000 characters, and the session says so when a longer one was cut.
The agent waits for its plan to be decidedIs not passed on. A plan is approved or rejected in Kadmo, and the session links the page.
An agent is running a stepGoes to that agent as its next message: Sent your message to the agent working on it.
The run is between stepsIs not passed on: Kadmo is between steps on ENG-12, so no agent could take your message now. Send it again once a step runs, or answer on the run page.
Nothing is runningStarts the next request on the issue: Starting the next request on ENG-12. The same rules decide, your words go with the work, and a finished task is reopened.
The session was stoppedStarts nothing: This session was stopped, so Kadmo started nothing. Delegate ENG-12 to Kadmo again to start over.

Apart from an answer to a question, what a person writes reaches the agent as a quotation under their name, at most 4,000 characters of it, and never as an instruction of Kadmo's own.

Stop ​

Stopping the session in Linear cancels the work it follows: the run, or the job. A task that still waits in Tasks is cancelled, and a job still queued is taken back. Kadmo answers with a final response that says what it did, for example Stopped — Kadmo cancelled the waiting task on ENG-12., or Stopped — nothing was running on ENG-12. A stopped session starts nothing more: starting over takes a new session, which delegating the issue to Kadmo again or a new comment that mentions it opens.

Who can start work ​

Anyone in your Linear workspace who can reach the issue can delegate it to Kadmo or mention Kadmo on it, and what they write goes to an agent. It arrives quoted and capped, and every check of the rule still decides. Where that is too open, hold the rule for review, so that a person approves each task before it runs (Hold for review). Linking a team to a workspace is a trust decision too (Tracker routing).

The rule the first connect adds ​

A session reaches only a rule that means an issue handed to Kadmo: a Linear rule that starts a playbook or a workflow, listens to Issue updated and has Kadmo's app user as its Assignee. A rule without an assignee filter never starts on a mention. So that the first issue a workspace delegates gets work and not an error, the first successful Connect with Linear of an account adds that rule:

FieldValue
NameDelegated to Kadmo
TriggerLinear, Issue updated, any team
AssigneeAny Kadmo identity: the connection's app user, so a delegation and a mention both match
ActionPlaybook, By issue type: the playbook the issue's first label routes to
Run viaAdd to Tasks
ApprovalAuto-approve
WorkspaceThe account's workspace when it has exactly one active workspace (archived ones do not count), otherwise none

It is switched on, and it is an ordinary rule: it stands under Settings → Automations and in the Linear dialog under Automations on Linear, and you edit, switch off or delete it like any other (Automations).

When it is added ​

  • Once, by the first connect through the Linear app. That includes Upgrade to the Linear app from a personal key. A reconnect, or a disconnect and a new connect, adds nothing: one rule stays one, and a rule you edited stays as you edited it.
  • Not on a personal API key. The key has no app user. A Delegated to Kadmo rule left from an earlier app connection matches nothing while the account is on a key.
  • Not beside a rule of yours that already takes every handed issue: a playbook or workflow rule on Issue updated with Kadmo as its Assignee and no Team, switched on or off.

An account with several workspaces ​

With one active workspace, the rule names it and every handed issue runs there. With several, the rule names none and the issue's team decides: an issue of a team that is linked to a workspace runs in that workspace (Tracker routing, which also says when a link is made for you). Until the rule names a workspace, the Automations list marks it Needs a workspace and its page says This rule names no workspace. An issue of a team linked to no workspace then has no workspace to run in: set the Workspace on the rule, or link the team on the workspace's Work intake card, before such issues are handed over. When a rule skips an issue for that reason, its session says why: … no workspace — set one on the rule, or link project ENG to a workspace.

Hold for review ​

Open the rule, press Edit, set Approval to Hold for review and save; the list then shows Holds for review. A handed issue is added to Tasks as Needs approval, its session says The task waits for approval in Kadmo before it runs with the task's page, and the run starts once a person approves the task. If the rule names no workspace, the form asks for one before it saves: Pick the workspace its jobs run in, or link the trigger's project to a workspace.

The other edits work the same way: Always use pins one playbook in place of the routing, Team holds the rule to one team, Workspace names where its runs land. A connect never rewrites a rule you edited.

Remove it ​

Switch the rule off, or delete it. Neither comes back with a reconnect, unlike the rules Kadmo creates for Jira and Notion (Rules Kadmo creates for you). With no rule that takes handed issues, a delegated issue is answered at once with Nothing in Kadmo takes ENG-12 yet: no automation runs Linear issues delegated to Kadmo. To have the rule again, create one by hand with the fields above: on the app's connection, the Assignee filter offers Any Kadmo identity.

What to expect ​

  • A first label with no playbook. The built-in routing knows Bug, Story, Task and Hotfix (Issue type routing). An issue whose first label is another one, or that has no label, is added to Tasks with no playbook: the session says it is on it, and the task waits until a person picks a playbook. Map your labels on Issue type routing, or pin a playbook on the rule.
  • Several Kadmo accounts on one Linear workspace. Each account gets the rule. A delegated issue is pooled by each account whose rule takes it, as Linear also sends the issue's own update; a mention is pooled only by the account the session speaks for, the first one connected with such a rule.

What agents do on an issue ​

Linear has no issue types, so Kadmo uses the issue's first label in their place: the label is what automation filters and playbook routing match (a Bug label routes to Bug Fix by default). Change the routing on the Issue type routing page (see Playbooks).

A matching automation with a playbook action, Delegated to Kadmo for an issue handed to Kadmo or a rule of your own, pools the issue in Tasks — auto-approved or held for review — and the run starts once its in-pool blockers are done. How the run reports on the issue is on What a run writes on the ticket; an issue handed to Kadmo through the app shows the same run in its agent session as well (What Kadmo posts in the session). Kadmo's own notices can be a comment or nothing on Linear, and today Kadmo posts none on a Linear issue: see What applies today. On Linear:

  • A step's workflow state (for example In Progress) is matched by name (case does not matter). Status sync is best-effort: a state the team does not have is skipped and never fails the run.
  • The run resolves into whichever state the team's workflow marks as completed.
  • An is blocked by relation is the issue's blocker in the pool.
  • Events caused by Kadmo's own identity, its comments and status changes, are skipped; the other skip reasons are under What happens when an event arrives.

Disconnect ​

Disconnect in the dialog footer removes the connection.

  • Linear app: Kadmo loses access to the workspace until you reconnect. The default team, automations and issue history stay.
  • Personal key: inbound events stop and Kadmo loses access. The key is removed from Kadmo only — revoke it in Linear too.

Troubleshooting ​

SymptomCause and fix
Connection not completed — The connection was declined…A Linear workspace admin has to approve the Kadmo app. Ask them to clear the pending request, then connect again.
Token refresh is failingPress Reconnect in the Linear dialog.
Linear credentials not configured — save your Linear API key first on DeploySave the key before deploying the webhook.
The Linear app delivers its own events — no per-account webhook is neededYou are on the app path; there is nothing to deploy.
Nothing firesCheck the card is connected (and, on a personal key, that the webhook is deployed), then the rule's filters under Automations.
Kadmo cannot be chosen as the assignee, or mentionedThe workspace is not connected through the Linear app: a personal key has no app user. Connect with Connect with Linear, and in Linear give the app access to the issue's team.
Nothing in Kadmo takes ENG-12 yet: no automation runs Linear issues delegated to Kadmo.No rule that is switched on takes issues handed to Kadmo: Delegated to Kadmo was deleted or switched off, or the only such rule is held to another team. Switch it on, or create one (Remove it).
Nothing was started for ENG-12: …A rule took the issue and a check stopped it. The sentence gives the reason, as the rule's log does: no workspace (An account with several workspaces), webhook processing paused, or no credit (What happens when an event arrives).
The session says On it, then nothing runsThe task waits in Tasks: for approval when the rule holds for review, for a playbook when the issue's first label routes to none, or for a blocker or a free slot. Open the session's Kadmo task link. Still working shows meanwhile.
No Delegated to Kadmo rule after connectingIt is added by the first connect through the app only, and not beside a rule of yours that already takes handed issues (When it is added). Otherwise create it by hand (Remove it).
Kadmo has finished its work on ENG-12, so your message started nothing. …The issue's last task had finished, and the new session did not run it again: a mention never reruns finished work. Reply in the session: when nothing is running, a reply starts the next request and reopens the finished task (A follow-up).
Kadmo could not read ENG-12 in Linear … or Kadmo could not start work on ENG-12 — the dispatch failed.Nothing was started. Check that the app can still reach the issue's team (Token health in the Linear dialog), then reply in the session to try again (A follow-up), or start the work from Kadmo.
A reply in the session, or the words of a mention, were not passed onNo agent was running a step: the run was between steps or its task still waits, or the agent waits for its plan to be decided in Kadmo (A follow-up). Send it again once a step runs.
Runs land in the wrong repositoryLink the team to the intended workspace on its Work intake card.
Agents cannot reach Linear on a personal keyAdd LINEAR_API_KEY to the agents' environment.