Every engineering org we talk to at Pandorian.ai is building some version of the same thing right now.
A folder of coding standards in Markdown. A CLAUDE.md or .cursorrules file that tells the AI agents what "good" looks like here. A GitHub Action that sends the PR diff and the rules to an LLM and posts the answer as a comment.
And for the first team, it works. Honestly, it can even work quite well.
Then a second team adopts it. Then ten. Then the CTO asks a simple question: "Which of our standards are actually being followed, and where?" And nobody can answer it.
"What about our legacy code? Are there any standards violations there?"
"Which teams or repositories are quietly bypassing or drifting from our architecture, resilience, or security standards?"
This post is about the gap between an internal DIY tool and an enterprise tool. First, how teams build DIY code governance and the seven walls they hit when they scale it. Then, how we solved those walls at Pandorian. And finally, a free live demo environment you can click through yourself, whether you want to use it or just steal ideas for your own build.
One note before we start: this isn't only about AI-written code. AI just made the problem impossible to ignore. Governance has to cover all code, human and AI, against your organization's own standards.
Table Of Contents
- How teams build DIY code governance
- The 7 walls you hit when you scale it
- Wall 1: Managing the guidelines themselves
- Wall 2: Scoping rules to the right code
- Wall 3: Context that never stops changing
- Wall 4: One coherent enforcement policy
- Wall 5: Org-wide visibility
- Wall 6: Token costs that scale with PR volume
- Wall 7: Performance and consistency at throughput
- Part 2: How we solved it at scale
- Part 3: See it yourself in the live demo
- The takeaway
How teams build DIY code governance
If you're building governance in-house, your stack probably looks something like this. It's a reasonable design, and every piece of it is a good idea.
- Write the standards down & centralize them. Pull them out of Confluence, ADRs, security runbooks and senior engineers' heads into Markdown files in a shared repo.
- Let the agents read them. Copy the relevant rules into
AGENTS.md,CLAUDE.mdor.cursorrulesso AI coding tools generate code that follows them. - Add an LLM reviewer in CI. A GitHub Action or GitLab job sends the diff plus the rules file to a model and posts violations as PR comments.
- Add deterministic checks where you can. Linters and custom Semgrep rules for the things that can be expressed as patterns.
- Log the results somewhere. CI output, a Slack channel, maybe a spreadsheet someone updates on Fridays.
A minimal version of step 3 fits in a single workflow file:
# .github/workflows/standards-check.yml on: pull_request jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: git diff origin/main... > diff.txt - run: python review.py --rules standards/*.md --diff diff.txt That's a weekend project. It catches real things on day one. Which is exactly why so many teams stop here and call it governance.
The problem isn't the first repo. It's the thirtieth. If you want a deeper look at why this layer matters at all, we wrote about the missing enforcement layer in the SDLC and what AI code governance actually covers.
The 7 walls you hit when you scale it
None of these walls show up in a pilot. All of them show up once you have dozens of repos, multiple languages, hundreds of engineers and a leadership team that wants answers, visibility and control. We covered them in depth in Why AI Code Governance Always Breaks at Scale. Here's the builder's version.
Wall 1: Managing the guidelines themselves
Your rules folder starts with 15 files. A year later it has 140, half of them written by people who have left. Who owns the API naming rule? Which version is current? Is the Confluence page or the Markdown file the source of truth?
Before you can govern code, you have to govern the guidelines: import them, version them, assign an owner to each one, and retire the ones nobody believes in anymore. A Git folder gives you history. It doesn't give you ownership, quality or accountability.
Wall 2: Scoping rules to the right code
Not every rule applies everywhere. An auth rule might apply to all services. A REST URL convention applies only to public APIs. A library allowlist differs by language. A pattern might belong to one team's service and nowhere else.
In a DIY setup, scoping usually means glob patterns in the workflow file, duplicated across repos. So teams over-enforce (every rule everywhere, lots of noise) or under-enforce (nobody scoped it, so it's off). Both end the same way: engineers stop reading the comments.
Wall 3: Context that never stops changing
Some rules depend on data that moves. Which fields count as PII. Which libraries are approved this quarter. Which internal API routes are allowed. Which services a team may call.
If that context is hardcoded into a prompt or a rules file, your reviewer is wrong the moment the real list changes. A classic example: code that logs request payloads including user emails. It passes tests, it passes human review, and it still violates the PII standard, because the standard lived in a doc nobody wired to enforcement.
Wall 4: One coherent enforcement policy
Governance isn't an on/off switch. It's a matrix: which rules block a merge and which only warn, which repos are in scope, which directories are excluded, which teams get a grace period, which violations open a ticket.
When every repo carries its own copy of the workflow, that matrix drifts. One repo blocks on a rule, another only warns, a third disabled the check after a noisy week. Engineers notice. A standard enforced inconsistently reads as optional.
Wall 5: Org-wide visibility
This is the wall that ends most DIY projects. The checks run, the results exist, but they're scattered across thousands of CI logs and PR threads.
Leadership asks: Which standards are violated most? Which teams? Is it getting better or worse? Is that new rule catching real issues or just noise? Answering means building a data pipeline and a dashboard on top of your reviewer. Now you're maintaining a product, not a script.
Wall 6: Token costs that scale with PR volume
Sending every diff plus every rule to a model costs almost nothing for one team. At hundreds of PRs a day, plus scheduled scans across dozens of repos, token spend grows fast. Cramming 140 rules into one prompt also makes the model worse at each of them.
Doing this efficiently means context scoping, batching, caching and routing rules to the right checks. That's real engineering work, and it never makes it onto the roadmap.
Wall 7: Performance and consistency at throughput
A check that takes several minutes breaks developer flow, and people start asking to skip it. A check that flags something on Monday and not on Tuesday for the same code loses trust immediately.
LLM output varies between runs. Making results consistent, fast and explainable at enterprise PR volume is a hard problem on its own, separate from writing good rules.
The pattern behind all seven
None of these walls mean your engineers did a bad job. They mean the DIY approach was designed for a small team workflow and is being asked to run an org-wide operation. Rules drift, teams change, documentation tends to be outdated, AI writes more code every month, and the homegrown system breaks structurally, not because someone forgot to maintain it.
Part 2: How we solved it at scale
We built Pandorian because we kept seeing teams rebuild the same system and hit the same walls. It's a code governance platform: you define your standards in plain language, or import and consolidate your existing ones, or choose from our ready-made guidelines library. Pandorian then enforces them on every pull request and across full repository scans. Here's how each wall maps to what's in the platform.
| Wall | What DIY usually looks like | How Pandorian handles it |
|---|---|---|
| 1. Managing guidelines | Markdown folder, unclear owners | Import from Confluence or Markdown. Each guideline gets an owner, version history and a quality score for clarity and enforceability. One manageable source of truth for your engineering standards. |
| 2. Scoping | Glob patterns copied per repo | Scope each guideline by repo, language, service or team, centrally |
| 3. Changing context | Lists hardcoded in prompts | Dynamic Context Providers check against live data: PII registries, library catalogs, API manifests |
| 4. Policy coherence | Per-repo workflow drift | Block vs. alert, include/exclude paths and routing set once, applied everywhere |
| 5. Visibility | Scattered CI logs | Central view of violations by team, guideline, repo and PR over time |
| 6. Cost | One big prompt per diff | Context scoping and batching keep token overhead contained at high PR volume |
| 7. Performance | Slow, run-to-run variance | Built for enterprise throughput: consistent, repeatable results and lightning-fast scans |
You don't have to start from a blank page either. Our Engineering Standards Hub is a library of ready-made guidelines across security, architecture, API design, error handling and more. Use them as-is, adapt them, or just borrow the wording for your own rules file.
It lives inside the developer workflow
The fastest way to kill a governance program is to make developers open another dashboard. So we didn't. Pandorian connects natively to GitHub, GitLab and Azure DevOps and runs as a CI check on every PR, plus standing scans across repos for code already in production. See all supported tools on the integrations page.
From there, enforcement shows up where people already work:
- In the PR: violations and their context posted as comments next to the diff.
- In Slack or Teams: alerts routed to the team that owns the code.
- In Jira: one-click tickets with the guideline, description and affected repos attached.
- As a fix: Generated Fixes turn a violation into a Markdown file you can review or hand straight to Cursor, Claude Code or Windsurf.
- As feedback: developers can like or dislike a finding, and that signal goes to the guideline owner.
We wrote up the full flow in Code Governance in the Developer Workflow. If you're the one who has to keep ten teams aligned, How to Achieve Engineering Consistency Across Teams in 2026 goes deeper on the org side.
Part 3: See it yourself in the live demo
We opened up a free live demo environment so you don't have to take any of this on faith. No repo connection, no sales call. It runs on realistic mock data from an enterprise-sized org, so you see what governance looks like at scale, not on a toy project.
Take the Pandorian live demo for a spinThings worth clicking on:
- The guideline catalog: how guidelines are written, owned, versioned and scored.
- Scoping and policy: how one rule is assigned to specific repos, languages or teams, and set to block or alert.
- Violations view: findings across repos and teams, with context and the guideline that triggered them.
- Generated Fixes: what a fix file looks like when it's handed to an AI coding agent.
- Org-level visibility: the compliance picture leadership actually asks for.
- The Guidelines Library: premade guideline packages you can browse.
And if you're set on building your own, use the demo anyway. Look at how we structure guidelines, how scoping works, what the violation reports contain. Take the ideas. You'll hit the seven walls either way, and it helps to know what's on the other side.
When you want to run it on your own code, there's a 14-day free trial that connects to GitHub, GitLab or Azure DevOps.
The takeaway
Building a standards checker is easy. Building governance, meaning ownership, scoping, live context, consistent policy, visibility, cost control and speed across an entire org, is a platform. Most teams find that out around wall five.
If you're somewhere on that path, I'd love to hear which wall you hit first. Drop it in the comments.
Further reading
- Why AI Code Governance Always Breaks at Scale
- Your SDLC Has a Layer for Everything. Except Your Standards.
- How to Achieve Engineering Consistency Across Teams in 2026
- Code Governance in the Developer Workflow
- AI Code Governance
- Engineering Standards Hub
- The Pandorian Platform · Integrations · Live Demo
Amit Kochman is GTM Operations Director at Pandorian, a code governance platform for engineering leaders.




