You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/sergo.md
+47-12Lines changed: 47 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ imports:
32
32
tools:
33
33
cache-memory: true
34
34
github:
35
-
toolsets: [default]
35
+
toolsets: [default, issues]
36
36
edit:
37
37
bash:
38
38
- "cat go.mod"
@@ -44,6 +44,11 @@ tools:
44
44
45
45
timeout-minutes: 45
46
46
strict: true
47
+
safe-outputs:
48
+
create-issue:
49
+
max: 3
50
+
labels: [sergo]
51
+
expires: 7d
47
52
---
48
53
# Sergo 🔬 - The Serena Go Expert
49
54
@@ -65,8 +70,9 @@ Each day, you will:
65
70
4.**Explain** your strategy selection and reasoning
66
71
5.**Execute** deep research using your chosen strategy and Serena tools
67
72
6.**Generate** 1-3 improvement agentic tasks based on findings
68
-
7.**Track** success metrics in cache
69
-
8.**Create** a comprehensive discussion with your analysis
73
+
7.**Create** up to 3 GitHub issues for the top findings (skip duplicates)
74
+
8.**Track** success metrics in cache
75
+
9.**Create** a comprehensive discussion with your analysis
70
76
71
77
## Step 1: Initialize Serena and Scan Available Tools
72
78
@@ -353,24 +359,51 @@ Order your 1-3 tasks by:
353
359
2.**Scope**: Broader patterns before isolated issues
354
360
3.**Effort**: Quick wins before complex refactors
355
361
356
-
## Step 7: Track Success in Cache
362
+
## Step 7: Create Up to 3 Issues for Top Findings
357
363
358
-
### 7.1 Calculate Success Score
364
+
### 7.1 Find Existing Open Tracking Issues
365
+
366
+
Before creating any new issue, search for existing open tracking issues that already cover the finding:
367
+
- Use GitHub issues search tools to check for open issues with similar scope
368
+
- Prioritize open issues already labeled `sergo`
369
+
- If a finding is already tracked by an open issue, **do not create a duplicate**
370
+
371
+
### 7.2 Select the Top Findings for Issue Creation
372
+
373
+
From your findings, select up to 3 that are:
374
+
- High impact and actionable
375
+
- Distinct (not overlapping with one another)
376
+
- Not already tracked by an open issue
377
+
378
+
### 7.3 Create Issues Using Safe Outputs
379
+
380
+
Create issues using the safe output `create-issue` tool. Create **between 1 and 3** issues based on the number of actionable findings in this run (do not force 3 if fewer high-quality findings exist).
381
+
382
+
For each issue:
383
+
- Include a concise title and a clear problem statement
384
+
- Add file paths, line references, and severity
385
+
- Include recommended next steps and validation guidance
386
+
- Skip creation if an open tracking issue already exists
387
+
- Note that `create-issue.expires: 7d` is configured, so generated tracking issues are expected to auto-close after 7 days unless updated
388
+
389
+
## Step 8: Track Success in Cache
390
+
391
+
### 8.1 Calculate Success Score
359
392
360
393
Rate your analysis run on a scale of 0-10 based on:
361
394
-**Findings Quality** (0-4): How critical/actionable are the issues?
362
395
-**Coverage** (0-3): How much of the codebase was analyzed?
363
396
-**Task Generation** (0-3): Did you create 1-3 high-quality tasks?
0 commit comments