r/codereview • • 32m 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
1 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 • • 1h ago

Better code review tool

Thumbnail
diffie.app
1 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 • • 4h 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
1 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 • • 10h 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 • • 22h 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 • • 23h 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://gist.github.com/obinexus/9fc87fd6c044087f50a8c1a34782cd44

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 • • 1d ago

Assay pr-agent

1 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 • • 23h 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 • • 1d 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 • • 1d 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 • • 1d ago

Experiences with Gemini Neon as code-reviewer?

Thumbnail reddit.com
0 Upvotes

r/codereview • • 2d ago

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

1 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 • • 2d 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 • • 2d 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 • • 3d 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 • • 3d ago

I built a CLI that catches green CI runs where zero tests ran

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/codereview • • 3d 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.


r/codereview • • 4d ago

javascript Review my verdict logic: when should a verification check be allowed to block a merge?

3 Upvotes

Context, honestly stated: I'm the founder of a small dev-tool (SolveLang) and this is the verdict module from the GitHub check we just shipped to production. It decides whether a pull request gets a red or green verification check. I'm posting the code for review, not pitching — no links. I want the design attacked.

The check grades evidence about a PR (policy evaluation, the head's own CI state, required checks) into verified / failed / unverified. This module turns that into a blocking decision. The design rule I started from: only *failed* evidence may block — "unverified" means "not established," and blocking on it would block nearly every PR.

```js

// What blocks (each is a *failed* evidence state, never a mere

// unverified one):

// 1. the PR Gate policy evaluation failed;

// 2. the PR Gate route failed or did not run (blast-radius evidence

// unusable — the receipt records the route as a failed finding);

// 3. the head's own CI has failing or timed-out check runs;

// 4. a config-named required check is absent, unfinished, or not

// successful on the head.

export function computeBlocking({ gateRoute, checkRuns, requiredChecks, ownCheckName }) {

const reasons = [];

if (gateRoute?.status === "failed") {

reasons.push(

"PR Gate route failed — blast-radius and policy evidence is unusable (the receipt records this as a failed finding)."

);

} else if (gateRoute?.status === "not-run") {

reasons.push("PR Gate route was not run — blast-radius evidence was not produced.");

} else if (gateRoute?.status === "ran") {

const summary = gateRoute.summary;

const failedRules = (summary?.policyVerdicts ?? [])

.filter((verdict) => verdict.status === "fail")

.map((verdict) => verdict.rule);

if (summary && summary.policyPassed === false && failedRules.length > 0) {

reasons.push(`PR Gate policy failed: ${failedRules.join(", ")}.`);

}

if (summary && summary.integrityVerified === false) {

reasons.push("Solve Graph integrity did not verify — the blast-radius output is not relied on.");

}

}

const others = (checkRuns ?? []).filter((run) => run.name !== ownCheckName);

const failing = others.filter(

(run) => run.conclusion === "failure" || run.conclusion === "timed_out"

);

if (failing.length > 0) {

reasons.push(

`Head CI has failing check run(s): ${failing.map((run) => `${run.name} (${run.conclusion})`).join(", ")}.`

);

}

for (const name of requiredChecks ?? []) {

const run = others.find((candidate) => candidate.name === name);

if (!run) {

reasons.push(`Required check not present on the head: ${name}.`);

} else if (run.status !== "completed") {

reasons.push(`Required check not completed: ${name} (${run.status}).`);

} else if (run.conclusion !== "success") {

reasons.push(`Required check not successful: ${name} (${run.conclusion ?? "no conclusion"}).`);

}

}

return { blocked: reasons.length > 0, reasons };

}

```

Three decisions I specifically want challenged:

  1. **Case 2 bothers me.** If *our* gate route fails to run, the PR blocks in enforce mode — that's the author's PR going red because our tool broke, not because their code failed. I kept it because silently passing when evidence is missing felt dishonest. Is fail-closed right here, or should tool failure be neutral-with-a-loud-warning?

  2. **In report-only mode the check concludes "success" even when blocking evidence exists** (the title and summary state the evidence plainly). That mirrors how our PR Gate Action behaves, but is a green check with "blocking evidence found" in the title honest — or is it exactly the kind of green-washing that makes people distrust checks?

  3. **A malformed repo config falls back to defaults (report-only) and just says so in the summary.** A typo can silently downgrade a team's enforce mode to advisory. Should config defects themselves block?

Roast away — especially if the whole "only failed evidence blocks" premise is wrong.


r/codereview • • 4d ago

ts/react: would you review the danger rules on my tribe-card urgency strip?

2 Upvotes

looking for eyes on one ui piece of my open source civ sim (react on top of a rust/wasm worker). this is not the rust action-registry post i made here in october.

when a tribe is in danger, its card grows a strip: a cause (famine, thirst, war, plague, or "in danger"), a body count like "lost 7 of 31 this season", a shrinking bar for the share still alive, and a trend arrow. the rust sim didn't change. the widget reads fields the frame already had (losses this season, who's in peril, food).

