> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Linear Agent

> Assign a Linear issue to the Paradime agent, or @mention it in a comment, and a DinoAI agent works on the issue and reports its progress in Linear.

Paradime appears in [Linear](https://linear.app/) as an agent. If your team plans its data work in Linear, you can hand an issue to a DinoAI agent without leaving Linear. Assign the issue to the Paradime agent, or @mention it in a comment. The agent starts a session in Paradime and reports back on the issue.

> [!NOTE]
>
> The Linear agent is connected separately from the [Linear integration](https://docs.paradime.io/integrations/linear.md). The Linear integration uses your personal API key so DinoAI can use the [Linear Tool](https://docs.paradime.io/products/dino-ai/tools-and-features/linear-tool.md). The Linear agent installs Paradime in your Linear workspace so you can assign issues to it.

## How it works

1. You assign a Linear issue to the Paradime agent, or @mention it in a comment.
2. Within seconds, the agent replies on the issue that it is working, with a link to the Paradime session.
3. While the agent works, Linear shows its progress, any question it has, and its final answer.

## Prerequisites

Before you connect the Linear agent, make sure you have:

* An admin role in Paradime
* A Linear workspace admin who can approve the Paradime app
* The new DinoAI agent harness enabled for your Paradime account. If it is not enabled, the agent says so on the issue.

## Connect Linear

A Paradime admin connects Linear once for the whole Paradime account.

**1. Open the Linear agent integration**

In Paradime, go to **Settings → Integrations** (see [connecting integrations](https://docs.paradime.io/integrations/connecting-integrations.md)), find the **Linear agent** integration, and click **Connect**.

**2. Install the Paradime app in Linear**

A Linear window opens and asks to install the Paradime app in your Linear workspace. A Linear workspace admin has to approve it.

The app asks for these Linear permissions:

| Permission | What it allows |
| - | - |
| Read access to the workspace | Read the issues you hand to the agent |
| Write access to the workspace | Reply on those issues |
| Assignable as an agent | Assign issues to the Paradime agent |
| Mentionable as an agent | @mention the Paradime agent in comments |

**3. Check the connection**

Back in Paradime, the integration shows the name of the connected Linear workspace. You can now assign issues to the Paradime agent and @mention it in Linear.

> [!NOTE]
>
> You can connect a Linear workspace to one Paradime account.

To disconnect, open the **Linear agent** integration and click **Disconnect**.

## Choose where each team's issues go

This step is optional. After you connect, the **Linear agent** integration lists the teams in your Linear workspace. For each team, you can pick:

* The Paradime workspace that takes the team's issues
* Optionally, a specific agent from that workspace

A team without a default works like this:

| Your Paradime account has | What happens |
| - | - |
| One workspace | The agent works in that workspace. |
| Several workspaces | The agent asks in Linear which workspace to work in. Pick one, and the agent starts. |

## Hand an issue to the agent

In Linear, do one of the following:

* **Assign the issue** to the Paradime agent. Linear calls this delegating the issue.
* **@mention the Paradime agent** in a comment on the issue.

The issue's title, description, and comments are the agent's task.

While the agent works, you see this in Linear:

| What you see | Details |
| - | - |
| Session link | A link to the session in Paradime, added when the agent starts |
| Progress | What the agent is thinking and doing |
| Questions | Any question the agent has for you |
| Final answer | The agent's answer when it finishes |
| Pull request | When the agent opens a pull request, the link is added to the Linear agent session |

## Steer or stop the agent

* **Steer:** reply to the agent on the issue to give it more instructions, or to answer its question. Your message goes to the running session.
* **Stop:** press stop in Linear. The agent confirms with "Stopped."

## Which agent runs

Paradime picks the agent in this order:

1. The agent you chose as the team's default.
2. If the team has no default agent, the agent definition file `.dinoai/agents/dinoai-linear-agent.yml` in the workspace's repository, when it exists.
3. Otherwise, the standard DinoAI agent.

The `dinoai-linear-agent` definition customizes the Linear agent the same way `dinoai-slack-bot` [customizes the Slack agent](https://docs.paradime.io/products/dino-ai/slack-agent/customize-agent.md). The file uses the same schema as any other agent. See [YAML Configuration](https://docs.paradime.io/products/dino-ai/programmable-agents/yaml-configuration.md).

## Sessions and usage

* Sessions started from Linear show in the [agent sessions](https://docs.paradime.io/products/dino-ai/programmable-agents/agent-sessions.md) list with the source **Linear**.
* Usage counts against your account's [DinoAI budget](https://docs.paradime.io/products/dino-ai/budget-and-consumption.md), like any other agent session.

## Troubleshooting

> [accordion] The integration shows Reconnect
>
> Linear stopped accepting Paradime's access, for example because the app was removed in Linear. Connect again.

> [accordion] The agent does not answer
>
> Check that the **Linear agent** integration is connected, and that the issue belongs to the connected Linear workspace.

> [accordion] The agent asked for a workspace and the choice expired
>
> Mention the agent again.


## Related topics

- [Linear](https://docs.paradime.io/integrations/linear.md)
- [Agent Sessions](https://docs.paradime.io/products/dino-ai/programmable-agents/agent-sessions.md)
- [DinoAI](https://docs.paradime.io/products/dino-ai/index.md)
- [Linear backlog agent](https://docs.paradime.io/guides/programmable-agents/linear-backlog-agent.md)
- [Linear intake agent](https://docs.paradime.io/guides/programmable-agents/linear-intake-agent.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.