{"id":22095,"date":"2025-09-26T11:27:57","date_gmt":"2025-09-26T10:27:57","guid":{"rendered":"https:\/\/www.equalexperts.com\/?p=22095"},"modified":"2025-09-26T11:27:57","modified_gmt":"2025-09-26T10:27:57","slug":"from-madness-to-method-with-ai-coding-part-2-guardrails","status":"publish","type":"post","link":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/","title":{"rendered":"From madness to method with AI coding: Part 2 &#8211; Guardrails"},"content":{"rendered":"<p>In part 1 of our series on applying methodology to AI, we talked about <a href=\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-1-meta-prompting\/\">using meta-prompting<\/a> as a way to get closer to the mark &#8211; quicker &#8211; when using AI-assisted coding. Think of every AI-generated solution as a golf shot: you tee off, sometimes landing the ball neatly on the fairway, hopefully not into the rough. If you\u2019re lucky, you\u2019re approaching the green, where a few corrective actions with your putter get you quickly to your desired result. It\u2019s just like using prompts in the software development life cycle &#8211; a gradual narrowing down through a progressive precision refinement process.<\/p>\n<p>Before we even tee off, we need to know the boundaries of the fairway or the green, so we can aim to land the ball there. This is where guardrails come in. Guardrails &#8211; or rules, as they\u2019re known in software development &#8211; provide the LLM with guidelines &#8211; a system context for every prompt that we issue. So, what do we consider as the &#8220;fairway&#8221; when we\u2019re building a feature? What system context can we provide to bring us closer to our mark?<\/p>\n<h2>How to use guardrails in AI-assisted coding<\/h2>\n<p>The trick is to carefully craft rules that are relevant to the project you\u2019re working on. For instance, one engineer\u2019s rules in a Node.js frontend app will look completely different to those in a Kotlin Ktor app. So, what do we include in the rules of our projects? And what format should they have? How do we write them? How long should they be? We\u2019ll go through these questions one by one.<\/p>\n<h3>Why guardrails matter<\/h3>\n<p>AI coding assistants are powerful, but they don\u2019t know your rules by default. LLMs have been trained on code that reflects every opinion and pattern on the internet. If you want them to follow your way of working, you need to be explicit.<\/p>\n<p>For example, when I\u2019m writing code, I care about concepts like Domain-Driven Design, Hexagonal Architecture, outside-in testing and functional programming. So, I capture each of these values as a rule in the project. (As an example, here is a rules directory I use for my Kotlin project.) Your team\u2019s rules will differ, but the principle is the same: define what matters to you and give the LLM that context up front.<\/p>\n<h3>Rule formation<\/h3>\n<p>So, what makes a good rule? Firstly, the less verbose the rules are, the better. In my experience, rules should never exceed ~200 lines \u2014 the longer they get, the more likely the LLM is to veer off into the rough. Meta-prompting (from part 1 of this series) helps here. For example, I asked the LLM:<\/p>\n<p style=\"padding-left: 40px;\"><em>Please write me a rule in markdown to be used by an LLM that describes Domain Driven Design by Eric Evans in under 200 lines.<\/em><\/p>\n<p>To keep rules consistent, I use a simple template, the same way I do with prompts. Here it is:<\/p>\n<pre style=\"padding-left: 40px;\"># [Rules Topic\/Domain Name]\r\n\r\n*Brief description of the rules domain and its scope. What aspect of development, architecture, or method do these rules<\/pre>\n<pre style=\"padding-left: 40px;\">govern? Keep this concise and focused on the purpose and boundaries of these rules.*\r\n\r\n## Context\r\n\r\n*Provide the situational context where these rules apply. This helps the LLM understand when and why to apply these rules.*\r\n\r\n**Applies to:** [Project types, layers, components, or scenarios where these rules are relevant] \r\n**Level:** [Strategic\/Tactical\/Operational - helps prioritize rule application] \r\n**Audience:** [Developers\/Architects\/Product Team - who should follow these rules]\r\n\r\n## Core Principles\r\n\r\n*List the fundamental principles that underpin all the detailed rules. These are the \"why\" behind the rules and help<\/pre>\n<pre style=\"padding-left: 40px;\">with decision-making when specific rules don't cover a scenario.*\r\n\r\n1. **Principle Name:** Brief explanation of the principle and its importance\r\n2. **Principle Name:** Brief explanation of the principle and its importance\r\n3. **Principle Name:** Brief explanation of the principle and its importance\r\n\r\n## Rules\r\n\r\n### Must Have (Critical)\r\n*Non-negotiable rules that must always be followed. Violation of these rules should block progress.*\r\n\r\n- **RULE-001:** Description of the rule with clear, actionable guidance\r\n- **RULE-002:** Description of the rule with clear, actionable guidance\r\n- **RULE-003:** Description of the rule with clear, actionable guidance\r\n\r\n### Should Have (Important)\r\n*Strong recommendations that should be followed unless there's a compelling reason not to.*\r\n\r\n- **RULE-101:** Description of the rule with clear, actionable guidance\r\n- **RULE-102:** Description of the rule with clear, actionable guidance\r\n- **RULE-103:** Description of the rule with clear, actionable guidance\r\n\r\n### Could Have (Preferred)\r\n*Best practices and preferences that improve quality but are not blocking.*\r\n\r\n- **RULE-201:** Description of the rule with clear, actionable guidance\r\n- **RULE-202:** Description of the rule with clear, actionable guidance\r\n- **RULE-203:** Description of the rule with clear, actionable guidance\r\n\r\n## Patterns &amp; Anti-Patterns\r\n\r\n### \u2705 Do This\r\n*Concrete examples of what good implementation looks like*\r\n\r\n\/\/ Example of good practice in code block\r\n\/\/ Clear, concise code example\r\n\r\n### \u274c Don't Do This\r\n*Concrete examples of what to avoid*\r\n\r\n\/\/ Example of anti-pattern in code block\r\n\/\/ Clear example of what not to do\r\n\r\n## Decision Framework\r\n\r\n*Provide guidance for making decisions when rules conflict or when faced with novel situations*\r\n\r\n**When rules conflict:**\r\n1. Step 1 for resolution\r\n2. Step 2 for resolution\r\n3. Step 3 for resolution\r\n\r\n**When facing edge cases:**\r\n- Guideline 1\r\n- Guideline 2\r\n- Guideline 3\r\n\r\n## Exceptions &amp; Waivers\r\n\r\n*Define when and how these rules can be broken*\r\n\r\n**Valid reasons for exceptions:**\r\n- Reason 1 (with approval process if needed)\r\n- Reason 2 (with approval process if needed)\r\n- Reason 3 (with approval process if needed)\r\n\r\n**Process for exceptions:**\r\n1. Document the exception and rationale\r\n2. [Additional approval steps if needed]\r\n3. [Time-bound review if applicable]\r\n\r\n## Quality Gates\r\n\r\n*Define how adherence to these rules should be verified*\r\n\r\n- **Automated checks:** What can be validated through tooling\r\n- **Code review focus:** What reviewers should specifically look for\r\n- **Testing requirements:** How rule compliance should be tested\r\n\r\n## Related Rules\r\n\r\n*Reference other rules files that complement or interact with these rules*\r\n\r\n- `rules\/related-rules-1.md` - Brief description of relationship\r\n- `rules\/related-rules-2.md` - Brief description of relationship\r\n- `rules\/related-rules-3.md` - Brief description of relationship\r\n\r\n## References\r\n\r\n*Links to external resources, standards, or documentation that inform these rules*\r\n\r\n- [Resource 1](url) - Brief description\r\n- [Resource 2](url) - Brief description\r\n- [Resource 3](url) - Brief description\r\n\r\n---\r\n\r\n## TL;DR\r\n\r\n*Ultra-concise summary of the most critical rules and principles. This section should be scannable in under<\/pre>\n<pre style=\"padding-left: 40px;\">30 seconds and capture the essence of all rules above.*\r\n\r\n**Key Principles:**\r\n- Principle 1 in one sentence\r\n- Principle 2 in one sentence\r\n- Principle 3 in one sentence\r\n\r\n**Critical Rules:**\r\n- Must do X\r\n- Must not do Y\r\n- Always ensure Z<\/pre>\n<p>You can now open a new chat (to ensure no previous context) with your LLM and provide it with the prompt, along with the template provided above. In my case, it resulted in <a href=\"https:\/\/gist.github.com\/marc0der\/48a768e874a29950cdf5a4a0dd32fed6\">this Domain Driven Design rules file.<\/a> Once you have your template, you can generate clean, uniform rules that are easier for an LLM to follow. (<a href=\"https:\/\/gist.github.com\/marc0der\/d853d2de5ec3347da1e57860cf16cba0\">Here\u2019s the meta-prompt<\/a> I used to generate this template.)<\/p>\n<h2>Guardrails keep you on the fairway<\/h2>\n<p>By applying guardrails, you\u2019ll spend less time untangling the LLM\u2019s \u2018creative interpretations\u2019 and more time creating value. Remember, keep your rules:<\/p>\n<ul>\n<li>Concise (under ~200 lines, to keep the AI focused).<\/li>\n<li>Consistent (shared structure across rulesets).<\/li>\n<li>Customisable (different projects will have different guardrails).<\/li>\n<\/ul>\n<p>Guardrails don\u2019t just reduce frustration, they set you up for success in the subsequent steps. With clear rules in place, your LLM is more likely to stay on track and get you closer to the outcome you want. In other words: more fairway, less time hacking your way out of the bushes.<\/p>\n<p>If you\u2019d like help defining your own guardrails for AI-assisted coding, <a href=\"https:\/\/www.equalexperts.com\/contact-us\/\">get in touch here<\/a>.<\/p>\n<p>In the next part of this series, we will move ahead with our golf analogy and examine teeing off: the Driving Shot.<\/p>\n<h3>Watch Marco&#8217;s video to see guardrails in AI-assisted coding in practice<\/h3>\n<p><iframe title=\"From madness to method with AI coding | Part 2 - Guardrails\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/LJ-xMF1AbDU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h3>About the author<\/h3>\n<p>Marco Vermeulen is a Principal Software Engineer at Equal Experts<\/p>\n<p><em>The views shared in this blog reflect the personal experiences of the author and they do not represent Equal Experts\u2019 official practices or methodologies.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In part 1 of our series on applying methodology to AI, we talked about using meta-prompting as a way to get closer to the mark &#8211; quicker &#8211; when using AI-assisted coding. Think of every AI-generated solution as a golf shot: you tee off, sometimes landing the ball neatly on the fairway, hopefully not into [&hellip;]<\/p>\n","protected":false},"author":174,"featured_media":22098,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"categories":[412],"tags":[],"location":[],"class_list":["post-22095","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>From madness to method with AI coding: Part 2 - Guardrails | Equal Experts<\/title>\n<meta name=\"description\" content=\"AI coding assistants are powerful, but LLMs have been trained on code that reflects every opinion and pattern on the internet. If you want them to follow your way of working, you need to be explicit with guardrails.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"From madness to method with AI coding: Part 2 - Guardrails\" \/>\n<meta property=\"og:description\" content=\"AI coding assistants are powerful, but LLMs have been trained on code that reflects every opinion and pattern on the internet. If you want them to follow your way of working, you need to be explicit with guardrails.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/\" \/>\n<meta property=\"og:site_name\" content=\"Equal Experts\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-26T10:27:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"514\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Marco Vermeulen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EqualExperts\" \/>\n<meta name=\"twitter:site\" content=\"@EqualExperts\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marco Vermeulen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/\"},\"author\":{\"name\":\"Marco Vermeulen\",\"@id\":\"https:\/\/www.equalexperts.com\/#\/schema\/person\/bac82803f0fc9c070b4604ca4cd6466a\"},\"headline\":\"From madness to method with AI coding: Part 2 &#8211; Guardrails\",\"datePublished\":\"2025-09-26T10:27:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/\"},\"wordCount\":762,\"publisher\":{\"@id\":\"https:\/\/www.equalexperts.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png\",\"articleSection\":[\"AI\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/\",\"url\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/\",\"name\":\"From madness to method with AI coding: Part 2 - Guardrails | Equal Experts\",\"isPartOf\":{\"@id\":\"https:\/\/www.equalexperts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png\",\"datePublished\":\"2025-09-26T10:27:57+00:00\",\"description\":\"AI coding assistants are powerful, but LLMs have been trained on code that reflects every opinion and pattern on the internet. If you want them to follow your way of working, you need to be explicit with guardrails.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#primaryimage\",\"url\":\"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png\",\"contentUrl\":\"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png\",\"width\":1200,\"height\":514,\"caption\":\"From madness to method with AI coding part 2 Guardrails\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.equalexperts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"From madness to method with AI coding: Part 2 &#8211; Guardrails\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.equalexperts.com\/#website\",\"url\":\"https:\/\/www.equalexperts.com\/\",\"name\":\"Equal Experts\",\"description\":\"Making Software. Better.\",\"publisher\":{\"@id\":\"https:\/\/www.equalexperts.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.equalexperts.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.equalexperts.com\/#organization\",\"name\":\"Equal Experts\",\"url\":\"https:\/\/www.equalexperts.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.equalexperts.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2018\/08\/Equal_Experts_Logo_CMYK_Colour.jpg\",\"contentUrl\":\"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2018\/08\/Equal_Experts_Logo_CMYK_Colour.jpg\",\"width\":719,\"height\":340,\"caption\":\"Equal Experts\"},\"image\":{\"@id\":\"https:\/\/www.equalexperts.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/EqualExperts\",\"https:\/\/www.linkedin.com\/company\/equal-experts\/?viewAsMember=true\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.equalexperts.com\/#\/schema\/person\/bac82803f0fc9c070b4604ca4cd6466a\",\"name\":\"Marco Vermeulen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.equalexperts.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/246f68106d218eb4235825fc0f653aae0f724a67736d478205011629aa02fe0e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/246f68106d218eb4235825fc0f653aae0f724a67736d478205011629aa02fe0e?s=96&d=mm&r=g\",\"caption\":\"Marco Vermeulen\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"From madness to method with AI coding: Part 2 - Guardrails | Equal Experts","description":"AI coding assistants are powerful, but LLMs have been trained on code that reflects every opinion and pattern on the internet. If you want them to follow your way of working, you need to be explicit with guardrails.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/","og_locale":"en_GB","og_type":"article","og_title":"From madness to method with AI coding: Part 2 - Guardrails","og_description":"AI coding assistants are powerful, but LLMs have been trained on code that reflects every opinion and pattern on the internet. If you want them to follow your way of working, you need to be explicit with guardrails.","og_url":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/","og_site_name":"Equal Experts","article_published_time":"2025-09-26T10:27:57+00:00","og_image":[{"width":1200,"height":514,"url":"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png","type":"image\/png"}],"author":"Marco Vermeulen","twitter_card":"summary_large_image","twitter_creator":"@EqualExperts","twitter_site":"@EqualExperts","twitter_misc":{"Written by":"Marco Vermeulen","Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#article","isPartOf":{"@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/"},"author":{"name":"Marco Vermeulen","@id":"https:\/\/www.equalexperts.com\/#\/schema\/person\/bac82803f0fc9c070b4604ca4cd6466a"},"headline":"From madness to method with AI coding: Part 2 &#8211; Guardrails","datePublished":"2025-09-26T10:27:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/"},"wordCount":762,"publisher":{"@id":"https:\/\/www.equalexperts.com\/#organization"},"image":{"@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png","articleSection":["AI"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/","url":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/","name":"From madness to method with AI coding: Part 2 - Guardrails | Equal Experts","isPartOf":{"@id":"https:\/\/www.equalexperts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#primaryimage"},"image":{"@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png","datePublished":"2025-09-26T10:27:57+00:00","description":"AI coding assistants are powerful, but LLMs have been trained on code that reflects every opinion and pattern on the internet. If you want them to follow your way of working, you need to be explicit with guardrails.","breadcrumb":{"@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#primaryimage","url":"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png","contentUrl":"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2025\/09\/Madness-to-method-2-Guardrails.png","width":1200,"height":514,"caption":"From madness to method with AI coding part 2 Guardrails"},{"@type":"BreadcrumbList","@id":"https:\/\/www.equalexperts.com\/blog\/ai\/from-madness-to-method-with-ai-coding-part-2-guardrails\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.equalexperts.com\/"},{"@type":"ListItem","position":2,"name":"From madness to method with AI coding: Part 2 &#8211; Guardrails"}]},{"@type":"WebSite","@id":"https:\/\/www.equalexperts.com\/#website","url":"https:\/\/www.equalexperts.com\/","name":"Equal Experts","description":"Making Software. Better.","publisher":{"@id":"https:\/\/www.equalexperts.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.equalexperts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.equalexperts.com\/#organization","name":"Equal Experts","url":"https:\/\/www.equalexperts.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.equalexperts.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2018\/08\/Equal_Experts_Logo_CMYK_Colour.jpg","contentUrl":"https:\/\/www.equalexperts.com\/wp-content\/uploads\/2018\/08\/Equal_Experts_Logo_CMYK_Colour.jpg","width":719,"height":340,"caption":"Equal Experts"},"image":{"@id":"https:\/\/www.equalexperts.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/EqualExperts","https:\/\/www.linkedin.com\/company\/equal-experts\/?viewAsMember=true"]},{"@type":"Person","@id":"https:\/\/www.equalexperts.com\/#\/schema\/person\/bac82803f0fc9c070b4604ca4cd6466a","name":"Marco Vermeulen","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.equalexperts.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/246f68106d218eb4235825fc0f653aae0f724a67736d478205011629aa02fe0e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/246f68106d218eb4235825fc0f653aae0f724a67736d478205011629aa02fe0e?s=96&d=mm&r=g","caption":"Marco Vermeulen"}}]}},"_links":{"self":[{"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/posts\/22095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/users\/174"}],"replies":[{"embeddable":true,"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/comments?post=22095"}],"version-history":[{"count":0,"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/posts\/22095\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/media\/22098"}],"wp:attachment":[{"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/media?parent=22095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/categories?post=22095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/tags?post=22095"},{"taxonomy":"location","embeddable":true,"href":"https:\/\/www.equalexperts.com\/wp-json\/wp\/v2\/location?post=22095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}