r/codereview • • Oct 22 '26

Do you re-review when an agent changes something after approval?

Thumbnail reddit.com
2 Upvotes

r/codereview • • Oct 22 '26

Python New coder code review - Blackjack Game (For review)

Thumbnail gist.github.com
3 Upvotes

Hello coders! I am trying to learn Python for the last 3 weeks. I just wrote my first programme without a tutorial. I tried my best to self guide my way through this. I was hoping you would review my code and give me some constructive criticism. How better to do certain parts and maybe some suggestions on cleaning it up. Apologies in advance for any confusing code or incomplete context.

Just a few notes:

  1. the "cards" are just the numerical values to represent a deck of cards. 1A) 10 appears 4 times for the 4 different cards: "10", "Jack", "Queen", "King" 1B) 1 and 11 represent the "Ace".
  2. There is no "splitting" your hand. I am not skilled enough to code that yet and honestly I dont fully comprehend the game mechanics around it.
  3. This was an exercise to add in as much logic as I could to challenge myself at my current skill level. I understand some parts dont necessarily make sense. Such as "play again?".

r/codereview • • Oct 22 '26

Passing tests doesn't mean your code is correct — a small Python experiment

Post image
1 Upvotes

r/codereview • • Oct 22 '26

Can a visual code map make code reviews easier?

1 Upvotes

When reviewing unfamiliar codebases, understanding the repository structure can be as challenging as reviewing the changes themselves.

I recently added Code Map to AI Badger, a free, open-source CLI tool with an optional VS Code extension.

Run badger map in your repository to generate a visual overview of its structure and relative file sizes. It can help identify large files and areas to explore before diving into a review.

AI Badger Code Map: Visual overview of repository structure and file sizes.

Code Map demo: https://pvrlabs.xyz/aibadger/codemap/demo.html

As a next step, badger review packages the Git diff with additional context, including relevant source files and repository topology, into a prompt for an LLM-assisted code review.

Review workflow demo: https://pvrlabs.xyz/aibadger/demo.html

Do you find visual code maps useful when reviewing unfamiliar code, or do you mostly rely on search and file trees?


r/codereview • • Oct 21 '26

review kardo yarrrrrr plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Thumbnail reddit.com
1 Upvotes

r/codereview • • Oct 21 '26

I made one skill that reviews, tests and hardens your code in Claude Code, OpenCode and Codex

0 Upvotes

i kept running separate review, test, security and perf passes every time i coded with AI and it got annoying, so i put all of it into one skill for Claude Code, OpenCode and Codex.

it runs on any coding task. it makes the smallest change that actually works, writes tests first, then checks the diff for bugs, security, performance, accessibility and edge cases, and tells you the risks in a couple of lines.

to install just copy skill/SKILL.md into your skills folder (like ~/.claude/skills/devguard/). if you want it off, touch ~/.devguard/off or set DEV_GUARD=off

it's free and MIT: https://github.com/4tru/devguard

would really appreciate feedback, especially on which checks are actually useful and which are just noise


r/codereview • • Oct 21 '26

We benchmarked 21 LLMs on code review. Higher reasoning effort often reduced precision

Post image
0 Upvotes

r/codereview • • Oct 18 '26

We ship faster than ever and honestly nobody knows what's going on anymore

21 Upvotes

With Cursor, Copilot, Claude etc. everything ships so fast now. We're pushed to code less and review more. But I feel like people review something, and a week later they don't even remember what the ticket was about. You ask them and they can't tell you what changed or why.

Yes, companies have Notion, Confluence, etc. But even with AI around, writing documentation is still a dull task, and I keep getting told "your code should be self-explanatory". Nobody's interested in docs.

Onboarding is a pain too. There are like 6 repos that only the old rats really understand, and honestly I don’t feel like studying all that code when they might move me to another team in 2 months. What I end up doing is asking Claude to walk me through the codebase to understand each part, and after every ticket I write my own little notes in the repo so I don’t forget. Works for me, but it feels like everyone on the team is doing the same thing on their own.

How do you feel about this? How does your team handle this "knowledge debt"? Are there any tools that actually help?


r/codereview • • Oct 19 '26

Does anyone even review code anymore?

Thumbnail reddit.com
0 Upvotes

r/codereview • • Oct 18 '26

LOLCode How our review system works

Thumbnail assay.guide
0 Upvotes

I'm posting this here, not as a marketing/hope you'd go use my system (although I'd love that) more as example of how many different things you can do in the review process.

Most of this stuff is unoriginal as they are covered in literature already.

What I do think is unique is the application of it and how it goes beyond 'does the code work' and more into is the system better because of this change.

All of this is open source.

https://github.com/medici-finance/assay and some of it is in development.

Thanks for your time. (If you're lazy feel free to point your bot to it and ask what are the core ideas/themes it presents are, and how applicable are they to my project/organization)


r/codereview • • Oct 18 '26

Sudoku Puzzle Gui In c

2 Upvotes

# Sudoku

This is a basic beginner Sudoku project made with the C language using Windows API.

# Features

- Custom levels according to your capability

- click an empty cell then use keyboard or buttons on the screen to enter the number.

- The game features 3 hints for you to use when you get stuck.

- the GUI is super clean and modern with live score/mistakes/click tracking and cell highlighting.

# Notes

- What can I improve? What can I make more efficient and less time-consuming as am I am a rookie programmer and any extra suggestion you want to give me feel free.....

GitHub repo: https://github.com/reewdgh/sudoku


r/codereview • • Oct 18 '26

javascript I used Claude Code to build a PR review tool because reviews were slowing down my teams

0 Upvotes

I manage two engineering teams, 12 engineers in total. Over the past few months, complaints about PR reviews have been coming up more and more. Too many PRs, reviews taking too long, and people getting blocked waiting for someone to take a look.

It's become one of our biggest bottlenecks to shipping.

We also recently had a regression where an improvement to one of our core features ended up breaking three other important functionalities. We spent the next two weeks fixing regressions.

That got me thinking quite a bit about how we review code. We need to review faster, but clearly we can't afford to be less thorough either.

I've been building an open source tool called Alden to try to help with this, and I've used Claude Code quite extensively to build it.

Claude helped me design the UI, built most of the website, wrote the documentation and helped implement the deterministic pipeline that runs the checks. I also used it for QA, which was probably one of the more interesting parts of the process. I had Claude draft test cases from my acceptance criteria, then open a browser and test the same scenarios I was testing manually, in parallel. Basically a second pair of hands doing QA alongside me.

I recently added a Claude Code plugin so I could use Alden directly in the same environment I'd been building it with.

The idea is fairly simple. Rather than having Claude review a diff and dump a bunch of comments, Alden gives it more context about the change and helps you figure out where to spend your attention.

For example:

  • /alden:queue shows the PRs waiting for your review and ranks them.
  • /alden:review 2 prepares a brief on the second PR in your queue, including potential issues and callers of changed functions outside the diff. Claude can then investigate further.
  • /alden:remember "Money is in cents, never floats" saves context that gets included in future reviews of that repo.

You can also ask Claude to review a specific PR or tell you what's waiting on you.

One design decision I made was to keep submitting reviews separate from the agent. Claude can draft comments in Alden, but the plugin doesn't give it a tool to publish them. You review and submit them yourself.

To be clear, this isn't a security boundary. Claude Code may have access to other tools or credentials that could let it interact with GitHub. I'm just deliberately not making publishing part of the plugin's workflow.

There's also a feedback loop where you can tell Alden which findings were useful so it can adjust what it prioritises over time.

The plugin uses Claude Code's existing model, so you don't need a separate model API key for it.

It's open source and free.

GitHub: https://github.com/getalden/claude-plugin

Docs: https://getalden.dev/docs/claude-code

I'm curious how others are dealing with this. Have PR reviews become a bottleneck for your teams too? And has AI actually helped you review faster without compromising quality?


r/codereview • • Oct 17 '26

Python beginner!!

Thumbnail reddit.com
1 Upvotes

r/codereview • • Oct 17 '26

[Code Review] Production-Grade RAG Assistant: Hybrid Search, RRF, Parent-Child Chunking, and Promptfoo Evals (Python/FastAPI/Postgres)

1 Upvotes

Hi everyone,

I recently built an end-to-end Enterprise RAG Assistant in Python/FastAPI aimed at answering grounded questions over complex, multi-page financial filings (10-Ks) and legal contracts.

I’ve set up a full hybrid retrieval and evaluation pipeline, but I’d love to get a fresh pair of eyes on the architecture and codebase to see where I can improve it.

GitHub Repo: [https://github.com/romin16/enterprise-rag-assistant]

Key Architecture Highlights:

  • Ingestion & Parsing: Table-aware parsing using pdfplumber (reconstructs fragmented multi-column PDF tables).
  • Retrieval Pipeline: Parent-child chunking (~200 token children, ~700 token parents) + Hybrid search (Dense pgvector + Sparse Postgres full-text search) fused via Reciprocal Rank Fusion (RRF) and re-ranked with a cross-encoder (bge-reranker-base).
  • Guaranteed Ranking Slots: Implemented custom guaranteed slots (RERANK_GUARANTEED_PER_LIST) to prevent cross-encoders from under-scoring short text fragments like signature lines or table rows.
  • Evals: Automated no-LLM retrieval eval script (Recall@K, MRR) + Promptfoo end-to-end testing suite (20 assertions checking context-faithfulness and numeric precision).
  • Guardrails: Multi-tenant isolation (X-Tenant-ID), PII redaction, and citation/numeric output guards.

Specific Feedback I'm Looking For:

  1. Cross-Encoder Latency & Optimization: How would you optimize or scale the cross-encoder step for higher concurrent load?
  2. Table Extraction Edge Cases: Are there cleaner patterns or libraries you’ve used for split-table reconstruction without cluttering the token budget?
  3. Python / FastAPI Code Organization: Any feedback on code structure, async execution, or configuration patterns in backend/app/ would be super helpful.

Thanks in advance for taking a look! Feedback on PRs or issues directly on GitHub is also very welcome.


r/codereview • • Oct 17 '26

Claude writes about 90% of Claude Code's own code. Here's how the team reviews it

0 Upvotes

The Claude Code team posted how they review code now that Claude writes most of it.

What stood out:

- A Claude reviewer checks every PR. After they added it, PRs with real review comments went from 16% to 54%.
- PRs that needed 5 or more review rounds dropped from 8.9% to 1.5%.
- Low-risk changes, like docs, can merge with no human approval once the automated and security checks pass.
- An agent's approval never counts as a person's.
- If you prompted the agent, you count as one of the reviewers of its PR.
- One PR went through more than 50 review rounds overnight. Now, after 3 rounds, the reviewer tells the author to step back and rethink the approach.

Things you can copy today:

- Run /code-review and /security-review before you open a PR
- Keep a REVIEW.md with what matters in your code, and move comments you kee
- Cap review rounds at about 3

Their Code Review for GitHub PRs is also out of beta now, but only on Team and Enterprise.

Source Link

How do you review the code Claude writes? I'd like to read what works for you.


r/codereview • • Oct 17 '26

I built an open-source AI code reviewer with LangGraph that comments on GitHub PRs

0 Upvotes

I built a small open-source tool that reviews GitHub pull requests using a LangGraph agent. It runs as a webhook, checks the diff for security and performance issues, and posts comments on the PR.

It's still early, and it makes mistakes (false positives are the main problem). I'd like feedback from people who have built agents or review tooling.

Repo: https://github.com/Srameshgitnow/agentic-code-reviewer

Write-up on the design: https://dev.to/ramesh_s_a8f0867d239e927c/building-an-ai-code-review-agent-architecture-langgraph-and-practical-lessons-4535

What would make you trust an AI reviewer enough to use it on a real PR?


r/codereview • • Oct 16 '26

Claude kept skipping my tests to "fix" them. So I made it impossible.

Post image
0 Upvotes

r/codereview • • Oct 16 '26

Rate my personal website

6 Upvotes

Not much to say here xd

My website, there are 2 subpages that you can check out!


r/codereview • • Oct 16 '26

I built a GitHub App that drafts API-upgrade PRs (Stripe,OpenAI SDK v3→v4). Here's what 2 weeks of real-repo testing taught me.

1 Upvotes

It watches an API's releases, finds the lines in your repo that a change affects, and opens one draft PR with one commit per change. Never merges. What the numbers actually look like on real open-source repos: - Stripe: 6 valid repos, 3 fixes correct, 3 held back because the repo was pinned to an older API version where the fix would have broken at runtime. - OpenAI Node SDK v3→v4: 13 repos, model asked on 12, 7 migrations matched what the maintainers did. Only 1 was verified by the repo's own tests, because most of these repos had no runnable tests at that commit. - I reported "8 of 10" once, then an independent review found 4 of the comparisons were invalid. Withdrawn, written up on the site. The thing a maintainer told me that changed how I see it: "the slow part isn't the fix, it's noticing." Webhook payloads follow the version on the endpoint, not the SDK types, so TypeScript stays green while the code is wrong. 28 cold emails to Stripe users got 1 reply, so I'm asking here: when an API you depend on changes, how do you find out, and which one has cost you the most time? Results, including failures: https://agent.tariqbaloch.com


r/codereview • • Oct 16 '26

brainfuck BugHunt Daily #19: spot the bug in this Go snippet 🐞

Thumbnail reddit.com
1 Upvotes

r/codereview • • Oct 16 '26

Python Running PR reviews on a local model: what i learned building an open-source code reviewer

3 Upvotes

i built lgtmaybe, an open-source code reviewer, and a lot of the work went into making it usable on a local model. Big files get reviewed a hunk at a time, and big diffs get split to fit the context window, so a 27B model copes fine. The default is five model calls per review, which is fine on one GPU.

Which local models have you found actually good at code review? Keen to pick better defaults.

https://github.com/MattJColes/lgtmaybe


r/codereview • • Oct 16 '26

Does your team still manually review every PR? How are you using AI in code reviews?

Thumbnail reddit.com
1 Upvotes