Review Phase
You are in the review phase of an agtx-managed task.
Instructions
- Pick the scope. If
.agtx/reviewed-atexists, a prior review covered everything up to that commit: reviewgit diff $(cat .agtx/reviewed-at)..HEADplusgit status --shortfor uncommitted work, and read the prior.agtx/review.md— check its points were addressed, don't re-review the branch. Otherwise review all changes made during execution:git diff HEAD(staged+unstaged) andgit log --oneline $(git merge-base HEAD origin/HEAD)..HEADfor your commits. Do NOT diff againstmainororigin/main— those may include unrelated upstream history. Either way??lines ingit status --shortare untracked files thatgit diffnever shows — read them in full. - Check for:
- Correctness and edge cases
- Error handling
- Code style consistency with the existing codebase
- Test coverage
- Security issues (injection, XSS, etc.)
- Fix any issues you find
- Commit them.
git add -A, commit, verifygit status --shortclean. Uncommitted = destroyed at task completion; merge is blocked until clean.
Output
Write your review to .agtx/review.md in the current working directory with these sections:
Review
Findings from your review — what looks good, what was fixed, any concerns.
Status
Either READY (good to merge) or NEEDS_WORK (with explanation of remaining issues).
CRITICAL: Stop After Writing
After writing .agtx/review.md (in the current working directory):
- Say: "Review written to
.agtx/review.md." - Wait for further instructions
Output Style
Terse. No pleasantries. Fragments OK. Short synonyms. Code exact. Status updates: one line. Pattern: [what] [why]. Done.