ztimson e0f3a3cd82
Some checks failed
Code review / review (pull_request) Failing after 10s
Build and publish / Build Container (push) Successful in 39s
Fixed review?
2025-12-27 21:04:48 -05:00
2025-12-27 21:04:48 -05:00
2025-12-27 20:56:11 -05:00
2025-12-27 12:43:03 -05:00
2025-12-27 17:54:03 -05:00
2025-12-27 15:21:57 -05:00
2025-12-27 12:43:03 -05:00
2025-12-27 20:48:20 -05:00
2025-12-27 12:43:03 -05:00
2025-12-27 17:54:03 -05:00
2025-12-27 17:54:03 -05:00
2025-12-27 21:04:48 -05:00


Logo

AI Reviewer

Automated AI-powered code review for pull requests 🤖

Version Pull Requests Issues



Table of Contents

About

Automated code reviewer that uses AI to analyze git diffs and provide inline comments on pull requests. Supports Anthropic, OpenAI, and Ollama models with tool-based reviewing for precise feedback.

Built With

Docker JavaScript Node

Setup

Production

Instructions

  1. Add the following git action:
name: Code review
on:
	pull_request:
		types: [opened, synchronize, reopened]

jobs:
	review:
		runs-on: ubuntu-latest
		container: docker
		steps:
			- name: Fetch code
			  run: |
				  git clone "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
				  git checkout ${{ github.event.pull_request.head.sha }}
				  git fetch origin ${{ github.event.pull_request.base.ref }}

			- name: Run AI Review
			  run: |
				  echo $GITHUB_WORKSPACE
				  docker pull "git.zakscode.com/ztimson/ai-reviewer:test"
				  docker run --rm -v $GITHUB_WORKSPACE:/app \
				    -e AI_HOST=anthropic \
				    -e AI_MODEL=claude-sonnet-4-5 \
				    -e AI_TOKEN="${{ secrets.ANTHROPIC_TOKEN }}" \
				    -e GIT_HOST="${{ github.server_url }}" \
				    -e GIT_OWNER="${{ github.repository_owner }}" \
				    -e GIT_REPO="${{ github.event.repository.name }}" \
				    -e GIT_TOKEN="${{ secrets.ASSISTANT_TOKEN }}" \
				    -e GIT_BRANCH="origin/${{ github.event.pull_request.base.ref }}" \
				    -e PULL_REQUEST="${{ github.event.pull_request.number }}" \
				    "git.zakscode.com/ztimson/ai-reviewer:test"

Development

Prerequisites

Instructions

  1. Install the dependencies: npm i
  2. Build library: npm run review

License

Copyright © 2025 Zakary Timson | All Rights Reserved | Available under MIT Licensing

See the license for more information.

Description
Use AI to review code and make recommendations
Readme 223 KiB
Languages
JavaScript 100%