# Blog — Vibhanshu Sharma

> Vibhanshu Sharma writes about production AI engineering — agents, code review systems, security, and systems design.

Canonical: https://www.viiforwin.in/blog
Last updated: 2026-07-28

## Posts

- [We Shipped an AI Code Reviewer With Three Prompts. It Was Wrong Too Often and Quiet Too Long.](https://www.viiforwin.in/blog/prs-01-three-passes-and-an-audit) - Part 1 of 5 — The first version of PRS at Powerplay was three sequential LLM passes over a diff. It shipped, it caught real bugs, and it had two problems at once: too many of its comments were noise, and it stayed silent on the bugs that mattered most. Both had the same root cause. (2026-07-28 · 9 min read)
- [One Reviewer, Four Codebases, Four Different Definitions of Correct](https://www.viiforwin.in/blog/prs-02-repo-rules-and-stateless-passes) - Part 2 of 5 — Breaking the three-pass monolith into stateless single-purpose passes, moving each repo's house rules next to the code they describe, and writing the rules-of-evidence contract that made speculation structurally expensive. (2026-07-28 · 10 min read)
- [Our Cross-File Pass Couldn't See Other Files. Tree-sitter Fixed That.](https://www.viiforwin.in/blog/prs-03-tree-sitter-cross-file) - Part 3 of 5 — The pass named Cross-File only ever received the files inside the diff. Making it real meant parsing every source file in every repo with tree-sitter, and being very careful about which half of that map we stored. (2026-07-28 · 10 min read)
- [We Put a Cheap Model in Charge of the Expensive Ones](https://www.viiforwin.in/blog/prs-04-orchestrator-and-cost) - Part 4 of 5 — Ten passes and two context layers on every push costs real money, and a reviewer that costs too much gets throttled into uselessness. Here's the orchestrator that decides what runs, the four levers around it, and the invariant none of them are allowed to break. (2026-07-28 · 10 min read)
- [Accuracy Isn't a Milestone. Here's What Keeps Pushing On It.](https://www.viiforwin.in/blog/prs-05-pushing-accuracy-further) - Part 5 of 5 — A weekly scoreboard that picks the roadmap, a learning loop that was silently decoration for weeks, an adversarial gate that may only downgrade confidence, and the day PRS found 54 real bugs in the guardrail built to enforce its own correctness. (2026-07-28 · 11 min read)
- [I Kept Guessing Which Claude Model to Use. So I Built a Router For It.](https://www.viiforwin.in/blog/kodemux-stop-guessing-which-model) - Every task, the same three decisions by hand: which model, how many agents, is there a secret in this diff. Here's the tool I built to stop guessing — plus a bug I found in my own tool while writing about it. (2026-07-25 · 10 min read)
- [Run It Off the API Server: A DB-Backed Job Queue for On-Demand Work](https://www.viiforwin.in/blog/db-backed-job-queue) - A user clicks 'Sync now' and expects it to just work — but the job runs for minutes and hammers an external system. Running that on your API server is a trap. Here's how to move it to a background worker without reaching for a new queue service. (2026-07-09 · 10 min read)
- [Don't Leak Your Database Schema: The Manifest Pattern for Integrations](https://www.viiforwin.in/blog/dont-leak-your-schema) - Your DB calls a field cust_dn. Your integration partner and your UI should never see that name. Here's how a tiny translation table decouples your storage from your public contract — and lets you rename columns without breaking a single consumer. (2026-07-09 · 7 min read)
- [Encrypt the Secret Before It Leaves the Browser: RSA + SSM + an IAM Role Split](https://www.viiforwin.in/blog/encrypt-before-it-leaves-the-browser) - TLS protects a password in transit — but it's still plaintext in the browser's Network tab, in your server logs, and in your database. Here's defense-in-depth for third-party credentials, including an IAM trick that stops even a compromised API server from reading stored secrets. (2026-07-09 · 9 min read)
- [Fail Closed, Not Open: Security Controls That Break the Safe Way](https://www.viiforwin.in/blog/fail-closed-not-open) - The most dangerous security bug isn't a missing control — it's a control that silently does nothing when misconfigured. Four before/after examples of designing things to break loudly and safely instead of quietly and dangerously. (2026-07-09 · 7 min read)
- [Calling a URL Your User Controls: SSRF Defense for Admin-Configured Endpoints](https://www.viiforwin.in/blog/ssrf-defense-for-admin-urls) - Your app lets an admin type in a server URL, then sends credentials to it. That's SSRF waiting to happen — even from a trusted admin whose account gets compromised later. Here's how to pin the destination without breaking on-prem setups. (2026-07-09 · 8 min read)
- [Binary Search: The Math Nobody Actually Derives (With a Live Race)](https://www.viiforwin.in/blog/binary-search-derivation) - Not just how it works — why the math works. The integer overflow trap hiding in the naive formula, the full O(log n) derivation from first principles, and a live animation to see both searches race. (2026-07-07 · 8 min read)
- [Why Claude Kept Ignoring My Rules (And What I Did About It)](https://www.viiforwin.in/blog/claudemd-vs-hooks) - I wrote clear instructions in CLAUDE.md. My AI kept breaking them anyway. Here's the mental model that changed everything — and the fix that actually enforces your rules. (2026-06-17 · 9 min read)

## Related

- [Home](https://www.viiforwin.in/home)
- [Work Experience](https://www.viiforwin.in/work)
- [Projects](https://www.viiforwin.in/projects)
- [About](https://www.viiforwin.in/about)
- [Contact](https://www.viiforwin.in/contact)
