// code mentor · local AI

Your code mentor,powered by AI.

Paste your code and get detailed technical feedback: bugs, performance, and style. No API key. Your code is never executed.

No API keyCode never executedLocal server AI
getTotal.jsBugs
Local AI

Two logic errors found. The loop reads past the end of the array.

Off-by-one in loop boundCritical

<= items.length reads past the array. The last iteration accesses undefined.

Line 3
Unsafe property accessMajor

items[i].price throws if any item is missing the price field. Validate inputs first.

Prefer Array.reduceInfo

items.reduce((s, x) => s + x.price, 0) expresses the intent more clearly.

No API key

The AI runs on a local server. No account or API key required.

Private by design

Your code is analyzed as data, never executed. Saved to your history only if you sign in.

Local AI

Ollama runs on the server. No API costs. No third-party dependencies.

workflow

From pasted snippet to useful review in three steps

The experience is designed for practicing code review without preparing repositories, branches, or simulated pull requests.

01

Paste a snippet

Use the editor to paste real code or load a sample. The app treats it as text, not as executable input.

02

Choose the focus

Ask for a general review or focus the analysis on bugs, security, performance, testing, or architecture.

03

Learn from the feedback

Get a summary, prioritized findings, and practical suggestions for improving the code.

Choose the kind of review you need

Each mode steers the response toward a specific technical review skill, from spotting bugs to thinking about design.

General

A balanced review for getting a first read on the code.

Clean code

Flags unclear names, duplication, readability issues, and small design choices.

Bugs

Looks for logic errors, edge cases, and unexpected behavior.

Security

Reviews common risks such as weak validation, data exposure, or over-trusting inputs.

Performance

Finds expensive operations, avoidable loops, and opportunities to simplify.

Architecture

Analyzes responsibility boundaries, coupling, and clarity between layers.

Testing

Suggests test cases and scenarios that help build confidence.

mentor, not judge

Feedback designed to explain the why

The goal is not only to find issues: it is to help you practice the reasoning behind a real technical review.

Explains the impact

Each finding should make clear what happens, why it matters, and when it can become a problem.

Prioritizes what matters

Severity levels help separate small improvements from risks worth fixing first.

Suggests a direction

Suggestions are written so you can act, compare alternatives, and improve your judgment.

code safety

Designed to analyze code without executing it

The app keeps review, persistence, and AI boundaries separate. Pasted code is treated as untrusted input.

No execution

No eval, compilation, or execution is performed on user-submitted code.

Server-side AI

The Ollama request runs on the server side so internal details are not exposed to the client.

Optional history

Reviews are saved to history only when the user signs in.

No public AI costs

The MVP uses local AI by default and does not pass external provider costs to the owner.

ready to try

Start with a small snippet and train your review judgment

Paste code, choose a focus, and compare the response with what you would have commented in a real review.

Review code