Skip to main content
    All posts
    AI

    The Code Your AI Wrote Might Not Be Yours to Ship

    AI coding assistants can reproduce licensed code verbatim, and most teams never check before shipping it into a product they plan to sell.

    Ask ten founders if they've read the license terms on the code their AI assistant just generated. You'll get ten blank stares. Nobody thinks about it because the code just appears, green checkmarks pass, and the feature ships. It feels like writing, not borrowing.

    But large coding models are trained on enormous amounts of public code, and a meaningful chunk of that code carries a license: MIT, GPL, AGPL, something with actual terms attached. When a model generates a block that closely matches a piece of GPL-licensed code it saw during training, you haven't written new code. You've copied someone else's, without attribution, without checking compatibility, and without knowing it happened.

    Why this matters more than it used to

    Most of the time this is harmless. Boilerplate is boilerplate, and a sort function isn't anyone's intellectual property. But the risk isn't evenly distributed. It spikes when a model is asked for something more distinctive: a specific algorithm, a licensing check, an unusual parsing routine, the exact kind of code a developer would normally find by searching Stack Overflow or GitHub and copying with a comment that says "found this online, verify later." Except now there's no comment, no link, and no later.

    The real exposure shows up at the worst possible moment: due diligence before an acquisition, a fundraise, or an enterprise deal that requires a code audit. Buyers and their lawyers ask where the code came from. "An AI wrote it" is not an answer that satisfies anyone holding a checklist, and a copyleft license buried three files deep can force you to either rewrite the feature or open-source code you intended to sell.

    What actually reduces the risk

    You don't need to ban AI-assisted coding, that ship has sailed and it isn't coming back. What you need is a habit most teams skip:

    • Run generated code through a license scanner before merging, especially for anything doing non-trivial logic.
    • Keep a human reviewing AI output the same way you'd review a contractor's first pull request, not rubber-stamping it because the tests pass.
    • Document which parts of the codebase were AI-assisted, so a future audit isn't an archaeology project.

    None of this is exotic. It's the same discipline good engineering teams already apply to any dependency they didn't write themselves. The mistake is treating AI output as exempt from that discipline just because it showed up in your own editor instead of an npm install.

    This is the kind of thing that's easy to skip when you're moving fast and building your own product, and expensive to discover later. If you're weighing whether to build something new and want it done with this kind of care from day one, we build MVPs in days, not months and treat code provenance as part of the job, not an afterthought. If you'd rather just talk through what you're building, get in touch.

    Want to build something like this?

    Cedrix ships production-grade software fast — and even offers a free 10-day MVP so you can see your idea working before you commit.