<< Back to Blog
·6 min read·Tech

How AI Agents Changed My Coding Workflow? A Full-Stack Developer's Real Experience

Last year I started my own SaaS business, coding every day. What doubled my productivity wasn't working late, but learning to use AI agents as my coding partner. Today I share how I went from skeptic to heavy AI user.

How AI Agents Changed My Coding Workflow? A Full-Stack Developer's Real Experience

Late-night code and a thought

One late night last winter, I sat in my rented room, staring at a screen full of error messages. The backend API of Flash Warehouse (my SaaS product) had a bug again. I spent three hours manually debugging, drank four cups of coffee, and still couldn't find the issue. At that moment, a thought crossed my mind: If only an AI could help me look at this code.

TL;DR I was initially skeptical about AI-assisted coding, but after actually using AI agents, I found they are more than just code completion tools—they're like a pair programming partner available 24/7. They saved me at least 30% of debugging time, allowing me to focus on more important architectural decisions.

Why was I resistant to AI agents at first?

Honestly, I was initially resistant to the idea of AI writing code. I felt that coding is a programmer's core skill, and if even that is handed over to AI, what kind of developer am I? This mindset lasted for about half a year until I saw GitHub's Copilot statistics: developers using AI-assisted coding improved their efficiency by an average of 26%[1].

At that time, I was still working at Yongshu Intelligence on digital twin dashboards, writing a lot of Three.js code daily. Once, I needed to implement a complex particle animation and spent a whole day manually tuning parameters without success. A colleague recommended trying Copilot. I half-heartedly installed the plugin, and it generated 80% of the code based on comments—I only had to tweak a few parameters to get it working.

From that day on, I began to rethink AI's role. It's not a replacement but a tool, as natural as IDE autocomplete.

配图

From Copilot to AI Agent, what did I experience?

Copilot was just the starting point; what truly amazed me was the AI agent's ability to autonomously complete tasks. In late 2024, I started trying Cursor and Claude to write code. At first, I only used them to generate simple CRUD endpoints, but later I found they could help me refactor code, write unit tests, and even optimize SQL queries.

Once, I needed to add multi-tenant data isolation to Flash Warehouse. In the past, such a requirement would take at least two days to design the architecture, write code, and test. But I tried using Cursor with a prompt describing the business logic and constraints, and it generated a complete code framework, including table structure design, interceptor configuration, and query filtering logic. I completed in half a day what used to take two days.

GitHub's 2024 report shows that developers using AI-assisted coding increased their commit frequency by 55%[2]. My own experience matches that: previously, writing 200 lines of code a day was considered productive; now I can write over 500 lines a day with fewer bugs.

配图

What exactly can AI agents do for me?

Three core things: rapid prototyping, automated testing, and code review. I've put together a table comparing my workflow before and after using AI agents:

Task TypeBeforeAfterTime Saved
Writing CRUD endpointsManual repetitionPrompt generation, minor tweaks60%
Writing unit testsManual test cases, time-consumingAI generates tests from code70%
Code reviewSelf-review, prone to missesAI reviews first, I focus on key issues40%
DebuggingManual breakpoints, line-by-linePaste error logs, AI analyzes causes50%

Of course, AI isn't perfect. Sometimes it generates code with logical errors or uses outdated APIs. That's when experienced developers like me need to step in.

Speaking of which, I recall an example. Once I asked AI to generate a complex inventory algorithm, and it wrote an O(n²) nested loop. I immediately recognized the inefficiency and optimized it to O(n) using a hash map. That's the value of humans—we understand the business and know which solutions fit which scenarios.

What does my AI agent workflow look like?

Now my daily workflow is inseparable from AI agents. In the morning, I open Cursor and describe yesterday's unresolved issues to the AI for suggestions. Then I start writing new features, using AI to generate base code, which I modify and optimize. When encountering bugs, I paste the error log, and the AI often provides debugging directions.

I use a combination of GitHub Copilot and Cursor. Copilot handles code completion, while Cursor handles complex task generation. According to Stack Overflow's survey, 76% of developers used AI-assisted programming tools in 2024[3], and that number is still growing.

However, I've set a rule for myself: core business logic and architecture design must be written by me; AI is only for assistance. It's like weightlifting—you can use a lifting belt, but the effort still comes from you.## Tips for developers wanting to try AI agents

If you haven't tried AI agents yet, I recommend starting with a small task. For example, ask AI to write a utility function or optimize a piece of code. Don't jump into asking it to refactor your entire system.

Also, writing good prompts is crucial. My experience: provide clear context, give specific input/output examples, and specify your tech stack versions. This yields much higher quality generated code.

Finally, don't fear AI taking your job. The real threat isn't AI, but those who know how to use it. Just like the advent of IDEs didn't make programmers obsolete but instead boosted industry productivity.

Key takeaways

  • AI agents are tools, not replacements, as natural as IDE autocomplete
  • Three core uses: rapid prototyping, automated testing, code review
  • Learn to write good prompts; clearer context leads to better generation
  • Don't fear AI; fear not knowing how to use it

Related reading: I previously discussed a full-stack development retrospective that touched on AI integration experiences. Feel free to check it out.


References

  1. GitHub Copilot Statistics — GitHub's official blog data on Copilot improving developer efficiency
  2. GitHub Octoverse 2024 Report — GitHub Octoverse 2024 report on the impact of AI-assisted programming on commit frequency
  3. Stack Overflow 2024 Developer Survey — Stack Overflow 2024 developer survey data on AI tool usage