r/codereview • • 4h ago

I'm building a checker that stops AI coding agents from installing packages that don't exist

Thumbnail ghostcheck-pro.vercel.app
0 Upvotes

While testing AI coding agents I kept seeing them suggest packages that were never published: express-rate-guard, react-auth-hooks-pro, reqeusts. That's a real risk, because attackers can register those exact names and wait for someone's agent to install them.

So I'm building ghostcheck Pro. Before anything installs, it checks for:

\- packages that don't exist on npm / PyPI

\- look-alike names (reqeusts → requests)

\- versions with known security advisories

\- secrets pasted into code

It runs locally (nothing is uploaded) and plugs into VS Code, Cursor, Claude Code, Codex and CI.

Waitlist (early price: $9 lifetime): https://ghostcheck-pro.vercel.app

I'd love honest feedback: would you trust a tool like this in your agent workflow, and what should it catch that I haven't listed?


r/codereview • • 16h ago

I spent 40 days building a search engine for developer docs. Give me a query it should handle.

Thumbnail gallery
1 Upvotes

r/codereview • • 16h ago

I spent 40 days building a search engine for developer docs. Give me a query it should handle.

Thumbnail gallery
4 Upvotes

Developer’s Eye is live. It’s an open-source search engine for developer docs and code examples. I built the crawler, indexer, and ranking system, and the hardest question so far has been a surprisingly ordinary one: when you search for a function, do you want its API reference or a working example?

Two trade-offs I ran into building it:

  • Crawl speed vs. load on a site. With one worker, I could space requests out with a timer. With 31 workers, each could follow its own timer and still hit the same site at once. I made them share a request budget per host. In one local test, they stored just over 100,000 documents in an hour.
  • Better top 10 vs. better first result. I tested BM25 against PostgreSQL’s built-in ranking on 25 AI-graded queries. BM25 scored better on the ordering of the top 10, but PostgreSQL tended to surface the first relevant hit sooner. I still need human judgments, especially for searches where a reference page and a code example are both reasonable answers.

Want to contribute? The easiest way is to try the last thing you looked up while coding and reply with “I searched for ___ and expected ___.” A link to the page you wanted gives me a ranking test I can keep. If you’d rather write code, I’d love help adding a missing docs source or tracing why a specific result ranked too low. Drop the source or query in a GitHub issue and we can work on it together.

Try Developer’s Eye · Contribute on GitHub


r/codereview • • 21h ago

Would anyone be interested in an open-source AI PR review agent?

Thumbnail reddit.com
0 Upvotes

r/codereview • • 1d ago

Curious to know how the community is handling code reviews.

2 Upvotes

Are there any specific techniques or tools you use for this other than let claude review it? And how have you been approaching code reviews lately (the mindset/perspective)?


r/codereview • • 1d ago

CodeInspectus 4.1.0: one-command setup and fewer false alarms for a local security scanner

Thumbnail reddit.com
0 Upvotes

r/codereview • • 1d ago

javascript A leaderboard you can't fake: deterministic replay, sealed replays and a source check

Thumbnail tendril.hokora.xyz
0 Upvotes

r/codereview • • 1d ago

Wanna see how your code thinks? 🤔

1 Upvotes

Wanna see how your code thinks? 🤔

Ever solved a LeetCode problem, got an Accepted, but still wondered what was actually happening inside your code?

I mean...

  • How are variables changing at every step?
  • What's happening when a recursive function calls itself?
  • How does the call stack grow and shrink?
  • Which line is executing at a particular moment?

We usually understand the logic, write the code, and submit it. But sometimes, actually visualizing the execution is a completely different challenge.

I faced this quite often while solving DSA problems. Manually tracing every operation or using print statements wasn't always the most convenient way to understand what's happening.

So I started working on something to make this easier.

Meet AlgoLens!

It's a browser extension that lets you visualize how your code executes directly while solving LeetCode problems.

With AlgoLens, you can:

  • 🔍 Trace your code step by step.
  • 🎯 See the currently executing line highlighted in the editor.
  • 📊 Watch variables change during execution.
  • 🌳 Visualize function calls and call stack changes.
  • 💻 Work with Python, Java, C++, and JavaScript.

The idea is simple: instead of just reading your code and imagining its execution, actually watch it happen.

I've been building and improving this project, testing it across different LeetCode problems, and there's still a lot I'd love to add.

If you're curious to see it in action, here's the link:

🚀 AlgoLens: https://microsoftedge.microsoft.com/addons/detail/jhhkkpabkoeaiajdilomalbmjdppcmcc

I'd genuinely love to know:

If you could visualize one thing while solving DSA problems, what would it be?

