View as markdown

Linear triggers

Start agents on your Remio daemons from Linear issue activity and post replies back to the issue. First connect a Linear workspace under Integrations (or configure a Linear app on a self-hosted Hub).

Supported events

onFires when
linear.comment_createdA new comment matches the allowed author and text filters.
linear.issue_assignedAn update assigns or reassigns the issue to a user.
linear.issue_entered_scopeAn issue is created in scope or transitions from outside to inside scope.

Events on the same Linear issue continue the same agent session by default (continuation: { mode: conversation }).

Respond to issue comments

Save this file as .remio/triggers/linear-help.yml, replace the connection slug and user UUID, and set run.target to a connected daemon:

name: linear-help
on:
  linear.comment_created:
    connection: acme-linear
    filters:
      from_users: ["11111111-1111-4111-8111-111111111111"]
      pattern: "/remio "
run:
  target:
    daemon: devbox
    cwd: /workspace/project
  agent:
    provider: codex
    mode: full-access
  max_runtime: 30m
  idle_timeout: 10m
  prompt: |
    Summarize the request and suggest a next step.
    Post one reply using reply, then call finish_execution.

    <user-prompt>
    ${{ remio.prompt }}
    </user-prompt>
  outputs:
    linear.reply:
      max: 1
      required: true

Deploy the trigger from the repository root:

remio hub deploy --dry-run
remio hub deploy

From an allowed Linear account, post an issue comment such as /remio summarize this request. Hub matches the prefix, runs the agent on devbox, and posts the reply as a comment on that Linear issue.

When Hub runs over HTTPS, the reply includes an Open in Remio link. Check Activity to inspect the run.

Start work when an issue enters scope

linear.issue_entered_scope runs once when an issue enters the configured filter scope, either at creation or when an update moves it into scope. Later edits to an issue that is already in scope do not trigger another run.

This event requires filters.project and can omit from_users for an automated project workflow:

name: linear-project-worker
on:
  linear.issue_entered_scope:
    connection: acme-linear
    filters:
      project: "22222222-2222-4222-8222-222222222222"
      states: ["33333333-3333-4333-8333-333333333333"]
      labels: ["44444444-4444-4444-8444-444444444444"]
      exclude_labels: ["55555555-5555-4555-8555-555555555555"]
run:
  target:
    daemon: devbox
    cwd: /workspace/project
    worktree:
      mode: branch-off
      newBranch: trigger-${{ remio.execution.id }}
      base: origin/main
  agent:
    provider: codex
    mode: full-access
  max_runtime: 90m
  idle_timeout: 10m
  github:
    connection: acme-github
    repositories: [acme/project]
    permissions:
      contents: write
      pull_requests: write
  prompt: |
    Implement the Linear issue, open a pull request with gh, and post the PR URL using reply.
    Issue context:
    ${{ remio.context }}
    Call finish_execution when done.

To trigger on assignments instead, use linear.issue_assigned with from_users naming the allowed assigners and assignees naming the target Linear user UUIDs.

Filters and Linear UUIDs

All Linear filters compose with AND and use Linear UUIDs rather than display names:

FilterRequired forMatches
from_userslinear.comment_created, linear.issue_assignedUser UUIDs of allowed comment authors or assigners.
projectlinear.issue_entered_scopeLinear project UUID.
statesOptionalIssue workflow state UUIDs (any listed state matches).
assigneesOptionalIssue assignee user UUIDs (any listed assignee matches).
labelsOptionalEvery listed label UUID must be present on the issue.
exclude_labelsOptionalAny listed label UUID prevents a match.
patternOptional (linear.comment_created)Required prefix at the start of the comment body.
containsOptional (linear.comment_created)Required substring anywhere in the comment body.

To find a UUID in Linear, open the command menu (Cmd+K or Ctrl+K) on an issue, project, or label and choose Copy model UUID, or query the Linear GraphQL API.

Context and replies

Include ${{ remio.context }} in run.prompt to pass the issue details (identifier, title, description, URL, project, state, assignee, labels) and up to 49 preceding issue comments as JSON.

Linear triggers automatically grant the reply tool (linear.reply) to post comments on the triggering issue. Declare run.outputs.linear.reply to enforce max or required: true.

Sponsors