feat: add cyclomatic complexity reducer agentic workflow#298
Merged
jamesadevine merged 3 commits intomainfrom Apr 22, 2026
Merged
feat: add cyclomatic complexity reducer agentic workflow#298jamesadevine merged 3 commits intomainfrom
jamesadevine merged 3 commits intomainfrom
Conversation
Daily scheduled GitHub Agentic Workflow that: 1. Runs Clippy cognitive complexity analysis in JSON mode 2. Ranks functions by complexity score 3. Refactors the highest-complexity function (extract helpers, flatten nesting, simplify logic) 4. Verifies tests pass and complexity is reduced 5. Submits a PR with the changes 6. Uses cache-memory to track progress across runs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
gh-aw strict mode (default) refuses write permissions — writes happen through the safe-outputs system (create-pull-request). Align with the pattern used by all other workflows in this repo. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a daily GitHub Agentic Workflow that identifies and refactors functions with high cyclomatic complexity.
Flow
cargo clippyin JSON mode withclippy::cognitive_complexityenabledcargo test+cargo clippyto confirm no regressionsDesign Decisions