upvote
> from (...) intent review to nothing; from local agents to cloud agents; from individual session management to building a system of automations to take care of a lot of day-to-day work.

Some system still needs to ensure quality. How do you do it?

reply
We recognized that code review was never a good way to achieve that and leaned into all the other ones: testing, linting, type checking, static analysis, observability, alerting, analytics, gradual rollout, automatic rollback.

Each of those is cheaper to implement than ever. I've tried to institute full e2e testing at every seed stage startup I've worked at and it's never stuck because of the maintenance costs. Now those are zero and so we can have it for free!

Then we layered on the new quality tools AIs give us: agent code review, agent bug review, fully-automated dependency upgrades. When you can have an AI run down every `Cannot read properties of undefined (reading 'toString')` that ever comes up in your app, your overall code quality goes up. And if you'd told me every dependency we have would be up constantly patched and up-to-date with zero dev effort a year ago, I'd have thought you were crazy.

For context, our system is probably in the middle range of needing quality: more than a video game, less than a bank.

If we were a bank, I'd probably look into heavier-weight tools: formal verification, fuzz and load testing, table-driven tests, property testing, mutation testing, and more. Making humans review code for correctness is not something I'd reach for at this point.

reply
Would love to hear how your team handled the review transition. My team/org is in the adoption phase and I feel like we’re hitting a stalemate when it comes to code review. Reviews are starting to pile up and at the same time the fatigue is hitting and people are reviewing less.

I really don’t know how to approach this right now. I’m going back to first principles and asking “why exactly do we review code in the first place? what are we trying to avoid? what problems does it solve?” and then looking at those answers and tackling them directly.

You hear so much conflicting stuff — bigcorp adopted AI and here’s their blogpost about how they don’t review code anymore — but wait we’re suddenly in what seems like a sea of outages and people are screaming left and right that software is a buggy mess? You should build a dark software factory — no wait here’s why software factories fail, etc, etc.

reply
Many of the success stories come from already mature teams, with healthy domain segmentation, and reliable CI flows. At the same time most developers find themselves working in legacy codebases, in suboptimal conditions, where blindly waving the AI wand at deep organizational problems isn't going to cut it.

I think a healthy first step could be to segment the codebase into scoped domains where we can validate inputs and outputs, and also contain risk of cognitive debt to a scope where we can accept the risk.

That being said, I think agentic coding has changed the general approach to the craft in a few ways. Agentic code is "soft" in the sense that it allows itself to be easily shaped, providing more liberty in the exploration phase and faster prototyping for instance. However, for software rigidity, this softness can be detrimental. I'd argue that a sturdy architecture is more important than ever. Architecture is to agentic code what sturdy poles are to a fabric tipi. The fabric can be ornate and beautiful, but without structural poles to stretch it out into its shape, it ends up being a flat, tangled mess. Tests won't save us if we don't have some guiding architecture, but with it, tests are a great way to pin down the the architecture, just like in a tipi the pegs pin down the poles and fabric in a symbiotic relationship.

For code reviews this would mean that we can focus our comprehension and review efforts to the most critical parts and rely on locking it down with tests at the edges.

I've elaborated on the Cost of Cognitive Debt in the past: https://epiq.sh/blog/cost-of-cognitive-debt

reply
I think first-principles thinking is a great approach, and it's how we started too. I think that, historically, code review accomplished a few things:

1. Checking for correctness

2. Broadcasting changes (both technical and product) from the author to the team

3. Enforcing norms from the team (or at least the reviewer) to the author

If you look at a lot of discussion of code review even from before AI, you'll find a lot of people arguing that code review was rarely good for #1. Now, adversarial AI review accomplishes that better than most humans and a thousand times faster.

I'd also argue that #3 is toast as well. Linters and static analysis tools removed the need to enforce a lot of low-level norms years ago ("add a space here", "avoid useEffect", etc), and AI reviews do a good job of enforcing high-level constraints ("we already have a library for that", "this logic should live one module over").

So the main value of code review now is #2. Some approaches we've tried to achieve that with less/no code review:

- An automated slack digest of everything that shipped today, with important ones called out

- Only PRs that touch a (ever-shrinking) list of high-impact files (eg the api spec or the db schema) need human review

- Weekly in-person demo meetings and regular in-slack gif demos to showcase product changes we're making

In terms of rollout, though... at each step we've all worried that less review will lead to a cascade of technical debt and bugs. And each time we've taken the leap, we've found that the sky hasn't fallen and things still work, we're just faster.

reply
You are ignoring a couple more benefits of PRs. Maybe you would fold these into your existing list, but these are meaningful differences:

1. Correctness checking = there are two different kinds of correctness in play. Yes, while LLMs are absolutely better at checking for things like bugs, syntax errors, "code smells" -- they are not omniscient and will sometimes be missing crucial business context. _Especially_ in an environment where a business is rapidly prototyping solutions with quickly changing priorities day-to-day. Which is exactly what LLM fuelled development will lead to more of!

2. Enabling non-authors to stay in-proximity to the diff. A non-author is more incentivized to understand how a diff works if they share some accountability in the diff's rollout. Rather than some Slack digest no one will read.

3. Allowing the author and non-authors to communicate back and forth about the changes before they actually land. Allowing them to communicate specifically in proximity to the diff. Much of this communication can also be done in meetings, design docs, Slack, etc - but I would argue that the diff is the absolute best place to do this. _Especially_ when the diff is so easy to generate with AI. When generating the diff gets easier, we no longer need as many meetings to ward off wasted investments.

reply
Humans reviewing machine generated code is the most backward idea. It would have been better to keep writing the code ourselves, and have our new robot overlords do the reviews.

In reality we’re going to have to shift the review to the design phase, where things are written in natural language and diagrams and state machines etc. But the shift is going to be incredibly difficult, especially since most programmers aren’t good at writing - or reading critically for that matter.

reply
You do what BigCos do. Ship the buggy mess and treat outages as the cost of doing business.

Let people scream. It's the cost of being in the future. GitHub is the flaming posterchild here, but many BigCo products aren't trailing far behind.

reply
> we had to lose a few teammates along the way

Did they leave, or were they laid off?

reply
A mix of both. We're a small team, so this is a sample size of 3, and each had complicating factors.
reply
> from code review to intent review to nothing

according to HN lore your company is on the verge of imploding due to a mountain of slop

reply