In an earlier essay, I shared my reflections on the rapid transformation of software engineering by AI. In this essay, I will explore specific challenges related to code review.
Code review has been a core part of software engineering for decades, used to refine design, improve quality, share information, document changes, and satisfy regulatory compliance. AI systems can now rapidly produce far more code than any individual or team can review, and they can work in parallel, around the clock, while we sleep. There will never be enough hours in the day for a human to even attempt to review all the code AI writes. This is a major shift, and it is disruptive.
It is inevitable that the new challenges introduced by AI authoring the majority of software will also be solved by AI.
컴플라이언스 (Compliance)
Most organizations use code review, including the review of software tests and documentation, as a cornerstone to meet legal requirements, audit frameworks, or standards, like ISO, IEC, NIST, SOC, HIPAA, CRA, MISRA, or your acronym of choice. This means code cannot be incorporated into the product or deployed to production without someone reviewing it—all of it. This creates a difficult situation at the moment: AI tools are helping the organization move much faster, but the business is ultimately constrained by the rate at which humans can review code.
I expect audits will eventually change from an auditor manually verifying that testing and code review were adequately performed, to simply verifying that a set of AI tools were used to audit code, configuration, and tests. I expect many of these standards and frameworks will evolve to require specific AI models as controls that will ultimately provide significantly more standardization and rigor than exists today. But for now, we remain directly accountable for software we author and review.
What can we do in the meantime? We need to work in logical increments that are still reasonable for humans to review. Pull requests with fifty‑thousand lines changed are just not practical to review.[1] We can use AI to help review code, running automatically as part of the pull request. AI is very good at triaging issues and spotting inconsistencies. People can also use AI to ask questions of the code they are reviewing to understand it better. Finally, I think pairing, or working as a team, to agree on requirements and prompt the AI together to shape the end result makes sharing context and ultimately reviewing the code a lot easier.
지식 공유 (Knowledge Sharing)
Another important function of code review is to share knowledge in a team. How are systems changing? What new tools or techniques are being adopted? What is being deprecated? What practices and standards are we agreeing on?
I know teams where everyone on the team is expected to review all pull requests, even ones that were merged while they were on vacation, to ensure everyone understands the code and how the software is evolving. Reviewing every pull request on large teams was always difficult, but at the rate AI can produce work, it is also becoming difficult on small teams. Again, AI is a great tool for asking questions about pull requests and explaining them, so it can help summarize and keep you up to date with changes, or help build your mental model during production incidents. It even feels less daunting to lose someone on a team without a thorough knowledge transfer, or to inherit a legacy codebase. AI is great for research and discovery of existing code, documentation, and tests—or lack thereof.
I don't know of a team that has landed on a perfect process for knowledge sharing, and I expect teams to continue experimenting as AI tools keep changing. I know of teams storing specifications and prompts in source control, in addition to code and tests. Smaller teams seem to be adapting better than larger ones. And despite the new tools, nothing seems to beat regularly meeting as a team to talk through design choices and trade‑offs.[2]
품질 (Quality)
Code review is used to improve software quality. It is used to ensure conventions are followed, comprehensive testing is included, edge cases have been evaluated, and alternative approaches have been considered. Agents are now very good at all these things, and they are only getting better.
Code review is often used to agree on the right abstractions. Could this code be simpler? Could it be more testable? Could it be more general and reused elsewhere? Should it be in a shared library? The current AI models sometimes explicitly satisfy constraints while missing abstractions we would consider good engineering practice. When reviewing code, we can prompt the AI to tease out these abstractions, but it makes me wonder: if AIs are going to maintain the code, not us, and the software meets the requirements in terms of cost, performance, reliability, security, and functionality, maybe we will care less about abstractions? Perhaps even concrete implementations and fewer dependencies are more straightforward? With code being faster and easier to generate, will we be less concerned with code reuse and abstraction?[3]
Generally, techniques like formal verification, model checking, undefined behavior analysis, fuzzing, property testing, and deterministic simulation testing are only used by elite software teams.[4] The average software organization has not invested in these techniques and I'd venture the average software engineer can't articulate the value they provide. Traditionally, these techniques to improve software quality, security, and correctness required a significant investment, but AI is now lowering the cost. I have even seen AI improve the quality of documentation and testing from teams who paid less attention to these practices in the past, just because it is now easier to include documentation and testing as part of the work.[5]
A challenge with AI is defining a specification which it can use to autonomously verify its work. Rather than a traditional code review—that has code with unit and integration tests—there is a tremendous opportunity to guide the AI with formal verification, deterministic simulation tests, and more, to deliver code of much higher quality than most organizations have ever been capable of. It used to feel like investing in these practices would slow teams down, at least in the short term, but now it may be essential to speeding them up.
To deal with the probabilistic nature of AI, we should focus on determinism to define success. With this rigor, the AI won't just write the code you asked for—it will autonomously write the code that satisfies the formal specification. I'm very interested to see where this goes and I'm eagerly following people experimenting with these techniques.[6]
오픈 소스 (Open Source)
When I speak with maintainers of popular open‑source projects, they all tell me they can no longer keep up with the rate of AI‑generated contributions. They simply can't review this much code. For the foreseeable future, there may be more open‑source software than ever, but the most popular projects will be maintained by a core group who hold the conceptual integrity of the project and are open to feature requests, but not outside contributions.
보안 (Security)
Finally, reviewing code from a security perspective is one of the most valuable aspects of code review, especially in regulated industries or in critical infrastructure. While security review by humans is not going away just yet, I have seen great value from AI tools in identifying or triaging critical vulnerabilities. Furthermore, instead of performing specialized security evaluations on an occasional basis, like penetration testing, AI can be used to make these evaluations on a regular basis. Google, Anthropic, and others are starting to develop specialized security models.[7]
I expect security review by a single agent or model will be unacceptable. Models will have limitations and there will inevitably be attacks, like prompt‑injection, used to influence the outcomes. Organizations will perform security review using multiple models, from different vendors, running under a variety of configurations. I also expect some security evaluations to happen in hermetic environments with static models. This will ensure agents cannot reach out to the internet, or other compromised enterprise services, and be influenced, or socially engineered, by an attacker.[8]
Even with great AI security review, for the foreseeable future, we will want human review of important things like who is authorized to do what in the system. It will be important to build in a small number of choke points, like the authorization system, or data governance, where human review remains effective. Furthermore, defense in depth has always been important, but for systems security in a world where discovery, development, and exploitation are all accelerated by AI, it becomes by far the most important thing to review.[9]
정리 (In Review)
Code review remains an important part of the software development process, but AI is rapidly changing it. For organizations bound by regulatory compliance, a human is still required to review every change that makes its way into the product or service. This becomes a bottleneck, and it won't change until the laws, regulations, and standards catch up with AI tools. However, there is also an opportunity to use AI to greatly improve the quality of software by reducing the cost of investments in methods like formal verification, model checking, and deterministic simulation testing. More regular and rigorous security reviews will also improve quality. We need to actively shape industry standards and regulation in this direction. If you work in the software industry and you are not familiar with these methods, it is time to learn them. They won't just be the way code is rev
[^1]: 실제로 5만 라인 변경을 포함한 풀 리퀘스트는 인간이 검토하기에 현실적이지 않다.
[^2]: 정기적인 팀 미팅을 통해 설계 선택과 트레이드오프를 논의하는 것이 여전히 가장 효과적이다.
[^3]: 추상화보다는 구체 구현과 의존성 감소가 더 직관적일 수도 있다는 질문.
[^4]: 형식 검증, 모델 체크, 정의되지 않은 동작 분석, 퍼징 등은 elite 팀만 사용하는 경향이 있다.
[^5]: AI 덕분에 문서화와 테스트를 손쉽게 포함시키면서 품질이 향상된 사례들.
[^6]: AI가 자체적으로 정식 사양을 만족하도록 하는 자동 검증 파이프라인에 대한 기대.
[^7]: 구글, Anthropic 등에서 보안 전용 모델을 개발 중.
[^8]: 프롬프트 인젝션 등 공격을 방지하기 위한 격리된 환경 필요성.
[^9]: 방어 깊이(Defense in depth)의 중요성이 AI 시대에 더욱 부각.