Scan, score, and improve your codebase — with zero regression risk. MIT licensed.
The full quality engine is MIT licensed and free forever. Autonomous fixing is available on paid plans — or bring your own key.
Both commands support --local BYOK fallback — use your own OpenAI or Anthropic key without a paid plan.
Three steps to a healthier codebase — starting from zero config.
Add the free GitHub Action or run ratchet scan locally. Every commit gets an instant code quality score across 6 categories: Testing, Error Handling, Security, Type Safety, Performance, and Code Quality.
Upgrade to Ratchet Pro (or use --local BYOK) and let the engine propose targeted improvements — test coverage, hardened error handling, type safety. Each click lands a real, reviewable code change.
Ratchet opens a pull request with the improvements, a full diff, and a before/after score card. You review, merge, and your score goes up. Repeat until you're proud of the number.
AutomatedRun ratchet improve and watch your score climb — with full diff visibility before anything merges.
+12 points in one improvement cycle · 3 PRs auto-opened · Zero regressions
Ratchet's score is a weighted composite across the six dimensions that actually matter for production readiness.
Embed the live badge in your README and let contributors see the score at a glance.
[](https://github.com/giovanni-labs/ratchet)
The OSS engine is free forever. Upgrade for autonomous improvements and team features.
ratchet scanratchet improve accessratchet torque + improveNeed more cycles? Add extra capacity at $0.75 / cycle on any paid plan.
Drop this into .github/workflows/ratchet.yml and you're done. Free and open source.
# .github/workflows/ratchet.yml name: PR Quality Gate on: pull_request: branches: [main] permissions: contents: read pull-requests: write jobs: quality: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Ratchet Code Quality Scan uses: giovanni-labs/ratchet@v1 with: threshold: 80 category-thresholds: Security=85,Testing=70
Everything you need to know about Ratchet.
scan, quality scoring, GitHub Action, vision, badge) is MIT licensed and free forever. Autonomous fixing (torque, improve) is available on paid plans, with a --local BYOK fallback so you can use your own OpenAI or Anthropic API key without subscribing.scan + tighten is free and open source. Run ratchet scan --fail-on 80 in any pipeline to enforce a quality gate on every PR. No account required.ratchet scan yourself.--local to ratchet torque or ratchet improve along with your own OPENAI_API_KEY or ANTHROPIC_API_KEY and the engine runs entirely on your API quota. No Ratchet Pro subscription needed for local usage.ratchet init to configure paths, exclusions, and custom scoring rules per-project.