Autonomous Agents Agentic Workflow
SE: RCA + Fix + PR — Autonomous Agents Agentic Workflow
Investigate bug, trace root cause, implement fix, create PR
sidebutton install agents The combined investigate-and-resolve chain for bug tickets. The agent first reproduces the failure, traces it to its true root cause, then implements the minimum change required to fix it without introducing adjacent refactors. Local tests are run before any commit, and a PR is opened against the default branch with a clear description that explains the cause and the fix separately.
Use this for bugs where the fix is in-scope for one agent and does not require design input. For tickets where the cause is ambiguous or where a design review must precede the fix, run the investigation-only RCA workflow first.
Steps
- 1. Open a terminal
- title
- Agent: SE RCA+Fix
- cwd
- {{entry_path}}
terminal.open - 2. Run a terminal command
- cmd
- >-
terminal.run
Workflow definition
schema_version: 1
id: agent_se_rca_fix
title: "SE: RCA + Fix + PR"
description: "Investigate bug, trace root cause, implement fix, create PR"
overview: |
The combined investigate-and-resolve chain for bug tickets. The agent first reproduces the failure, traces it to its true root cause, then implements the minimum change required to fix it without introducing adjacent refactors. Local tests are run before any commit, and a PR is opened against the default branch with a clear description that explains the cause and the fix separately.
Use this for bugs where the fix is in-scope for one agent and does not require design input. For tickets where the cause is ambiguous or where a design review must precede the fix, run the investigation-only RCA workflow first.
category:
level: pipeline
domain: engineering
metadata:
agent: true
role: se
params:
ticket_url:
type: string
description: "Jira ticket URL"
hint:
type: string
default: ""
description: "Optional extra instructions for the agent"
entry_path:
type: string
default: "~/workspace"
description: "Working directory for the agent"
steps:
- type: terminal.open
title: "Agent: SE RCA+Fix"
cwd: "{{entry_path}}"
- type: terminal.run
cmd: >-
source ~/.agent-env && claude --dangerously-skip-permissions
"read ticket with attachments and all comments - {{ticket_url}}. if it fails, stop and report the error.
learn how to SE relevant parts. reproduce the issue, trace root cause, implement a focused fix.
create PR to target repo or repos.
{{hint}}
write one comment to the ticket with: root cause (file:line refs), what was changed, PR link(s), and how to verify."