← All questionsRisingAI adoption

What legal trouble can we get into using AI to write code?

You are not the only one. Asked 11 times since September 2026, 10 of them in the last 4 weeks.

Read what people asked

Times asked per week

9 Sept – 1 Dec
1Week of 9 SeptTimes asked1Week of 16 SeptTimes asked0Week of 23 SeptTimes asked01Week of 30 SeptTimes asked12Week of 7 OctTimes asked2Week of 14 OctTimes asked01Week of 21 OctTimes asked11Week of 28 OctTimes asked1Week of 4 NovTimes asked02Week of 11 NovTimes asked2Week of 18 NovTimes asked08Week of 25 NovTimes asked8
Week of 9 SeptWeek of 25 Nov

Coloured columns are the last 4 weeks.

What people answer

  • Many sayLegal risk from AI-written code is low in practice for now, because so many people and companies do it that enforcement or a precedent that bites is unlikely soon.
  • Many sayCopyright is hard to enforce on code and the industry and governments have effectively treated AI output as acceptable, though the law is still not clearly settled.
  • One saysPatents and trade secrets are a bigger worry than copyright, since a patent can be infringed by code that looks different but does the same thing.
  • One saysOrganizations that care can use a managed AI service that offers legal indemnification for copyrighted output.
  • Some sayClaiming clean-room status is risky when an LLM touched the work, because you can't know what it saw in training or from prompts, and lawyers are needed to properly scrub a clean room.

Named in the answersClaude

A language model summarised 24 public replies and posts. Views are mixed. These are other people's views, not advice from Navigara.

What people asked

Each line is our one-sentence summary. The link opens the original discussion.

Show 13 more

Where it is asked

  • Hacker News16

Goes straight to the person who runs this site. No account needed.