← Reddit

Claude Code began getting rid of the Big Kernel Lock in QNX

Reddit · r-tty · April 30, 2026
Claude Code began a project to remove the Big Kernel Lock from the QNX microkernel after estimating the work would require approximately three months of intensive development. The approach started by designing comprehensive locking and contention statistics available for userspace examination, similar to Linux's /proc entries. Following initial measurements, Claude Code systematically worked through kernel subsystems one by one, conducting thorough testing after each major modification.

Detailed Analysis

A Reddit user has posted an account of using Anthropic's Claude Code agentic coding tool to undertake a significant systems-level engineering project: redesigning the QNX microkernel and its process manager ("proc") to eliminate what the user describes as a "Big Kernel Lock" (BKL). According to the post, Claude Code estimated the task would require roughly three months of work equivalent to a top human developer before proceeding autonomously. The tool's first step was to design comprehensive locking and contention statistics — analogous to Linux's `/proc` filesystem entries — so that kernel behavior could be observed and measured from userspace before any architectural changes were made. It then began systematically addressing kernel subsystems one by one, running thorough tests after each significant modification.

The post warrants scrutiny on technical grounds. The Big Kernel Lock, historically speaking, was a concept native to the Linux kernel — a coarse-grained global spinlock used for SMP synchronization until its full removal around 2011. QNX, a commercial real-time operating system developed by BlackBerry, is a microkernel-based system whose synchronization architecture relies primarily on message passing and mutexes rather than any equivalent global spinlock. The research context finds no documented evidence that Claude Code has been formally applied to QNX kernel development, and the terminology in the post may be used loosely to describe a different but analogous locking bottleneck within QNX's proc layer. Whether or not the framing is technically precise, the practical claim — that an AI coding agent is being directed to perform deep, iterative kernel refactoring — remains the substantive development being reported.

The broader credibility of Claude Code performing sophisticated kernel-level work is well-established through independent documentation. Security researcher Nicholas Carlini demonstrated that Claude Code, when scripted to iteratively analyze Linux kernel source files, independently identified a 23-year-old heap buffer overflow vulnerability in the NFSv4.0 LOCK replay cache — a flaw that had evaded human auditors and automated fuzzers for over two decades. That demonstration confirmed that Claude Code can reason about low-level systems code, protocol semantics, commit history, and edge cases at a level that rivals or surpasses specialized human reviewers on targeted tasks. The QNX effort described in the Reddit post, if taken at face value, represents an extension of this capability from auditing into active architectural redesign — a considerably more ambitious and risky application.

This episode reflects a notable inflection point in how AI coding tools are being applied to systems programming. Historically, kernel development has been considered among the most demanding and error-intolerant domains in software engineering, requiring deep expertise in concurrency, hardware architecture, and operating system theory. The claim that an AI agent can not only estimate the scope of such a project but also sequence its execution — beginning with observability instrumentation before making structural changes, a classically sound engineering approach — suggests that Claude Code's planning and reasoning capabilities are being stress-tested at the frontier of software complexity. Even if the specific QNX claims prove imprecise or the project ultimately stalls, the willingness of developers to attempt such tasks with AI agents signals a rapid expansion of the perceived boundaries of what these tools can accomplish.

The post's conclusion — "Let's see where this leads to" — captures the experimental and somewhat uncertain nature of the endeavor, and it is precisely this quality that makes it emblematic of the current moment in AI-assisted development. Anthropic has positioned Claude Code as an agentic tool capable of extended, multi-step technical work, and projects like this one serve as informal real-world stress tests of that positioning. Whether Claude Code ultimately succeeds in refactoring a production RTOS kernel or surfaces fundamental limitations in AI-driven systems engineering, the outcome will contribute to a growing body of practical evidence about where the current generation of AI coding agents genuinely excels and where human expertise remains irreplaceable.

Read original article →