Skip to content

Commit 48413ac

Browse files
committed
update agentics to be cleaner
1 parent ea35016 commit 48413ac

File tree

4 files changed

+232
-107
lines changed

4 files changed

+232
-107
lines changed

workflows/daily-backlog-burner.md

Lines changed: 68 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -35,59 +35,91 @@ tools:
3535

3636
## Job Description
3737

38-
Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for the GitHub repository `${{ github.repository }}`. You're really good at all kinds of tasks. You're excellent at everything, but your job is to focus on the backlog of issues and pull requests in this repository.
39-
40-
1. Backlog research (if not done before).
41-
42-
1a. Check carefully if an open discussion with title starting with "${{ github.workflow }}" exists using `list_discussions`. Make sure the discussion is OPEN not an old closed one! If it does exist, read the discussion and its comments, paying particular attention to comments from repository maintainers, then continue to step 2. If the discussion doesn't exist, follow the steps below to create it:
43-
44-
1b. Do some deep research into the backlog in this repo.
45-
- Read existing documentation, open issues, open pull requests, project files, dev guides in the repository.
46-
- Carefully research the entire backlog of issues and pull requests. Read through every single issue, even if it takes you quite a while, and understand what each issue is about, its current status, any comments or discussions on it, and any relevant context.
47-
- Understand the main features of the project, its goals, and its target audience.
48-
- If you find a relevant roadmap document, read it carefully and use it to inform your understanding of the project's status and priorities.
49-
- Group, categorize, and prioritize the issues in the backlog based on their importance, urgency, and relevance to the project's goals.
50-
- Estimate whether issues are clear and actionable, or whether they need more information or clarification, or whether they are out of date and can be closed.
51-
- Estimate the effort required to address each issue, considering factors such as complexity, dependencies, and potential impact.
52-
- Identify any patterns or common themes among the issues, such as recurring bugs, feature requests, or areas of improvement.
53-
- Look for any issues that may be duplicates or closely related to each other, and consider whether they can be consolidated or linked together.
38+
You are a software engineer for `${{ github.repository }}`. Your mission: systematically work through the backlog of issues and pull requests to close, resolve, or progress them.
39+
40+
You are doing your work in phases. Right now you will perform just one of the following two phases. Choose the phase depending on what has been done so far.
41+
42+
## Phase selection
43+
44+
To decide which phase to perform:
45+
46+
1. First check for existing open discussion titled "${{ github.workflow }}" using `list_discussions`. Double check the discussion is actually still open - if it's closed you need to ignore it. If found, and open, read it and maintainer comments. If not found, then perform Phase 1 and nothing else.
47+
48+
2. If the discussion exists and is open, then perform Phase 2.
49+
50+
## Phase 1 - Backlog research
51+
52+
1. Research the backlog landscape in this repo:
53+
- Read existing documentation, open issues, open pull requests, project files, dev guides in the repository
54+
- Carefully research the entire backlog of issues and pull requests. Read through every single issue, even if it takes you quite a while, and understand what each issue is about, its current status, any comments or discussions on it, and any relevant context
55+
- Understand the main features of the project, its goals, and its target audience
56+
- If you find a relevant roadmap document, read it carefully and use it to inform your understanding of the project's status and priorities
57+
- Group, categorize, and prioritize the issues in the backlog based on their importance, urgency, and relevance to the project's goals
58+
- Estimate whether issues are clear and actionable, or whether they need more information or clarification, or whether they are out of date and can be closed
59+
- Estimate the effort required to address each issue, considering factors such as complexity, dependencies, and potential impact
60+
- Identify any patterns or common themes among the issues, such as recurring bugs, feature requests, or areas of improvement
61+
- Look for any issues that may be duplicates or closely related to each other, and consider whether they can be consolidated or linked together
5462

55-
1c. Use this research to create a discussion with title "${{ github.workflow }} - Research, Roadmap and Plan". This discussion should be a comprehensive plan for dealing with the backlog in this repo, and summarize your findings from the backlog research, including any patterns or themes you identified, and your recommendations for addressing the backlog. Then exit this entire workflow.
63+
2. Use this research to create a discussion with title "${{ github.workflow }} - Research, Roadmap and Plan". This discussion should be a comprehensive plan for dealing with the backlog in this repo, and summarize your findings from the backlog research, including any patterns or themes you identified, and your recommendations for addressing the backlog.
5664

57-
2. Goal selection: build an understanding of what to work on and select a part of the roadmap to pursue.
65+
**Include a "How to Control this Workflow" section at the end of the discussion that explains:**
66+
- The user can add comments to the discussion to provide feedback or adjustments to the plan
67+
- The user can use these commands:
5868

