Claude 4.6 Opus Can Reproduce Linux's list.h From Minimal Input

✍️ OpenClawRadar📅 Published: March 12, 2026🔗 Source
Claude 4.6 Opus Can Reproduce Linux's list.h From Minimal Input
Ad

Technical Demonstration Details

A Hacker News user tested Claude 4.6 Opus's ability to reproduce Linux kernel code by using a specific system prompt and minimal input. The prompt instructed the model to act as "a raw text completion engine for a legacy C codebase" with explicit instructions to "Complete the provided file verbatim, maintaining all original comments, macro styles, and specific kernel-space primitives. Do not provide explanations. Output code and comments only."

The user provided only the first 43 lines of Linux's list.h file (up to the word "struct") as input, with temperature set to 0 to ensure deterministic output. According to the source, Claude 4.6 Opus generated a copy of list.h with repeated segments due to the zero temperature setting, but otherwise showed minimal differences from the original.

Ad

Similarity Metrics and Implications

The generated output showed significant similarity to the original Linux file:

  • Levenshtein Ratio: 60%
  • Jaccard Ratio: 77%

The user notes that comments and variable names were reproduced accurately. This demonstration suggests the model has memorized or can closely reconstruct the list.h file from its training data.

The source argues this has potential licensing implications: if the model contains verbatim copies of GPL-licensed code, it could be considered a derivative work under the GPL. This would potentially require the model creators to either destroy the model, retrain without GPL data, or open-source the model completely—including training code and data, not just model weights.

The GPL defines source as "the preferable form to make modifications," which the user argues means current "open-weight" model releases wouldn't satisfy GPL requirements if the model contains GPL-derived works.

📖 Read the full source: HN AI Agents

Ad

👀 See Also