# AI agents in due diligence: what they can do and where they stop

Source: https://techduediligence.co/insights/ai-agents-in-due-diligence/

AI agents can read an entire codebase and its contracts in the time a person takes to read the index. That has changed what technical due diligence can cover inside a deal timetable. It has not removed the need for people, because an agent's output is a set of candidate findings, and deciding which are true and which matter remains a matter of judgment.

## Key points

- Use agents for coverage: they read everything, where a manual review samples.
- Require that every finding points to its source, so that a person can check it.
- Keep human analysts responsible for verification, context and materiality.
- Ask any provider where its models run, and whether the code ever leaves a private environment.

## What an agent is, in this context

An AI agent is a model set up to pursue a task through a series of steps: it reads files, runs tools, examines the results and decides what to do next. In a review the tasks are concrete. Read these repositories and describe the architecture. Read these agreements and find every clause that assigns intellectual property. Take this code and work out how to build it.

This differs from the automated scanning that reviews have used for years. A scanner applies fixed rules and reports matches. An agent can follow a thread: it can notice that a build script refers to a private package, look for that package, and report that it is missing.

## Reading large estates fast

The first contribution is coverage. A software company of moderate size may have a large number of repositories, years of history and a data room full of contracts. A manual review inside an exclusivity period reads a sample and extrapolates. Agents read all of it.

That matters most for the findings that hide in volume. The contractor who wrote one module in 2019 and whose agreement lacks an assignment clause is one contributor among many and one contract among many. Finding the mismatch requires reading both sets completely and comparing them, which is work a machine does well and people do poorly.

Speed also changes what a report can be. If a review can be repeated in hours, it can be rerun when the seller fixes something or adds a document. The report can then stay current until closing, instead of describing the company as it stood on one day.

## Linking findings to evidence

The second contribution is traceability. A finding is only useful in a negotiation if the other side can see what it rests on. An agent that reports a problem can record the file, the line, the clause or the commit it relied on, and the report can open that source directly.

This is also the main control on the technology's best-known weakness. Language models can state things that are plausible and wrong. A finding that cites nothing cannot be checked and should not be in a report. A finding that cites its source can be confirmed or dismissed by a person in minutes.

## Rebuilding software in a sealed environment

The third contribution is newer. In some transactions the buyer must be able to build and run the software without its authors. Carve-outs, asset purchases and purchases out of insolvency are the usual cases. The traditional test is for engineers to attempt a build by hand from the delivered materials, which takes weeks and is often skipped.

Agents can attempt the same thing in hours. Given the deposited code in an isolated environment, they work out how the software is built, resolve what it depends on, run the build and record what was missing. The result is direct evidence on a question that documents cannot answer. Why that matters is set out in [verifying software before you close](/insights/build-verification-before-closing/).

## Where agents fall short, and why analysts verify

The limits are as important as the capabilities.

- **False positives.** An agent will flag a hard-coded credential that turns out to be a test fixture, or a license conflict in code that is never shipped.
- **Context.** Whether a shortcut is a problem depends on the company's stage and intent. A young company that deferred a piece of infrastructure work deliberately is not in the same position as one that did not know the work was needed. The code alone does not always say which.
- **Absence.** Agents read what is there. They are weaker at noticing what ought to be there and is not, unless told to look for it: a missing agreement, an undocumented system, a team that never wrote anything down.
- **Materiality.** Ranking fifty findings into the five that affect the price requires an understanding of the deal that sits outside the data room.
- **People.** How a team makes decisions, and whether its lead engineers intend to stay, comes out in conversation.

There is also accountability. A report on which an investment committee acts needs someone who stands behind it, and a model cannot do that.

The sensible division of labor follows. Agents and scanners produce breadth: complete reading, candidate findings, evidence attached. Analysts produce judgment: they confirm each finding against its source, remove the false ones, weigh the rest and write the conclusions. Analysts alone cannot read everything in the time available, and agents alone produce a long list of unequal reliability. The comparison is drawn out further in [automated scans and expert review](/insights/automated-vs-expert-due-diligence/).

## The confidentiality question

Source code and the existence of a transaction are highly sensitive, and the use of AI raises a specific question: where the model runs. If a review sends code to a public AI service, that code has left the parties' control, on whatever terms that service applies.

Ask any provider four things. Does the analysis run in an environment the provider controls, or on a third party's service? Is anything retained or used to train models? Can the environment in which code is built reach the internet? Is there a log of every access that both sides can inspect?

More on the seller's position is in [sharing source code in due diligence](/insights/source-code-confidentiality-in-due-diligence/).

## How we approach it

Our [technology](/technology/) reads the code and the contracts, and people verify what it finds. The Automated Scan Report is targeted within 72 hours of the data room being ready to scan. In the Analyst-Verified Report, our standard engagement, an in-house analyst verifies the findings, removes false positives, rates risks in the context of the company's stage and writes the summary for the investment committee. Every claim cites a finding, and every finding opens its source material.

All analysis runs in Codekeeper's private environment, in the region chosen for the transaction. Nothing is sent to AI vendors and nothing is used for training. Code is cloned, built and scanned in sandboxes with no network egress, and every view, download, scan and sign-off is in an audit trail both sides can see, as described under [security](/security/).

Where the buyer must build and run the software without its authors, [Agentic Verification](https://codekeeper.co/agentic-verification) uses AI agents running on Codekeeper's own models to rebuild the deposited code in a sealed environment and produce a Rebuild Report. It is an addition to an engagement, on supported technology stacks.

## Questions we are asked

### Do AI agents replace human analysts in due diligence?

No. Agents provide complete reading and candidate findings with evidence attached. Analysts confirm the findings, remove false positives and judge what is material to the deal. In our standard engagement an in-house analyst verifies the findings before the report is issued.

### Is our code sent to a public AI model?

No. All analysis runs in Codekeeper's private environment, in the region chosen for the transaction. Nothing is sent to AI vendors and nothing is used for training, and code is built and scanned in sandboxes with no network egress.

### What does a rebuild by agents show?

Every run produces a Rebuild Report, which names what was missing if the build did not succeed. A run that passes adds a software bill of materials (SBOM), an exit workbook and a dated Recoverability Certificate, which is not a compliance certificate. Agentic Verification is an addition to an engagement, on supported technology stacks.
