For basic trigger setup, see Triggers and Workflow Execution Control.
Multiple Trigger Behavior
Mention Triggers
Any
@overcut mention triggers ALL workflows with mention trigger type.Slash Commands
Each slash command triggers only its specific workflow and can terminate active agent steps.
Sequential Execution
All workflows for the same PR/issue run one at a time, ordered by priority.
Event Merging
Multiple triggers of the same queued workflow merge into a single execution.
Key Concepts
Trigger Specificity
- Mention (
@overcut): Triggers ALL mention workflows regardless of text after mention - Slash Command (
/review): Triggers only the specific workflow registered for that command - Event Triggers: Each workflow has one primary trigger type (e.g.,
pull_request_opened)
Slash Command Termination
Slash commands have special power to interrupt active work:1
Graceful Termination
Active agent steps (both
agent.run and agent.session) receive termination signal2
Grace Period
Agents get 5 minutes to complete current operation before stopping
3
Session Cleanup
Active sessions are cleared immediately and stop receiving new comments
4
New Workflow
Slash command workflow queues or starts normally
Parallel Execution & Locking
Resource-Based Locking
Overcut ensures workflows don’t conflict by locking execution per resource:Sequential per Resource
Only one workflow runs per issue/PR at a time to prevent conflicts
Parallel Across Resources
Different issues/PRs can run workflows simultaneously
How Locking Works
Same Resource = Sequential Execution:Queue Management & Deduplication
Intelligent Event Merging
When the same workflow is triggered multiple times while queued, events automatically merge to prevent redundant executions:1
Duplicate Detection
System checks if the same workflow is already queued for the same lock key
2
Event Merging
New trigger merges with existing queued workflow instead of creating duplicate
Priority-Based Processing
Queued workflows are processed by priority, then first-in-first-out:| Priority | Description | Processing Order |
|---|---|---|
1 (High) | Critical workflows | Processed first |
5 (Default) | Standard workflows | Default priority |
10 (Low) | Background tasks | Processed last |
Automatic Deduplication
When the same workflow is triggered multiple times while queued, events automatically merge:Advanced Queue Features
Delayed Execution
Workflows can be configured with delays to batch rapid events:- Batches rapid-fire events (multiple comments, labels)
- Reduces redundant executions
- Allows time for related events to merge
Priority Configuration
Control execution order with priority settings (1-100 scale):| Priority | Use Case | Example |
|---|---|---|
| 1-3 | Critical workflows | Security scans, incident response |
| 4-6 | Normal workflows | Code reviews, standard automation |
| 7-100 | Background tasks | Documentation, metrics collection |
Multiple Mention Workflows
If you have multiple workflows withmention trigger, all will be triggered by any @overcut mention:
/help→ triggers only Quick Help/analyze→ triggers only Full Analysis
Event Sequence Example
Best Practices
Use Priorities Wisely
Reserve 1-3 for critical workflows, use default (5) for most cases.
Design for Interruption
Expect users to use slash commands to change direction mid-workflow.
Leverage Merging
Trust automatic event merging to reduce redundant executions.
Choose Right Triggers
Use slash commands for specific actions, mentions for general help.
FAQ
Can workflows run in parallel on different PRs?
Can workflows run in parallel on different PRs?
Yes! Sequential execution only applies to the same PR or issue. Different resources can have workflows running simultaneously.
When does event merging happen?
When does event merging happen?
Only when a workflow is queued (waiting to run), not while it’s running. If workflow A is running and triggered twice more, the second trigger queues and the third merges with it.
How do I stop an agent step early?
How do I stop an agent step early?
You can terminate agent steps using either comments or UI controls:Via Comments:
/done: Completes the current agent session step and continues to the next workflow step/quit: Terminates the entire workflow immediately
- Complete Step button: Requests the agent to complete and return results ASAP
- Quit Workflow button: Terminates all running steps and marks the workflow as canceled
What's the difference between mentions and slash commands?
What's the difference between mentions and slash commands?
- Mentions (
@overcut): Trigger all mention workflows, route to active sessions - Slash commands (
/review): Trigger specific workflow, terminate active agent steps