Skip to content

[Feature] /review (nanocoder review <pr|branch>) Command #1002

Description

@akramcodez

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

  • I have searched existing issues to ensure this is not a duplicate
  • This feature aligns with the project's goals (local-first AI assistance)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions