> ## Documentation Index
> Fetch the complete documentation index at: https://ade-ac1c6011-dependabot-github-actions-actions-cache-6.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Linear

> Linear is a first-class, two-way integration owned by the CTO — attach issues to lanes and chats, sync status, and run issues end to end with workflow presets.

Linear is a first-class, two-way integration, owned by the CTO. Connect it when your planning and review loop already runs through Linear issues — then you can attach issues to lanes and chats, keep status in sync, and let the CTO triage an issue, delegate the work, open a PR, and close the issue back out.

<video autoPlay muted loop playsInline className="w-full aspect-video rounded-xl" src="https://mintcdn.com/ade-ac1c6011-dependabot-github-actions-actions-cache-6/mZiHD0-x8whDsXL3/media/demos/linearConnection.mp4?fit=max&auto=format&n=mZiHD0-x8whDsXL3&q=85&s=01f704798b3a2658314bfbf07f61fa73" data-path="media/demos/linearConnection.mp4" />

## What the integration does

<CardGroup cols={2}>
  <Card title="Attach issues" icon="paperclip">
    Connect a Linear issue to a lane or chat. ADE derives the branch name and attaches the issue as context.
  </Card>

  <Card title="Commit & PR linkbacks" icon="code-pull-request">
    Connected lanes prefix commits with the issue reference and seed the PR title and body so Linear links the work back.
  </Card>

  <Card title="Status sync" icon="arrow-right-arrow-left">
    As work moves, ADE updates the issue and posts progress and closeout notes.
  </Card>

  <Card title="Workflow presets" icon="diagram-project">
    Define workflows that dispatch a matching issue to a session, a worker, or a PR resolution — automatically.
  </Card>
</CardGroup>

## Connect Linear

You can connect from **CTO → Workflows** or **Settings → Integrations**. There are two paths:

<Steps>
  <Step title="Sign in with Linear (OAuth)">
    The primary path. ADE opens a Linear sign-in and stores the resulting token, refreshing it for you. The sign-in session is short-lived, so finish it promptly.
  </Step>

  <Step title="Personal API key">
    The alternative — paste a key that doesn't expire. Good for headless or automated setups.
  </Step>

  <Step title="Choose intake defaults">
    Pick which Linear projects ADE watches and which states count as active vs. terminal.
  </Step>

  <Step title="Test with one issue">
    Attach an issue to a lane and confirm it shows up in the lane and in CTO context.
  </Step>
</Steps>

<Frame caption="Connect a Linear workspace to the CTO.">
  <img src="https://mintcdn.com/ade-ac1c6011-dependabot-github-actions-actions-cache-6/mZiHD0-x8whDsXL3/media/features/linear/linear-connection.webp?fit=max&auto=format&n=mZiHD0-x8whDsXL3&q=85&s=a0ae08f7e551acb90ca23d9fca23ba34" alt="Connecting a Linear workspace to ADE" width="1280" height="696" data-path="media/features/linear/linear-connection.webp" />
</Frame>

<Note>
  Until a token is stored, the whole integration stays dormant — nothing polls, nothing binds, no background work runs. Connecting is a deliberate act.
</Note>

## The CTO-driven Linear loop

Once Linear is connected, a workflow can run a whole issue end to end. The shape is the same every time.

<Steps>
  <Step title="Triage">
    A new or updated issue is matched against your workflows by trigger — assignee, labels, team, project, priority, or state transition.
  </Step>

  <Step title="Delegate">
    The matched workflow dispatches the work as an employee session, a worker run, or a PR resolution, with the issue attached as context.
  </Step>

  <Step title="Open a PR">
    The agent implements in its lane, then commits, pushes, and opens a PR — linked back to the issue.
  </Step>

  <Step title="Sync status">
    On completion, ADE transitions the issue's state, posts a summary comment, and attaches proof artifacts.
  </Step>
</Steps>

### Workflow targets

A workflow dispatches an issue to one of four targets. Workflows can also chain stages — a worker run feeding into a PR resolution, say.

| Target           | What it launches                                          |
| ---------------- | --------------------------------------------------------- |
| Employee session | A CTO or employee chat with the issue as context.         |
| Worker run       | A delegated worker run in a fresh lane.                   |
| PR resolution    | A PR-focused resolver session.                            |
| Review gate      | A human review pause — no work launched until you decide. |

<Note>
  The CTO owns Linear issue intake. [Automations](/tools/automations) can react to Linear events for their own context, but they never duplicate this routing — the CTO is the canonical path.
</Note>

### Human review and delegation

Workflows can insert a review gate so a run pauses for your approval before it continues or lands a PR. And if a workflow can't resolve an issue's assignee to a known worker, the run waits in **awaiting delegation** with a dropdown to assign it — it never dispatches to an invalid target.

## Good CTO prompts with Linear

```text theme={null}
Read ENG-142 and propose a lane plan with acceptance criteria.
```

```text theme={null}
Summarize what changed on the PR linked to ENG-142 and draft a Linear update.
```

```text theme={null}
Which Linear issues are blocked by current PR or CI state?
```

<CardGroup cols={2}>
  <Card title="Set up the CTO" icon="wand-magic-sparkles" href="/cto/setup">
    Pick a persona and model, connect GitHub and Linear, and add workers.
  </Card>

  <Card title="Workers" icon="users" href="/cto/workers">
    Manage the scoped agents that run worker-target Linear workflows.
  </Card>
</CardGroup>
