A SECOND OPINION FOR YOUR CODEOPEN SOURCE

Catch the bug.
Before it
ships.

Find likely runtime failures in JavaScript and TypeScript. Give your coding agent the context to see what it missed.

Seven MCP tools. The model CLI you already use.

TS reserveStock.tsSOURCE / 01
18const onHand = await getStock(sku);
19
20if (onHand < qty) {
21 return {ok: false, remaining: onHand};
22}
23
24await recordReservation(orderId, sku, qty);
25
26await setStock(sku, onHand - qty);
27
28return {ok: true, remaining: onHand - qty};
One await. Two callers. A race.
Likely failure foundL26
Stock can oversell.

Concurrent calls read the same quantity.
The last write wins.

race_conditionscore 0.82
A REAL FINDING FROM THE DEMO
LESS GUESSWORK. MORE CONTEXT.Scroll to explore

Fits the way
you already build.

Claude Code
Codex
GitHub Copilot
YOUR CLI.
YOUR MODEL ACCESS.

THE WORKFLOW

A little context.
A much better review.

From the first signal to the second opinion.
Follow one real bug through the tool.

01

scan_project

Find your starting point.

Scan the project for risk signals. See which files have the most going on, before spending a model call.

02

map_dependencies

Put the code in context.

Follow the imports. See who calls a file and which tests connect to it, so a local change gets a wider review.

03

predict_failures

Ask for the failure.

An independent model checks the code. Here, two concurrent reservations can read the same stock and overwrite each other.

04

predict_failures

Fix it. Check it again.

Move the stock check and decrement before the await. Re-check the file, then test the behavior across the feature.

01 / 04 SCROLL TO CONTINUE

Skip to the results
predictive-debuggerRECORDED SESSION
› scan_project demo/src
FILERISK DENSITY
auditLog.ts3 async boundaries · 1 branch
0.58
reserveStock.ts3 async boundaries · 1 branch
0.51
stockStore.ts1 async boundary · 1 branch
0.35
formatMoney.tscyclomatic complexity 1
0.05
priceCart.tscyclomatic complexity 1
0.02

5 source files scanned · no model call

Risk density helps prioritize reading. It is not a probability that a file contains a bug.

Actual v0.8.1 output · Claude provider · September 2026
Read the tool reference

MEASURED / V0.9.0

More signal.
Fewer tokens.

Same 49 files. Three coding agents.
Compare an agent reading the code with an agent using Predictive Debugger.

24 bugs · 25 clean files · 2 sessions per setup
Claude Code

38%

fewer tokens than direct reading

CLI 2.1.283 · Sonnet

Tokens / session lower is better
Agent reads files279k
With v0.9.0173k
Detection across both sessions
SetupBugs / 24False alarms
Agent reads files21, 210
With v0.8.221, 210
With v0.9.021, 220

One more bug found across two sessions than direct reading. 78% fewer tokens than v0.8.2.

GitHub Copilot

32%

fewer tokens than direct reading

CLI 1.0.82 · Sonnet

Tokens / session lower is better
Agent reads files883k
With v0.9.0598k
Detection across both sessions
SetupBugs / 24False alarms
Agent reads files20, 201
With v0.8.222, 240
With v0.9.022, 220

Two more bugs per session than direct reading. v0.8.2 found two more across both sessions, at 2.5× the tokens.

Codex

69%

fewer tokens than direct reading

CLI 0.157.1 · GPT-5.6 sol

Tokens / session lower is better
Agent reads files1.01M
With v0.9.0308k
Detection across both sessions
SetupBugs / 24False alarms
Agent reads files22, 210
With v0.8.2——
With v0.9.023, 232, 0

23 of 24 bugs found in each session. Two false alarms in the first, none in the second. v0.8.2 could not run with approvals off.

Tokens include the calling agent and every model call made by the tool, averaged over two sessions. All charts use the same scale. Bug counts show each session; false alarms are totals unless shown separately. The answer key informed development except for 12 held-out files. These results describe this benchmark, not accuracy on every project. CommonJS context and verdict caching shipped after these measurements.

Full results & limits Test method

A SMALL, FOCUSED TOOLKIT

Seven tools.
Better questions.

Local analysis narrows the search.
An independent model gives you another view.

01Local
scan_project

Know where to look.

Rank source files by risk density. Start with the code that deserves a closer read.

02Local
analyze_file

Read the signals.

Inspect complexity, async boundaries, and the signals behind a file’s risk score.

03Local
map_dependencies

Follow the connections.

Trace imports, reverse imports, and connected tests back to their source lines.

04Model call
predict_failures

Get a second opinion.

Ask an independent model for likely runtime failures, with a line number and a reason.

05Local
analyze_logs

Make sense of the logs.

Surface unusual log entries, ranked by severity and unusual wording. Requires Python 3.

06Local
list_providers

Check your connection.

See which supported CLIs are installed and check their sign-in status.

07Local
check_types

Check the types.

Get compiler diagnostics for selected JavaScript and TypeScript files. No model call needed.

Parameters, outputs, and limits
BUILT TO HELP YOU REVIEW

A useful signal.
Your judgment still matters.

How we evaluate it

CURRENT VERSION / V0.9.0

A closer look at
what changed.

New features, fixes, and the details behind every release.

Explore the changelog

YOUR NEXT REVIEW

Give your agent
a second set
of eyes.

Add the MCP server. Restart your agent.
Ask it where your code might fail.

Full setup guide
01 / CONNECT THE TOOL
claude mcp add --scope project predictive-debugger -- npx -y predictive-debugger@latest

Adds the server to this project. Use --scope user for every project.

02 / START A CONVERSATION

“Use Predictive Debugger to find the riskiest files in src/.”

Node.js 22+ · A supported CLI, installed and signed in.
Prediction calls use your CLI’s model access and allowance.

A FEW DETAILS

Before you start.

Does my code leave my machine?

Static analysis, dependency maps, and log analysis run locally. Predictions send source and bounded dependency context to your CLI’s model provider. Credentials stay with your CLI. See the security model.

Do I need a separate API key?

No. Predictions use the Claude Code, Codex, or GitHub Copilot CLI you are already signed in to, including its usage allowance.

What code can it review?

JavaScript and TypeScript, including JSX, TSX, and decorators. Vue and Svelte single-file components are not supported. Files over 4 MB are rejected, and large predictions may cover selected declarations. See the tool reference.

Does it replace tests or code review?

No. Risk scores and predictions can be wrong. A clean verdict on one file does not prove a feature works. Use the findings to guide your review, then verify behavior with tests and the surrounding code.

Is there a VS Code extension?

There is an experimental extension that can show findings in the Problems panel. It currently requires a local build and is not on the Marketplace. Try the VS Code preview.