r/codereview • • 4h ago

Seeking Independent Supabase / PostgreSQL Security Reviewer — Small Business POS Project

1 Upvotes

Seeking Independent Supabase / PostgreSQL Security Reviewer — Small Business POS Project

I am developing BiteBox POS V3, a multi-outlet food business management system using React, TypeScript, Supabase and PostgreSQL.

I am looking for a qualified independent security reviewer to assess our existing security implementation and verification evidence.

Required expertise:

  • PostgreSQL Row Level Security (RLS)
  • Supabase Auth and JWT security
  • Multi-tenant data isolation
  • SECURITY DEFINER functions and RPC authorization
  • REST API, GraphQL and CORS security
  • Browser authentication and session management

We have already prepared detailed security evidence, test reports, a reviewer package and an outstanding verification worksheet.

Required deliverable: An independent written assessment with findings, evidence requirements, a scoped clearance decision and reviewer signature.

This is a review-only assignment. No production access, hosted testing, configuration changes or credentials will be provided under the initial scope.

As a small self-funded business, I am seeking pro bono assistance or an affordable fixed-price review.

Please contact me privately with your relevant experience and proposed terms.


r/codereview • • 5h ago

Python Built a app which create video and upload it yt and insta

Thumbnail github.com
0 Upvotes

I built a CPU-only pipeline for YouTube Shorts and Instagram Reels. The latest fix lets it swap broken 3D scenes for real footage and repair a single bad callout without scrapping the whole script. All 122 offline tests pass. Curious how others handle flaky AI output in video workflows. No i am out of ideas what to do ? my goal was keep cost near zero.
I have given a sample video. still need lot of works


r/codereview • • 4h ago

We compared 13 LLMs for code review

Post image
0 Upvotes

I work at Kodus, an open-source AI-powered code review tool.

We maintain an open benchmark that measures how many bugs each AI model catches in real-world PRs, the accuracy of its suggestions, and the cost per bug found.

I wanted to share some results that I found particularly interesting.

So far, we've tested 13 models across 30 PRs from open-source projects, identifying 121 confirmed bugs.

Here are some highlights:

  • Kimi K3.1 Pro: caught 68.6% of all bugs.
  • GPT-6.1 Sol: achieved the highest precision at 62.6%.
  • DeepSeek V4.1 Flash: caught 40.5% of all bugs at just $0.134 per PR.

DeepSeek was the biggest surprise for me. It found 49 bugs, compared to 51 found by Claude Opus 5.5, while costing less than one-fifth as much per review, although it also generated more false positives.

Another interesting takeaway is that even Kimi, the top-performing model, missed more than 30% of the known bugs.

I think that's worth keeping in mind, especially as we're increasingly relying on AI to write code.

If you're curious, we've made all the results and our methodology publicly available here:

https://www.codereviewbench.com/

What about you? Are you using AI for code reviews? Which tools or models have been working best for you in your day-to-day workflow?


r/codereview • • 11h ago

Constraints are great for agents

Thumbnail npmjs.com
1 Upvotes

I loved the code that was generated when I introduced a strict set of linting rules and wondered what could be done to enforce code styles that could not be statically checked.

JEV seemed like a good evaluation model to use. So that's what I did. I created rulebook to define the type of rules that can't be checked by a linter.

Define your rules, thresholds, and hook it up to your CI, precommit, or just as a sanity check and watch it guide your agent to the code that you want it to produce.

Any feedback would be greatly appreciated.

P.S you need access to JEV. I use opencode GO


r/codereview • • 19h ago

Please peer review my debian terminal emulator 'terminal9'

0 Upvotes

I need some peer review for my programs code and the program itself, focusing on the root helper. Please review and submit findings here or to 0hex01@primarymail.org. You can find the code here...https://github.com/0hex01/terminal9-2.5. There is a binary called 'terminal9' that can be downloaded and run just to test the emulator. Be sure to read the README, NETWORK, SECURITY, and CHANGELOG to get an idea of how to test. Thanks!


r/codereview • • 1d ago

External (AI-assisted) code-reviewer behaving as maintainer

1 Upvotes

Hi all,

I'm one of the two main developers of an open-source library for simulation. Together with the other main developer, I take care of all the PR reviews and usually we know about the PR developments before they are opened, as we have a rather small community where people know each other and talk to each other and with us online.

The problem

Since some weeks, we have received PR reviews (without approval right) from an external person (outside our "developer role" group). The reviews are AI-generated by and published by the person itself (this declaration is in the comment). In general, the tone of the comments is in the lines of:

\- "thanks for this contribution"

\- "could you add a test for X?"

\- "could you split this file?"

\- "could you add this to the docs?"

To me (and maybe I'm wrong) the tone of voice is more of an admin or a main developer, than one of an external reviewer.

Moreover, we simply do not agree with all the points brought up. Many points make sense, of course because AI compiled the code locally etc., but we do not always require extra tests, for example. Having someone suggesting extra tests, requires us (the main devs) to review the PR, and review comments we did not ask about and which we disagree with.

My questions

What would be a good way to handle this? We have been thinking about: a) allowing PR reviews and comments only from within the community; b) rejecting comments and reviews from this specific person (a block); c) adding no new rules. For option b and c we would reach out to the person, explaining that we don't appreciate their reviews.

Our core values are to be an open community (especially in our field, it's not given for granted), and if we restrict reviews from external contributors it seems we give in on our open character. However, we consider the current situation out of control, and we have also received negative feedback from our community about this reviewer.

Thanks in advance for your advice 🙏🏻


r/codereview • • 1d ago

Code reviewing Claude augmented development

Thumbnail reddit.com
0 Upvotes

I asked a question about reviewing before, I am trying to ask it differently this time to analyze the bottleneck better. I myself am a developer and I appreciate the code reviewing and manual inspection and testing/verifications.

So with all the AI tooling that helps you write code much faster, how can we really expedite our shipping?

I mean we know that the prompt and context is coming from me. So I can make mistakes and AI can later make mistakes in transforming my prompt into code.

Now if we develop code so fast with Claude, we write the tests with it, then we verify manually, and we self-review to better understand the generated code. We cannot still ship faster than before, since piles of PRs/MRs are accumulated there for review, and we heavily (and correctly) rely on senior ones to review before you get the confidence level to push.
I am not saying reviewing is not critical and I am not saying no human in the loop.

The question is how to expedite shipping here?

How can you help a senior dev to review your stuffs faster, so you ship faster. The question is not to remove the review off the table here


r/codereview • • 2d ago

Automated code review shouldn't be a text generation problem

Post image
0 Upvotes

I've been questioning whether general-purpose LLMs are the right tool for enforcing repository-specific engineering rules.

Take a rule like "database migrations must remain backward compatible."

I don't necessarily need a model to generate a review. I need to know whether the change violates that specific rule.

While building Agentests, I've been experimenting with a different approach:

  • Deterministically identify relevant changes.
  • Break engineering rules into small, testable assertions.
  • Use specialized decision models like Jev when semantic judgment is necessary.

Each assertion can have its own passing and failing examples, making it possible to measure the reliability of the check itself.

Rather than asking a model to find everything potentially wrong with a PR, I'd prefer to verify what the engineering team explicitly decided was important.

Not every code review needs generative intelligence. Sometimes all we need is a reliable judgment.


r/codereview • • 2d ago

I built an open-source Claude Code plugin that reviews PRs and then fixes its own review comments. Looking for feedback

Thumbnail github.com
0 Upvotes

I've been building code-check, a Claude Code & Codex plugin plus a Python CLI for PR review and review-comment handling. Works with Github and Gitlab. I'd like feedback from people who'd actually use it.

The design. The deterministic parts are plain Python: diff parsing, finding validation, dedupe, anchoring comments to the right lines, policy, state, and the git and gh calls. The LLM does only the judgment work: reviewing, aggregating, and addressing comments. That keeps a model slip from putting a comment on the wrong line or posting to the wrong PR.

What it does:

review-pr and review-local: a panel of reviewer subagents (language experts, skeptic, architect, docs, and optional security and performance) reviews a PR or your own branch. An aggregator merges the findings, and one inline review is posted with Critical, Warning and Suggestion levels. review-local never posts.

address-comments: works through the review threads on your own PR. It checks each claim against the code before acting, fixes the valid ones, pushes back with evidence on the rest, and pushes behind a test gate. It also merges the base branch (never a rebase) and fixes failing CI, then replies to and resolves each thread.

babysit-pr: loops the above under /loop. It stops after 5 rounds per PR and skips PRs that are down to a few Suggestions, because the late rounds were almost all nitpicks.

Project guidance: a CODE_CHECK.md in the repo tells the reviewers your rules. It's read from the base branch, so a PR can't rewrite the rules it's judged by.

Safety defaults: it never force-pushes, never posts to draft PRs, and doesn't review its own PRs. Anything from a PR that reaches git or gh is guarded against option injection.

Feedback skill: it files a GitHub issue about code-check only after you've read the exact text and said yes. It never asks when running unattended.

Honest limit. I haven't tested it extensively on codex or gitlab - only limited testing.

What I'd like feedback on:

  1. Does the split between deterministic code and LLM work make sense, or is it over-engineered?
  2. Would you trust something like address-comments to push to your PR, and what guardrails would you want?
  3. What would make you turn the review noise off, and what's missing from the panel?

Repo: https://github.com/subhiandrews/codecheck

Happy to answer questions or take criticism.


r/codereview • • 2d ago

Better code review tool

Thumbnail diffie.app
0 Upvotes

I was frustrated with the poor review tooling for the pile of agentic code.

So I built a better one:
https://diffie.app/

It helps to focus on commits that are important and has agentic skill for integrating, that let the agent answer back and address your concerns.
Also basic PR (github) integration is there.
GitHub stacks are in the making and more guidance features as well.
Let me know what your pre-PR code review and change flow. Maybe I can add useful features.


r/codereview • • 3d ago

When building your SaaS, how do you decide a PR is safe to merge? We tried to build a bridge so it helps your team works more seamlessly.

Thumbnail gallery
0 Upvotes

Hi everyone! We're a group of developers.

Our pain point is usually how to communicate better when reviewing each other's PRs. Sometimes something breaks, and the comment that would have caught it was never written.
Also the security & privacy is a crucial point these day.

So we've been building something called EasyMerge.
It's an AI code review tool for GitHub teams. It reviews every pull request, whether it's written by you or your AI agent, and leaves findings you can act on before you merge.

We know this idea isn't new but we are trying something that actually helps you, not just reaching to your wallet. There's a lot to improve. But we're curious what you guys think. How do you work with GitHub, and how do you decide a PR is safe today? easymerge.dev (the beta is open, and it's free!)


