cd /news/artificial-intelligence/i-built-an-open-protocol-to-make-ai-… · home topics artificial-intelligence article
[ARTICLE · art-12736] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

I built an open protocol to make AI coding agents follow senior-engineering workflows

The article describes the creation of The Polyglot Protocol, an open-source framework designed to address common failure modes in AI coding agents, such as ignoring repository conventions, inventing APIs, and skipping validation. The protocol provides structured workflows including language-specific guidance, pre-codegen checklists, validation scripts, and post-codegen audit scoring to enforce senior-engineering discipline across polyglot codebases. It is model-agnostic, tested with various AI models, and released openly for community adaptation and feedback.

read1 min views25 publishedMay 24, 2026

AI coding agents are getting better fast, but I kept running into the same failure modes:

  • they skip repository discovery
  • they invent APIs, flags, or config keys
  • they ignore existing project conventions
  • they add unnecessary infrastructure
  • they skip validation
  • they treat unsupported checks as silently done
  • they finish without a final codebase audit So I built The Polyglot Protocol. It is an open source senior-engineer workflow protocol for AI coding agents working across polyglot codebases. Repo: https://github.com/sabir-gbs/the-polyglot-protocol What it includes
  • guidance for 22 languages
- language-selection rules
- pre-codegen checklists
- do-not-generate policies
  • validation scripts
  • adapters for Codex, Claude Code, and OpenCode
  • post-codegen audit scoring The core idea Before an agent changes code, it should:
  • inspect the repository
  • preserve existing conventions
  • choose the right language and tooling
  • avoid invented APIs or dependencies
  • validate the result
  • document unsupported checks as explicit N/A
  • finish with a final audit Model-agnostic by design I have tested the protocol with frontier models as well as models from Qwen, Grok, Kimi, MiniMax, and others. The point is not to depend on one model. Strong models still benefit from stricter engineering discipline, and smaller/local models benefit from clearer constraints. Why open source it? I want a practical, inspectable protocol that developers can adapt, critique, and improve. If you use Codex, Claude Code, OpenCode, Cursor, Aider, or similar agents, I’d be interested in feedback:
  • Is the protocol too strict?
  • What guardrails are missing?
  • What should be optional vs required?
  • What would make this easier to adopt?
── more in #artificial-intelligence 4 stories · sorted by recency
── more on @the polyglot protocol 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-an-open-prot…] indexed:0 read:1min 2026-05-24 ·