{"connections":[{"sourceLocalID":3,"sourcePortID":"outlet_output","targetLocalID":2,"targetPortID":"inlet_input"},{"sourceLocalID":4,"sourcePortID":"outlet_output","targetLocalID":0,"targetPortID":"inlet_input"},{"sourceLocalID":2,"sourcePortID":"outlet_result","targetLocalID":4,"targetPortID":"inlet_input"}],"name":"Diagnose Issue and File Linear Ticket","nodes":[{"config":{},"isDisabled":false,"localID":0,"typeID":"utility.log","x":1150,"y":380},{"config":{"_height":560,"_width":460,"text":"**Diagnose Issue and File Linear Ticket turns a one-line bug report into a Linear ticket with a first diagnosis attached.**\n\n**What it does**\n- When you run it, Watchflows asks you to describe the issue.\n- **Codebase Triage Agent** searches and reads your project folder to find the likely file and root cause. It only reads: it edits nothing, makes no commits and opens no pull request.\n- **File Linear Ticket** files your description as the title, with the agent's findings in the body.\n\n**Set it up**\n- Connect Linear in Settings, Integrations. With one Linear account connected, the ticket uses it; with several, it uses the one marked default.\n- Click **File Linear Ticket** and pick the team the ticket goes to.\n- Click **Codebase Triage Agent**, choose the project folder in File Access Scope, and pick your AI provider and model, or leave them on your default. The agent stops before doing anything until a folder is chosen.\n\n**Make it yours**\n- On **Codebase Triage Agent**, raise or lower Max Iterations and Token Budget to trade depth for speed and cost.\n- Turn on web search there too if your issues often need documentation lookups. Leave the editing, Git and pull request tools off to keep it read-only.\n- Pick a project or an assignee on **File Linear Ticket**."},"isDisabled":false,"localID":1,"typeID":"note","x":100,"y":-392},{"config":{"agentFileScopeRoot":"{{NEEDS_INPUT: the project folder to give the agent access to}}","goal":"Investigate this codebase issue and produce a triage report:\n\n{{text}}\n\nIdentify the likely file(s)/location and probable root cause. Do NOT attempt a fix — this is diagnosis only.","maxIterations":30,"systemPrompt":"You are a senior engineer doing LIGHT triage, not a fix. Method:\n1. Use the repository map to orient yourself.\n2. Search for symbols/strings relevant to the issue.\n3. Read only the files needed to form a hypothesis — keep this fast and shallow, not exhaustive.\n4. Produce a concise report: Likely Location (file:line), Probable Root Cause, Confidence, and any open questions.\nCite file:line for every claim. Do not edit any files.","temperature":0.7,"tokenBudget":120000,"tool_edit_file":false,"tool_git":false,"tool_list_directory":true,"tool_open_pr":false,"tool_read_file":true,"tool_repo_map":true,"tool_search_code":true,"tool_web_fetch":false,"tool_web_search":false,"verificationPrompt":"Did you follow all instructions, ensure you verify before returning.","verify":true},"customName":"Codebase Triage Agent","isDisabled":false,"localID":2,"typeID":"ai.agent","x":460,"y":260},{"config":{"inputType":"prompt","promptMessage":"What issue should be investigated and filed?","promptTitle":"Describe the Issue"},"isDisabled":false,"localID":3,"typeID":"trigger.input","x":100,"y":200},{"config":{"description":"**Reported issue:**\n{{text}}\n\n**Triage findings:**\n{{result}}","title":"{{text}}"},"customName":"File Linear Ticket","isDisabled":false,"localID":4,"typeID":"action.linear_create_issue","x":800,"y":320}],"version":1}