r/codereview • • 3d ago

C# AI-code review and thoughts on how AI may improve or degrade the quality of your codebase

0 Upvotes

Short introduction:

Recently, my team has started relying heavily on AI in the review phase. The developers already use AI in planning and implementation of work items.

The general workflow can be summarized to:

  1. Analyze work item and read repo to create a research.md
  2. Developers review the research file and make their changes if neccessary.
  3. Developer uses claude to create a implementation plan. When implementing complex features or altering complex behaviour, we often use matt pococks grill-me skill.
  4. Developers review the implementation plan.
  5. AI implements.
  6. Developer tests

At this point, the next natural next step is code review and this is where things starts getting interesting.

My main "ick" is this:

"an ai implements, and then an ai reviews, then an ai reads the review comments and then 'that'-ai changes"

But of course, all developers still review the "AI-review" and reads through it but....

To me this feels a lot like: Ai implements, ai reviews, ai edits after review.

Another issue is that when I run a pr-review skill on my machine -> ai comes with feedback -> I fix these things -> send pr to another developer -> the other developer runs pr-review -> comes up with more feedback...

Over time, Ive noticed that the quiltiy of the codebase might start degrading because we act on a bunch of nit pick and hardening for "impossible-scenarios"..

Like, there is no determinism here, run the flow 10 times and get 10 different results.

Anyone else that shares my experiences and has come up with some solution for this?


r/codereview • • 3d ago

What should automated code review check that traditional linters don't?

1 Upvotes

I audited 20 open-source repos against their AGENTS.md rules.
Four explicitly ban AI co-author lines. Agent PRs added them anyway, 102 times in a month.
But, a simple grep caught 80% of those violations.

I've been experimenting with an additional layer of checks for repository-specific rules:

  • Deterministic checks wherever possible.
  • Narrow semantic judgments when necessary.
  • Only flag violations of explicitly defined rules.

The idea is to avoid generic AI review comments and instead enforce what the team actually decided.
I'd love feedback from peeps that struggle to enforce rules through existing linters.


r/codereview • • 3d ago

Code Review Request: NSIGII — Experimental Cross-Language File Format

Thumbnail gist.github.com
0 Upvotes

Hi everyone,

I'm developing NSIGII, an experimental file format under the OBINexus project. I'm looking for an independent technical review of the implementation and its architecture.

The objective is to create a file format that can be generated and interpreted by different programming languages without depending on one particular runtime.