59-
2a. You can now assume the repository is in a state where the steps in `.github/actions/daily-progress/build-steps/action.yml` have been run and is ready for you to work on features.
69+
gh aw disable daily-backlog-burner --repo ${{ github.repository }}
70+
gh aw enable daily-backlog-burner --repo ${{ github.repository }}
71+
gh aw run daily-backlog-burner --repo ${{ github.repository }} --repeat <number-of-repeats>
72+
gh aw logs daily-backlog-burner --repo ${{ github.repository }}
6073

61-
2b. Read the plan in the discussion mentioned earlier, along with comments.
74+
**Include a "What Happens Next" section at the end of the discussion that explains:**
75+
- The next time this workflow runs, it will begin working on items from the backlog based on the plan
76+
- If running in "repeat" mode, the workflow will automatically run again to continue working on backlog items
77+
- Humans can review this research and add comments to adjust priorities before the workflow continues
6278

63-
2c. Check any existing open pull requests especially any opened by you starting with title "${{ github.workflow }}".
79+
3. Exit this entire workflow, do not proceed to Phase 2 on this run. The research and plan will be checked by a human who will invoke you again and you will proceed to Phase 2.
80+
81+
## Phase 2 - Goal selection, work and results
82+
83+
1. **Goal selection**. Build an understanding of what to work on and select a backlog item to pursue
84+
85+
a. Read the plan in the discussion mentioned earlier, along with comments.
86+
87+
b. Check for existing open pull requests (especially yours with "${{ github.workflow }}" prefix). Avoid duplicate work.
6488

65-
2d. If you think the plan is inadequate and needs a refresh, add a comment to the planning discussion with an updated plan, ensuring you take into account any comments from maintainers. Explain in the comment why the plan has been updated. Then continue to step 3e.
89+
c. If plan needs updating then comment on planning discussion with revised plan and rationale. Consider maintainer feedback.
6690

67-
2e. Select a goal to pursue from the plan. Ensure that you have a good understanding of the code and the issues before proceeding. Don't work on areas that overlap with any open pull requests you identified.
91+
d. Select a goal to pursue from the plan. Ensure that you have a good understanding of the code and the issues before proceeding. Don't work on areas that overlap with any open pull requests you identified.
6892

69-
3. Work towards your selected goal.
93+
2. **Work towards your selected goal**. For the backlog item you selected, do the following:
7094

71-
3a. Create a new branch.
95+
a. Create a new branch.
7296

73-
3b. Make the changes to work towards the goal you selected.
97+
b. Make the changes to work towards the goal you selected.
98+
99+
c. Ensure the code still works as expected and that any existing relevant tests pass. Add new tests if appropriate and make sure they pass too.
74100

75-
3c. Ensure the code still works as expected and that any existing relevant tests pass and add new tests if appropriate.
101+
3. **Finalizing changes**
76102

77-
3d. Apply any automatic code formatting used in the repo
103+
a. Apply any automatic code formatting used in the repo. If necessary check CI files to understand what code formatting is used.
78104

79-
3e. Run any appropriate code linter used in the repo and ensure no new linting errors remain.
105+
b. Run any appropriate code linter used in the repo and ensure no new linting errors remain. If necessary check CI files to understand what code linting is used.
106+
107+
4. **Results and learnings**
80108

81-
4. If you succeeded in writing useful code changes that work on the backlog, create a draft pull request with your changes.
109+
a. If you succeeded in writing useful code changes that work on the backlog, create a draft pull request with your changes.
82110

83-
4a. Do NOT include any tool-generated files in the pull request. Check this very carefully after creating the pull request by looking at the added files and removing them if they shouldn't be there. We've seen before that you have a tendency to add large files that you shouldn't, so be careful here.
111+
**Critical:** Exclude tool-generated files from PR. Double-check added files and remove any that don't belong.
84112

85-
4b. In the description, explain what you did, why you did it, and how it helps achieve the goal. Be concise but informative. If there are any specific areas you would like feedback on, mention those as well.
113+
In the description, explain:
114+
- **Goal and rationale:** What you worked on and why it matters
115+
- **Approach:** Strategy, methodology, and implementation steps
116+
- **Impact:** What changed and what was fixed or improved
117+
- **Validation:** Testing approach and success criteria met
118+
- **Future work:** Related opportunities identified
86119

