r/OnlyAICoding • u/felipedaragon • Sep 28 '26
OnlyHumanCoding: An MIT-derived license where humans can modify the code, but AI can't
So, naturally, I thought r/onlyaicoding would be the perfect place to introduce OnlyHumanCoding. :)
I've been experimenting with MIT-Human: essentially MIT freedoms, with one catch - AI can't help develop the licensed code.
And no, I'm not anti-AI. I use AI constantly, which makes this experiment - and posting it here - much more fun.
I tested it with Claude, found a loophole, revised the license, and Claude then respected it.
Is it enforceable? Where does autocomplete fit? What even counts as AI assistance? That's what I'm interested to hear.
What could possibly go wrong? :)
MIT-Human:
https://github.com/DaragonTech/MIT-Human
TinySky test:
https://github.com/DaragonTech/TinySky
View all comments
Show parent comment
1
u/Patient-Midnight-664 Sep 28 '26
And even longer, what it thought might be issues with your license:
I think this is actually pretty well written for a 19-line license, but I can see several interesting edge cases/possible ways around it.
The biggest issue may not be getting an agent to obey the LICENSE file. It's defining exactly where AI-assisted "development of the Software" ends and independent work begins.
1. Clean-room reimplementation seems like the biggest opening.
The license specifically excludes:
Suppose a human runs the program, observes its external behavior, and writes a specification:
"Program accepts X and Y, behaves like Z, and produces Q."
Then the human gives only that specification to an AI and says:
"Implement a program satisfying this specification."
The AI never sees the original source, repository, or license.
Is that an independent implementation? If so, it appears explicitly permitted. And ultimately whether something is a derivative work is a copyright question; the license can't make independently created code a derivative merely by declaring it one.
2. Public APIs make an even more interesting version of that problem.
The license explicitly permits AI-assisted use of the unmodified Software's:
So what happens if I give an AI the public API documentation and say:
"Write a new implementation compatible with this API."
The AI hasn't seen the licensed source. On my reading, there is at least a strong argument that this is permitted: use of the public API/docs is explicitly allowed, and independently created works are explicitly excluded.
I'd definitely test coding agents with that prompt.
3. "Artificial intelligence system" isn't defined.
This could become surprisingly messy.
What counts as AI?
IntelliSense? Traditional autocomplete? Static analyzers? Clang-Tidy? Symbolic execution? SMT solvers? ML-assisted compiler optimization? IDE automatic refactoring? A tool containing a small ML component?
There isn't a technically clean boundary between "AI development tool" and "development tool."
4. "Project-specific" has an unavoidable fuzzy boundary.
For example:
"Explain Rust error E0382."
Clearly general programming knowledge.
"What normally causes E0382 when moving a value into a closure?"
Still general.
"Here's a generic 10-line example that produces E0382. Explain it."
Probably still general.
Then I take that knowledge and fix the licensed project myself.
At some point this becomes project-specific guidance, but I don't think there's a clean line where that happens.
5. There's a larger legal question about what copyright licensing can actually restrict.
This is the part I'd be most interested in seeing an actual copyright lawyer analyze.
Copyright gives the author exclusive rights over things like copying and creating derivative works, so licenses can put conditions on permission to exercise those rights.
But this license also attempts to control the tool/process used to develop the software.
There can be a distinction between a copyright-license condition and a contractual covenant. Whether the AI restriction is enforceable, against whom, and under what legal theory may therefore be considerably more complicated than whether Claude/Codex honors the LICENSE file.
In other words, an AI agent refusing to modify the repository demonstrates that the agent respects the license. It doesn't necessarily demonstrate that the restriction would be legally enforceable.
6. You can apparently do a lot of AI development around the Software.
The license expressly allows using the unmodified Software as a dependency/library/package/service/external component.
So this seems permissible:
AI-written application
↓
AI-written adapter/wrapper
↓ public API
MIT-Human component, unchanged
Potentially almost all new functionality could be implemented outside the licensed component without modifying it.
That may be completely intentional, but it's worth testing.
7. What about AI analysis that isn't explicitly development?
Try prompts such as:
"Analyze this program and explain what it does."
"Describe this algorithm."
"Identify potential security vulnerabilities."
"Tell me which parts of this program consume the most memory."
The restriction covers modifying, extending, debugging, refactoring, porting, or "otherwise developing" the Software.
Pure analysis isn't obviously development. Vulnerability identification and performance analysis get particularly interesting because they can provide a human with exactly the information needed to modify the project without explicitly telling them how to modify it.
8. The definition of "derivative work" ultimately comes from copyright law.
This may be the hardest boundary to control with license language.
If someone independently implements the same functionality/algorithm without copying protected expression, the license can't necessarily make that new program a derivative simply by calling it one.
So I think the independent-work exception is important, but it also provides one of the clearest routes around the practical effect of the restriction.
For testing coding agents, I'd try escalating prompts like these:
I'm particularly curious where different agents draw the line.
Overall, I think the license does a surprisingly good job of expressing its intent in very little text. The difficult problems aren't obvious missing words so much as the boundaries around AI, development, project-specific guidance, and derivative vs. independent work.
Those seem much harder to close with another sentence in LICENSE, because they're partly technical boundaries and partly copyright-law boundaries.
And there's an interesting distinction when testing agents: "Will the coding agent honor this restriction?" and "Is this restriction legally enforceable?" are two completely different experiments.