DEV Community

El Bruno
El Bruno

Posted on • Originally published at elbruno.com on

AI Agents Built My Shopping Cart (And I Just Watched) ๐Ÿค–

Hi!

FYI: This was written with some AI help ๐Ÿ˜‚

Okay, so picture this: Iโ€™m sitting here with my morning coffee, and I decide to add a shopping cart feature to the eShopLite demo scenarios. But instead of cracking my knuckles and diving into code like usualโ€ฆ I just watched AI agents do ALL the work. ๐Ÿคฏ

Iโ€™m not kidding. In 8 minutes, I recorded the entire journey from โ€œhey, we need a shopping cartโ€ to a complete, production-ready e-commerce feature. And honestly? It blew my mind.

TL:DR: here is the video

The Setup: eShopLite Needs a Shopping Cart

So I was playing around with eShopLite โ€“ our sample e-commerce app thatโ€™s built with .NET Aspire, Blazor, and has this cool Semantic search feature using Azure AI Foundry models.

Pretty neat stuff, but it was missing something obvious: you couldnโ€™t actually buy anything. ๐Ÿ›’

The old me wouldโ€™ve fired up Visual Studio, and start coding. But 2025 me? I decided to see what happens when you let AI agents handle the entire thing.

Round 1: Claude Sonnet Gets the Requirements Right

First up was Claude Sonnet 4 in VS Code. I basically said โ€œHey, look at this codebase and write me a proper Product Requirements Document for a shopping cart feature.โ€

What came back wasโ€ฆ honestly incredible. This wasnโ€™t some half-baked bullet point list. Weโ€™re talking about a full 12-section PRD with:

  • ๐Ÿ“Š Executive summary with actual success metrics
  • โšก Functional requirements that covered everything from cart management to checkout flows
  • ๐Ÿ— Technical architecture with real code examples (not pseudo-code!)
  • ๐Ÿ“… 4-phase implementation plan broken down by weeks
  • ๐Ÿงช Testing strategy covering unit tests, integration tests, the works
  • โš  Risk assessment with actual mitigation strategies

Check out some of the entity models it generated:


public class CartItem
{
    public int ProductId { get; set; }
    public Product Product { get; set; }
    public int Quantity { get; set; }
    public decimal UnitPrice { get; set; }
    public decimal TotalPrice => Quantity * UnitPrice;
}

public class Cart
{
    public string SessionId { get; set; }
    public List<CartItem> Items { get; set; }
    public DateTime CreatedAt { get; set; }
    public DateTime UpdatedAt { get; set; }
    public decimal TotalAmount => Items.Sum(i => i.TotalPrice);
    public int TotalItems => Items.Sum(i => i.Quantity);
}

Enter fullscreen mode Exit fullscreen mode

Round 2: GitHub Copilot Becomes Project Manager

Next, I told GitHub Copilot to take all that PRD goodness and create a proper GitHub issue in the Azure-Samples/eShopLite repo.

And wow, it didnโ€™t just slap together some basic โ€œadd shopping cart plsโ€ issue. It created Issue #31 with:

  • ๐ŸŽฏ Complete technical specifications
  • ๐Ÿ“‹ Implementation phases with clear deliverables
  • ๐Ÿท Proper labels (enhancement, feature-request, shopping-cart, e-commerce)
  • โœ… Detailed acceptance criteria
  • ๐Ÿ“š Links to all the relevant docs

Round 3: GitHub Copilot Coding Agent Goes Full Beast Mode

Instead of coding it myself, I assigned the issue to GitHub Copilot Coding Agent.

I literally just typed:

Add the Issue #31 to @copilotโ€

Then I sat back and watched the magic happen. This AI agent:

  1. ๐Ÿ” Analyzed the entire codebase to understand how everything worked
  2. ๐ŸŒฟ Created a new branch (copilot/fix-31) like a good developer
  3. ๐Ÿ— Built multiple projects โ€“ CartEntities, service interfaces, Blazor components
  4. ๐Ÿ’ป Implemented EVERYTHING with proper error handling and validation
  5. ๐Ÿ“ Created a pull request with detailed docs explaining all the changes

Plot Twist: I Became the AI Whisperer ๐ŸŽญ

Now, donโ€™t get me wrong โ€“ I wasnโ€™t just sitting there doing nothing. My role shifted to something way more interesting, because, in every iteration, once GH Copilot Coding Agent generated some code, I started to do this:

  • ๐ŸŽฏ Requirements : Making sure the AI โ€œgotโ€ what we actually needed.
  • ๐Ÿ‘€ Code Reviewer : Spotting edge cases and suggesting improvements, and hey, marked down some errors!
  • ๐ŸŽจ UX Advocate : Ensuring the user experience didnโ€™t suck
  • ๐Ÿ›ก Quality Guardian : Making sure this was actually production-ready

The conversation with the Copilot agent was surprisingly natural. When I said โ€œhey, the checkout validation could be better,โ€ it immediately understood and enhanced the implementation. When I mentioned mobile responsiveness, boom โ€“ updated CSS on the spot.

It felt less like programming and more like directing a really smart intern who happens to code at superhuman speed. ๐Ÿš€

What Actually Got Built

The final result? A complete shopping cart system that would make any e-commerce developer proud:

๐Ÿ›  Tech Stack

  • .NET + Aspire : Microsoftโ€™s cloud-native platform
  • Blazor Server : For those sweet real-time UI updates
  • Session Storage : Using ProtectedSessionStorage (secure guest checkout)
  • Bootstrap + Font Awesome : Because weโ€™re not savages

โœจ Features That Actually Work

  • ๐Ÿ›’ Add to Cart : With quantity selection and visual feedback
  • ๐Ÿ“ Cart Management : View, update, remove items, clear everything
  • ๐Ÿ’ณ Checkout Process : Multi-step form with progress indicators

๐Ÿ† Code Quality

This wasnโ€™t some weekend hackathon code. The AI generated:

  • Comprehensive error handling with proper logging
  • Client and server-side validation
  • WCAG 2.1 AA accessibility compliance
  • Performance optimizations for concurrent users
  • Security best practices throughout

The final Pull Request #32 was a thing of beauty:

  • ๐Ÿ“ 8 new project files with complete cart functionality
  • ๐ŸŽจ 15+ Blazor components for the UI
  • โš™ Complete service layer with interfaces and implementations
  • ๐Ÿ’„ Responsive styling that actually looks good
  • ๐Ÿ“– Documentation explaining everything

Done in almost an hour by AI agents. ๐Ÿคฏ

What This Means for Us Developers

Okay, so this experiment kind of broke my brain a little. Hereโ€™s what I think is happening:

๐ŸŽญ Weโ€™re Becoming AI Orchestrators

Instead of writing every line of code, weโ€™re becoming conductors of AI-powered development orchestras. The skill isnโ€™t knowing every API by heart โ€“ itโ€™s knowing which AI agent to use and how to coordinate them.

๐Ÿ“‹ Requirements Are Everything Now

With AI handling the implementation, the quality of your requirements becomes the main bottleneck. Garbage in, garbage out โ€“ but good requirements in, amazing code out.

๐ŸŽจ Creativity Goes to User Experience

While AI handles the technical heavy lifting, we get to focus on the fun stuff โ€“ user experience, business logic, creative problem-solving.

๐Ÿ” Code Review Gets Strategic

Instead of hunting for syntax errors, weโ€™re validating architecture, ensuring business requirements are met, and checking that the AI understood the bigger picture.

Want to Try This Yourself?

If youโ€™re fired up to experiment with AI-driven development (and you should be!), hereโ€™s how to get started:

  1. ๐Ÿ›  Get the tools : VS Code + GitHub Copilot extension
  2. ๐Ÿฃ Start small : Try simple features first, build up your AI-whispering skills
  3. ๐Ÿ“ Write clear requirements : Seriously, this is like 80% of the battle now
  4. ๐Ÿ”„ Embrace iteration : Use AI feedback loops to refine implementations
  5. ๐Ÿ‘€ Learn to review AI code : Develop your โ€œAI code quality radarโ€

Final stuff

Look, Iโ€™ve been coding for years, and this felt like a glimpse into a completely different future. Weโ€™re not just getting AI assistance anymore โ€“ weโ€™re orchestrating AI agents to build entire solutions while we focus on the strategic stuff.

The shopping cart that would normally take a long time to properly plan, implement, and test? AI agents knocked it out in minutes. And it wasnโ€™t some demo-quality code โ€“ this was (almost) production-ready, well-architected, properly tested software.

Happy coding!

Greetings

El Bruno

More posts in my blog ElBruno.com.

More info in https://beacons.ai/elbruno



๐Ÿ”— Useful Links

Top comments (0)