{"slug": "making-the-most-of-ai-in-open-source", "title": "Making the Most of AI in Open Source", "summary": "PHPStan creator Ondřej Mirtes said at TechMeetup Ostrava on November 20, 2026 that AI tools helped him build documentation for all 1100+ PHPStan error identifiers and PHPStan Turbo, roughly 200 thousand lines of C++ despite not knowing C++. Mirtes also described a near-miss prompt injection in a GitHub issue that could have stolen PHPStan's secrets, which he fixed, and said he prefers a well-described issue over a generated pull request. He urged anyone running AI agents in GitHub Actions to read the security section of his slides first.", "body_md": "# Making the Most of AI in Open Source\n\nNovember 20, 2026 · 2 min read\n\nToday I gave a talk at [TechMeetup Ostrava](https://techmeetup.cz/) about how AI changed the way I work on PHPStan. AI tools and trends change from week to week, so instead of tricks that expire with the next model, I tried to share lessons that should last.\n\nThe talk was in Czech, but I translated the slides to English. Every slide also ends with a short summary of what I said, so you don’t need the recording to follow along:\n\n1. **What I built with AI that wouldn’t exist without it** :[documentation for all 1100+ error identifiers](https://phpstan.org/error-identifiers) , and[PHPStan Turbo](https://phpstan.org/blog/phpstan-2-3-leap-in-performance) , about 200 thousand lines of C++, even though I don’t know C++.\n2. **AI in everyday work on GitHub** : keeping the documentation in sync with the code, and`phpstan-bot` fixing bugs I assign to it.\n3. **One big disaster that almost happened** : how a prompt injection in an issue could have stolen PHPStan’s secrets, how I fixed it, and the GitHub Actions security traps that have nothing to do with AI.\n4. **Mob Programming 2.0** : why I’d rather get a well-described issue than a generated pull request.\n5. **Where humans are still irreplaceable** : taste, priorities, and the idea an agent doesn’t come up with on its own.\n6. **Take care of yourselves.**\n\nClick into the slides and use the arrow keys, or the controls in their bottom left corner, which also go fullscreen. They’re also available [on their own page](https://ondrejmirtes.github.io/ai-v-open-source/en/), and the [Czech original](https://ondrejmirtes.github.io/ai-v-open-source/) too.\n\nIf you’re running AI agents in GitHub Actions, the third part is the one I’d read first.", "url": "https://wpnews.pro/news/making-the-most-of-ai-in-open-source", "canonical_source": "https://phpstan.org/blog/making-the-most-of-ai-in-open-source", "published_at": "2026-11-26 13:25:27+00:00", "updated_at": "2026-11-26 13:42:53.048523+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-safety"], "entities": ["Ondřej Mirtes", "PHPStan", "PHPStan Turbo", "TechMeetup Ostrava", "GitHub Actions", "phpstan-bot"], "also_reported_by": [], "takeaway": "A prompt injection in a GitHub issue could have exfiltrated PHPStan's secrets from its AI agent workflow, so Mirtes hardened the setup and flags GitHub Actions security traps that exist independently of AI.", "recommendation": {"advice": "Treat issue text and other untrusted input to agents in GitHub Actions as hostile: scope credentials tightly and audit workflow permissions, since a prompt injection in an issue nearly exposed PHPStan's secrets.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/making-the-most-of-ai-in-open-source", "markdown": "https://wpnews.pro/news/making-the-most-of-ai-in-open-source.md", "text": "https://wpnews.pro/news/making-the-most-of-ai-in-open-source.txt", "jsonld": "https://wpnews.pro/news/making-the-most-of-ai-in-open-source.jsonld"}}