Overview
Codegen supports real-time interrupts that allow users to send additional messages or clarifications while the agent is actively working on a task. This feature enables dynamic, conversational interactions where users can provide feedback, corrections, or additional context without waiting for the agent to complete its current work.How Interrupts Work
When Codegen is actively processing a request, users can send follow-up messages through supported channels (Slack, Linear) that will be immediately delivered to the running agent as “interrupt messages.”Key Features
- Real-time delivery: Messages are delivered immediately to the active agent
- Context preservation: The agent maintains full context of the original task
- Immediate acknowledgment: Codegen typically responds quickly to acknowledge the interrupt
- Seamless integration: The agent incorporates new information into its current workflow
Supported Channels
Slack Interrupts
In Slack, you can send interrupt messages by:- Replying in the thread where Codegen is working
- Mentioning @codegen with additional context
- Sending follow-up messages in the same channel
Linear Interrupts
In Linear, interrupts work through:- Adding comments to the issue Codegen is working on
- Updating the issue description with additional requirements
- Changing issue priority or labels (triggers re-evaluation)
Note: Codegen will respond automatically to your comments in Linear unless another user is tagged in the same comment.
Best Practices
For Users
- Be specific: Clearly state what you want to add or change
- Provide context: Explain how the new information relates to the original request
- Use @mentions in Slack: Always mention @codegen in Slack channels (not needed in DMs)
- No mentions needed in Linear: Codegen responds automatically unless other users are tagged
Common Use Cases
- Adding requirements: “Also make sure to add error handling”
- Providing clarification: “By ‘users’ I meant admin users specifically”
- Changing scope: “Actually, let’s focus on the mobile version first”
- Sharing additional context: “Here’s the error log I forgot to include”
- Course correction: “That approach won’t work, try using the new API instead”
Limitations
- Processing order: Interrupts are processed in the order they’re received
- Context switching: Very frequent interrupts may slow down overall progress
- Channel-specific: Interrupts only work within the same channel/issue where work started
Troubleshooting
Interrupt Not Acknowledged
If your interrupt isn’t acknowledged:- Check the channel: Ensure you’re messaging in the same thread/issue
- Wait briefly: The agent may be in the middle of a long operation
- Use @mentions in Slack: Make sure you mentioned @codegen (required in channels, not DMs)
- Check for other tags in Linear: If you tagged other users, Codegen won’t respond automatically
- Check agent status: The agent may have completed or encountered an error
Message Not Incorporated
If your interrupt seems ignored:- Be more explicit: Clearly state what you want changed
- Reference the original task: Connect your interrupt to the current work
- Follow up: Send a clarifying message if needed
Examples
Slack Thread Example
Linear Issue Example
Related Features
- Wake-up Triggers - How to initially trigger Codegen
- Slack Integration - Complete Slack setup and usage
- Linear Integration - Complete Linear setup and usage