-
Notifications
You must be signed in to change notification settings - Fork 368
feat(sergo): create up to 3 labeled issues from top findings #26534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,7 +32,7 @@ imports: | |||||||||
| tools: | ||||||||||
| cache-memory: true | ||||||||||
| github: | ||||||||||
| toolsets: [default] | ||||||||||
| toolsets: [default, issues] | ||||||||||
| edit: | ||||||||||
| bash: | ||||||||||
| - "cat go.mod" | ||||||||||
|
|
@@ -44,6 +44,11 @@ tools: | |||||||||
|
|
||||||||||
| timeout-minutes: 45 | ||||||||||
| strict: true | ||||||||||
| safe-outputs: | ||||||||||
| create-issue: | ||||||||||
| max: 3 | ||||||||||
| labels: [sergo] | ||||||||||
| expires: 7d | ||||||||||
| --- | ||||||||||
| # Sergo 🔬 - The Serena Go Expert | ||||||||||
|
|
||||||||||
|
|
@@ -65,8 +70,9 @@ Each day, you will: | |||||||||
| 4. **Explain** your strategy selection and reasoning | ||||||||||
| 5. **Execute** deep research using your chosen strategy and Serena tools | ||||||||||
| 6. **Generate** 1-3 improvement agentic tasks based on findings | ||||||||||
| 7. **Track** success metrics in cache | ||||||||||
| 8. **Create** a comprehensive discussion with your analysis | ||||||||||
| 7. **Create** up to 3 GitHub issues for the top findings (skip duplicates) | ||||||||||
| 8. **Track** success metrics in cache | ||||||||||
| 9. **Create** a comprehensive discussion with your analysis | ||||||||||
|
|
||||||||||
| ## Step 1: Initialize Serena and Scan Available Tools | ||||||||||
|
|
||||||||||
|
|
@@ -353,24 +359,51 @@ Order your 1-3 tasks by: | |||||||||
| 2. **Scope**: Broader patterns before isolated issues | ||||||||||
| 3. **Effort**: Quick wins before complex refactors | ||||||||||
|
|
||||||||||
| ## Step 7: Track Success in Cache | ||||||||||
| ## Step 7: Create Up to 3 Issues for Top Findings | ||||||||||
|
|
||||||||||
| ### 7.1 Calculate Success Score | ||||||||||
| ### 7.1 Find Existing Open Tracking Issues | ||||||||||
|
|
||||||||||
| Before creating any new issue, search for existing open tracking issues that already cover the finding: | ||||||||||
| - Use GitHub issues search tools to check for open issues with similar scope | ||||||||||
| - Prioritize open issues already labeled `sergo` | ||||||||||
| - If a finding is already tracked by an open issue, **do not create a duplicate** | ||||||||||
|
|
||||||||||
| ### 7.2 Select the Top Findings for Issue Creation | ||||||||||
|
|
||||||||||
| From your findings, select up to 3 that are: | ||||||||||
| - High impact and actionable | ||||||||||
| - Distinct (not overlapping with one another) | ||||||||||
| - Not already tracked by an open issue | ||||||||||
|
|
||||||||||
| ### 7.3 Create Issues Using Safe Outputs | ||||||||||
|
|
||||||||||
| 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). | ||||||||||
|
|
||||||||||
|
Comment on lines
+380
to
+381
|
||||||||||
| 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). | |
| Create issues using the safe output `create-issue` tool. Create **between 0 and 3** issues based on the number of actionable findings in this run (do not force issue creation when there are no high-quality, non-duplicate findings, and do not force 3 if fewer high-quality findings exist). | |
| If no new issues are created, explicitly note why (for example: no actionable findings were identified, or all findings are already covered by open tracking issues). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The safe-outputs tool exposed to the agent is named
create_issue(underscore), but this step instructs usingcreate-issue(hyphen). This mismatch can cause the agent to call a non-existent tool; update the instruction text to referencecreate_issuefor the tool invocation (while keepingsafe-outputs.create-issueas the config key).