Urgent.News

What's breaking now, across thousands of outlets.

AI

My AI shipped a 1,199-line change nobody understood. I built a CLI that scores how fragile it is.

My AI shipped a 1,199-line change nobody understood. I built a CLI that scores how fragile it is. An essay made the rounds this week: "AI usage generates a fragile codebase." The argument is simple. AI writes code faster than humans can review it, so the bottleneck moved from writing to the review gate. Code that looks right, passes the easy tests, and ships before anyone understands it. I have…

An AI-generated code change exceeding 1,000 lines passed through the review process without anyone fully understanding its implications. In response, the author developed a command-line interface (CLI) tool called fragility, which evaluates the fragility of AI-written code based on four key factors. The tool, available on GitHub, requires no API keys, servers, or model calls and provides a CI verdict.

The four signals measured by fragility include test shallowness, orphan lines, over-abstraction, and comprehension debt. The composite fragility score ranges from 0 to 100, with three possible outcomes: ROBUST, WATCH, or FRAGILE. The tool runs entirely locally and generates no output beyond the command line. In testing, the tool accurately identified a fragile AI-generated change with no tests covering any lines and a high review velocity.

A follow-up update improved the tool to detect AI-marked commits more accurately, addressing a previously missed vulnerability. The author emphasizes that fragility complements existing tools by offering a cheap, offline, and deterministic pre-merge check to measure the gap between AI-generated code and human understanding.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Alphabet or CoreWeave: Which AI Stock Is Better to Buy in a Market Crash?

Alphabet and CoreWeave are both positioned to benefit from AI, but one has a much stronger financial foundation.

  • Alphabet is diversified tech giant with Google Search, YouTube, Google Cloud
  • CoreWeave focuses on specialized cloud infrastructure for AI model training
  • Alphabet's diversified business offers financial strength during market crash

AI can write code, but the magic of a first project is unmatched! 🗽

Namaste dev community! 👋 Today, I’m sharing a very special project of mine . It's a web page featuring all the states of India.

  • This is the author's first project, likely with flaws and bugs
  • AI generated HTML code instantly from prompt
  • Author values hands-on coding experience over AI convenience

More from Wednesday 11 November →