For example:

  • Python generates an NSIGII file.
  • Rust reads and decodes the same file.
  • JavaScript interprets the decoded data.
  • All implementations should produce consistent results.

Code / implementation:

https://glot.io/snippets/honlru9opy

What I'd particularly appreciate feedback on:

  1. File structure: Is the header and binary layout sensible?
  2. Serialization: Is the data representation clear and unambiguous?
  3. Compression: Is the compression and decompression approach appropriate?
  4. Parsing: Are there potential edge cases or malformed-file vulnerabilities?
  5. Interoperability: What would be needed to make independent language implementations reliable?
  6. Maintainability: Is the implementation structured well enough to evolve?
  7. Testing: What additional tests would demonstrate that the format works correctly?

I'm particularly interested in feedback from people experienced with systems programming, binary formats, compilers, serialization, and cross-language development.

I'm not looking for approval of the concept. I'd genuinely appreciate criticism, alternative approaches, and suggestions for improving the implementation.

Thank you!


r/codereview • • 4d ago

Assay pr-agent

0 Upvotes

Based on the popular pr-agent, we created our own.

https://pr-agent.assay.guide/

It's similar, where it's a single pass token budgeted review, but has a few more bells & whistles.

Runs against Gitlab & GitHub, including enterprise instances.

No webhooks

Has 3 review sizes (review,. mid, large ) with larger budgets and increasing checks

A visual review (thank you thorchain) so you can see what the change is

And it runs a series of static checks and feeds them in to give the agent more information.

Currently focusing on the Shepherding aspects.

Love feedback on what it can do better, or even xxx does all this and more would be appreciated.


r/codereview • • 3d ago

AI code review is terrible

0 Upvotes

Is anyone else ignoring the automated AI code review comments on pull requests?

I find most dev's completely ignore them. The agents writing the code often have a review process enabled so most of the glaring bugs are already caught there.

At worst, it creates even more work for reviewers who are already struggling to keep up.

I'm exploring whether short, animated walkthroughs of PRs could help reviewers build context faster.

But i'm curious how others are dealing with the increased review burden.

trycodeclip.com


r/codereview • • 4d ago

PR Story Mode: Smart Code Review

Thumbnail github.com
1 Upvotes

With AI rapidly increasing the volume of code produced, review has consistently turned into one of the biggest bottlenecks in shipping software.

I built PR Story Mode to help with that. It's a free, open source Chrome extension and CLI that takes a GitHub pull request, sorts the changes into logical steps, and walks you through them with explanations. You use your own API key, there's no server or tracking, and an average PR costs around ten cents.

Feedback welcome!

Chrome Extension: https://chromewebstore.google.com/detail/pr-story-mode/cpjdcnhddbojekjfbngjpkiiealhbkam?hl=en&authuser=0

Github: https://github.com/egbenedict/pr-story-mode


r/codereview • • 4d ago

built a Unix shell in C — P-Shell: A shell that shows its work

2 Upvotes

**I built a Unix shell in C — P-Shell: A shell that shows its work

I've been working on P-Shell, a Unix shell written in C, to understand what happens behind the commands we use every day.

Some of the things I've implemented:

  • Process creation and execution using "fork()", "execvp()" and "wait()"
  • Built-in "cd" command
  • Pipes and I/O redirection (">", ">>")
  • Process inspection using "/proc"
  • Process-related commands such as ":process", ":zombie" and ":reap"
  • ":explain" for understanding command execution

The goal was to learn systems programming by building something real rather than just studying the concepts.

I'd appreciate feedback, especially on the architecture, implementation and areas that could be improved.

GitHub:** https://github.com/punithk-verse/p-shell

Build. Break. Learn. Repeat.


r/codereview • • 4d ago

Built a lightweight Flask + AI debugging helper to break down code errors — looking for feedback on my approach

Post image
0 Upvotes

r/codereview • • 4d ago

Experiences with Gemini Neon as code-reviewer?

Thumbnail reddit.com
0 Upvotes

r/codereview • • 5d ago

I built an MCP server that makes Claude check whether anyone understands the code before it edits it

Thumbnail gallery
0 Upvotes

r/codereview • • 5d ago

Just because I'm curious

1 Upvotes

First I have no intention of bricking my Nook Glowlight 3 and actually trying this bash script suggested by Brave AI. Now that that is it of the way, I'm planning on rooting said EReader so I can install a custom launcher and all that. While figuring out the steps I needed to take the Brave Assistant kept trying to help, so I thought I would see if it could write a script that would auto complete the rooting process and to my surprise it came back with...