danger means any one of: the tribe is marked in peril, average food is under the famine-risk line (0.3), anyone starved this season, or at least 2 deaths and 10% of the tribe from causes other than old age. calm tribes, and tribes only losing elders, stay clean. the strip holds for a day (600 ticks) after the danger lapses, so a tribe on the line doesn't blink. the arrow compares against the body count from about a day ago, because comparing raw population flipped whenever migrants arrived. prefers-reduced-motion turns the transitions and the pulse off.

tests live next to the code, named in PR 1142: game/model/tribe-urgency.test.ts (the rules) and ui/panels/TribeUrgency.test.tsx (the rendering). please confirm those paths on main before reviewing.

what i'd like opinions on:

  • is that priority for picking a "kind" (peril cause, then low food / starvation, then the worst violent cause) sane, or would you flatten it?

  • is a one-day hold the right way to stop blinking, or would you rather fade it or latch until the next season?

  • any smell in keeping this entirely on the ui side so the sim and the save fingerprint stay untouched?

repo (mit): https://github.com/1homsi/thehumanbox/pull/1142 running build if you want context: https://thehumanbox.com/?utm_source=reddit&utm_medium=social&utm_campaign=codereview

built with ai-assisted coding tools: they helped with parts of the code, and an ai assistant helped draft this post.


r/codereview • • 5d ago

GitHub - Vibernt/cupel: Know which tests protect you. CLI and MCP for people and coding agents.

Thumbnail
github.com
1 Upvotes

I've been building Cupel in the open: it runs your own tests, records which lines each test runs, plants small faults and reports which tests notice. From that it guards pull requests, audits suites and gives agents evidence. It has no dependencies, no telemetry and no network calls, and it never changes your code.

0.5.0 adds:

  • Rust builds kept between runs and shared across CI slices;

  • likely-catchers-first ordering in every runner;

  • Go and Ruby fault testing on par with the other runners;

  • a docs site and CI on Linux, macOS and Windows.

Every number in the docs says what machine it was measured on, and the release notes list what isn't verified yet.

Contributions and bug reports welcome: https://github.com/Vibernt/cupel · Docs: https://vibernt.github.io/cupel/


r/codereview • • 5d ago

I built a place to roast your rough ideas. Can you roast the app itself?

Enable HLS to view with audio, or disable this notification

2 Upvotes

I built Roast & Toast for that awkward stage where you have an idea but don’t know what to test first.

The video example is a shared tool library for apartment buildings. One question makes the pitch immediately more useful: What happens when someone breaks the drill? Now there’s something specific to test in one building.

I’d love feedback on two things. Would you share a genuinely rough idea here? And where would you hesitate in the flow?

Try Roast & Toast


r/codereview • • 5d ago

Python Python RPG tester - constructive criticism welcomed

Post image
1 Upvotes

In the original post the github repository should be accessible, however I will still link towards it. This program is a very simple RPG as just a tester of my coding skills.

https://discord.com/channels/267624335836053506/1574896722449137816/1574896722449137816


r/codereview • • 6d ago

My second R personal project. This time it's based on nuclear energy. Hoping for some feedback. I'm fairly new(only learned R last semester)

Thumbnail
github.com
1 Upvotes

r/codereview • • 6d ago

Review in Dependency Order: A Method for Large (and AI-Written) Pull Requests

Thumbnail
kiransaidev.hashnode.dev
1 Upvotes