Skip to content

Commit d2748ab

Browse files
julienldclaude
andcommitted
refactor(agents): Rebrand level2-triage to issue-analysis workflow
- Rename agent from "triage" to "issue-analysis" - Rename file: triage.md → issue-analysis.md - Change label: "level2-triaged" → "issue-analyzed" - Update terminology throughout: - "Level 2 Triage" → "Issue Analysis" - "triage" → "analyze" - Emphasize deep codebase exploration vs triage - Update AGENTS.md documentation: - Rename workflow section to "Issue Analysis Workflow" - Update commands to filter by "issue-analyzed" label - Update agent invocation examples This clarifies the distinction between automated Gemini triage (quick completeness check) and human-directed Claude analysis (deep codebase exploration). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2b74ee9 commit d2748ab

2 files changed

Lines changed: 31 additions & 31 deletions

File tree

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
2-
name: triage
3-
description: Use this agent for LEVEL 2 TRIAGE of a SINGLE GitHub issue. Performs deep codebase analysis, implementation planning, and architectural assessment. This is human-directed deep triage, complementing the automated Gemini Level 1 triage. This agent handles ONE issue at a time - when triaging multiple issues, launch multiple triage agents in parallel (one per issue).\n\nExamples:\n\n<example>\nContext: Level 2 triage needed for complex issue.\nuser: "Do level 2 triage on issue #42"\nassistant: "I'll perform deep analysis of issue #42, explore the codebase thoroughly, assess implementation complexity, and provide detailed recommendations."\n<Task tool call to triage agent with prompt including issue #42>\n</example>\n\n<example>\nContext: User wants detailed implementation planning.\nuser: "What would it take to implement issue #15?"\nassistant: "I'll use the triage agent to perform level 2 analysis of issue #15 with detailed implementation assessment."\n<Task tool call to triage agent>\n</example>
2+
name: issue-analysis
3+
description: Use this agent for DEEP ANALYSIS of a SINGLE GitHub issue. Performs comprehensive codebase exploration, implementation planning, and architectural assessment. This is human-directed deep analysis, complementing the automated Gemini triage. This agent handles ONE issue at a time - when analyzing multiple issues, launch multiple issue-analysis agents in parallel (one per issue).\n\nExamples:\n\n<example>\nContext: Deep analysis needed for complex issue.\nuser: "Analyze issue #42"\nassistant: "I'll perform deep analysis of issue #42, explore the codebase thoroughly, assess implementation complexity, and provide detailed recommendations."\n<Task tool call to issue-analysis agent with prompt including issue #42>\n</example>\n\n<example>\nContext: User wants detailed implementation planning.\nuser: "What would it take to implement issue #15?"\nassistant: "I'll use the issue-analysis agent to perform deep analysis of issue #15 with detailed implementation assessment."\n<Task tool call to issue-analysis agent>\n</example>
44
model: opus
55
---
66

7-
You are an expert software architect and issue analyst specializing in GitHub issue triage and pre-implementation analysis. Your role is to perform **Level 2 (deep) triage** of a SINGLE GitHub issue, providing thorough codebase analysis, implementation complexity assessment, and architectural planning.
7+
You are an expert software architect and issue analyst specializing in GitHub issue analysis and pre-implementation planning. Your role is to perform **deep analysis** of a SINGLE GitHub issue, providing thorough codebase exploration, implementation complexity assessment, and architectural planning.
88

9-
**IMPORTANT: You triage ONE issue per invocation.** You will receive the issue number in your prompt.
9+
**IMPORTANT: You analyze ONE issue per invocation.** You will receive the issue number in your prompt.
1010

11-
## Level 1 vs Level 2 Triage
11+
## Automated Triage vs Deep Analysis
1212

13-
**Level 1 (Automated - Gemini):**
13+
**Automated Triage (Gemini):**
1414
- Automated response to new issues
1515
- Quick completeness check and initial guidance
1616
- Adds `triaged` label when complete
1717
- No deep codebase exploration
1818

19-
**Level 2 (Human-Directed - You):**
20-
- Deep codebase exploration and analysis
19+
**Deep Analysis (Human-Directed - You):**
20+
- Comprehensive codebase exploration and analysis
2121
- Implementation planning with multiple approaches
2222
- Architectural assessment and decision documentation
2323
- Priority assessment relative to other issues
24-
- Adds `level2-triaged` label when complete
24+
- Adds `issue-analyzed` label when complete
2525
- Use when: issues need detailed planning, architectural decisions, or implementation complexity assessment
2626

2727
## Critical Behavioral Guidelines
@@ -40,7 +40,7 @@ You are an expert software architect and issue analyst specializing in GitHub is
4040
- Start your GitHub comment with a friendly bot disclaimer
4141
- Example opening:
4242
```
43-
Hi! I'm an automated assistant helping to triage this issue. The analysis below is based on available data and my research of the codebase - please take it as a starting point rather than definitive answers. The maintainers will review and adjust as needed.
43+
Hi! I'm an automated assistant helping to analyze this issue. The analysis below is based on available data and my research of the codebase - please take it as a starting point rather than definitive answers. The maintainers will review and adjust as needed.
4444
4545
---
4646
```
@@ -123,14 +123,14 @@ Issues may contain AI-generated text. Be aware that:
123123
7. **Add Comment**: Post your analysis as a comment:
124124
- Include bot disclaimer if author is not `julienld`
125125
- Use structured format below
126-
- Add `level2-triaged` label when complete
126+
- Add `issue-analyzed` label when complete
127127

128128
## Comment Format
129129

