Turn new Linear issues into automated AI coding sessions. When an issue is created, this workflow runs an AI coding agent (Claude Code, Cursor CLI, Gemini or Codex) on the task inside a CloudCLI cloud dev environment and posts the results back to Linear with a link to the live session so you can continue your work.
How it works
- A Linear trigger fires on issue events and filters for newly created issues only.
- The issue title and description are composed into a prompt for the AI coding agent.
- CloudCLI runs the agent inside an isolated cloud container.
- The agent's output, VS Code and Cursor deep links, and an SSH resume command are posted back to Linear as a comment.
Reviewers can open the environment in their preferred IDE or SSH in and run claude -r to resume the session from terminal.
Set up steps
- Install the CloudCLI verified community node from the n8n nodes panel.
- Connect your Linear and CloudCLI API credentials.
- Select your target environment in the "Get Environment Details" node.
- Customize the prompt template in "Compose Agent Prompt" to match your codebase.
How to customize
- Adjust the Linear Trigger's team filter or add an IF node to filter by label (e.g.
auto-code).
- Enable "Create Pull Request" in the agent's options to auto-open a PR.
- Add a Slack node to notify your team when the agent completes.
- Replace the Linear trigger with Jira, GitHub Issues, or Asana.