<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rlabs</title>
    <description>The latest articles on DEV Community by Rlabs (@rlabs).</description>
    <link>https://dev.to/rlabs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3868381%2F13a4dc4d-dcfa-46ce-8ef7-c3f632082028.png</url>
      <title>DEV Community: Rlabs</title>
      <link>https://dev.to/rlabs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rlabs"/>
    <language>en</language>
    <item>
      <title>Two Pillars Protocol — A maturity model for AI-era software engineering</title>
      <dc:creator>Rlabs</dc:creator>
      <pubDate>Mon, 08 Jun 2026 23:17:51 +0000</pubDate>
      <link>https://dev.to/rlabs/two-pillars-protocol-a-maturity-model-for-ai-era-software-engineering-4bkj</link>
      <guid>https://dev.to/rlabs/two-pillars-protocol-a-maturity-model-for-ai-era-software-engineering-4bkj</guid>
      <description>&lt;p&gt;Software engineering has had maturity models for forty years. CMMI told organizations whether their processes were repeatable. ISO/IEC 33000 told them whether quality was measurable. Pöppelbuß &amp;amp; Röglinger (2011) gave the field a methodology to evaluate the maturity models themselves.&lt;/p&gt;

&lt;p&gt;None of them speak the language of the engineer who, last Tuesday, dispatched four agentic flows in parallel, gated three of them with tests, killed one because the spec was wrong, and shipped the surviving merge inside two hours.&lt;/p&gt;

&lt;p&gt;That engineer is doing something old (engineering) and something new (engineering with AI as a collaborator). The new part isn't "uses AI tools" — that's like measuring a programmer in 1995 by whether they used an IDE. The new part is &lt;strong&gt;how the work is structured&lt;/strong&gt; when an engineer can hold multiple evaluation axes active in parallel — architecture, product, code, validation — and integrate what survives.&lt;/p&gt;

&lt;p&gt;The Two Pillars Protocol is an instrument and a maturity model for measuring exactly that: the new individual cognitive capacity, and the organizational conditions that let it consolidate.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two pillars
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Pillar 1 — Mixer Mode (individual).&lt;/strong&gt; The cognitive disposition to keep multiple evaluation axes active in parallel without switching hats. Not multitasking — modulation. Three sub-dimensions: Multiplicity, Simultaneity, Integration. Server-side scored from 18 items with explicit weights and inverse penalties.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pillar 2 — Meta-Software (organizational).&lt;/strong&gt; Software (and the organization around it) that understands, modifies, validates and supports other software at the symbolic level. Four D-scores: D1 Cognitive, D2 Meta-Software, D3 Institutional, D4 Exposure.&lt;/p&gt;

&lt;p&gt;The two pillars compose into a 2D quadrant: Leading edge / Orchestrator without theory / Theory without practice / Early in the curve.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the instrument is
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;78 items across 6 blocks (67 scored + 11 metadata/consent). 12–18 minutes.&lt;/li&gt;
&lt;li&gt;Server-side scoring (we never trust client-computed scores).&lt;/li&gt;
&lt;li&gt;K-anonymity ≥ 3 per aggregate cell. No org or sub-team reported with fewer than 3 respondents.&lt;/li&gt;
&lt;li&gt;Token-based individual reports — no account, no email login required.&lt;/li&gt;
&lt;li&gt;Cycle mode for organizations — internal cohort, aggregate dashboard, individual reports.&lt;/li&gt;
&lt;li&gt;Pilot license open by design. Operationalization and scoring code public at v0.5.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why we're publishing it now
&lt;/h2&gt;

&lt;p&gt;The instrument is in pilot v0.4. We've validated content with a handful of friendly engineers; we have early data from a small private cohort. The instrument works end-to-end.&lt;/p&gt;

&lt;p&gt;What we don't yet know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reliability (Cronbach's α) — needs ~200 respondents per functional area&lt;/li&gt;
&lt;li&gt;Predictive validity — needs 12–24 months longitudinal&lt;/li&gt;
&lt;li&gt;Cultural transferability — designed in EN, untested in translation&lt;/li&gt;
&lt;li&gt;Latent construct validity — factor analysis pending&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are open empirical questions. We're publishing now to gather the data needed to answer them.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to participate
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Take the diagnostic yourself.&lt;/strong&gt; ~15 minutes. Individual mode is free, no account needed. The output is a private report with the Mixer Index, D-score perceptions of your org, quadrant placement, and peer comparison context. The private URL is the credential — bookmark it to re-access.&lt;/p&gt;

&lt;p&gt;→ &lt;a href="https://assess.rlabs.cl/v1/?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=tpp-launch" rel="noopener noreferrer"&gt;https://assess.rlabs.cl/v1/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run a cycle in your organization.&lt;/strong&gt; For tech leaders who want to assess their team systematically. Self-service from the same URL with the &lt;code&gt;?cycle=new&lt;/code&gt; flag.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Engage with the model.&lt;/strong&gt; If you find a measurement issue, missed prior framework, or operationalization issue, we want to know. &lt;a href="mailto:contacto@rlabs.cl"&gt;contacto@rlabs.cl&lt;/a&gt;.## Where this is going&lt;/p&gt;

&lt;p&gt;The Two Pillars Protocol is in pilot v0.4. The v0.5 sprint completes cycle-aware reporting and the public release of the operationalization and scoring code. The v1 paper writes up the methodology, the crosswalk vs prior models (CMMI, ISO/IEC 33000, P&amp;amp;R 2011), and the initial empirical findings as the data accumulates.&lt;/p&gt;

&lt;p&gt;The platform is operational. The model is real. The limitations are real and named.&lt;/p&gt;

&lt;p&gt;Full conceptual depth and crosswalk methodology: &lt;a href="https://rlabs.cl/blog/two-pillars-maturity-model-proposal?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=tpp-launch" rel="noopener noreferrer"&gt;https://rlabs.cl/blog/two-pillars-maturity-model-proposal&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Two Pillars Protocol · pilot v0.4 · contact &lt;a href="mailto:contacto@rlabs.cl"&gt;contacto@rlabs.cl&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>softwareengineering</category>
      <category>maturitymodel</category>
      <category>careerdevelopment</category>
    </item>
    <item>
      <title>Stop prompting "write me an API" — teach the LLM the shape first</title>
      <dc:creator>Rlabs</dc:creator>
      <pubDate>Sun, 19 Apr 2026 23:17:08 +0000</pubDate>
      <link>https://dev.to/rlabs/stop-prompting-write-me-an-api-teach-the-llm-the-shape-first-24i5</link>
      <guid>https://dev.to/rlabs/stop-prompting-write-me-an-api-teach-the-llm-the-shape-first-24i5</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;One-shot LLM code generation fails because it has no structural context.&lt;br&gt;
Archetypes are a YAML contract that fixes that. I'll walk through one&lt;br&gt;
end-to-end.&lt;/p&gt;

&lt;h2&gt;
  
  
  The "90% right, 10% wrong in load-bearing places" problem
&lt;/h2&gt;

&lt;p&gt;[2-3 párrafos con ejemplos reales: layer leakage, mocked tests,&lt;br&gt;
error paths que pierden contexto en el stack trace]&lt;/p&gt;

&lt;h2&gt;
  
  
  What a structural archetype is
&lt;/h2&gt;

&lt;p&gt;An archetype is a declarative contract describing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Top-level directory layout&lt;/li&gt;
&lt;li&gt;Component boundaries (and what crosses them)&lt;/li&gt;
&lt;li&gt;Contracts between components&lt;/li&gt;
&lt;li&gt;Validation gates that must pass post-generation&lt;/li&gt;
&lt;li&gt;A self-challenge spec the agent runs against its own output&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;[Snippet real de un archetype: &lt;code&gt;hexagonal-api.yaml&lt;/code&gt;, ~20 líneas]&lt;/p&gt;

&lt;h2&gt;
  
  
  Walkthrough: &lt;code&gt;hexagonal-api&lt;/code&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The agent reads the archetype
&lt;/h3&gt;

&lt;p&gt;[Código: claude-code con MCP server configurado, invocando el archetype]&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Generation pass
&lt;/h3&gt;

&lt;p&gt;[Output esperado: árbol de archivos generado]&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Self-challenge
&lt;/h3&gt;

&lt;p&gt;The agent re-reads the archetype and scores its own output against&lt;br&gt;
the contract. When it drifts (e.g., puts persistence concerns in the&lt;br&gt;
domain layer) it fails the gate and iterates.&lt;/p&gt;

&lt;p&gt;[Ejemplo: el self-challenge detecta una violación y la corrige]&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Running the tests
&lt;/h3&gt;

&lt;p&gt;[pytest output, green]&lt;/p&gt;

&lt;h2&gt;
  
  
  When this doesn't fit
&lt;/h2&gt;

&lt;p&gt;Be honest about limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Greenfield &amp;gt; existing codebases (for now)&lt;/li&gt;
&lt;li&gt;The archetype has to match your stack &lt;em&gt;shape&lt;/em&gt;, not just language&lt;/li&gt;
&lt;li&gt;Contracts that change frequently drift from the archetype — treat
the archetype as the "starting chassis", not the spec of record&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Other archetypes in the catalog
&lt;/h2&gt;

&lt;p&gt;Short list of 5-6 with one-line use cases. Link to marketplace.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building your own archetype
&lt;/h2&gt;

&lt;p&gt;Quick pointer: the schema is documented at &lt;code&gt;/docs/archetype-schema&lt;/code&gt;.&lt;br&gt;
Anyone can publish one — sellers set their own price and can offer&lt;br&gt;
seller-funded cashback.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I charge for this
&lt;/h2&gt;

&lt;p&gt;[Párrafo honesto: pago infra, estoy invertido, precio bajo deliberado]&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Author note:&lt;/strong&gt; I'm running launch-week cashback on the 61 archetypes&lt;br&gt;
I authored — code &lt;code&gt;SURPRISE_DEVTO&lt;/code&gt; returns ~50% of the price as wallet&lt;br&gt;
credit. It's funded from my royalty (not the platform's), 250 uses,&lt;br&gt;
expires June 18. Feedback about which archetypes are missing is the&lt;br&gt;
real currency I'm after.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>showdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Why AI-Generated Code Needs Architecture Standards (and How We Solved It)</title>
      <dc:creator>Rlabs</dc:creator>
      <pubDate>Sun, 12 Apr 2026 16:05:54 +0000</pubDate>
      <link>https://dev.to/rlabs/why-ai-generated-code-needs-architecture-standards-and-how-we-solved-it-2nmh</link>
      <guid>https://dev.to/rlabs/why-ai-generated-code-needs-architecture-standards-and-how-we-solved-it-2nmh</guid>
      <description>&lt;p&gt;Ask Claude, GPT, or Cursor to generate a REST API. You get a project. Ask again — you get a completely different structure. Different folders, different patterns, different conventions. Do it five times, maintain all five. Good luck.&lt;/p&gt;

&lt;p&gt;This is the reality of AI-assisted development in 2026: the code works, but &lt;strong&gt;there's no consistency&lt;/strong&gt;. Every generated project is a snowflake. And when your team has to maintain ten snowflakes, the speed advantage of AI disappears fast.&lt;/p&gt;

&lt;p&gt;We built &lt;a href="https://github.com/rlabs-cl/agentguard-lib" rel="noopener noreferrer"&gt;AgentGuard&lt;/a&gt; to fix this.&lt;/p&gt;

&lt;h2&gt;
  
  
  What AgentGuard Actually Does
&lt;/h2&gt;

&lt;p&gt;AgentGuard is an open-source Python library that sits between your AI agent and the code it generates. It acts as an &lt;strong&gt;architecture layer&lt;/strong&gt; — enforcing consistent patterns, folder structures, and conventions through what we call &lt;strong&gt;archetypes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;An archetype is essentially an architecture template: it defines how a project should be structured, what patterns to follow, and what conventions to respect. Think of it as a blueprint that your AI agent must follow when generating code.&lt;/p&gt;

&lt;p&gt;The key difference from scaffolding tools like Cookiecutter: AgentGuard doesn't just create files. It works &lt;strong&gt;through&lt;/strong&gt; your AI agent via &lt;a href="https://modelcontextprotocol.io" rel="noopener noreferrer"&gt;MCP (Model Context Protocol)&lt;/a&gt;, guiding the generation process step by step — skeleton first, then implementation, then validation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;rlabs-agentguard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No API keys required. MIT license.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem in Practice
&lt;/h2&gt;

