Could we help you? Please click the banners. We are young and desperately need the money
If you're new to AI agents and want to streamline your development workflow, this guide will walk you through a simple but powerful setup: an automated code-review loop using a custom Claude agent command. This loop connects two specialized agents—a reviewer and a developer—that work together until your code is production-ready.
A colleague of mine already wrote a blog post about the AI agent basics. So if you're completely new to AI agents, it's definitely worth it to check that out first to get a basic understanding of how AI agents work. You can find the blog post here.
The command /codereview-startreviewprocess launches a full automated review cycle between two Claude agents:
The reviewer and developer alternate in a loop until the reviewer is satisfied and returns REVIEW_COMPLETE.
The process follows a simple flow:
Start → Reviewer → Developer → Reviewer → (repeat until approved) → Complete
This system works entirely through a single command that you can run from your agent workspace or team chat.
This is the quickest way to run the review loop:
/codereview-startreviewprocess
This will analyze your working tree using git diff HEAD, including any changed documentation.
If no uncommitted changes exist, the process automatically falls back to:
git show HEAD
No additional configuration required—the same command handles it.
If you're comparing your branch against main or master, and there are no local changes, the loop analyzes everything using:
git diff main..HEAD
// OR
git diff master..HEAD
As the agents work, you’ll see updates like:
HANDOFF: @codereview-reviewer [Iteration X/8] — loop progressREVIEW_COMPLETE — all rules passedAfter the agent returns REVIEW_COMPLETE it will automatically run tests for you and push the changes to the repository with git push. This behaviour can be customized or removed below the ## Post-Approval section:
git push
All agent and command configuration files can be found here. They are uploaded as standard text files so the file format would have to be changed to .md to use them:
/codereview-startreviewprocess)@codereview-reviewer)@codereview-developer)Feel free to experiment with the existing configuration, tweak it to your liking and maybe even leave a comment to help out other developers who are just getting started working with agents.