#!/bin/bash

set -e

clear

echo "=== Nook GlowLight 3 Root Script ==="

echo "1. Enable USB Debugging on the Nook first."

echo "2. Plug it in and authorize when prompted."

echo "3. Press Enter when ready..."

read -p " > "

--- Install ADB if missing ---

if ! command -v adb &>/dev/null; then

echo "Installing ADB..."

sudo apt update -qq

sudo apt install -y android-tools-adb

fi

--- udev rule ---

RULE='SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"'

if ! grep -q "2080" /etc/udev/rules.d/51-android.rules 2>/dev/null; then

echo "$RULE" | sudo tee /etc/udev/rules.d/51-android.rules

sudo udevadm control --reload-rules

echo "Udev rule added. Unplug & replug the Nook, then press Enter."

read -p " > "

fi

--- Wait for device ---

echo "Waiting for device..."

adb wait-for-device

DEV=$(adb devices | grep -w "device" | head -1 | awk '{print $1}')

if [ -z "$DEV" ]; then

echo "ERROR: Nook not detected. Check cable/port."

exit 1

fi

echo "Device found: $DEV"

--- Download & patch root script ---

cd /tmp

if [ ! -d "rooting-nook-glowlight" ]; then

git clone https://github.com/wmahfoudh/rooting-nook-glowlight.git

fi

cd rooting-nook-glowlight

Remove model-number check (the critical fix)

sed -i '/BNRV510/d' rootnook.sh

sed -i '/BNRV520/d' rootnook.sh

Comment out the if-block that tests model

sed -i 's/^if.model./# &/' rootnook.sh

chmod +x rootnook.sh

--- Run root ---

echo "Starting root..."

./rootnook.sh

--- Boot animation fix ---

read -p "Root complete. Fix boot animation bug? [Y/n] " ans

if [[ "$ans" != [Nn]* ]]; then

echo "Rebooting Nook and removing bootanimation..."

adb reboot

adb wait-for-device

adb shell "su -c 'mount -o remount,rw /system && mv /system/bin/bootanimation /system/bin/bootanimation.bak'"

adb reboot

echo "Done. Nook is rooted."

else

echo "Skipping boot animation fix."

fi

So I'm genuinely curious if this would auto complete the root?


r/codereview • • 5d ago

Code review: claiming a filesystem lock for an npm module installer

1 Upvotes

I maintain create-tigra, an MIT npm generator, and would appreciate a focused review of its optional-module installer. Two CLI processes must not modify the same project at once. The installer writes an owner file into a candidate directory before renaming the nonempty directory into the lock location.

Excerpt from lib/installer-transaction.js:

await writeFile(path.join(candidate, mine), '', { flag: 'wx', mode: 0o600 });
const lock = await projectPath(root, INSTALL_STATE, 'directory');
if (!lock.stat) {
  try {
    await rename(candidate, lock.file);
    return lock.file;
  } catch (error) {
    if (!(await projectPath(root, INSTALL_STATE, 'directory')).stat) throw error;
  }
}

The full function then inspects the owner PID and attempts recovery only for a dead owner, claiming its unique filename with another rename.

What concurrent interleaving would you test first? Are there platform-specific rename or process-liveness assumptions that should be made explicit? What would you simplify while preserving crash recovery?

Suggestions, honest feedback, and a roast of the code are welcome. The repository documents known dependency advisories separately; I am asking about this locking/recovery boundary, not asserting that passing tests proves it safe.


r/codereview • • 6d ago

PostgreSQL persistent task queue: concurrency, idempotency and restart recovery

2 Upvotes

Hello everyone,

I'm extending an existing Python application that uses PostgreSQL and Supabase for multichain blockchain research.

We have implemented an offline candidate queue with duplicate prevention, retry limits, expiration and restart recovery.

During testing, we identified a potential issue where a stale processing result could affect a newly queued instance of the same candidate.

I would appreciate technical guidance on:

  • Using FOR UPDATE SKIP LOCKED for concurrent processing.
  • Preventing stale worker results through unique claim identifiers.
  • Maintaining idempotency and reliable restart recovery.
  • Choosing appropriate indexes and expiration strategies.

Would a dedicated PostgreSQL queue table be the recommended approach?

Any technical feedback or suggestions would be appreciated. Thank you.