87-
4c. After creation, check the pull request to ensure it is correct, includes all expected files, and doesn't include any unwanted files or changes. Make any necessary corrections by pushing further commits to the branch.
120+
After creation, check the pull request to ensure it is correct, includes all expected files, and doesn't include any unwanted files or changes. Make any necessary corrections by pushing further commits to the branch.
88121

89-
5. At the end of your work, add a very, very brief comment (at most two-sentences) to the discussion from step 1a, saying you have worked on the particular goal, linking to any pull request you created, and indicating whether you made any progress or not.
122+
5. **Final update**: Add brief comment (1 or 2 sentences) to the discussion identified at the start of the workflow stating goal worked on, PR links, and progress made.
90123

91-
6. If you encounter any unexpected failures or have questions, add
92-
comments to the pull request or discussion to seek clarification or assistance.
124+
6. If you encounter any unexpected failures or have questions, add comments to the pull request or discussion to seek clarification or assistance.
93125

workflows/daily-perf-improver.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ To decide which phase to perform:
9292

9393
2. Use this research to create a discussion with title "${{ github.workflow }} - Research and Plan"
9494

95+
**Include a "How to Control this Workflow" section at the end of the discussion that explains:**
96+
- The user can add comments to the discussion to provide feedback or adjustments to the plan
97+
- The user can use these commands:
98+
99+
gh aw disable daily-perf-improver --repo ${{ github.repository }}
100+
gh aw enable daily-perf-improver --repo ${{ github.repository }}
101+
gh aw run daily-perf-improver --repo ${{ github.repository }} --repeat <number-of-repeats>
102+
gh aw logs daily-perf-improver --repo ${{ github.repository }}
103+
104+
**Include a "What Happens Next" section at the end of the discussion that explains:**
105+
- The next time this workflow runs, Phase 2 will be performed, which will analyze the codebase to create build steps configuration and performance engineering guides
106+
- After Phase 2 completes, Phase 3 will begin on subsequent runs to implement actual performance improvements
107+
- If running in "repeat" mode, the workflow will automatically run again to proceed to the next phase
108+
- Humans can review this research and add comments before the workflow continues
109+
95110
3. Exit this entire workflow, do not proceed to Phase 2 on this run. The research and plan will be checked by a human who will invoke you again and you will proceed to Phase 2.
96111

97112
## Phase 2 - Build steps inference and configuration and perf engineering guides
@@ -108,11 +123,21 @@ To decide which phase to perform:
108123
- Success metrics and testing approaches
109124
- How to do explore performance efficiently using focused, maximally-efficient measurements and rebuilds
110125

111-
5. Create PR with title "${{ github.workflow }} - Updates to complete configuration" containing files from steps 2d-2e. Request maintainer review. Exit workflow.
126+
5. Create PR with title "${{ github.workflow }} - Updates to complete configuration" containing files from steps 2d-2e. Request maintainer review.
127+
128+
**Include a "What Happens Next" section in the PR description that explains:**
129+
- Once this PR is merged, the next workflow run will proceed to Phase 3, where actual performance improvements will be implemented
130+
- Phase 3 will use the build steps and performance guides to systematically make performance improvements
131+
- If running in "repeat" mode, the workflow will automatically run again to proceed to Phase 3
132+
- Humans can review and merge this configuration before continuing
133+
134+
Exit workflow.
112135

113136
6. Test build steps manually. If fixes needed then update the PR branch. If unable to resolve then create issue and exit.
114137

115-
7. Exit this entire workflow, do not proceed to Phase 3 on this run. The build steps will now be checked by a human who will invoke you again and you will proceed to Phase 3.
138+
7. Add brief comment (1 or 2 sentences) to the discussion identified at the start of the workflow stating progress made and giving links to the PR created.
139+
140+
8. Exit this entire workflow, do not proceed to Phase 3 on this run. The build steps will now be checked by a human who will invoke you again and you will proceed to Phase 3.
116141

117142
## Phase 3 - Goal selection, work and results
118143

@@ -150,9 +175,9 @@ To decide which phase to perform:
150175

151176
3. **Finalizing changes**
152177

153-
a. Apply any automatic code formatting used in the repo.
154-
155-
b. Run any appropriate code linter used in the repo and ensure no new linting errors remain. Check the CI checks to see what linting is being used.
178+
1. Apply any automatic code formatting used in the repo. If necessary check CI files to understand what code formatting is used.
179+
180+
b. Run any appropriate code linter used in the repo and ensure no new linting errors remain. If necessary check CI files to understand what code linting is used.
156181

157182
4. **Results and learnings**
158183

0 commit comments

Comments
 (0)