@kuochunchang/goose-code-review
v1.0.2
Published
AI-assisted code review tool with local web UI - View, analyze and review code with AI-powered insights
Maintainers
Readme
Goose Code Review Tool
A local AI-assisted code review tool with a web-based interface.
Features
- CLI-based: Run
goosein any project directory to start the review tool - Local server: Automatically starts a local server and opens the browser
- Read-only: View and analyze code without editing capabilities
- AI analysis: Automated code quality, security, and performance analysis
- UML visualization: Generate class diagrams and flowcharts from code
Installation
Install from npm (Recommended)
# Install globally
npm install -g @kuochunchang/goose-code-review
# Or use npx without installing
npx @kuochunchang/goose-code-reviewInstall from Source (For Development)
# Clone the repository
git clone https://github.com/kuochunchang/code-review-goose.git
cd code-review-goose
# Install dependencies
npm install
# Build the project
npm run build
# Link globally for local development
npm linkQuick Start
After installation, navigate to your project directory and run:
cd /path/to/your-project
gooseThe tool will automatically start a local server and open your browser.
Usage
# Start in your project directory
cd /path/to/your-project
goose
# Specify custom port
goose -p 8080
# Prevent automatic browser opening
goose --no-open
# View help
goose --helpThe tool will automatically:
- Start a local web server
- Open your default browser
- Display the code review interface
All data is stored locally in .code-review/ directory within your project.
Configuration
AI Provider Setup
Before using AI analysis features, you need to configure your AI provider.
Configure OpenAI API Key:
- The first time you run
goose, it will prompt you to enter your OpenAI API key - Or manually create
.code-review/config.jsonin your project directory:
{
"aiProvider": "openai",
"openai": {
"apiKey": "sk-your-api-key-here",
"model": "gpt-4"
}
}Get your OpenAI API Key:
- Visit OpenAI Platform
- Create a new API key
- Copy and paste it into the configuration
Advanced Configuration
The .code-review/config.json file supports additional options:
{
"aiProvider": "openai",
"openai": {
"apiKey": "sk-your-api-key-here",
"model": "gpt-4"
},
"ignorePatterns": ["node_modules", ".git", "dist", "build", "*.log"],
"maxFileSize": 5242880
}ignorePatterns: Array of glob patterns to exclude from analysismaxFileSize: Maximum file size in bytes (default: 5MB)
Development
For development setup and contribution guidelines, see:
License
MIT License
