Comment
Start work from commands, keywords, or mentions in new issue comments.
Use type: Comment with actions: [create].
Comment edits and deletions do not start work.
Schema
key: linear-command
name: Handle Linear commands
provider: linear
harness: coding-agent
sandbox: workspace
agentId: build
initialPrompt: Investigate the request in the comment.
linear:
connection: engineering
event:
type: Comment
actions: [create]
commands: [/stitch]
humanActorsOnly: true
teamIds: ['backend-team-uuid']Filters
These fields belong under linear. All configured filters must pass.
| Filter | Matching |
|---|---|
commands | Comment's first token matches a selected slash command, case-sensitive. |
teamIds | Match any selected team ID on the parent issue. |
projectIds | Match any selected project ID on the parent issue. |
stateIds | Match any selected workflow state ID on the parent issue. |
assigneeIds | Match any selected assignee ID on the parent issue. |
creatorIds | Match the parent issue's creator ID, not the comment author or event actor. |
issueIds | Match the parent issue UUID, not the comment ID. |
issues | Match exact parent issue identifiers such as ENG-42. |
projects | Match any selected exact project name on the parent issue. |
states | Match any selected exact workflow-state name on the parent issue. |
teams | Match any selected exact team name or key on the parent issue. |
labelIds | Match the parent issue's selected labels using labelOperator. |
labels | Match exact parent issue label names using labelOperator. |
labelOperator | has_any (default), has_all, or has_none. |
humanActorsOnly | Require a human user actor; defaults to false. |
actorIds | Require one of the selected actor IDs. |
keywords | Match any case-insensitive substring in this comment's body, not the parent issue's text. |
mentionedUserIds | Match user IDs in Linear profile mention links in this comment's body; plain names do not count. |
See shared filter rules and aliases for snake_case spellings and how ID and name filters combine.
Set at least one of commands, keywords, or mentionedUserIds (mentioned_user_ids).
changedFields and addedLabelIds are not supported for comment events.
When commands is set, the first non-whitespace token must match a configured command exactly and
case-sensitively. /stitch-other does not match /stitch.
Event behavior
Command, keyword, mention, actor, and issue UUID checks use the webhook. Team, project, status, assignee, creator, issue identifier, and label filters fetch the parent issue's current API state at processing time. A failed required lookup does not pass. Once a run is reserved, retries reuse that run without fetching the issue again. Before reservation, retries can see newer issue state.
Concurrency
Supported scopes: repository and subject. The subject is the parent issue,
not the comment. Limits are per trigger, Linear connection, and execution repository.
Concurrency limits hold work in the queue until capacity is available.
commit and event scopes are not supported.
See General for setup and shared rules, and the Linear trigger schema for configuration fields.