&lt;p&gt;Here's a real scenario we recorded for our demo series. We have a Note Manager API — a Flask app crammed into a single &lt;code&gt;app.py&lt;/code&gt; file. 280 lines. Everything mixed together:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Routes, business logic, and database access in one file&lt;/li&gt;
&lt;li&gt;Raw SQL embedded inside route handlers&lt;/li&gt;
&lt;li&gt;Authentication with MD5 (yes, really)&lt;/li&gt;
&lt;li&gt;Global variables for sessions and cache&lt;/li&gt;
&lt;li&gt;No types, no tests, hardcoded secrets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It works. It runs. It's also unmaintainable, untestable, and a security risk.&lt;/p&gt;

&lt;p&gt;This is what AI generates when you just say "build me an API" without architectural guidance. And it's what most teams end up with when they adopt AI coding tools without a strategy.&lt;/p&gt;

&lt;h2&gt;
  
  
  How AgentGuard Fixes It
&lt;/h2&gt;

&lt;p&gt;AgentGuard operates in phases. When your AI agent receives a prompt like "generate a Note Manager API," AgentGuard intercepts through MCP and runs the generation through a structured pipeline:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Skeleton&lt;/strong&gt; — Defines the complete project structure before writing a single line of code. Folders, files, responsibilities, layer boundaries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Implementation&lt;/strong&gt; — The agent generates code file by file, following the patterns defined in the archetype. Hexagonal architecture means domain logic is separated from infrastructure. Repository pattern means database access has a clean interface.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Validation&lt;/strong&gt; — AgentGuard checks that the generated code actually follows the archetype's rules. Wrong layer dependency? Missing interface? It catches it.&lt;/p&gt;

&lt;p&gt;The result: instead of a 280-line spaghetti file, you get a clean hexagonal API with separated layers, proper auth, typed models, and tests. Same functionality, completely different maintainability.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Marketplace
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://agentguard.rlabs.cl/marketplace" rel="noopener noreferrer"&gt;AgentGuard Marketplace&lt;/a&gt; currently hosts 61+ archetypes covering common patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;API backends&lt;/strong&gt; — hexagonal architecture with FastAPI/Flask&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CQRS services&lt;/strong&gt; — command/query separation with event sourcing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;React SPAs&lt;/strong&gt; — component structure with state management patterns&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation templates&lt;/strong&gt; — ADRs, PRDs, dev guides&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Microservice scaffolds&lt;/strong&gt; — with proper boundaries and contracts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Any team can create and publish their own archetypes. Your company's architecture standards, packaged as reusable templates that any AI agent can consume.&lt;/p&gt;

&lt;h2&gt;
  
  
  MCP: Why It Matters
&lt;/h2&gt;

&lt;p&gt;AgentGuard uses MCP (Model Context Protocol) as its integration layer. This means it works with &lt;strong&gt;any AI agent that supports MCP&lt;/strong&gt; — Claude, Cline, Cursor, Windsurf, and more.&lt;/p&gt;

&lt;p&gt;Your IDE agent connects to the marketplace, searches for archetypes, downloads them, and applies them — all automatically. No copy-pasting configuration files. No manual setup per project.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# In your AI agent (Claude, Cline, etc.):
"Using AgentGuard with the api_backend archetype, 
 generate a Note Manager REST API with FastAPI, 
 SQLite, JWT auth, and hexagonal architecture"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent handles the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  See It in Action
&lt;/h2&gt;

&lt;p&gt;We recorded a demo series showing every step, from installation to migrating real spaghetti code:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Episode&lt;/th&gt;
&lt;th&gt;What it covers&lt;/th&gt;
&lt;th&gt;Link&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Explainer (EN)&lt;/td&gt;
&lt;td&gt;What is AgentGuard? — 4 min overview&lt;/td&gt;
&lt;td&gt;&lt;a href="https://youtu.be/Fsl_BTeq0eM" rel="noopener noreferrer"&gt;Watch&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Explainer (ES)&lt;/td&gt;
&lt;td&gt;¿Qué es AgentGuard? — explicación en español&lt;/td&gt;
&lt;td&gt;&lt;a href="https://youtu.be/aTE2xxzKyag" rel="noopener noreferrer"&gt;Watch&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ep.01&lt;/td&gt;
&lt;td&gt;Installation &amp;amp; Setup — pip install to running in 4 min&lt;/td&gt;
&lt;td&gt;&lt;a href="https://youtu.be/HUFiIHqNwfM" rel="noopener noreferrer"&gt;Watch&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ep.02&lt;/td&gt;
&lt;td&gt;Project from Scratch — empty folder to working API&lt;/td&gt;
&lt;td&gt;&lt;a href="https://youtu.be/mVh51d8gk1E" rel="noopener noreferrer"&gt;Watch&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ep.03&lt;/td&gt;
&lt;td&gt;Auto Documentation — ADR, PRD, Dev Guide generated&lt;/td&gt;
&lt;td&gt;&lt;a href="https://youtu.be/m9HBhEpDjpI" rel="noopener noreferrer"&gt;Watch&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ep.04&lt;/td&gt;
&lt;td&gt;Spaghetti → CQRS — 280 lines of chaos to clean architecture&lt;/td&gt;
&lt;td&gt;&lt;a href="https://youtu.be/XT3KqAWfF3I" rel="noopener noreferrer"&gt;Watch&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The migration demo (Ep.04) is the most compelling: same app, same functionality, before and after. The spaghetti app runs, we migrate it live with AgentGuard, and the result runs with the same API contract but clean architecture underneath.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Stack
&lt;/h2&gt;

&lt;p&gt;For the demos we used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt;: Qwen 3.5 (running locally via Ollama — no cloud dependency)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent&lt;/strong&gt;: Cline in VSCode&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QA layer&lt;/strong&gt;: AgentGuard MCP server&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment&lt;/strong&gt;: Clean Windows Sandbox&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is intentional. We wanted to show that AgentGuard works with &lt;strong&gt;local models&lt;/strong&gt;, not just cloud APIs. If a local 7B model can follow architectural patterns through AgentGuard, any model can.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is This For?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Tech leads and architects&lt;/strong&gt; who want their team's AI-generated code to follow company standards. Instead of writing a 50-page architecture guide that nobody reads, package your standards as an archetype. The AI follows it automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solo developers&lt;/strong&gt; who want consistency across their own projects. Same patterns, same structure, every time. Six months from now, you'll actually understand the code your AI generated today.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Teams adopting AI coding tools&lt;/strong&gt; who are discovering that "fast code" and "maintainable code" are not the same thing. AgentGuard bridges that gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;rlabs-agentguard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/rlabs-cl/agentguard-lib" rel="noopener noreferrer"&gt;github.com/rlabs-cl/agentguard-lib&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Marketplace&lt;/strong&gt;: &lt;a href="https://agentguard.rlabs.cl/marketplace" rel="noopener noreferrer"&gt;agentguard.rlabs.cl/marketplace&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPI&lt;/strong&gt;: &lt;a href="https://pypi.org/project/rlabs-agentguard/" rel="noopener noreferrer"&gt;pypi.org/project/rlabs-agentguard&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MIT license. No API keys. One pip install. We'd love feedback — drop an issue on GitHub or leave a comment here.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>architecture</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Why AI-Generated Code Needs a Quality Layer</title>
      <dc:creator>Rlabs</dc:creator>
      <pubDate>Wed, 08 Apr 2026 18:30:52 +0000</pubDate>
      <link>https://dev.to/rlabs/why-ai-generated-code-needs-a-quality-layer-2fia</link>
      <guid>https://dev.to/rlabs/why-ai-generated-code-needs-a-quality-layer-2fia</guid>
      <description>&lt;h1&gt;
  
  
  Why AI-Generated Code Needs a Quality Layer
&lt;/h1&gt;

&lt;p&gt;When we started RLabs, we believed in a simple promise: let AI agents write code faster. But we quickly discovered a harder truth—speed without structure creates disasters.&lt;/p&gt;

&lt;p&gt;I've watched Claude and GPT produce dozens of lines of plausible-looking code that falls apart the moment you try to run it. Hallucinated imports. Inconsistent architecture. Missing error handling. Functions that assume globals exist. Async/await patterns that deadlock. It's not the models' fault. They're trained to continue patterns, not to architect systems.&lt;/p&gt;

&lt;p&gt;The first instinct was predictable: "Let's just prompt harder." Ask the agent to use a specific pattern. Add examples to the context. Tell it to validate its own output. Some of this helps, but it doesn't scale. Every project needs slightly different rules. Every team has different conventions. And most critically—checking your own work is not the same as building with constraint.&lt;/p&gt;

&lt;p&gt;We built AgentGuard to solve this.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem Isn't the Agent. It's the Contract.
&lt;/h2&gt;

&lt;p&gt;When developers write code without structure, we catch mistakes in code review. When agents write code, we don't have that. So we decided: lock down the structure &lt;em&gt;before&lt;/em&gt; the agent even starts typing.&lt;/p&gt;

&lt;p&gt;AgentGuard is an MCP (Model Context Protocol) server that guides AI agents through a five-step refinement process:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Skeleton&lt;/strong&gt; — Agent creates the file structure and function signatures without implementation. Catches architectural mistakes early.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contracts and Wiring&lt;/strong&gt; — Agent specifies types, dependencies, and interfaces. You verify they match your system before any logic exists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logic&lt;/strong&gt; — Only now does the agent implement the actual code. But it's constrained by the contracts above—no surprise dependencies, no weird globals, no architectural detours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Challenge Criteria&lt;/strong&gt; — Agent generates self-review criteria against quality standards. Built-in validation before a single test runs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate&lt;/strong&gt; — Final check: syntax, lint, types, imports. Does the structure match the contract?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All of this runs locally, without calling an LLM server. AgentGuard doesn't generate code. It structures the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Archetypes: Reusable Quality Patterns
&lt;/h2&gt;

&lt;p&gt;Not every team needs the same structure. A hexagonal architecture API looks completely different from an ADR documentation system, which looks different from a Go-to-Market campaign builder.&lt;/p&gt;

&lt;p&gt;We created archetypes (architectural templates) for this. An archetype is a set of templates + prompts that define &lt;em&gt;how&lt;/em&gt; each of the five steps should work for your specific context.&lt;/p&gt;

&lt;p&gt;We ship 61+ archetypes on our marketplace at &lt;a href="https://agentguard.rlabs.cl/marketplace" rel="noopener noreferrer"&gt;agentguard.rlabs.cl/marketplace&lt;/a&gt;. Hexagonal API. ADR. Event-driven systems. FastAPI backend. CQRS patterns. Each one encodes architectural knowledge into a repeatable pattern your agent can follow consistently.&lt;/p&gt;

&lt;p&gt;When you run AgentGuard with an archetype, the agent doesn't see generic instructions. It sees the exact structure your team cares about. The validation it runs matches your conventions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real Numbers, Honest State
&lt;/h2&gt;

&lt;p&gt;We've been live for a few months:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;878+ downloads/month&lt;/strong&gt; on PyPI&lt;/li&gt;
&lt;li&gt;9 stars on GitHub (we're not a viral hit, and we're okay with that)&lt;/li&gt;
&lt;li&gt;Used by teams running production workloads on the five-step system&lt;/li&gt;
&lt;li&gt;In active development — improvements to the refinement process every sprint&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This isn't a wrapper around ChatGPT. AgentGuard doesn't touch your API keys or call external models. It runs locally. It works with Claude, GPT, Cline, or any agent that speaks MCP.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Next Step
&lt;/h2&gt;

&lt;p&gt;If you've felt friction between "AI-generated code" and "production-ready code," AgentGuard was built for that gap.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;rlabs-agentguard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No API keys. No setup ceremony. Then explore archetypes for your use case at &lt;a href="https://agentguard.rlabs.cl/marketplace" rel="noopener noreferrer"&gt;agentguard.rlabs.cl/marketplace&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We built this because we got tired of code that looked right until it didn't. Structure matters more than speed.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>codequality</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