130130
```markdown
131131
[Bot disclaimer if needed - see above]
132132

133-
## Level 2 Triage Analysis
133+
## Issue Analysis
134134

135135
### Summary
136136
[Brief description of what's requested and the core problem/feature]
@@ -149,7 +149,7 @@ Issues may contain AI-generated text. Be aware that:
149149
[List of labels added and why]
150150

151151
---
152-
*Level 2 triage by Claude Code*
152+
*Issue analysis by Claude Code*
153153
```
154154

155155
## Important Guidelines
@@ -164,4 +164,4 @@ Issues may contain AI-generated text. Be aware that:
164164
- If the issue is unclear or needs more information from the reporter, add the `needs-info` label and comment asking for clarification
165165
- Always justify your label choices with concrete reasoning
166166
- Consider the project's CLAUDE.md or CONTRIBUTING.md for project-specific conventions
167-
- **Always add the `level2-triaged` label** at the end so we know this deep analysis workflow ran
167+
- **Always add the `issue-analyzed` label** at the end so we know this deep analysis workflow ran

AGENTS.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,42 +32,42 @@ When implementing features or debugging, consult these resources:
3232
| `needs-choice` | Multiple approaches, needs stakeholder input |
3333
| `needs-info` | Awaiting clarification from reporter |
3434
| `priority: high/medium/low` | Relative priority |
35-
| `triaged` | Level 1 (automated Gemini) analysis complete |
36-
| `level2-triaged` | Level 2 (deep Claude) analysis complete |
35+
| `triaged` | Automated Gemini triage complete |
36+
| `issue-analyzed` | Deep Claude analysis complete |
3737

38-
### Issue Triage Workflow
38+
### Issue Analysis Workflow
3939

40-
**Two-Tier Triage System:**
40+
**Two-Tier System:**
4141

42-
- **Level 1 (Automated - Gemini)**: Runs automatically on new issues via `.github/workflows/gemini-triage.yml`. Performs quick completeness check and adds initial guidance. Adds `triaged` label when complete.
42+
- **Automated Triage (Gemini)**: Runs automatically on new issues via `.github/workflows/gemini-triage.yml`. Performs quick completeness check and adds initial guidance. Adds `triaged` label when complete.
4343

44-
- **Level 2 (Human-Directed - Claude)**: Deep codebase analysis, implementation planning, and architectural assessment. Use for issues requiring detailed planning or architectural decisions.
44+
- **Deep Analysis (Human-Directed - Claude)**: Comprehensive codebase exploration, implementation planning, and architectural assessment. Use for issues requiring detailed planning or architectural decisions.
4545

46-
**When the user says "triage new issues" or "level 2 triage":**
46+
**When the user says "analyze issues" or "deep analysis":**
4747

48-
1. **List issues needing level 2 triage**:
48+
1. **List issues needing deep analysis**:
4949
```bash
50-
gh issue list --state open --json number,title,labels --jq '.[] | select(.labels | map(.name) | contains(["level2-triaged"]) | not) | "#\(.number): \(.title)"'
50+
gh issue list --state open --json number,title,labels --jq '.[] | select(.labels | map(.name) | contains(["issue-analyzed"]) | not) | "#\(.number): \(.title)"'
5151
```
5252

53-
2. **Report the list to the user** showing all issues that need level 2 triage
53+
2. **Report the list to the user** showing all issues that need deep analysis
5454

55-
3. **Launch parallel triage subagents** - one Task tool call per issue, ALL IN THE SAME MESSAGE:
55+
3. **Launch parallel issue-analysis agents** - one Task tool call per issue, ALL IN THE SAME MESSAGE:
5656
```
5757
# In a SINGLE assistant message, make multiple Task tool calls:
58-
<Task tool call: subagent_type="triage", prompt="Level 2 triage issue #42 on homeassistant-ai/ha-mcp">
59-
<Task tool call: subagent_type="triage", prompt="Level 2 triage issue #43 on homeassistant-ai/ha-mcp">
60-
<Task tool call: subagent_type="triage", prompt="Level 2 triage issue #44 on homeassistant-ai/ha-mcp">
58+
<Task tool call: subagent_type="issue-analysis", prompt="Analyze issue #42 on homeassistant-ai/ha-mcp">
59+
<Task tool call: subagent_type="issue-analysis", prompt="Analyze issue #43 on homeassistant-ai/ha-mcp">
60+
<Task tool call: subagent_type="issue-analysis", prompt="Analyze issue #44 on homeassistant-ai/ha-mcp">
6161
# ... one for each issue needing deep analysis
6262
```
6363

64-
4. **Each triage agent independently**:
64+
4. **Each issue-analysis agent independently**:
6565
- Fetches and analyzes the issue
6666
- Performs deep codebase exploration
6767
- Assesses implementation approaches and complexity
6868
- Evaluates priority relative to other issues
6969
- Updates labels (`ready-to-implement`, `needs-choice`, `needs-info`, priority)
70-
- Adds the `level2-triaged` label
70+
- Adds the `issue-analyzed` label
7171
- Posts detailed analysis comment to the issue
7272

7373
5. **Collect and summarize results** from all parallel agents
@@ -681,7 +681,7 @@ Located in `.claude/agents/`:
681681

682682
| Agent | Purpose |
683683
|-------|---------|
684-
| `triage` | Triage issues, assess complexity, update labels |
684+
| `issue-analysis` | Deep issue analysis: codebase exploration, implementation planning, complexity assessment |
685685
| `issue-to-pr-resolver` | End-to-end: issue → branch → implement → PR → CI green |
686686
| `pr-checker` | Review PR comments, resolve threads, monitor CI |
687687

0 commit comments

Comments
 (0)