Guidelines and Guardrails Belong in Git Engineering teams should move AI coding-agent guidelines and guardrails out of individual prompts and into shared, version-controlled repositories, according to a piece published on allenpike.com. The post argues that deterministic checks such as lint scripts rejecting overlong files outperform Markdown prompting rules, and notes that in-repo AGENTS.md files, reproducible dev environments with lints, sandboxes and MCPs, and CI review agents are becoming common. It cites Thoughtworks' Rahul Garg, writing on martinfowler.com, on encoding team standards rather than relying on prompts on individual machines. One problem with AI is that it’s pretty stupid. I mean, sure, the current models are wildly useful. But out of the box, they overcomplicate, take undue shortcuts, and compound deficiencies to the moon. To get from default Claude or ChatGPT to a fast, affordable software loop – one that reliably zaps bugs, backlog items, and security vulnerabilities in your product in particular – it takes some real work. Increasingly, this is the work. So it’s past time you shared that work with your team. There are two main ways to get coding agents to behave consistently and correctly: steer them with guidelines , and redirect them with guardrails . Basically a union of “Please go do the good thing” with Error: You did the bad thing, try again. Sometimes, this means fighting models’ non-determinism with better non-determinism. We build and refine Markdown instructions: rules, docs, skills, and the like. Then at PR time, AI reviewers, classifiers, and human review workflows can non-deterministically ask Claude to go back and do better. But while this informed guidance is helpful, deterministic rules are gold. Instead of “PLEASE don’t make 10,000 line files”, a lint script can simply reject overlong files before they’re pushed