For an overview of all available workflows, see the main README.
The daily performance improver workflow will analyze code performance, identify bottlenecks, and implement optimizations through benchmarking and code improvements.
# Install the 'gh aw' extension
gh extension install github/gh-aw
# Add the Daily Performance Improver workflow to your repository
gh aw add-wizard githubnext/agentics/daily-perf-improverThis walks you through adding the workflow to your repository and running the workflow for the first time.
You can start a run of this workflow immediately by running:
gh aw run daily-perf-improverTo run repeatedly (at most one instance running at a time and sending a trigger every 3 minutes), use:
gh aw run daily-perf-improver --repeat 180-
The first run of the workflow will produce a pull request with inferred action pre-steps that need approval
-
The first run of the workflow will also create an issue in the repository with a plan for improving performance. You can comment on this issue to provide feedback or adjustments to the plan. Comments will not be picked up until the next run.
After editing run gh aw compile to update the workflow and commit all changes to the default branch.
- Repository contents and source code for performance analysis
- Existing issues and pull requests related to performance
- Build scripts and project configuration files
- CI/CD configurations and workflow results
- Creates new branches with performance improvements
- Creates draft pull requests with optimized code and benchmark results
- Creates issues documenting performance analysis and improvements
- Makes file changes to optimize algorithms and data structures
- Requires
contents: write,issues: write, andpull-requests: writepermissions
- Searches for performance optimization techniques and best practices
- Looks up benchmarking tools and methodologies
- May search for algorithm optimizations and data structure improvements
- Review performance improvement pull requests and benchmark results
- Validate performance gains through independent testing
- Assess code quality and maintainability of optimizations
- Merge approved performance improvements after thorough testing
- Disable or uninstall the workflow if performance optimizations are not effective or introduce bugs
- By default this workflow will trigger for at most 48 hours, after which it will stop triggering.
- This allows you to experiment with the workflow for a limited time before deciding whether to keep it active.