Description
Add a dedicated slash command and CLI command to review a Pull Request or a specific Git branch.
Use Case
Code review is a massive use case for AI. A user should be able to type /review or nanocoder review main to get an automated, architect-level review of the diff, highlighting bugs, security issues, and style violations.
Proposed Solution
- Add a new slash command in
source/commands/.
- Reuse existing tools in
source/tools/git/ to fetch the diff against the base branch.
- Feed the diff to a specific review prompt (e.g.,
source/app/prompts/sections/review.ts).
- Output the review report to the terminal or write it to a markdown file.
Alternatives Considered
- Having the user manually prompt "review the git diff" (inconsistent results without a strong system prompt).
Additional Context
Description
Add a dedicated slash command and CLI command to review a Pull Request or a specific Git branch.
Use Case
Code review is a massive use case for AI. A user should be able to type
/reviewornanocoder review mainto get an automated, architect-level review of the diff, highlighting bugs, security issues, and style violations.Proposed Solution
source/commands/.source/tools/git/to fetch the diff against the base branch.source/app/prompts/sections/review.ts).Alternatives Considered
Additional Context