Refactor and clean up commit history to improve code documentation, readability, and maintainability. This loop focuses on squashing redundant commits, rewriting unclear messages, and ensuring a logical progression of changes.
Improve commit history
Run this loop in your coding agent to iteratively refine and enhance your Git commit history.
Initiate Loop
Start the loop by providing the kickoff prompt to your agent.
Review Current History
The agent will analyze the current commit history and identify areas for improvement.
Propose Changes
Based on the review, the agent will suggest specific improvements like squashing or rewording commits.
Apply Improvements
The agent will implement the suggested changes using appropriate Git commands.
Verify Result
After each iteration, the agent will check if the commit history meets the exit condition.
Analyze History
Use 'git log' to examine commit messages, structure, and redundancy.
Git
This loop ensures all Git commits follow the Conventional Commits specification by using commitlint to validate commit messages. It automatically detects non-compliant commits, suggests fixes, and guides the user through correcting them until all commits pass validation.
Git
Automatically splits large, monolithic Git commits into smaller, more reviewable units while preserving logical code boundaries and maintaining clean history.
Git
This loop helps maintain a clean Git repository by identifying and removing stale or outdated branches that are no longer needed. It ensures your branch list remains manageable and reduces clutter in collaborative environments.
Identify Issues
Flag commits with unclear messages, excessive splitting, or logical inconsistencies.
Suggest Changes
Recommend specific actions like squashing, rewording, or reordering commits.
Execute Commands
Apply Git commands such as 'rebase -i' to implement proposed changes.
Validate Output
Confirm that the revised history improves clarity and meets project standards.
Start the "Commit History Cleanup" loop. Goal: Improve commit history Max iterations: 10 Between iterations run: history review Exit when: History approved Please review the current Git commit history for this project. Identify any commits with unclear messages, redundant changes, or poor structure. Suggest improvements to create a cleaner, more logical history. Prioritize squashing fixup commits and rewording vague messages. Self-pace this loop. After each iteration, run `history review` and evaluate the output, and only continue if the exit condition is not met (History approved). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.