Skip to main content

Start an AI coding agent from Linear issues with CloudCLI

Workflow preview

Workflow preview
100%
Start an AI coding agent from Linear issues with CloudCLI preview
Open on n8n.io

1. Workflow Overview

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 cl...

Best for

  • Engineering automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.lineartrigger, n8n-nodes-base.if, n8n-nodes-base.set, @cloudcli-ai/n8n-nodes-cloud-cli.cloudcli, n8n-nodes-base.linear

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Simos Mikelatos.

Original n8n.io source

1.1 Workflow description

Title
Start an AI coding agent from Linear issues with CloudCLI
Workflow name
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

  1. A Linear trigger fires on issue events and filters for newly created issues only.
  2. The issue title and description are composed into a prompt for the AI coding agent.
  3. CloudCLI runs the agent inside an isolated cloud container.
  4. 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

  1. Install the CloudCLI verified community node from the n8n nodes panel.
  2. Connect your Linear and CloudCLI API credentials.
  3. Select your target environment in the "Get Environment Details" node.
  4. 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note - Step 1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note - Step 2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note - Step 3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note - Step 4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note - Community Node

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Linear Trigger

Type / Role
n8n-nodes-base.linearTrigger - linearTrigger
Config choices
Version 1

Block 8 - Is New Issue?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Compose Agent Prompt

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Get Environment Details

Type / Role
@cloudcli-ai/n8n-nodes-cloud-cli.cloudCli - cloudCli
Config choices
Version 1

Block 11 - Run AI Coding Agent

Type / Role
@cloudcli-ai/n8n-nodes-cloud-cli.cloudCli - cloudCli
Config choices
Version 1

Block 12 - Extract Agent Result

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Post Results to Linear

Type / Role
n8n-nodes-base.linear - linear
Config choices
Version 1.1

3. Summary Table

Workflow Start an AI coding agent from Linear issues with CloudCLI
Complexity intermediate
Nodes 13
Categories Engineering, AI Chatbot
Author Simos Mikelatos
Published 15 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14071/14071.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Start an AI coding agent from Linear issues with CloudCLI do?

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 cl...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Chatbot use case.