So if I write one line of code in a 1M line LLM codebase, is it mine?

It’s owned by whoever directed the AI to write it.