Linear

Connect Linear so your team can hand issues to Capy without leaving Linear. Delegating an issue starts a Capy thread, and everything the agent does streams back into the issue as native agent session activity: progress, responses, the plan, and a link to the thread.

Connect Linear⁠

Any org member can install the connection from Linear settings. One Linear workspace connects to one Capy org. Admins and owners can map Linear teams to Capy projects and set a default project.

Each person links their Linear account to their Capy account once. Capy prompts unlinked users in Linear the first time they delegate. Capy never matches accounts automatically by email or name.

Linear integration page with the Connect Linear controlLinear integration page with the Connect Linear control
Connect Linear to delegate issues to Capy.

How delegation works⁠

Assigning or delegating an issue to the Capy agent creates a native Linear agent session, and that session maps one-to-one to a Capy thread. Later prompts and comments inside the agent session continue the same thread.

The session is the boundary: a comment on an ordinary issue with no Capy agent session does nothing. If you want Capy on an issue, delegate it; mentioning or commenting won't start anything.

When a session starts, Capy may move the issue into the team's first started state and set itself as the assignee when nobody else is assigned. The first prompt carries the issue identifier, title, description, URL, and requester, so the thread starts with real context; later prompts carry only the new comment.

Project routing⁠

A new session picks its Capy project deterministically:

  1. The Linear team's mapping, when one exists.
  2. Otherwise the connection's default project.
  3. Otherwise a persistent error in Linear pointing at Capy's connection settings; Capy never guesses a project.

Routing fails closed: a stale mapping, or a mapping the delegating user can't access, produces a visible configuration error instead of silently landing in a different project. An existing session keeps its project even if mappings change later.

Default branches⁠

Set per-repository default branches for Linear-origin threads in the connection settings. A repository without an entry falls back to its project default. These apply only to repositories already attached to the selected project.

What Capy posts back⁠

Capy projects thread activity into the agent session as native Linear activity:

  • Short thought and action updates while the agent works.
  • Persistent responses for each message the agent sends you.
  • A thought when the agent hits an error, and one persistent response if the run ends on it.
  • A selection prompt when the agent needs a clarifying answer.
  • The Capy thread URL as the session's external link, so you can jump into the full transcript any time.

Markdown and file attachments are lowered to what Linear supports, with files as attachment links.

Stopping a session⁠

Linear's stop signal interrupts the thread's current run. It doesn't archive the thread or break the session mapping; a later prompt in the same session starts a fresh run.

Permissions and scope⁠

  • The connection is org-level: one Linear workspace per Capy org.
  • Any enabled member can install, reconnect, or disconnect the connection; team mappings, the default project, and branch defaults require an admin or owner.
  • Every inbound action re-checks the actor's identity link and current org membership: leaving the org revokes access immediately, and links don't grandfather.
  • If Linear revokes the app's authorization, the connection flips to a reconnect state that preserves your mappings; reconnecting restores everything.

Troubleshooting⁠

Commenting on an issue does nothing
Expected unless the issue has a Capy agent session. Delegate or assign the issue to the Capy agent first; comments inside that session then reach the thread.
Capy asks me to authenticate in Linear
Your Linear account isn't linked to a Capy account yet. Follow the authentication prompt Capy posts in Linear; it's a one-time link, and your original prompt is delivered automatically once you complete it.
Sessions land in the wrong project
Check the team mapping for the issue's team; without one, Capy uses the default project. An already-running session keeps its original project even after you fix the mapping.
Delegation fails with a configuration error
The mapped or default project is missing, or you don't have access to it. Capy deliberately refuses rather than picking another project; fix the mapping or your project access in Capy settings.
The integration shows as needing reconnection
Linear revoked or invalidated the authorization. Reinstall from Settings → Integrations → Linear; mappings and identity links survive the reconnect.
Open in Capy