Ondřej Mirtes, the creator of PHPStan, recently shared hard-won lessons on integrating AI into open-source development. Speaking at TechMeetup Ostrava on November 20, 2026, Mirtes moved beyond fleeting model tricks to discuss durable workflows that survive the weekly churn of LLM updates. His talk, delivered in Czech with slides translated to English, offers a pragmatic blueprint for developers looking to leverage AI without compromising code integrity or security.
AI as an Unlikely Code Generator
Mirtes highlighted a striking example of AI’s capability: generating approximately 200 thousand lines of C++ for PHPStan Turbo. He candidly admitted to not knowing C++, yet the tool exists thanks to AI assistance. Beyond core logic, AI handled the grunt work of documenting all 1100+ error identifiers, a task that would have been prohibitively time-consuming manually. This demonstrates that AI’s current sweet spot isn't just writing new features from scratch, but scaling documentation and bridging knowledge gaps in unfamiliar languages.
The Prompt Injection Security Trap
The most critical takeaway for infrastructure engineers is the security incident Mirtes described. A prompt injection in an issue nearly compromised PHPStan’s secrets. This wasn't just an AI quirk; it exposed broader GitHub Actions security traps that have nothing to do with AI but are exacerbated by automated agents. For anyone running AI bots in CI/CD pipelines, this serves as a stark warning: treat external input as hostile, even if it looks like a simple bug report.
Human Taste vs. Automated Pull Requests
Mirtes argues against the trend of accepting generated pull requests blindly. He prefers well-described issues, positing that AI agents lack the 'taste' and prioritization skills of human maintainers. The idea—the initial spark of what needs to be built—remains a uniquely human contribution. In his discussion of 'Mob Programming 2.0', the human defines the problem and the constraints, while the AI handles the execution. This division of labor preserves the quality of the open-source project while accelerating development.
Everyday AI Workflows
Beyond the dramatic security incident and the massive C++ generation, Mirtes outlined how AI functions in his day-to-day maintenance of the GitHub repository. He uses AI to keep documentation in sync with the code and employs a tool called phpstan-bot to fix bugs he assigns to it. This routine automation highlights that while AI can handle maintenance tasks, the strategic direction remains firmly in human hands.
Key Takeaways
- AI can bridge language gaps, enabling non-C++ developers to ship C++ tools.
- Prompt injection in issue trackers can leak secrets if not properly sandboxed.
- Documentation generation is a high-value, low-risk entry point for AI adoption.
- Human maintainers should focus on issue description and prioritization, not just reviewing PRs.
The Bottom Line
Stop treating AI agents as autonomous contributors and start treating them as high-powered interns who need strict boundaries. The real value isn't in the code they generate, but in the security hygiene and clear problem definitions humans provide to keep that code safe.