r/AIprogrammingLanguage • u/ElephantElectrical31 • 1d ago
Pull Request from new account
Hi all,
I recently received several pull requests for my project, and I was genuinely excited to see someone starting to contribute to the new programming language.
Being a bit paranoid, I asked Claude to scan the contributions for potential security issues. Two of the pull requests actually contained security vulnerabilities. I also noticed that the contributor's GitHub account had only been created a few days ago.
I'm grateful for every contribution, and maybe this was just an honest mistake. But it made me realize something: I find it difficult to trust code generated by someone else, even if it was written with AI. With my own code, it's a bit different. I know the context, the prompts, the iterations, and the decisions behind it. With someone else's code, I have no idea how it was produced or what might have been overlooked.
This got me thinking about how to handle external contributions securely. Even letting my own AI review a pull request isn't necessarily safe. What if the code contains hidden instructions designed to manipulate the AI reviewing it?
I used a multi-stage review process. The first AI inspected the code for hidden instructions and potential prompt injection, without having access to my repository. A separate AI then performed a security review in read-only mode before I re-enabled write access. But even that isn't enough. AI can miss things, especially when attacks are subtle.
I also want to strengthen the automated security mechanisms themselves: more tests, fuzzing, and potentially using tools like Kani to formally verify certain properties and invariants where possible.
But this experience also made me think about something else.
How can I expect people to trust my programming language when, from their perspective, I'm just another stranger generating code with AI?
I think I can now understand some of the skepticism I've encountered from others a little better. I hope the security measures I'm planning to introduce will help build that trust.
That said, I actually think PRs remain a great medium for communication, even when AIs are effectively talking to each other on both sides. A concrete PR allows contributors to express detailed ideas, edge cases, and design choices far more directly than a vague feature request ever could. In that sense, those tokens aren't wasted at all.
I definitely want to keep welcoming PRs. I'm just trying to figure out how to balance being open to the community with protecting the project.
How do you see this?
2
u/antonation 1d ago
I'm even afraid of issue reports (or comments on the issues themselves) as I have Claude triage them for me, they could also include prompt injection as well. For one, always run your agent in a sandboxed or restricted environment is protecting yourself and your data first.
As for people trusting your programming language, I think it has to be earned. Even formal verification doesn't mean much to a stranger if you didn't write part of it yourself, because if you vibed "Claude, formally verify my language's semantics via lean", it at minimum means it verified what it built or understood from the specs/docs, not necessarily 100% what you wanted or what someone else expects.
Ultimately, I think the best trust builder is someone and some project has to use it. Right now that someone should be a human or a project developed by a human. If it's not a human, why make it at all unless it's for fun/exploratory purposes? LLMs are trained on more prolific languages with both human and AI producers (e.g. Rust), there isn't much incentive to use a new language otherwise especially with AI-driven coding.
So if you're building a language intended for humans in any way at all, you should use it yourself (or find someone to). If you are building a language for AI agents, then I don't know. I would say unless you have a lot of backing and a really novel/provably better idea, it's an uphill battle against all of the training data from other languages.