Sunday, 26 April 2026

Agentic coding

We have all experienced the "maintenance wall"—that point where a hobby coding project becomes so complex that adding a single feature feels like a massive effort and a gamble. For years, my side projects and hobbies lived in this state of stagnation: functional, but fragile and difficult to extend. Everything changed when I integrated Claude Code into my development workflows.

By treating Claude Code as an agentic partner, a co-programmer remember XP programming, and rather than a simple chatbot, I moved beyond just "writing code" and began deploying fast, really fast. Before getting started, a quick reminder: these tools can be token-intensive. You may end up spending a lot of tokens (new money). Always keep your repository structure in mind, optimise and whenever possible, feed your repository context to Claude Code to keep interactions efficient and economical. Use CLAUDE.MD to restrict scope and .claudeignore to ignore files. 

Beyond Syntax: Learning Why

The most significant shift in my workflow was transitioning from "fixing bugs" to "improving architectural understanding." I stopped asking how to write a line of code and started asking why my current implementation was failing to scale and what would the improvements be.

By prompting Claude Code to analyze my existing modules and explain it to me, I uncovered limitations I hadn't even realised were there. I learned what I was doing wrong and what I was omitting which was important. It pointed out anti-patterns like tightly coupled state management and hidden resource bottlenecks. It highlighted things that were security flaws, bad session management, inefficient and bloaty code. Patiently it explained to me things, recommended alternatives, implemented them on mly code and help me deploy them. 

Expanding the Horizon

Once I understood the structural limitations of my projects, Claude Code became the engine that allowed me to expand their scope significantly:

  • UI/UX Enhancement: I leveraged the tool to audit my frontend components. By describing my goals for user intuition and accessibility, I received actionable critiques on layout and CSS architecture that transformed my interfaces from "functional" to "polished."

  • Security by Design: Security is often the first casualty in hobby development. I used Claude Code to scan my deployment scripts and configuration files for exposed secrets and insecure defaults. It taught me to bake security into my deployment pipeline as a baseline requirement, not an afterthought.

  • The Refactor Loop: Perhaps the most liberating benefit I saw was the ability to refactor non stop and fearlessly. By having an agent that understands the relationships across my entire repository, I could rewrite core logic, simplify complex functions, and modularise monolithic loooong blocks with the confidence that Claude had analyzed the ripple effects.

  • Velocity Through Testing: With the Model Context Protocol (MCP), I connected my codebase to my testing environment. This bridge allowed Claude to write code that was verified by real-time test execution. Writing code that is "correct by construction" with a safety net of tests drastically increased my development velocity.

The real game-changer was shifting from treating Claude as a chatbot to treating it as an autonomous agent, a guru co-programmer like in the XP and pair-programming days.  By leveraging CLAUDE.md for persistent architecture rules and creating custom Skills for my repetitive workflows, I’ve essentially given my projects an 'institutional memory' context. I can even start utilising Agent Teams (the hiring of programmers), where I can orchestrate sub-agents to handle security audits and testing in parallel, while I focus on the high-level design. But, I haven't done that yet, I am thinking what would that do to my mere hand counted tokens in my simple subscription 😊

Now the exciting part, using Model Context Protocol (MCP) - the eyes, hands and legs of AI, the tools - I was able to connect claude-code to my !test database, get claude query the tables, turning my terminal into a command center of in insights that doesn't just write code, but actively manages, tests and executes it. Be careful of this, know what you are doing! To be honest, I don't let it near production or to deploy my code yet, without me checking it,  I do it myself with vscode. 

 Final Thoughts

Using AI didn't make me a passive coder; it made me a more rigorous one. I spend less time wrestling with syntax, CSS and statics and more time exploring advanced architectural concepts that previously felt out of reach. If you have a project sitting on the shelf, I encourage you to bring it into the terminal. Just remember to be specific, keep an eye on your token economy

Let agentic coding infuse your projects with the velocity to innovate rapidly and the structural strength to evolve fast.



 

No comments: