# Understand and close the AI quality gap in your codebase.

> Forewit Audit finds the complexity and mistakes AI introduced in your codebase, tracks rework and test coverage, and feeds the lessons back to your team and agents.

https://useforewit.com/audit/

Forewit Audit finds the complexity and mistakes AI introduced in your codebase, and feeds the lessons back to your team and agents.

```sh
curl -fsSLO https://useforewit.com/workspace-setup.txt
cat workspace-setup.txt
```

14-day free trial. No credit card required.

## AI is helping developers ship more code, but it is also accelerating complexity that compounds fast. Left unchecked, that complexity will build up silently, in code that is becoming slower and riskier to change.

- More paths to understand and test in every change. +50% complexity in new code.
- AI commits are revisited more than other commits. +43% follow-up changes on AI-written commits.
- Test changes nearly doubled, and bug fixes held at a quarter of commits. 25% of commits are still bug fixes.
- Each engineer now owns more code. +71% code shipped per engineer.

Source: [The Impact of AI on Code Quality, 2026](https://useforewit.com/the-impact-of-ai-on-code-quality-2026/)

## Catch rising complexity early, while it's still cheap to fix

Every branch AI adds is another path to review, test and break. See where complexity is building up, and fix it while it’s still cheap.

- **Cut reliability and maintainability risk.** Find the code too complex to test reliably or nested too deep to change safely, and the commits that made it so.
- **Reduce duplicate code.** Find functions your agents reimplemented when your codebase already had them, and hand the cleanup to your coding agent.
- **Get ahead of rising complexity.** Track the complexity each commit adds, see where it’s heading on your current trend, and act before it slows your team down.

## Stop wasting tokens and engineering time on rework

See where your team and agents keep reworking the same code, and how much of it is fixing mistakes. Fix the cause once, and stop paying for it again.

- **Find your rework hotspots.** See the files and endpoints your team keeps reworking, with the full history behind each one.
- **Measure your code waste.** See how much new code gets rewritten soon after it ships, and how much of that rewrite was fixing a mistake.
- **See whether AI added rework.** Compare how much of your work gets reworked before and after your team adopted AI agents.

## Add tests where they matter most

See where the code your team changes most has no tests, and add them there before the next change breaks something.

- **Cover your riskiest code.** Find the most-changed code that no test reaches, and make sure it gets covered first.
- **Cover every API route.** See which API routes have a test and which don’t, and keep coverage in step as your API grows.
- **Make sure AI ships code with tests.** See how often changes arrive with a test since your team adopted AI agents, and catch it when tests stop keeping up.

## See whether AI made your team faster

See how AI changed the way your team ships, reviews and merges code, and whether the extra output sticks.

- **Measure output per engineer.** See merged pull requests per engineer each month, before and after your team adopted AI agents.
- **Know how much new code sticks.** See how much of your new code stays in place, and how much gets rewritten soon after it ships.
- **Check who reviews your code.** See the share of pull requests reviewed by a person and by a review bot, and how fast they merge.

## Works with your stack and your agents

Languages: TypeScript, JavaScript, Python, Go, Java, Kotlin, Ruby, PHP, C#, Rust, Scala, Swift, C++, C, Dart.

Coding agents it recognises: Claude Code, Cursor, GitHub Copilot, Codex, Devin, Jules, Aider, Windsurf.

## Close the quality gap with our engineers

Our engineers audit your codebase with your team, find why each problem keeps coming back, and hand you a plan for what to fix first.

### Why teams bring us in

- **Quality is slipping in your codebase.** Your agents ship more code than your team can track, and you need to know where to start.
- **Rework is eating your tokens and time.** Your engineers and agents keep reworking the same code, and every round burns tokens and engineering time.
- **Quality is inconsistent across your team.** Every engineer works with agents in their own way, so the quality of what they ship varies from person to person.

### How it works

- **Deep codebase audit.** We run Forewit Audit on your repositories, then our engineers dig into the code behind every hotspot.
- **Root-cause analysis.** We work through the findings with your engineers to find why each problem keeps coming back.
- **A prioritized plan.** What to stabilize or restructure, where to add tests first, and how your team should work with agents.
- **Leadership walkthrough.** We present the findings and the plan to your engineering leads, and answer every question.

### What you get

- A full audit of your repositories, with complexity, rework, test gaps and delivery before and after AI adoption
- The root cause behind each problem area
- A prioritized plan for your codebase and your agent workflows
- A walkthrough session with your engineering leads

[Book a call](mailto:hello@useforewit.com)

## Frequently asked questions

### What does Forewit Audit measure?

Complexity, duplicate code, rework, test coverage and delivery, measured from your codebase and its commits and compared before and after your team adopted AI.

### How does it know which commits came from AI?

From agent markers in commit authors, co-author trailers and messages. It recognises Claude, Cursor, Copilot, Codex, Devin, Aider, Windsurf and Jules. Commits without a marker count as unknown, so the AI share is a floor.

### Which languages does it read?

TypeScript, JavaScript, Python, Go, Java, Kotlin, Ruby, PHP, C#, Rust, Scala, Swift, C++, C and Dart.

### What leaves my machine?

By default, the results, short source extracts and the requests to the AI judge. Run with --no-evidence to remove the extracts, or --local to keep everything on your machine.

### Does it measure bugs?

It measures rework, including repairs to recent changes. Defect rates come from your bug tracker.

### How many repositories can I audit?

As many as you need. Each repository audit uses 5 credits.

### How does this relate to the 2026 report?

It runs the same analysis we ran on the 46 codebases in the report.
