<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Codesplosion</title>
  <subtitle>Outcome-first product leadership for complex technical environments. Specializing in the orchestration of agentic systems and the ethical governance of AI.</subtitle>
  <link href="https://codesplosion.com/feed.xml" rel="self"/>
  <link href="https://codesplosion.com/"/>
  <updated>2026-06-23T00:00:00Z</updated>
  <id>https://codesplosion.com/</id>
  <author>
    <name>Liana Leahy</name>
    <email>hello@lianaleahy.com</email>
  </author>
  
  <entry>
    <title>Putting it Together</title>
    <link href="https://codesplosion.com/posts/2025-01-01-putting-it-together/"/>
    <updated>2025-01-01T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2025-01-01-putting-it-together/</id>
    <content type="html">&lt;p&gt;Sondheim&#39;s &amp;quot;Putting it Together&amp;quot; from &lt;em&gt;Sunday in the Park with George&lt;/em&gt; speaks to something deeper than just painting. It&#39;s a profound reflection on any creative process – including the complex journey of software development.&lt;/p&gt;
&lt;p&gt;You see it every day in our work: that gap between vision and reality. Ideas flow easily in planning meetings, but the real work? That&#39;s in the trenches of execution. It&#39;s in every decision about architecture, every debugging session, every compromise between what we dreamed and what we can deliver.&lt;/p&gt;
&lt;p&gt;Think about your last major project. Remember all those tiny decisions? Each git commit, each API choice, each performance trade-off – they&#39;re all brushstrokes on a canvas. Your &amp;quot;killer app&amp;quot; doesn&#39;t spring fully formed from a product spec. Instead, it emerges gradually through countless hours of coding, testing, and refinement.&lt;/p&gt;
&lt;p&gt;Just like Sondheim&#39;s artist carefully selects colors and applies each brushstroke, you&#39;re crafting something through every choice you make – balancing functionality, performance, and user experience. It&#39;s not just about writing code. It&#39;s about putting it together, piece by piece, until your vision becomes reality.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[Song Quote Attribution: Stephen Sondheim, &lt;em&gt;Sunday in the Park with George&lt;/em&gt;]&lt;/strong&gt;&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>What makes AI product management different</title>
    <link href="https://codesplosion.com/posts/2025-01-27-what-makes-ai-product-management-different/"/>
    <updated>2025-01-27T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2025-01-27-what-makes-ai-product-management-different/</id>
    <content type="html">&lt;p&gt;We&#39;ve seen this repeatedly: companies get excited about sophisticated AI models, but what drives real adoption is solving real problems. For example, when users say &amp;quot;make my writing better,&amp;quot; they don&#39;t care if you&#39;re using a large language model or clever rules – they care about getting clearer, more effective text.&lt;/p&gt;
&lt;p&gt;Here&#39;s what makes AI product management different:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You need to manage uncertainty in new ways.&lt;/strong&gt; Traditional software is deterministic – if you input A, you get B. But with AI, you might get B, or B-ish, or sometimes Q. We&#39;ve learned that setting clear user expectations is crucial. When Spotify recommends music, they don&#39;t promise perfect recommendations – they create an experience that makes discovery fun and low-risk.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You have to think differently about testing.&lt;/strong&gt; Traditional A/B testing still matters, but you&#39;re also watching for model drift, bias, and edge cases that could hurt users. When GitHub launched Copilot, they didn&#39;t just test if it wrote code – they had to ensure it wrote secure, ethical code that respected licensing requirements.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And let&#39;s have some real talk about ethical considerations!&lt;/strong&gt; You&#39;re not just asking &amp;quot;can we build this?&amp;quot; but &amp;quot;should we build this, and how can we build this safely?&amp;quot;&lt;/p&gt;
&lt;p&gt;We&#39;ve seen AI products stumble and cause real harm because they didn&#39;t consider their societal or safety impacts early enough. Your role includes being an ethical steward, thinking through potential misuse and unintended consequences.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Coming up in the next few years, you&#39;ll need to tackle:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Increasing demands for AI transparency&lt;/li&gt;
&lt;li&gt;Evolution of AI regulations and compliance requirements&lt;/li&gt;
&lt;li&gt;Growing user sophistication about AI capabilities and limitations&lt;/li&gt;
&lt;li&gt;The need to differentiate in an increasingly crowded AI market&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Want to be better prepared?&lt;/strong&gt; Start by deeply understanding your users&#39; problems before jumping to AI solutions. Build strong relationships with your data science team – you&#39;ll need to speak their language. And always keep ethical considerations at the forefront of your decision-making.&lt;/p&gt;
&lt;p&gt;Remember: great AI product management isn&#39;t about having the most advanced technology. It&#39;s about creating trustworthy solutions that make your users&#39; lives better. Keep that as your north star, and the technical decisions become much clearer.&lt;/p&gt;
&lt;p&gt;What aspects of AI product management would you like to explore further? Whether it&#39;s user research methods, measuring success, or managing stakeholder expectations, reach out so we can dive deeper into any area that interests you.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>AI is a Goldfish</title>
    <link href="https://codesplosion.com/posts/2025-01-29-ai-is-a-goldfish/"/>
    <updated>2025-01-29T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2025-01-29-ai-is-a-goldfish/</id>
    <content type="html">&lt;p&gt;You know that frustrating moment when you&#39;re chatting with an AI, and it suddenly forgets what you were just talking about? Despite all the hype around AI&#39;s capabilities, this memory problem reveals something important: even the most advanced AI systems need solid software engineering behind them to create genuinely useful experiences.&lt;/p&gt;
&lt;h2 id=&quot;why-does-this-keep-happening%3F&quot; tabindex=&quot;-1&quot;&gt;Why Does This Keep Happening?&lt;/h2&gt;
&lt;p&gt;Here&#39;s the thing: every time you send a message to an AI, it&#39;s basically starting fresh. Imagine trying to have a conversation with someone who has a 5-second memory – that&#39;s essentially what&#39;s happening!&lt;/p&gt;
&lt;p&gt;The obvious solution might seem to be sending the entire conversation history each time. But this approach comes with serious drawbacks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Higher server costs&lt;/li&gt;
&lt;li&gt;Slower response times&lt;/li&gt;
&lt;li&gt;Frustrated users waiting for answers&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is where traditional software engineering practices come into play. Instead of trying to force AI to solve every problem, we need to look at proven tools in our existing technical toolbox.&lt;/p&gt;
&lt;h2 id=&quot;building-a-better-memory-system&quot; tabindex=&quot;-1&quot;&gt;Building a Better Memory System&lt;/h2&gt;
&lt;p&gt;Think about how your own memory works. You don&#39;t remember EVERY detail of a conversation – you remember the important parts. This same principle can be applied by combining AI with traditional database systems and business logic.&lt;/p&gt;
&lt;h2 id=&quot;step-1%3A-identifying-what-actually-matters&quot; tabindex=&quot;-1&quot;&gt;Step 1: Identifying What Actually Matters&lt;/h2&gt;
&lt;p&gt;Before diving into technical solutions, it&#39;s crucial to map out what&#39;s worth remembering:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What is the user trying to accomplish?&lt;/li&gt;
&lt;li&gt;Which details are crucial for understanding?&lt;/li&gt;
&lt;li&gt;What can be safely forgotten?&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;step-2%3A-leveraging-traditional-tools&quot; tabindex=&quot;-1&quot;&gt;Step 2: Leveraging Traditional Tools&lt;/h2&gt;
&lt;p&gt;Two fundamental components can help AI systems remember more effectively:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Datastores&lt;/strong&gt; (fancy word for a really smart notebook): Instead of forcing AI to remember entire conversations, you can store just the key points in a traditional database. In a conversation about an apple, you might record:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Its color&lt;/li&gt;
&lt;li&gt;The intended use (baking, eating, etc.)&lt;/li&gt;
&lt;li&gt;User preferences (variety, ripeness)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But you wouldn&#39;t need to remember every single word exchanged about that apple.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Business Logic&lt;/strong&gt; (the decision-maker): This is where traditional software engineering shines, handling:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;WHAT to remember (like those apple details)&lt;/li&gt;
&lt;li&gt;WHEN to update the information (maybe when the apple gets sliced)&lt;/li&gt;
&lt;li&gt;HOW to summarize things efficiently&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;step-3%3A-connecting-ai-with-context&quot; tabindex=&quot;-1&quot;&gt;Step 3: Connecting AI with Context&lt;/h2&gt;
&lt;p&gt;Developers can create clever ways to help AI access stored information. Think of these like sticky notes in a conversation:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[USER_NAME]: Alex
[CURRENT_TOPIC]: Baking an apple pie
[IMPORTANT_DETAIL]: Prefers Honeycrisp apples
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;what-this-means-for-better-conversations&quot; tabindex=&quot;-1&quot;&gt;What This Means for Better Conversations&lt;/h2&gt;
&lt;p&gt;When traditional software engineering practices are combined with AI effectively, users can experience:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;More natural conversation flow&lt;/li&gt;
&lt;li&gt;Better retention of preferences&lt;/li&gt;
&lt;li&gt;Faster responses (by loading only necessary information)&lt;/li&gt;
&lt;li&gt;More cost-effective AI interactions&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;real-talk%3A-current-state-and-challenges&quot; tabindex=&quot;-1&quot;&gt;Real Talk: Current State and Challenges&lt;/h2&gt;
&lt;p&gt;Are current AI systems perfect at this? Not at all. Memory management in AI conversations remains a significant challenge. Sometimes AIs still forget important context or hold onto irrelevant details. But that&#39;s exactly why combining AI with traditional software engineering is so crucial.&lt;/p&gt;
&lt;h2 id=&quot;the-reality-check&quot; tabindex=&quot;-1&quot;&gt;The Reality Check&lt;/h2&gt;
&lt;p&gt;Here&#39;s the bottom line: while AI models are powerful, they&#39;re just one piece of the puzzle. Creating truly effective conversational experiences requires good old-fashioned software engineering:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Reliable databases&lt;/strong&gt; to persistently store crucial information&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Thoughtful business logic&lt;/strong&gt; to manage what information to keep and when to use it&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Well-designed data structures&lt;/strong&gt; to organize and retrieve context efficiently&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;No matter how advanced AI models become, they&#39;ll always need these foundational elements to deliver a good user experience. It&#39;s not about replacing traditional software systems – it&#39;s about combining them with AI to create something better than either could achieve alone.&lt;/p&gt;
&lt;p&gt;Have you noticed the best AI experiences often feel like they&#39;re backed by robust systems? That&#39;s because they are. The magic isn&#39;t in the AI alone – it&#39;s in how it&#39;s integrated with tried-and-true software engineering practices.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Use a State Machine to write better AI Prompts</title>
    <link href="https://codesplosion.com/posts/2025-03-17-use-a-state-machine-to-write-better-ai-prompts/"/>
    <updated>2025-03-17T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2025-03-17-use-a-state-machine-to-write-better-ai-prompts/</id>
    <content type="html">&lt;p&gt;When non-engineers write prompts, we often see imprecise language that humans understand intuitively but confuses AI models. While a human can fill in contextual gaps, AI needs explicit instructions to perform effectively.&lt;/p&gt;
&lt;p&gt;Engineering backgrounds provide a significant advantage when crafting effective AI prompts. Here&#39;s why:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Engineers naturally think in structured, linear pathways that AI can follow&lt;/li&gt;
&lt;li&gt;They&#39;re trained to break complex systems into logical components&lt;/li&gt;
&lt;li&gt;They understand the importance of precise language and clear instructions&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;what-makes-a-good-ai-prompt&quot; tabindex=&quot;-1&quot;&gt;What Makes a Good AI Prompt&lt;/h2&gt;
&lt;p&gt;Effective AI prompts share several key characteristics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Specificity&lt;/strong&gt;: Replace vague terms like &amp;quot;good&amp;quot; or &amp;quot;better&amp;quot; with specific criteria&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Structure&lt;/strong&gt;: Present information in a logical, sequential order&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Context&lt;/strong&gt;: Provide relevant background information the AI needs to understand the task&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Clear instructions&lt;/strong&gt;: Explicitly state what you want the AI to do&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Examples&lt;/strong&gt;: Include demonstrations of desired outputs when possible&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The difference between &amp;quot;Write me something about climate change&amp;quot; and &amp;quot;Explain three specific ways renewable energy is addressing climate change, focusing on technological innovations from the past decade&amp;quot; is enormous in terms of results.&lt;/p&gt;
&lt;h2 id=&quot;why-state-machines-make-llms-think-better&quot; tabindex=&quot;-1&quot;&gt;Why State Machines Make LLMs Think Better&lt;/h2&gt;
&lt;p&gt;Think of state machines as creating a mental roadmap for AI. Here&#39;s how they help:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;They break down complex problems into clear steps that both you and the AI can follow&lt;/li&gt;
&lt;li&gt;They prevent those frustrating logical leaps that make AI responses feel disconnected&lt;/li&gt;
&lt;li&gt;They create a structure that helps track where things might go wrong&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We&#39;ve found that this approach makes AI reasoning more transparent and reliable—though we&#39;re still working through some challenges with more complex problems.&lt;/p&gt;
&lt;h2 id=&quot;real-world-application-you-can-try&quot; tabindex=&quot;-1&quot;&gt;Real-World Application You Can Try&lt;/h2&gt;
&lt;p&gt;Here&#39;s a practical state machine setup for gathering user information:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Information Collection &amp;amp; Verification Process:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Welcome state: Introduce the purpose and set expectations&lt;/li&gt;
&lt;li&gt;Information gathering state: Collect specific user details one by one&lt;/li&gt;
&lt;li&gt;Verification state: Summarize collected information&lt;/li&gt;
&lt;li&gt;Confirmation state: Get user approval or make corrections&lt;/li&gt;
&lt;li&gt;Completion state: Proceed with the verified information&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For example, a customer onboarding flow might look like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;State 1: &amp;quot;Welcome! We&#39;ll be asking for some information to customize your experience.&amp;quot;
State 2: [Collects name] → [Collects email] → [Collects preferences]
State 3: &amp;quot;Here&#39;s what we&#39;ve gathered: [Summary of all information]&amp;quot;
State 4: &amp;quot;Does this look correct?&amp;quot; (If yes → State 5, If no → return to State 2)
State 5: &amp;quot;Thank you! Your profile is complete.&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;create-your-own-state-machine-prompts&quot; tabindex=&quot;-1&quot;&gt;Create Your Own State Machine Prompts&lt;/h2&gt;
&lt;p&gt;Here&#39;s a simple template you can adapt:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;You are a reasoning agent. Follow these states to solve the problem:
State 1: Understand the problem completely
State 2: Break the problem into smaller parts
State 3: Solve each part step by step
State 4: Combine your solutions into a final answer

Problem: [Your problem here]

Now begin with state 1.&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;what-we&#39;re-learning-along-the-way&quot; tabindex=&quot;-1&quot;&gt;What We&#39;re Learning Along the Way&lt;/h2&gt;
&lt;p&gt;We&#39;ve discovered that balance is crucial. Too many states can overcomplicate things, while too few might not provide enough structure. The sweet spot depends on the complexity of your problem.&lt;/p&gt;
&lt;p&gt;What reasoning challenges are you facing that might benefit from this structured method?&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Vibe Coding: Why AI Still Needs a Pilot</title>
    <link href="https://codesplosion.com/posts/2025-04-13-vibe-coding-why-ai-still-needs-a-pilot/"/>
    <updated>2025-04-13T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2025-04-13-vibe-coding-why-ai-still-needs-a-pilot/</id>
    <content type="html">&lt;p&gt;We were genuinely excited about the potential of tools like Cursor to help everyone on our team, even those who aren&#39;t full-time programmers, contribute to building better AI interactions. We thought, &amp;quot;Imagine if our Subject Matter Experts (SMEs), with their deep understanding of our users and the subject matter, could directly translate their expertise into effective AI prompts using these new AI coding assistants!&amp;quot;&lt;/p&gt;
&lt;p&gt;So, we gave it a shot. We introduced Cursor to our SMEs, provided them with a solid template for creating structured prompts, and encouraged them to dive in and experiment. Now, these are incredibly smart, logical thinkers – the best in their fields. Yet, to our surprise, they quickly found themselves… well, hopelessly lost.&lt;/p&gt;
&lt;p&gt;This got me thinking. I wanted to understand exactly why these intelligent individuals were struggling, even with a clear template to guide them. And honestly, I was also a little excited to roll up my sleeves and get back to some hands-on coding myself. It had been a while, and I was curious to see these AI tools in action.&lt;/p&gt;
&lt;p&gt;What I quickly learned was that while Cursor&#39;s AI capabilities are undeniably powerful and hold immense promise, they&#39;re not a substitute for the nuanced understanding and hard-earned experience of a seasoned programmer. It became clear that &amp;quot;vibe coding,&amp;quot; the idea of intuitively coding with AI assistance, isn&#39;t quite as straightforward as it&#39;s sometimes portrayed.&lt;/p&gt;
&lt;p&gt;Time and time again, I watched as Cursor, left to its own devices, would get itself into tangled webs of logic. It would suggest solutions that were overly complex, introduce inconsistencies, or simply miss crucial steps in the process. It was like having a very enthusiastic but inexperienced intern who needed constant guidance. That&#39;s where I found myself stepping in – acting as a mentor, walking the AI through fundamental programming principles, the kind that senior engineers accumulate over years, often through the painful process of debugging code in the wee hours of the morning.&lt;/p&gt;
&lt;p&gt;This experience really brought to mind a list of common mistakes that junior programmers often make when they&#39;re just starting out. It felt like, in many ways, the AI was exhibiting some of these same tendencies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Poor Naming Conventions:&lt;/strong&gt; Suggesting names for variables or functions that were unclear or didn&#39;t accurately reflect their purpose. Or worse reusing the same ambiguous name for different things!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Writing Overly Complex Code:&lt;/strong&gt; Proposing solutions that were far more intricate than necessary for the task at hand.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ignoring DRY (Don&#39;t Repeat Yourself) Principle:&lt;/strong&gt; Suggesting the same block of code in multiple places instead of creating reusable components.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Premature Optimization:&lt;/strong&gt; Often focusing on potential performance improvements before the core logic was even correctly implemented.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Not Handling Errors Properly:&lt;/strong&gt; Offering basic or incomplete error handling suggestions that wouldn&#39;t cover obvious potential issues.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Over-Engineering:&lt;/strong&gt; Building solutions that were much more elaborate than the immediate problem required.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Furthermore, I noticed that when the AI encountered an error, it would often fix the first instance it found but fail to recognize and address similar errors elsewhere in the code. And perhaps most tellingly, it rarely proactively asked for clarification or context when it seemed to be missing crucial information. It required me to constantly provide the necessary background and guide its thinking.&lt;/p&gt;
&lt;p&gt;This whole experience resonated with something my friend Pete at The Gnar Company recently pointed out. He said that coding these days is a lot like flying an airplane. Modern airplanes are incredibly sophisticated pieces of technology, packed with automation and AI systems. But you wouldn&#39;t dream of letting one take off without an experienced pilot in the cockpit. That pilot&#39;s years of training, their ability to understand complex situations, and their intuition honed through countless hours of experience are still absolutely essential for a safe and successful flight.&lt;/p&gt;
&lt;p&gt;Similarly, while AI-assisted coding tools like Cursor are incredibly powerful and can undoubtedly accelerate development, they are not a replacement for the expertise and judgment of an experienced programmer. These tools can be fantastic co-pilots, suggesting solutions and automating tedious tasks. But ultimately, a skilled human is still needed at the helm to provide direction, ensure the code is well-structured, maintainable, and truly solves the underlying problem.&lt;/p&gt;
&lt;p&gt;Our experiment with our SMEs highlighted this perfectly. While the AI could offer coding suggestions, &amp;quot;it lacked the higher-level understanding of software design principles, the ability to anticipate potential pitfalls, and the critical thinking needed to navigate complex coding challenges effectively.&amp;quot;&lt;/p&gt;
&lt;p&gt;So, while the promise of &amp;quot;vibe coding&amp;quot; is exciting, the reality is that it&#39;s not yet a simple, intuitive process for everyone. It requires a foundational understanding of programming concepts and the ability to guide and mentor the AI effectively. These tools are powerful, but they amplify the skills of an experienced programmer far more than they democratize coding for everyone. We&#39;re still incredibly optimistic about the future of AI-assisted development, but it&#39;s crucial to approach it with a realistic understanding of its current capabilities and the continued importance of human expertise.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Design Thoughtful Solutions</title>
    <link href="https://codesplosion.com/posts/2025-07-28-design-thoughtful-solutions/"/>
    <updated>2025-07-28T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2025-07-28-design-thoughtful-solutions/</id>
    <content type="html">&lt;p&gt;We&#39;re all watching the same thing happen right now: AI is becoming a core part of how we work, learn, and live. It&#39;s exciting, but if you&#39;re anything like me, you also feel a deep sense of caution. The promise of this technology is immense, but the ethical and practical pitfalls feel a bit scary.&lt;/p&gt;
&lt;p&gt;I want to talk about how we can approach AI implementation not just correctly, but thoughtfully. It&#39;s about being deliberate with every step we take.&lt;/p&gt;
&lt;h2 id=&quot;the-quiet-risk-in-an-open-chat-box&quot; tabindex=&quot;-1&quot;&gt;The Quiet Risk in an Open Chat Box&lt;/h2&gt;
&lt;p&gt;I often see companies rolling out simple chat interfaces—just a blank box where employees or customers can type anything. It sounds wonderfully flexible, but I believe this &amp;quot;free text&amp;quot; approach is one of the biggest risks we face.&lt;/p&gt;
&lt;p&gt;Think about it: when you give a large language model (LLM) complete freedom, you open the door to all kinds of problems.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Accidental Leaks:&lt;/strong&gt; An employee, just trying to fix an issue, might paste a confidential document or a customer&#39;s private information into that chat box. Once it&#39;s in the system, control over that data is lost. We&#39;ve seen these leaks happen in major organizations, and it&#39;s a terrifying lesson in how easily proprietary data can slip out.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Inconsistent Answers:&lt;/strong&gt; Have you ever asked an AI a vague question and gotten a vague, rambling answer? That&#39;s what happens with free text. The quality of the response is entirely dependent on how good the user is at writing a prompt. This leads to wildly inconsistent results, which kills trust in the system.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Jailbreaking:&lt;/strong&gt; Users can, intentionally or not, craft prompts that trick the AI into ignoring its safety rules, forcing it to generate toxic content or reveal harmful instructions. Our systems need to be smarter than that.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;shifting-from-chaos-to-control&quot; tabindex=&quot;-1&quot;&gt;Shifting from Chaos to Control&lt;/h2&gt;
&lt;p&gt;One solution is to build a thoughtful structure around your prompts. We need to move away from unstructured chat and toward &lt;strong&gt;structured, intelligent prompting&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Here&#39;s the core idea: don&#39;t let the user talk directly to the AI&#39;s &amp;quot;brain.&amp;quot; Instead, let the system craft the best possible prompt for the user.&lt;/p&gt;
&lt;p&gt;Imagine this practical example:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Your colleague asks:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;quot;What do I need to do to get my expense report approved?&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;The thoughtful system does this behind the scenes&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It recognizes the intent, grabs the latest company Expense Policy from your internal drive, and builds this powerful instruction:&lt;/li&gt;
&lt;li&gt;&amp;quot;You are an HR Policy Expert. Using only the attached policy, provide the user with a concise, three-step action plan for expense report approval. The final step must include the specific deadline for submission.&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;The AI generates:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A clear, three-step numbered list, citing the correct policy.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Your colleague gets a high-quality, accurate answer, and more importantly, the system &lt;strong&gt;controlled the input&lt;/strong&gt; to ensure compliance and accuracy. It made the AI&#39;s job easy and the output reliable.&lt;/p&gt;
&lt;h2 id=&quot;human-in-the-loop&quot; tabindex=&quot;-1&quot;&gt;Human-in-the-Loop&lt;/h2&gt;
&lt;p&gt;This structured approach brings us to what I believe is the most ethical and effective way to deploy AI: the &lt;strong&gt;Human-in-the-Loop (HITL)&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;We shouldn&#39;t just ask users to accept the AI&#39;s answer. We need to invite them into the process of refinement.&lt;/p&gt;
&lt;p&gt;When the system delivers that three-step approval process, the interface could also transparently show the user what happened, and then ask for targeted feedback:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;System Transparency&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Targeted User Feedback&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;The Training Benefit&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;quot;We used this data to answer your question: &#39;Expense Policy v2.1&#39;&amp;quot;&lt;/td&gt;
&lt;td&gt;Feedback: &amp;quot;This policy is outdated. We use v2.2 now.&amp;quot;&lt;/td&gt;
&lt;td&gt;Improves Data Retrieval: The system learns to prioritize the newer policy document next time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;quot;Did the answer address your need?&amp;quot;&lt;/td&gt;
&lt;td&gt;Feedback: &amp;quot;Yes, but it missed the part about travel meals.&amp;quot;&lt;/td&gt;
&lt;td&gt;Improves Prompt Builder: The system learns to automatically include &amp;quot;travel meals&amp;quot; keywords for similar future queries.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;quot;How would you rate the clarity of the 3-step list?&amp;quot;&lt;/td&gt;
&lt;td&gt;Feedback: &amp;quot;5 stars. Perfect.&amp;quot;&lt;/td&gt;
&lt;td&gt;Improves the LLM: This is a direct signal of success for the underlying model, informing techniques like RLHF (Reinforcement Learning from Human Feedback) to generate more helpful outputs.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;By showing the user what inputs were used (the data) and what the system was trying to accomplish (the prompt), we create transparency and trust. We empower the user to train the system precisely where it needs help.&lt;/p&gt;
&lt;p&gt;This is the path to truly ethical and useful AI: We stop asking the human to blindly accept an answer, and we start asking them to help perfect the underlying system. It changes the relationship from user-to-tool into a genuine, collaborative partnership.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>The Agentic Repository</title>
    <link href="https://codesplosion.com/posts/2025-12-17-the-agentic-repository/"/>
    <updated>2025-12-17T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2025-12-17-the-agentic-repository/</id>
    <content type="html">&lt;p&gt;I was scrolling through my feed recently when I caught a piece by Jonathan Fulton. He argues that &amp;quot;agents flourish in structured, intentional, predictable environments—and they stumble in chaotic ones.&amp;quot; – and humans do too!&lt;/p&gt;
&lt;p&gt;It clicked for me because not long ago, I wrote about Why AI Still Needs a Pilot at the helm. In that post, I noted that the mistakes LLMs make are eerily similar to the ones I see from junior engineers: they tend to bite off more than they can chew, trying to solve a massive, sprawling problem in one go rather than breaking it down.&lt;/p&gt;
&lt;p&gt;But reading Jonathan&#39;s piece made me realize these are two sides of the same coin.&lt;/p&gt;
&lt;p&gt;We often see the AI trying to do too much and getting confused but we forget that in a disorganized, sprawling codebase, the AI has more to chew. When logic is tangled and boundaries are fuzzy, you can&#39;t just take a small bite. You&#39;re forced to swallow the whole mess just to understand a single function.&lt;/p&gt;
&lt;p&gt;Throughout both my engineering and product careers, I&#39;ve found that working in small, manageable chunks is the most consistent recipe for success. But to enable that for AI development, good repository hygiene and modular coding practices aren&#39;t just &amp;quot;nice-to-haves&amp;quot; for human readability anymore—they are the literal life-support systems for the AI agents we&#39;re starting to rely on.&lt;/p&gt;
&lt;h2 id=&quot;where-ai-stumbles&quot; tabindex=&quot;-1&quot;&gt;Where AI Stumbles&lt;/h2&gt;
&lt;p&gt;If we look closely at our repositories, especially older ones, they often suffer from the same issues that would overwhelm a human junior engineer:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Monolithic Files:&lt;/strong&gt; When a single file tries to handle everything from database queries to UI logic, the AI loses the thread. It&#39;s too much context and too much noise.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Snowflake Problem:&lt;/strong&gt; When every module follows a different style or pattern. AI is a world-class mimic; if you don&#39;t give it a consistent pattern to follow, it will start hallucinating its own.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ambiguous Boundaries:&lt;/strong&gt; When we ignore the separation of concerns—think business logic littered with raw SQL queries or hardcoded environment logic—we remove the guardrails the AI needs to stay in its lane. Without a clear line between the &amp;quot;rule&amp;quot; and the &amp;quot;infrastructure,&amp;quot; the agent will inevitably leak logic from one domain into the other, creating a fragile mess.&lt;/p&gt;
&lt;h2 id=&quot;mentoring-the-machine&quot; tabindex=&quot;-1&quot;&gt;Mentoring the Machine&lt;/h2&gt;
&lt;p&gt;So, how do we fix the environment? We need to create a repository architecture that is not just a place to store code, but as a map for an agent to follow.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Functional Subcomponents&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In the past, we organized code by technical concerns—controllers in one folder, models in another, etc. To an AI &amp;quot;junior engineer,&amp;quot; this is a scavenger hunt that leads to context fragmentation. Every time the agent has to &amp;quot;jump&amp;quot; across the repo to find a helper, it loses a bit of the &amp;quot;why&amp;quot; behind the task.&lt;/p&gt;
&lt;p&gt;We&#39;ve moved toward a vertical slice approach. Instead of grouping things by &lt;em&gt;what they are&lt;/em&gt;, we group them by &lt;em&gt;what they do&lt;/em&gt;. If we are building an Ingestion Pipeline, everything related to ingestion lives in one directory. By keeping the Ingestion Pipeline physically distinct from the Query Engine, we create a &amp;quot;hard boundary.&amp;quot; This encapsulation of intent means that when the AI enters a folder, 90% of the context it needs is right there, preventing logic from &amp;quot;leaking&amp;quot; into unrelated domains.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Modularity Within the Slice&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You might think that grouping by function leads to massive, unreadable files, but it&#39;s actually the opposite. Within those functional subcomponents, we enforce a strict Modular Architecture.&lt;/p&gt;
&lt;p&gt;The &amp;quot;sweet spot&amp;quot; is keeping individual files small and focused—ideally under 200 lines—while the entire subcomponent stays between 2,000–5,000 lines of code. This allows the AI to load the &lt;em&gt;entire&lt;/em&gt; subcomponent into its context window to understand the big picture, while still having small, &amp;quot;bite-sized&amp;quot; files to modify. It&#39;s the best of both worlds: the agent sees the whole &amp;quot;neighborhood&amp;quot; (the subcomponent) but only has to renovate one &amp;quot;room&amp;quot; (the file) at a time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Convention as a Guardrail&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Even within a functional slice, a junior engineer needs a template. This is where frameworks like Ruby on Rails or Next.js shine, but with a twist: Namespacing.&lt;/p&gt;
&lt;p&gt;By using namespaced directories (e.g., app/controllers/ingestion/), we get the best of both worlds. We maintain the &amp;quot;vertical slice&amp;quot; by grouping ingestion logic together, but we use the framework&#39;s opinionated conventions to make &amp;quot;similar things look similar.&amp;quot; Because every controller in that slice inherits from a common Ingestion::BaseController, the AI has a perfect template to mimic. We aren&#39;t just giving the AI code; we&#39;re giving it a repeatable playbook.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;app/
  controllers/
    ingestion/
      base_controller.rb
      parser_controller.rb
    billing/
      base_controller.rb
      invoice_controller.rb
  models/
    ingestion/
      source.rb
    billing/
      subscription.rb
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Embrace the Model Context Protocol (MCP)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Essentially, MCP is a way to build standardized &amp;quot;wrappers&amp;quot; around your database, external APIs, and even the repository itself.&lt;/p&gt;
&lt;p&gt;By indexing the repo or wrapping a database in an MCP server, you provide the AI with a specific set of tools—like &amp;quot;search_codebase&amp;quot; or &amp;quot;query_logs&amp;quot;—instead of making it guess. It moves the agent away from &amp;quot;vibe-based&amp;quot; guessing and toward a predictable, professional workflow where it has direct, structured access to the information it needs to succeed.&lt;/p&gt;
&lt;p&gt;For example, you might want to build an MCP tool called &lt;code&gt;search_codebase&lt;/code&gt;. Instead of the AI trying to read every file in the repo—which is slow and fills up its &amp;quot;memory&amp;quot;—it uses this tool to run a semantic search. It finds exactly the logic it needs across different folders in seconds. It moves the agent away from &amp;quot;vibe-based&amp;quot; guessing and toward a predictable, professional workflow where it has direct, structured access to the information it needs to succeed.&lt;/p&gt;
&lt;h2 id=&quot;building-the-ai-infrastructure-stack&quot; tabindex=&quot;-1&quot;&gt;Building the AI Infrastructure Stack&lt;/h2&gt;
&lt;p&gt;If you treat an AI agent like a web browser—something that just sits on top of your files—it will always be limited by its context window. To get senior-level results, you have to treat the AI as a &lt;strong&gt;user of your infrastructure.&lt;/strong&gt; This requires building a &amp;quot;discovery layer&amp;quot; that allows the agent to onboard itself to a task.&lt;/p&gt;
&lt;p&gt;A junior dev doesn&#39;t usually read every file in the repo; they often rely on documentation, database schemas, and tribal knowledge to learn their way around. For an AI, we provide this through Retrieval-Augmented Generation (RAG). Instead of manual searches, there are tools like Greptile or Bloop to crawl the repo and build a &amp;quot;Knowledge Graph.&amp;quot; By exposing this index to the AI via a Model Context Protocol (MCP) server, the agent can call a tool like search_codebase to find a specific functional slice in seconds, rather than guessing which files to open.&lt;/p&gt;
&lt;p&gt;The work for a Senior Lead isn&#39;t usually writing complex algorithms; it&#39;s configuration and curation. You stand up MCP servers that act as secure wrappers around your database, your Jira backlog, or your local terminal. This turns your infrastructure into a set of functions the AI can call.&lt;/p&gt;
&lt;p&gt;I&#39;ll be honest: maintaining this stack is a new kind of work. You have to ensure your codebase is indexed, your permissions are set, and your documentation is clean enough for the AI to parse. But this is the ultimate force multiplier. You spend an hour &amp;quot;tuning the engine&amp;quot; so you don&#39;t have to spend ten hours acting as a human middleman for the AI.&lt;/p&gt;
&lt;h2 id=&quot;the-takeaway&quot; tabindex=&quot;-1&quot;&gt;The Takeaway&lt;/h2&gt;
&lt;p&gt;We are moving from &lt;strong&gt;writing code&lt;/strong&gt; to &lt;strong&gt;curating the environment where code is written.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;At the end of the day, while these tools are incredibly powerful, they aren&#39;t a replacement for engineering discipline. If anything, they demand &lt;em&gt;more&lt;/em&gt; of it.&lt;/p&gt;
&lt;p&gt;The technology is impressive, but human judgment remains the &amp;quot;pilot in the cockpit.&amp;quot; We are the ones who set the boundaries, define the patterns, and ensure the environment is predictable enough for the AI to flourish. We provide the structure; the AI provides the scale.&lt;/p&gt;
&lt;p&gt;The goal isn&#39;t just to write code faster—it&#39;s to build a codebase that is so clear and so intentional that any &amp;quot;junior,&amp;quot; human or machine, can step in and contribute on day one.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>The PRD Is a Living Document Now</title>
    <link href="https://codesplosion.com/posts/2026-04-15-the-prd-is-a-living-document-now/"/>
    <updated>2026-04-15T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2026-04-15-the-prd-is-a-living-document-now/</id>
    <content type="html">&lt;p&gt;If you&#39;ve never written one, a Product Requirements Document (PRD) is the document a product manager uses to define what a team is building and why. A comprehensive PRD starts with an overview detailing the business landscape, the target user base, and the core problem being solved. It defines clear user goals alongside explicit anti-goals to focus development efforts. It includes design mockups and explains the functionality of each component so that the user experience solves the right problem in the right way. The document concludes with a prioritized list of technical or functional requirements and the specific success metrics used to measure the product&#39;s impact.&lt;/p&gt;
&lt;p&gt;Traditionally, the PRD feeds into a Build Requirements Document (BRD), which is the engineering team&#39;s translation of product intent into technical specifications. The PM defines &lt;em&gt;what&lt;/em&gt; and &lt;em&gt;why&lt;/em&gt;. The BRD defines &lt;em&gt;how&lt;/em&gt;. These were always separate documents, maintained by separate people, handed off in sequence.&lt;/p&gt;
&lt;p&gt;For most of my career, both documents existed to bridge gaps between people. The PRD bridged the gap between product and design. The BRD bridged the gap between design and engineering. You&#39;d write the PRD, get alignment, hand it to engineering, and they&#39;d produce a BRD with database schemas, API contracts, and technical architecture decisions. Then they&#39;d build.&lt;/p&gt;
&lt;p&gt;That model worked when the build cycle was weeks or months. It assumed your engineering partner had persistent memory, shared context from hallway conversations, and would ask clarifying questions when something didn&#39;t make sense.&lt;/p&gt;
&lt;h2 id=&quot;same-foundation%2C-faster-pace&quot; tabindex=&quot;-1&quot;&gt;Same foundation, faster pace&lt;/h2&gt;
&lt;p&gt;I recently built a daily digest app with an AI coding agent. The whole thing. Backend, frontend, database, deployment. It took a few sessions spread across a couple of weeks.&lt;/p&gt;
&lt;p&gt;I started the PRD the same way I always have. Business landscape. Target user. Core problem. Goals and anti-goals. Design mockups. Feature descriptions. Success metrics. That foundational thinking didn&#39;t change, and it shouldn&#39;t. You still need to know &lt;em&gt;why&lt;/em&gt; you&#39;re building something, for &lt;em&gt;whom&lt;/em&gt;, and what the experience should feel like before you write a line of code.&lt;/p&gt;
&lt;p&gt;But somewhere in the middle of the project, I realized the PRD had taken on a new kind of importance. The bones were familiar. The way I maintained it, and what it needed to contain, was completely different.&lt;/p&gt;
&lt;h2 id=&quot;the-prd-matters-more-now%2C-not-less&quot; tabindex=&quot;-1&quot;&gt;The PRD matters more now, not less&lt;/h2&gt;
&lt;p&gt;Here&#39;s the thing about working with an AI coding agent. It can read your entire codebase. It understands the implementation. But code tells you &lt;em&gt;what&lt;/em&gt; exists, not &lt;em&gt;why&lt;/em&gt; it exists, what problem it solves, who it&#39;s for, or what success looks like. Code doesn&#39;t tell you what&#39;s explicitly out of scope. Code doesn&#39;t tell you that a feature was a deliberate compromise, not a bug.&lt;/p&gt;
&lt;p&gt;The PRD is where all of that lives. And when your collaborator starts every session fresh with no memory of your previous conversations, that document is what keeps it aligned to your actual product intent. Without it, the agent infers intent from code alone, which leads to feature creep, misaligned priorities, and solutions that technically work but don&#39;t solve the right problem.&lt;/p&gt;
&lt;p&gt;So the PRD isn&#39;t just a planning artifact anymore. It&#39;s a living alignment tool. It&#39;s the thing that ensures every session, every feature, every fix stays pointed at the core problem statements and gets measured against the success criteria you defined at the start.&lt;/p&gt;
&lt;h2 id=&quot;the-line-between-prd-and-brd-is-disappearing&quot; tabindex=&quot;-1&quot;&gt;The line between PRD and BRD is disappearing&lt;/h2&gt;
&lt;p&gt;Here&#39;s where it gets interesting. My PRD now contains things that would traditionally live in a BRD. API payload shapes. Database schema decisions. JSON contracts between the frontend and backend. Which component renders which view.&lt;/p&gt;
&lt;p&gt;The gap that a BRD used to bridge barely exists anymore. When the AI generates technical scaffolding directly from product intent, the translation layer between &amp;quot;what we want&amp;quot; and &amp;quot;how it&#39;s built&amp;quot; collapses. There&#39;s no separate engineering team that needs a separate document to work from. The same collaborator that reads the product intent also writes the code.&lt;/p&gt;
&lt;p&gt;This mirrors what&#39;s happening across the industry. If you look at how companies like Anthropic design their agent systems, the pattern is the same. The agent needs to understand goals, boundaries, and current system state to operate effectively. A static checklist of requirements isn&#39;t enough. The documentation has to give the agent enough context to make good decisions within defined constraints. The traditional model of writing a PRD, then handing off a BRD, is giving way to single living documents that capture both intent and implementation contracts together.&lt;/p&gt;
&lt;p&gt;Margaret-Anne Storey, who wrote &lt;a href=&quot;https://queue.acm.org/detail.cfm?id=3699953&quot;&gt;From Technical Debt to Cognitive and Intent Debt&lt;/a&gt; in ACM Queue, calls this the shift from managing &amp;quot;technical debt&amp;quot; to managing &amp;quot;intent debt&amp;quot; and &amp;quot;cognitive debt.&amp;quot; When teams use AI to accelerate development, the risk is no longer just messy code. It&#39;s a fragmented understanding of &lt;em&gt;why&lt;/em&gt; a system exists and what constraints govern its evolution. A living PRD that captures both the product intent and the technical contracts is the defense against that fragmentation.&lt;/p&gt;
&lt;p&gt;The practical result is a single document that sits somewhere between a traditional PRD and BRD. It defines outcomes and metrics like a PRD. It specifies data contracts and interface boundaries like a BRD. And it stays current because it has to. The agent reads it every session.&lt;/p&gt;
&lt;h2 id=&quot;requirements-evolve-faster%2C-so-the-prd-evolves-faster&quot; tabindex=&quot;-1&quot;&gt;Requirements evolve faster, so the PRD evolves faster&lt;/h2&gt;
&lt;p&gt;The biggest shift is pace. When you&#39;re working with a human engineering team, the build cycle is weeks or months. You write the PRD, the team builds, you ship, and maybe you update the doc if someone remembers. In practice, nobody does. The PRD becomes a historical artifact the moment sprint one ends.&lt;/p&gt;
&lt;p&gt;When you&#39;re working with an AI agent, the build cycle is minutes. I describe what I want in plain language. The agent builds it. I use it. I give feedback. It fixes things. New requirements crystallize through that conversation that I never would have anticipated in an upfront spec.&lt;/p&gt;
&lt;p&gt;This means the PRD has to keep up. Features emerge through rapid iteration. You add a news page, then realize it needs weather data, then realize it needs specific categories for the UI to render correctly. Each of those is a new requirement that didn&#39;t exist when you wrote the original document.&lt;/p&gt;
&lt;p&gt;A traditional PRD gets stale and nobody notices until someone new joins the team and asks confused questions. This PRD &lt;em&gt;can&#39;t&lt;/em&gt; get stale because it&#39;s the thing my collaborator reads at the start of every session to understand what we&#39;re building and why. If it&#39;s out of date, the agent makes decisions that conflict with the actual product direction. The feedback loop is immediate. So the discipline becomes updating the PRD every time you make a feature change. Not quarterly. Not at the end of a sprint. Every time.&lt;/p&gt;
&lt;h2 id=&quot;what-this-means-for-pms&quot; tabindex=&quot;-1&quot;&gt;What this means for PMs&lt;/h2&gt;
&lt;p&gt;If you&#39;re a product manager starting to work with AI coding agents, here&#39;s what I&#39;d tell you.&lt;/p&gt;
&lt;p&gt;Start the PRD the way you always have. Problem statement. User. Goals. Anti-goals. Design. Success metrics. That thinking is more important than ever because it&#39;s what keeps a fast-moving collaboration pointed in the right direction.&lt;/p&gt;
&lt;p&gt;Think in terms of intent and constraints, not exhaustive specifications. Define the boundaries clearly. What the system should do, what it should never do, when it should ask for clarification. The AI needs guardrails more than it needs step-by-step instructions.&lt;/p&gt;
&lt;p&gt;Don&#39;t maintain a separate BRD. Fold the technical contracts into the PRD as they emerge. API shapes, data schemas, component mappings. When the same collaborator reads both the product intent and the technical spec, splitting them into separate documents just creates synchronization overhead.&lt;/p&gt;
&lt;p&gt;Treat the PRD as a living document, not a deliverable. Update it as requirements evolve. Don&#39;t wait for a quarterly refresh. If you added a feature this week, capture it this week. The cost of an outdated PRD is an agent that works against your intent.&lt;/p&gt;
&lt;p&gt;Use the PRD to keep your AI aligned to &lt;em&gt;why&lt;/em&gt;, not just &lt;em&gt;what&lt;/em&gt;. The agent can read code all day. What it can&#39;t infer is your product strategy, your priorities, and the problems you&#39;ve deliberately chosen not to solve. That context lives in the PRD, and it&#39;s what prevents every session from drifting into scope creep.&lt;/p&gt;
&lt;p&gt;And finally, accept that your role has shifted. You&#39;re not writing documentation and handing it off. You&#39;re defining the intent and constraints that allow an AI to execute safely and accurately, then maintaining that alignment as the product evolves at a pace that would have been impossible a year ago.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>The Governance Layer Nobody&#39;s Solved Yet</title>
    <link href="https://codesplosion.com/posts/2026-05-20-the-governance-layer-nobodys-solved-yet/"/>
    <updated>2026-05-20T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2026-05-20-the-governance-layer-nobodys-solved-yet/</id>
    <content type="html">&lt;p&gt;I&#39;ve been iterating on a governance system for my AI coding agent for months. It&#39;s a set of documents that define how the agent writes code, where it stores knowledge, how it structures projects, and what conventions to follow. Engineering principles. Coding standards. Knowledge placement rules. It&#39;s comprehensive. I co-created it drawing on years of real software engineering practice.&lt;/p&gt;
&lt;p&gt;Today I watched the agent follow my governance perfectly and still do the wrong thing.&lt;/p&gt;
&lt;h2 id=&quot;the-output-looked-fine&quot; tabindex=&quot;-1&quot;&gt;The output looked fine&lt;/h2&gt;
&lt;p&gt;I asked the agent to refresh a daily news feed in an app we&#39;ve been building together. It pulled articles, posted them to the API, and something broke. The weather and quote widgets expected JSON. The agent posted plain text. Simple format mismatch.&lt;/p&gt;
&lt;p&gt;The agent fixed the bug. After seeing the same format error recur across sessions, I asked it to prevent the problem permanently. It added server-side validation to the API route that rejects malformed data with a clear error message. It documented the expected format. It wrote tests.&lt;/p&gt;
&lt;p&gt;This all looks correct. The code works. It catches the error. It explains what went wrong. If you reviewed this PR you&#39;d approve it. I almost did.&lt;/p&gt;
&lt;p&gt;But the agent solved the wrong problem. It built a system that fails loudly instead of a system that works quietly. It optimized for catching mistakes after they happen instead of making mistakes impossible in the first place.&lt;/p&gt;
&lt;h2 id=&quot;the-governance-told-it-to-do-this&quot; tabindex=&quot;-1&quot;&gt;The governance told it to do this&lt;/h2&gt;
&lt;p&gt;Here&#39;s the part that surprised me. The agent wasn&#39;t going rogue. It was following my governance. I had a Knowledge Placement table that said &amp;quot;API contracts and data shapes live in &lt;a href=&quot;http://claude.md/&quot;&gt;CLAUDE.md&lt;/a&gt; plus server-side validation.&amp;quot; The agent read that instruction and executed it literally. It added validation. It documented the format. Technically compliant.&lt;/p&gt;
&lt;p&gt;What my governance didn&#39;t say was that the primary mechanism for preventing errors is types and interfaces that the agent reads before it acts. That a TypeScript interface making the shape explicit at the point of use is fundamentally different from a validation function that catches the wrong shape after submission. That the goal is code where the correct path is self-evident, not code that yells when you take the wrong path.&lt;/p&gt;
&lt;p&gt;&amp;quot;Put it in code&amp;quot; has multiple interpretations. A validation function is code. A TypeScript interface is code. A runtime error message is code. But they prevent errors at completely different points in the workflow. My governance treated them as equivalent. The agent picked the reactive option because it felt most like &amp;quot;solving the immediate problem.&amp;quot; The proactive option, the one that eliminates the entire class of problem permanently, wasn&#39;t distinguished as the priority.&lt;/p&gt;
&lt;h2 id=&quot;the-gap-is-invisible-because-the-code-works&quot; tabindex=&quot;-1&quot;&gt;The gap is invisible because the code works&lt;/h2&gt;
&lt;p&gt;This is what makes governance gaps for AI agents fundamentally different from regular bugs. A regular bug breaks something. You see it. You fix it. A governance gap produces code that works, passes tests, and runs correctly in production. You only catch it if you&#39;re paying attention to &lt;em&gt;how&lt;/em&gt; the problem was solved, not just &lt;em&gt;whether&lt;/em&gt; it was solved.&lt;/p&gt;
&lt;p&gt;Most people won&#39;t catch it. The PR looks good. The feature works. The validation is sensible defensive programming. It takes someone deep enough in the architecture to notice the difference between &amp;quot;this works&amp;quot; and &amp;quot;this is built the right way.&amp;quot; And by the time you notice, the lazy pattern has propagated across the project.&lt;/p&gt;
&lt;h2 id=&quot;no-single-person-can-anticipate-the-gaps&quot; tabindex=&quot;-1&quot;&gt;No single person can anticipate the gaps&lt;/h2&gt;
&lt;p&gt;I wrote what I thought was a comprehensive governance framework. It drew on real principles. YAGNI, KISS, separation of concerns, composition over inheritance. It specified where knowledge lives, how to structure projects, what conventions to follow. It wasn&#39;t thrown together. It represented months of iteration and years of experience.&lt;/p&gt;
&lt;p&gt;It still missed this. Because the distinction between &amp;quot;validation as documentation&amp;quot; and &amp;quot;types as prevention&amp;quot; is the kind of nuance that only surfaces through repeated hands-on use. Through watching the agent interpret your instructions in ways you didn&#39;t anticipate. Through noticing that technically-correct output is architecturally wrong.&lt;/p&gt;
&lt;p&gt;One person cannot find all of these. The gaps are too subtle and too varied. They live in the space between what you meant and what the agent understood. Every person working with AI agents is going to bump into different edges depending on what they&#39;re building, how they think about architecture, and what &amp;quot;correct&amp;quot; means in their context.&lt;/p&gt;
&lt;h2 id=&quot;the-hard-layer-is-still-unsolved&quot; tabindex=&quot;-1&quot;&gt;The hard layer is still unsolved&lt;/h2&gt;
&lt;p&gt;Right now most people managing AI agents are rolling their own governance. Frameworks exist for the structural layer. Access control, audit trails, compliance, API gateways. That layer is commoditizing fast. Platforms handle it. You configure it and move on.&lt;/p&gt;
&lt;p&gt;But the architectural layer is a different problem entirely. The structural layer asks &amp;quot;is this agent allowed to do this?&amp;quot; The architectural layer asks &amp;quot;is this agent doing it the right way?&amp;quot; No framework can answer that for you because the answer depends on your team&#39;s history, your codebase&#39;s maturity, your specific trade-offs, and years of tacit knowledge about what &amp;quot;built correctly&amp;quot; means in your context.&lt;/p&gt;
&lt;p&gt;That tacit knowledge is the hard part. It&#39;s rarely written down. It&#39;s the result of failed refactors, shared pain, and collective decisions about what matters. Converting that into instructions an AI agent can follow is a heavy lift. It requires your team to first reach consensus on what &amp;quot;the right way&amp;quot; actually is. Most teams have never had to articulate it this precisely because human engineers absorbed it through osmosis.&lt;/p&gt;
&lt;p&gt;The teams moving fastest are treating architecture as versioned configuration. Encoding standards into project files. Using secondary agents to critique architectural fitness before code reaches a human reviewer. Building local governance layers that sit on top of generic frameworks. They&#39;re standardizing the enforcement mechanism while keeping the policy itself deeply tied to their own technical landscape.&lt;/p&gt;
&lt;p&gt;The AI agent ecosystem talks a lot about capabilities. What models can do. How fast they are. How many tokens they handle. But the harder problem is governance at the architectural layer. How do you make rules that produce not just working code, but correctly-built code? How do you close the gap between what you meant and what the agent understood?&lt;/p&gt;
&lt;p&gt;I don&#39;t have the full answer. But I know it&#39;s not something one person writes in a config file and calls done. It&#39;s going to take many people bumping into these edges, sharing what they found, and building on each other&#39;s work. The structural layer got solved by platforms. The architectural layer will only get solved by community.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>The Craft Behind the Output</title>
    <link href="https://codesplosion.com/posts/2026-06-18-help-employees-get-better-not-just-faster-with-ai/"/>
    <updated>2026-06-18T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2026-06-18-help-employees-get-better-not-just-faster-with-ai/</id>
    <content type="html">&lt;p&gt;I came across &lt;a href=&quot;https://hbr.org/2026/06/help-employees-get-better-not-just-faster-with-ai&quot;&gt;this piece in HBR&lt;/a&gt; by David Duncan and Tyler Anderson, and it nails something I&#39;ve been watching play out in my own work for months.&lt;/p&gt;
&lt;p&gt;Their core argument is that as AI makes generating polished work easier, the skill that actually differentiates people becomes judgment. Knowing what to trust, what to question, and what to refine. Most organizations invest in prompting workshops and tool certifications, but almost nobody invests in the harder problem of developing professional judgment &lt;em&gt;alongside&lt;/em&gt; the tools.&lt;/p&gt;
&lt;p&gt;The insight that stuck with me is that traditional expertise rewards people who&#39;ve internalized judgment so deeply they can&#39;t explain it. AI-era expertise rewards the opposite. You now need to &lt;em&gt;articulate&lt;/em&gt; what good looks like, because articulation is the interface between human judgment and machine capability. AI has enormous knowledge and zero context. It knows everything published. It knows nothing about your specific client&#39;s politics, the recent shift in your market, or the anxieties of a particular stakeholder.&lt;/p&gt;
&lt;h2 id=&quot;the-four-step-framework&quot; tabindex=&quot;-1&quot;&gt;The four-step framework&lt;/h2&gt;
&lt;p&gt;Duncan and Anderson propose a process that turns every AI-assisted task into a development opportunity.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Form your own view first.&lt;/strong&gt; Before opening any AI tool, scope the task and sketch a preliminary position. Without your own hypothesis, you have no basis for evaluating what AI produces. The test is whether you could critique a finished version &lt;em&gt;specifically&lt;/em&gt;. Not &amp;quot;this seems fine&amp;quot; but &amp;quot;this framing doesn&#39;t fit because this client needs X.&amp;quot;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Play devil&#39;s advocate with the output.&lt;/strong&gt; Most people only use AI in one mode. They ask it to generate. But generation is where AI is strongest and your judgment is least visible. Push further by asking probing questions. What are the weakest assumptions here? How do these versions differ in their tradeoffs? How would this specific person react? What data sources are weakest? Each question forces reasoning into the open that would otherwise stay hidden.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Diagnose the gap between your view and AI&#39;s output.&lt;/strong&gt; Three questions matter here. What did AI add that you missed? What did AI get wrong or miss entirely? And the most dangerous category, what &lt;em&gt;looks&lt;/em&gt; right but isn&#39;t? Plausible, well-structured, but wrong in subtle ways that require domain knowledge to catch. These are the errors that survive casual review and cause the costliest failures.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Deliver with a reasoning trail.&lt;/strong&gt; The deliverable isn&#39;t just the output. It&#39;s a brief explanation of how you got there. What AI produced, what you changed, and why. For managers, requiring this single thing makes judgment visible and coachable. For individuals, it builds a calibrated sense of exactly where to trust AI and where to scrutinize in your specific domain.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;why-this-matters&quot; tabindex=&quot;-1&quot;&gt;Why this matters&lt;/h2&gt;
&lt;p&gt;We&#39;re at a weird inflection point. The people who adopted AI earliest are the ones most at risk of stalling their own professional development. The tool is so good at making them look competent that nobody notices they&#39;re not actually growing. That&#39;s a problem for individuals, but it&#39;s a much bigger problem for organizations that need deep expertise to navigate novel situations.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://hbr.org/2026/06/help-employees-get-better-not-just-faster-with-ai&quot;&gt;full article&lt;/a&gt; goes deeper on each step with a worked example of a competitive analysis. Worth the read if you&#39;re thinking about how to develop your team in this landscape.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>The Tools I Use, The Tools I Build</title>
    <link href="https://codesplosion.com/posts/2026-06-23-my-ai-tools-stack/"/>
    <updated>2026-06-23T00:00:00Z</updated>
    <id>https://codesplosion.com/posts/2026-06-23-my-ai-tools-stack/</id>
    <content type="html">&lt;p&gt;I&#39;ve been meaning to write about my AI tools stack for a while. Not because the specific tools are all that interesting on their own, but because the way they fit together tells a story about how I work and what I&#39;ve learned about directing AI coding agents over the past year.&lt;/p&gt;
&lt;p&gt;This isn&#39;t a static list. Some of these could change next month. What matters more than the specific tools is the system I&#39;ve built around them and the feedback loop that keeps improving it.&lt;/p&gt;
&lt;h2 id=&quot;what-i-actually-use-every-day&quot; tabindex=&quot;-1&quot;&gt;What I actually use every day&lt;/h2&gt;
&lt;p&gt;My primary tool is Claude Code. It runs in my terminal, has access to my files, and handles the bulk of my coding, writing, and thinking work. AWS Bedrock is my AI infrastructure layer for anything that needs to run as a service rather than in my terminal.&lt;/p&gt;
&lt;p&gt;I also use Gemini for quick lookups and brainstorming because it pulls context directly from my Gmail, Docs, and Calendar. I also like switching to it to get a different perspective from a different model. Multiple models create a system of checks and balances. They minimize individual model bias and reduce the risk of hallucinations. When I prompt two different architectures to solve the same task, I can compare their outputs and spot inconsistencies in logic or factual data. It forces me to look at a problem from varied angles instead of relying on the potential blind spots of a single training set. When both models arrive at similar conclusions, I have more confidence in the result.&lt;/p&gt;
&lt;p&gt;The rest of the infrastructure:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub + GitHub Actions&lt;/strong&gt; for version control and CI/CD&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dreamhost&lt;/strong&gt; for blog hosting, auto-deployed via GitHub Actions on every push to main&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Next.js, React, TypeScript, Tailwind, Prisma, and SQLite&lt;/strong&gt; for the apps I build&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Eleventy&lt;/strong&gt; for this blog&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Node.js via Homebrew&lt;/strong&gt; on macOS&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GRASP MCP&lt;/strong&gt; for Outlook email and calendar access&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Slack MCP&lt;/strong&gt; for workspace messaging&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Notion MCP&lt;/strong&gt; for notes&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-governance-layer&quot; tabindex=&quot;-1&quot;&gt;The governance layer&lt;/h2&gt;
&lt;p&gt;I maintain a repository that I named ai-governance that shapes how Claude Code behaves across every project I touch. It&#39;s organized into separate files, each covering a distinct domain. Coding conventions define my preferred stack, principles, and quality gates. A phased product build process walks through PRD modules, technical architecture, data structures, and execution in a specific order with lock-down criteria at each step. Writing voice profiles control tone depending on context. A professional voice for documents and proposals. A casual voice for Slack messages. A blog voice for posts like this one.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The repo&#39;s files are symlinked into Claude Code&#39;s global rules directory, which means they load automatically into the context window at the start of every session.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It doesn&#39;t matter which project I&#39;m in. The principles, the voice, the conventions all travel with me. This is different from a project-level &lt;a href=&quot;http://claude.md/&quot;&gt;CLAUDE.md&lt;/a&gt; file, which only applies to one project. The governance layer is universal. &lt;a href=&quot;http://claude.md/&quot;&gt;CLAUDE.md&lt;/a&gt; files in my individual projects know to reference it when building features, writing reports, or drafting posts.&lt;/p&gt;
&lt;p&gt;Why a repo with separate files instead of one large &lt;a href=&quot;http://claude.md/&quot;&gt;CLAUDE.md&lt;/a&gt;? Clear file boundaries help the AI apply the right rules to the right task. When I&#39;m writing a blog post, it maps cleanly to the voice file. When I&#39;m building a feature, it maps to conventions and the build process. Separate files reduce the chance of bleeding concerns across domains. And for me, they&#39;re easier to maintain, update one domain without risking others, and track changes in git. Paul Duvall wrote about &lt;a href=&quot;https://www.paulmduvall.com/sharing-ai-development-rules-across-your-organization/&quot;&gt;sharing AI development rules across an organization&lt;/a&gt; back in January and takes this much further, with context-aware rule loading that only surfaces relevant files based on what you&#39;re working in. Worth reading if you&#39;re thinking about scaling this pattern beyond a single developer.&lt;/p&gt;
&lt;p&gt;This didn&#39;t happen overnight. The governance repo is the accumulated result of months of working with Claude Code and discovering what it gets wrong without constraints. Every rule in there exists because I watched the tool make a specific class of mistake and figured out how to prevent it structurally.&lt;/p&gt;
&lt;h2 id=&quot;my-daily-digest&quot; tabindex=&quot;-1&quot;&gt;My Daily Digest&lt;/h2&gt;
&lt;p&gt;One of the more important parts of my daily workflow is integrating many tools together into a single custom app.&lt;/p&gt;
&lt;p&gt;My Daily Digest is an app I built entirely with Claude Code. Every morning, it pulls my Outlook emails, calendar events, Slack messages, and news into a single view. Instead of context-switching between four different apps to figure out what my day looks like, I open one screen and get the full picture. It&#39;s a local-first Next.js app backed by SQLite, and it runs on my machine.&lt;/p&gt;
&lt;p&gt;And because I use these tools every day, every rough edge is something I feel. Every missing feature is something I notice. I&#39;m constantly adding or changing features. Improving the UI, introducing action items, emailing my boss a summary. Every time I add a feature, I discover something new about how to direct an AI coding agent effectively. I learn what it misunderstands about decomposition and separation of concerns. I learn where it over-engineers and where it cuts corners. I learn how to encode a principle so that it actually sticks rather than getting ignored two turns later.&lt;/p&gt;
&lt;p&gt;The governance repo is the artifact of that learning loop. It&#39;s not a set of preferences I wrote once. It&#39;s a living document that evolves every time I watch Claude Code make a mistake and figure out how to prevent it from happening again.&lt;/p&gt;
&lt;p&gt;The tools in my stack will change. But the pattern stays the same. Use the tools, build with the tools, learn from what breaks, and encode that learning so it compounds over time.&lt;/p&gt;
</content>
  </entry>
</feed>
