Behind the Product Curtain · 5 min read

The Crazy Plan—Architecting the Agentic Mesh from Scratch

In my last two posts, I’ve been vocal about the "Empty Pots" of modern Agile and that electric, hair-raising feeling of working with AI. But let’s be real: a vision without a…

The Crazy Plan—Architecting the Agentic Mesh from Scratch

In my last two posts, I’ve been vocal about the “Empty Pots” of modern Agile and that electric, hair-raising feeling of working with AI. But let’s be real: a vision without a blueprint is just a daydream. This investigation is far from over, and I can almost guarantee the destination will shift as we go, but here is the map for today—the blueprint for the future.

I’m currently building a product from the ground up using a truly agentic approach. We’re moving past the era of “Copilots” and into the world of The Agentic Mesh. This isn’t just about using AI as a glorified typewriter for code; it’s about an ecosystem that reasons, debates, self-heals, and communicates while the humans are fast asleep. Consider this a high-level tour of the stack. In the coming weeks, I’ll be doing deep dives into the plumbing of automated A/B testing and self-healing infrastructure.

The Physics of the Mesh: The AWS Stack Version

To make this work, we aren’t building a linear pipeline; we’re building an event-driven reasoning engine powered by the AWS ecosystem. In this world, AI agents aren’t just tools—they are first-class citizens with their own permissions, credentials, and memory.

1. The CTO Agent (The Strategic Brain) In a typical setup, agents are siloed “task-doers.” In my “Crazy Plan,” every proposal from a specialized agent must pass through the CTO Agent. The Tech: Amazon Bedrock (Claude 3.5 Sonnet) integrated with Amazon Neptune (a Graph Database). The Logic: This agent holds the “Big Picture.” It understands the entire map. It knows that if Agent Y wants to change a database schema, it might trip up a microservice Agent X built three weeks ago. It acts as the ultimate filter, ensuring we don’t trade long-term technical health for short-term speed.

2. The “Arguing” Protocol: Dev vs. Security vs. SEO We’re implementing a “Scrimmage” dynamic managed by AWS Step Functions. When a Dev Agent creates a PR, a Security Agent immediately tries to find a crack in the hull, and an SEO Agent (running via Lambda@Edge) crawls it for performance and search visibility.

They hash out the approach in a closed loop. Only when the Staff Engineer (the human coach) sees a consensus—or steps in to break a tie—does the code move toward the goal line. It’s strange, it’s liberating, and it ensures the machine-generated logic is pressure-tested before it ever touches a production server.

3. Behavioural Evolution: Agentic A/B Testing This is where the product starts to “breathe.” Most A/B tests take weeks to design and months to wrap up. In the Mesh:

  • Observation: CloudWatch RUM (Real User Monitoring) identifies a drop in conversion or a “rage click” pattern on a specific landing page.
  • Hypothesis: An agent ingests this data, compares it to historical benchmarks, and proposes three UI variants using Tailwind.
  • Action: Within its “Confidence Thresholds” (e.g., “I can test UI changes on 5% of traffic if the potential revenue risk is low”), the agent deploys the variants via AWS AppConfig.
  • Closure: The agent monitors the scoreboard, picks a winner, and either reports the finding for human sign-off or pushes the change to the entire stadium of users automatically.

4. The Self-Healing Loop & The Proactive Reply This is where the “Impossible Pipes” really start to flow. Imagine it’s 3:00 AM:

  • Detection: Amazon CloudWatch catches an error in the logic.
  • Fix: A Healing Agent identifies the root cause, writes a fix, and runs it through a CodeBuild sandbox.
  • Verification: We use Amazon Nova Act as the “Eyes” of the system. It literally “opens” a browser, navigates the UI, and confirms that the fix didn’t break the layout or move a button three pixels to the left.
  • The Unmasked Reply: Once the fix is verified and deployed by the CTO Agent, a Communications Agent (via SES) sends a note to the affected user: “Hi Chris, I’m the AI Assistant. I noticed you hit a snag with our site at 2:00 AM. I’ve fixed the code, verified it, and it’s live now. Give it another shot!”

Why Greenfield is the Best Approach

Trying to force this into a 5-year-old codebase is like trying to get Dolly Parton to record a heavy techno track. It just doesn’t sit right. You end up trying to jam a square peg into a round hole.

By going Greenfield, we get:

  • Structure for Intelligence: We build the information architecture and the code for machine navigation from Day 1.
  • Lower Confidence Thresholds: With Amazon A2I, we set the gates. If the AI is >90% confident, it moves. If not, it stops and asks for a coach.
  • Agentic SEO: The dedicated SEO agent monitors metadata and site speed based on real-time global impact before we even see the traffic dip.

The Bill: What does the Future cost?

The biggest myth about Agentic AI is that it’s prohibitively expensive. When you calculate the cost of human “Context Switching” and endless meeting hours, the Mesh is actually a bargain. Based on a 50,000 Monthly Active User (MAU) base, here is the starting breakdown for the monthly tech spend:

**Reasoning-**Amazon Bedrock (Claude 3.5 / Nova) - **Role:**Token usage for agent “thinking” & arguing. $450 - $600

**Orchestration -**Step Functions & Lambda - Role: Logic gates and state management.- $80 - $120

**Data & Memory -**Neptune / RDS / S3 - The Knowledge Graph & System Memory. $150 - $200

ObservabilityCloudWatch & RUM- Role: Detecting bugs and tracking user behaviour. $70 - $100

**Delivery -**CloudFront & SES - **Role:**Edge hosting and automated user replies. $40 - $60

That’s a total of $790 - $1,080 per month.

You Just Have to Try

I’m currently doing three things at once: tinkering on my own, running a skunkworks project, and upgrading the core—all while planning this fourth “Crazy Plan” reset. The goal isn’t just to be “faster.” The goal is to be Kinetic, but also experimental and forward thinking.

You don’t have to do all of this on day one. But you do have to start exploring before your competitor builds their first “Impossible Pipe.” Next week, we’re going under the hood to look at Self-Healing Code and how I might actually wire the “Arguing AI” protocol.

I’d love to hear from anyone that can challenge my plan, what have I missed, what’s not right? What could I use that is not AWS. How would, or have you approached this? Or are you too looking and this and thinking, “wait, what, how can, but that not, is it?”