AI-Powered Code Review
for Every Pull Request
Turn your team's tacit knowledge into enforceable rules.
contract.yml becomes living documentation that AI enforces on every PR.
version: 2
validation:
limits:
max_files_changed: 15
max_total_changed_lines: 500
ai:
rules:
- name: error_handling
severity: error
prompt: "Ensure proper error handling..."
- name: testing
severity: warning
prompt: "Verify test coverage..." Everything you need for better code reviews
Combine static rules with AI intelligence to enforce your team's coding standards automatically.
Knowledge as Code
Turn tacit knowledge into explicit documentation. Your contract.yml becomes a living record of domain expertise, coding conventions, and architectural decisions.
AI-Powered Analysis
Leverage LLM intelligence to understand code context, catch subtle issues, and provide actionable suggestions beyond simple linting.
Declarative Contracts
Define your rules in simple YAML. As you maintain it, your contract evolves into comprehensive documentation of project standards.
Instant Feedback
Get automated reviews within seconds of opening a PR. No waiting for human reviewers to catch basic issues.
Scope Protection
Restrict changes to specific paths. Prevent accidental modifications to sensitive files or directories.
Change Limits
Enforce PR size limits automatically. Keep changes small and reviewable with configurable thresholds.
CLI & GitHub App
Use the CLI locally during development or install the GitHub App for fully automated PR reviews.
How it works
Get started in minutes. Define, install, and automate.
Define your contract
Create a contract.yml file in your repository. Specify scope rules, change limits, and AI validation prompts that match your team's standards.
# contract.yml
version: 2
validation:
scope:
allow_paths: ["src/**", "tests/**"]
deny_paths: ["src/generated/**"]
limits:
max_files_changed: 15
ai:
rules:
- name: security
prompt: "Check for security issues..." Install the GitHub App
One-click installation to your repository. Code Contractor automatically runs on every pull request - no CI configuration needed.
# Automatic triggers on:
# - Pull request opened
# - Pull request updated
# - @code-contractor-app mention
# Or use the CLI locally:
$ code-contractor validate-pr \
--owner myorg \
--repo myrepo \
--pr 123 Get instant feedback
Receive detailed reviews directly on your PR. AI-powered suggestions, scope violations, and actionable fixes - all in one place.
## Code Contractor Review
### Scope Violations
- src/generated/api.ts is not allowed
### AI Validation: security
Warning: Potential SQL injection
at src/db/query.ts:42
Suggestion: Use parameterized queries
```diff
- db.query(`SELECT * WHERE id=${id}`)
+ db.query('SELECT * WHERE id=$1', [id])
``` Simple, transparent pricing
Start free, scale as you grow. No hidden fees.
Free
For individual developers and open source projects
- Unlimited public repositories
- Basic AI validation rules
- Scope & limit validation
- Community support
Pro
For teams that want advanced features
- Unlimited private repositories
- Custom AI prompts
- Priority processing
- Dashboard & analytics
- Email support
Enterprise
For organizations with specific requirements
- Self-hosted option
- Custom AI model integration
- SSO & SAML
- SLA guarantee
- Dedicated support
Ready to automate your code reviews?
Join teams using Code Contractor to maintain code quality at scale. Get started in under 5 minutes.