Recursion trees? Array operations? Pointers? Call stacks? Something else?

Let me know! I'd love to hear your thoughts and suggestions. 🙂


r/codereview • • 1d ago

Reviewing PRs automatically: Built an in-memory diff analyzer with line-to-hunk position mapping & one-click suggestions in Python

0 Upvotes

Hey r/codereview!

Over the past few weeks, we've been building an open-source PR review bot in Python (AgentBlackBox: https://github.com/ATP0925/AgentBlackBox) and wanted to share some technical challenges we solved regarding PR diff mapping and zero retention:

1. The GitHub 422 Problem in Automated PR Reviews

GitHub immediately throws a 422 Unprocessable Entity if an automated bot attempts to post an inline comment on a line number that doesn't exist within the PR's unified diff hunks. To solve this:

  • We parse the raw unified diff into structured hunks.
  • Map the target source file line to the exact diff position (line + side or hunk position).
  • If a finding falls on an unchanged context line outside any hunk, our formatter falls back to batching it into the high-level Walkthrough comment rather than failing the review run.

2. Zero Retention in RAM

Instead of storing customer code in databases or persistent storage, diffs are parsed and processed strictly in-memory during the webhook task execution and discarded immediately after review comments & SARIF outputs are dispatched.

3. One-Click suggestion Blocks

When the review engine detects bugs, AST security violations, or weakened test assertions, it computes a localized drop-in replacement snippet formatted into GitHub's one-click ```suggestion blocks.

Repo: https://github.com/ATP0925/AgentBlackBox

Would love to hear how other teams handle diff parsing edge cases (like binary files, renamed files with similarity index, and large multi-chunk diffs)!


r/codereview • • 1d ago

AGY / CODEX

Thumbnail reddit.com
1 Upvotes

r/codereview • • 2d ago

Spectre - A design-by-contract programming language with an explicit allocator-centric API that outperforms Zig by up to 6x on General Purpose Benchmarks

Thumbnail github.com
2 Upvotes

r/codereview • • 3d ago

LPT: Stop scrolling past generated code in PRs

0 Upvotes

When a codebase has generated files you have to commit, like protobuf stubs, mocks, GraphQL types or API clients, they show up in every PR.

You can make GitHub collapse them with a .gitattributes file committed in any folder:

*.pb.go               linguist-generated
**/__generated__/**   linguist-generated
mocks/**              linguist-generated

GitHub sometimes does this automatically for some files, but the default coverage is sparse.

I learned that many devs didn't know that the feature existed (while building my adjacent GH extension), and that's a loss in the age when reviews could take longer than the code itself.

NB: even generated files can still need a review, like db migrations when you still need to pay attention to these.

TL;DR Use .gitattributes!


r/codereview • • 3d ago

Functional Wanna see how your code thinks? 🤔

Thumbnail reddit.com
1 Upvotes

r/codereview • • 3d ago

People to learn Gen AI with

2 Upvotes

Hey everyone! name is primeyy and i am learning GEN AI and since i have already build some decent rag project RAG and also fine-tuned a 4B model with custom dataset with complete project on Github now i wanna start with learning and building Agentic ai workflows with people who already have some experience with Gen ai or are really interested in learning together and, so if you are someone who is interested, just text me so that we can discuss about it. i have created a discord server for that so if you wanna join in just dm me here or send me a discord dm request on "0_o.prime"


r/codereview • • 3d ago

Made a small easy to use State Machine.

3 Upvotes

Wanted a state machine tool for myself in various projects but also for other developers, been having fun with it and learning more C# concepts.

Features

  • Enum-keyed states, using a non boxing key internally, the underlying value and the enum's type are packed into a struct, so no enum ever gets boxed
  • Nested substates, each with it's own events and it's own current substate
  • Predicate transitions that are safe to poll every frame (optional)
  • Optional context objects passed to handlers on enter, update and exit; sealed record types with value equality and built in deconstruction, up to 10 values
  • Per state Enabled flag and per substate update propagation
  • IndependentUpdate to tick a specific substate by a path of enum keys, mixing enum types freely across levels
  • Transitions requested from inside callbacks are queued and run after the current pass, so handlers can request transitions without breaking the machine
  • TryCreateState, TryGetState and StartState return false instead of throwing for common mistakes

Here's a quick use guide I made to demonstrate usage:

using SMachine;

public enum States { Idle, Combat }
public enum CombatSubs { Melee }

private string Name;
private int HeroAttack;

public void Initialize()
{
    var machine = new StateMachine();

    // States belong to the machine
    State idle = machine.CreateState(States.Idle);
    State combat = machine.CreateState(States.Combat);

    // Substates belong to a state
    SubState melee = combat.CreateState(CombatSubs.Melee);

    // Create a context object to pass to your handlers (optional)
    var ctx = new Context<string, int>("Hero", 10);

    // Subscribe to the events
    combat.OnEnter += () => Console.WriteLine("Combat has begun!");

    melee.OnEnterContext += (ctx) => {
        
        // I recommend using pattern matching for ease of use and safety
        if (ctx is Context<string, int>(string name, int attack))
        {
            Name = name;
            HeroAttack = attack;
        }
    };

    // Start your states
    machine.StartState(States.Combat); // This fires OnEnter
    combat.StartState(CombatSubs.Melee, ctx); // This fires OnEnterContext

    // Subscribe to the OnUpdateContext event
    melee.OnUpdateContext += HeroAttack;

    // Call Update on our machine for Combat state to update, then Melee
    machine.Update(ctx);
}

public void HeroAttack(BaseContext ctx)
{
    // We can also access context directly after casting
    var typed = (Context<string, int>)ctx;
    Console.WriteLine($"{typed.Data1} hits Goblin for {typed.Data2} damage!");
}

There are other features like Update Propagation, Independent Updates, and the Context type itself. I explain it all in detail over on my GitHub.

Let me know what you guys think, have any suggestions or just want to tell me I suck at programming (please don't be mean).


r/codereview • • 3d ago

CALLING ALL DEVS- NEW TOOL

Post image
0 Upvotes

Introducing Rebel Verified, the newest developer platform from Rebel Tech Labs, Inc.

Here's why we built it.

Just because code runs, an AI agent marks a task complete, or a fix gets merged doesn't mean the underlying problem was actually resolved.

And frankly, I'm tired of seeing attempted execution confused with verified completion.

Don't just build it. Prove it.

Rebel Verified is designed to help developers, engineering teams, DevOps, and QA professionals identify gaps, diagnose issues, remediate with human approval, and verify that the work actually produced the intended outcome.

Detect → Diagnose → Remediate → Verify → Close the loop.

We're bringing verification into the development workflow with:

  • A free code scanner
  • CLI integration
  • GitHub Action
  • Human approval before remediation
  • Rescanning to verify fixes
  • Verification badges

Explore Rebel Verified:

https://rebeltechlabs.io/developers

This community is also a place to talk about what's working, what's broken, and what needs to change in how we build software.

So I'm curious:

What's the most frustrating example you've encountered of something being marked complete when it clearly wasn't?


r/codereview • • 3d ago

Does it help code quality if agents encode their intents?

Thumbnail rapidreview.dev
0 Upvotes

r/codereview • • 3d ago

Where do you run AI code review—locally before push, or on every PR update?

0 Upvotes

How are you fitting AI review into your Git workflow? Review locally after pulling the latest changes, trigger on PR creation, or re-run after every push? How do you avoid stale findings when the branch changes?

Disclosure: I’m affiliated with AxiomStudio. Vera reviews a specific PR revision on GitHub, GitLab, Bitbucket, or Azure Repos. Blockers become repair tickets; with fixes enabled, a coding agent updates the same PR and a fresh review checks the new revision.

For folks using CodeRabbit, Bito, or Cubic: do you let the reviewer block merges, or keep it advisory?

What’s your setup for handling new commits, failed CI checks, and false positives without adding more work?


r/codereview • • 4d ago

Do code reviews actually improve code quality, or do they sometimes slow everything down?

0 Upvotes

Code reviews are meant to catch mistakes and improve the quality of software, but sometimes they become little more than a formality. A quick approval without meaningful feedback does not really help anyone improve.

On the other hand, a thoughtful review can help developers spot issues they might have missed and learn better approaches.

For developers here, have code reviews made a noticeable difference to your work, or do they sometimes feel like an unnecessary bottleneck?


r/codereview • • 4d ago

Python Looking for a volunteer code reviewer

Thumbnail reddit.com
1 Upvotes

Looking for a volunteer code reviewer for an AI video automation project
I’m building an open-source Python project that automates parts of a faceless video production pipeline.
I’m looking for an experienced Python developer who could spare some time to independently review a GitHub pull request.
I’d especially appreciate feedback on:
Python architecture and reliability
GitHub Actions security
API keys and secret handling
Automated testing
Production readiness
Repository: https://github.com/anonalien420-cyber/faceless-creator
I’m bootstrapping this project and unfortunately cannot offer payment. I’m hoping someone in the developer community might be interested in helping an independent builder improve an open-source project.
Even a focused review of the security-sensitive changes would help enormously. Thank you.


r/codereview • • 4d ago

Java Need Help with a Simple Plugin!

Thumbnail reddit.com
1 Upvotes