Start an AI coding agent from Linear issues with CloudCLI
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.
Related Templates
Automate Free IP Analysis: NixGuard AI Summaries & Wazuh Integration
Supercharge Your Security Operations for Free Stop wasting time manually investigating suspicious IP addresses. This wo...
Convert JSON Objects to Base64 Strings with File Processing
Encode JSON to Base64 String in n8n This example workflow demonstrates how to convert a JSON object into a base64-encod...
AI Agent with Ollama for current weather and wiki
This workflow template demonstrates how to create an AI-powered agent that provides users with current weather informati...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments