The Era of Agentic Coding

The Era of Agentic Coding

I had some free time during the Thanksgiving holidays and decided to do a little experimenting. I decided to build a banking system from scratch using Claude Code. I didn’t just work with it to build the code. I had it running on a mini-Kubernetes environment using Rancher using a microservices architecture. I started with some basic requirements from my experience building financial services systems at USAA, but it also comes from staying abreast of the industry since then. I’ve also added in some security requirements I focus on in my current position. The experiment was not to actually build a banking system from scratch. The experiment was to see how sound these tools are at building quality applications.

Starting with requirements for money movement, my primary focus at USAA, I had Claude build a plan for architecting the solution and making adjustments to that architecture as I saw fit. For starters, it seems to have misunderstood my approach and built too much of the logic into the payment broker, including account management. My big mistake there was not spending more time in the planning stage and jumping straight to code. As I said, this was an experiment and that mistake was a good learning lesson, one that I knew I had made when I let it go wild building that out. I knew better and always spent more time designing systems in real life before jumping to code.

The next step was to refactor the architecture and design to focus more on a larger scale of a banking system with money movement being one component. Identity design was also a flaw in my original design. By not articulating those requirements up front, anyone could submit a payment for anything and there was no attribution. That might work for a bank with one customer, but that’s not reality. Once again, a change in the design. I also didn’t factor in session management into the architecture. I am using Rust and wasn’t familiar with the frameworks. A little bit of discussion and we now have session management with a session database.

What has been interesting to watch along the way is that Claude Code is not only building the code, but also regression tests with each step. Regression tests are the things a lot of developers forget to build or are just too pressed for time to build. What they don’t realize is that those tests are the key to fast and reliable development. Having a tool take care of the regression tests without me having to mess with them has been a great productivity leap in this process.

With a good portion of the money movement component and front end built, including authentication and session management, I dropped back and had it create a design document based on the current design. Using that design document, I submitted that to another LLM, Google’s Neon, for a design review that found several flaws in the design. Those are now in my project’s backlog to be worked. That is the beauty of having multiple models to check your work and provide a different view. Remember, models are trained on different sets of data so one model might pick up things another model might have missed.

One thing I’ve discovered is that while mistakes early on can be forgiven with redesign, that redesign comes at a cost. Each change in the design requires Claude Code to go back and fit the changes into the existing design. I’ve probably rebuilt a few of the components at least once, if not twice. Every rebuild burns tokens and I’m now on my 7th time refresh of tokens. That’s a good thing for me during this holiday break as it forces me to step away from the screen and do other things. But in a work environment, those redesigns can cost a lot of money just as any redesign would. The difference is that you are paying someone else for the redesign. It just boils down to resisting the urge to go too fast and spend the time paying attention to detail.

What is amazing me the most is the ability to not only code the application, but deploy it to my Kubernetes cluster. This is all seamless to me and I just instruct Claude Code to take the actions when I have reviewed each stage. Remember, at this point it’s important to keep humans in the loop. Granted, I’m having to really stretch my coding knowledge to read the logic, but that has also been a good benefit in that it helps me keep abreast of new technologies. Rust is the new best thing in coding languages and I starting to see the benefits it brings.

I’ve been committing the code to my GitHub account and will continue to build this out over time. As you can see, this is not a simple system and I’m constantly adding to it as I find things. Remember, I’m not trying to build a bank system. I’m trying to see how agentic coding will work in an organization. So far, the test has been good, but it’s not a simple process. Some lessons I’ve learned so far:

  • Planning – Before launching anything of substance, plan is the most important step. That includes requirements gathering, design, and review. You can use AI during each phase to provide that “outside consultant” view of your work, but the work must be done to get the best result. It also will help reduce rework and cut down on token burn.
  • Detail – Pay attention to the details provided by AI. Reviewing the design can catch flaws before they compound. For example, I missed a design flaw that AI chose to take and didn’t catch it until 3 iterations later. That catch cost me an entire token cycle to correct.
  • Regression Testing – Claude Code made sure there were regression tests through the process to make sure the new code works with the existing code, avoiding issues down the line. We’re now up to over 800 regression tests that can be run at any time, including when the base image might change. That’s one thing to consider when working with containers. Just patching a server doesn’t remediate vulnerabilities that might exist in the base image the application is built on.
  • Token burn – In a recent conversation with one agentic coding vendor, we noticed that some of the cool tools they were offering involved tokens to run. I remarked that tokens are the new currency in software, in development, testing, and operations. That is how these AI companies are going to recoup their outrageous costs. The more we take advantage of the benefits of AI, the more we’ll pay for the utility.
  • Quality – One thing I did notice when working with AI is that it does bring more quality to the process. This goes back to the data the models are built on. I might have a requirement concept that makes sense in my mind, but putting that concept into code requires technical details I might miss. One example was using idempotency to avoid double booking of payments. I knew the approach, but AI brought coding methods translated into Rust to make it happen. Those coding methods came from the work of others published on the web that were trained into models.
  • Ease of Maintenance – What is good about this experiment is that Claude Code will always keep the documentation up to date. When it’s time to add a feature or make a change, it’s easy to just have Claude Code read the documentation or the memory for the project, then work the changes into the design and code.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *