Precommit Review
Open Precommit in the UnfoldAI sidebar, or run UnfoldAI: Precommit Review from the Command Palette. Use it to review changed files, check attention items and prepare your commit message.
Review the files
- Look through the staged, unstaged and untracked file groups.
- Select a file to inspect its saved Git changes.
- Review any attention items and run the relevant project checks.
A file with both staged and unstaged changes has a comparison for each. You can also open VS Code Source Control using the Source Control icon. If a comparison is unavailable, continue your review there.
Agent labels can help you follow the work. A change may be Unattributed when its author is unclear. Treat the risk indicator as a prompt for review, and inspect the code and test results before committing.
Choose Clear review… when you want to start a new review cycle. This leaves your files, staging and Source Control draft intact. Existing Git changes remain available for inspection.
Prepare a message
Write your own message or choose Generate for an AI draft. Read and edit the result before choosing Copy message or Insert into Source Control. Inserting a message fills the Source Control message field; you still stage and commit through your usual Git workflow.
Use Copy PR report when you want a separate report to review before sharing.
If files change after you prepare a draft, review it again or generate a fresh one. If generation is unavailable, you can continue editing the message yourself.
Signed-in Free accounts have 3 AI commit-message generations per month. Pro and Ultra requests use their existing shared monthly AI capacity. Local file review and manual message editing do not require an AI request.
See AI Commit Messages for a step-by-step walkthrough.