Skip to content

Building with AI agents: lessons from the field

Building a prototype is easy. Building a product is harder.  

AI agents help developers write code faster, automate tasks and explore more solutions than ever before. As the tools become more capable, the developer’s role is also changing.  
We spoke with Dongxu Guo, Senior Consultant and Local AI Lead at Knowit in Gothenburg, who also works as a senior software engineer in client assignments. Here, he shares his perspective on working with AI coding agents, the gap between a promising prototype and a reliable product, and why human experience still matters. 
AdobeStock_355689181

How AI is changing the developer's role

When I work with AI coding agents, I notice how much my role has changed. AI agents now help with a significant part of my coding workflow, from exploring solutions to handling repetitive implementation tasks. This gives me more time to focus on system architecture, integration, and engineering decisions that require deeper understanding.

That doesn’t mean I can hand over a problem and wait for a finished result. I still need to understand what needs to be built, plan the work and review what the AI produces. Increasingly, my work involves translating business needs into clear tasks and guiding AI agents through them. My focus is shifting toward architecture and making sure the functionality works as intended.

An AI agent may have broad knowledge and work quickly, but someone still needs to assess its suggestions and make corrections when necessary. AI can give incorrect answers with great confidence. Asking the model whether it is sure isn’t enough. We need sufficient knowledge ourselves to recognize when something is wrong and steer the work in the right direction.

It becomes a collaboration in which both the AI and I contribute, while I remain responsible for the direction and the outcome.

When is AI the right solution?

It is easy to get caught up in the hype and want to use AI for everything. Choosing where to use it starts with understanding the problem we are trying to solve. Three considerations are particularly useful:

  • Predictability. AI models can produce different answers depending on the context and how a prompt is phrased. For functionality that needs exact, repeatable results, traditional programming may be a better choice.
  • Cost. AI solutions involve expenses for model usage and computing power. As usage grows, those costs can increase. We need to weigh the benefits against the costs and compare them with other approaches.
  • Data protection. When using cloud-hosted AI models, we need to understand where information is processed and how it is handled. For clients working with sensitive information, models running in the client’s own environment may be an appropriate option, provided the necessary hardware and resources are available.

There is no one-size-fits-all solution. The client’s needs should guide the choice of technology.

Where the real development work begins

Today’s AI models are good at producing prototypes quickly. You can create something impressive in a short time and demonstrate a feature that appears to work well. Turning that demo into a finished product brings a different set of challenges.

What happens when a thousand users access the system at the same time? How does it handle unexpected situations? Can it be maintained and developed further over several years?

Established software products carry years of accumulated knowledge. Developers have learned from users, bug reports and situations that could not have been anticipated at the start. That experience is difficult to recreate simply by asking an AI model to build something similar.

A prototype might work perfectly in a demo, but real-world systems need to handle unexpected situations, unusual edge cases and interactions that are difficult to anticipate. Those last few problems can sometimes take more engineering effort than building the initial functionality. The hardest challenges are often hidden in the details.

One example from my own work involved debugging a power management issue in a complex embedded software system, with multiple virtual machines, code contributed by several vendors and a complicated state machine. AI helped me navigate the code, analyze logs and narrow down possible causes, saving considerable investigation time. Its initial suggested fix looked promising, but testing revealed that it could introduce a race condition: it had not fully accounted for the timing and dependencies between system states and components.

My understanding of the overall architecture helped me identify the risk and refine the solution so that it worked correctly across the system.

That experience illustrates where AI adds value and where engineering judgment remains essential. Finding a plausible fix is one step. Understanding how it affects the wider system takes further investigation and testing.

96190d091437d26addba9139cbf4c64d9bf0f8cb-1Three pieces of advice for developers who want to work more with AI

Technology is moving so quickly that keeping up with everything is almost impossible. I was an early user of AI coding assistants, and the first versions were nowhere near as capable as the tools available today. My advice is to stay curious and use the technology while maintaining a critical mindset.

1. Build a strong foundation

Understanding programming, system architecture and how software is built remains essential. AI can write code, but you need fundamental knowledge to judge whether the result is suitable.

This is particularly important at the beginning of your career. If you let AI do everything from the start, you risk missing opportunities to develop your own understanding. That foundation helps you work independently, question suggestions and adapt when tools or conditions change.

2. Stay curious and experiment

AI makes it possible to explore more solutions in less time. Instead of settling for the first approach, use AI to explore different solutions, compare the trade-offs and then validate the results through your own understanding and testing

You don’t have to wait until you have the latest knowledge or the perfect tool. Start with what is available, test it on a manageable task and learn as you go. The value comes from understanding where the tools help and where they need closer guidance.

3. Don’t forget people and collaboration

Being a consultant means understanding the client’s problem and helping create value. Communication and shared understanding remain central to that work.

If developers work with their own AI agents without talking to each other, they risk building solutions that don’t fit together. AI can make individuals more productive, but improving the whole team’s effectiveness still requires coordination, shared decisions and an understanding of the wider system.

AI is above all a tool

I don’t think we will return to the way we worked before AI became part of the development process. To me, AI is a powerful tool that is changing how we build software. Using it well requires people who can think critically, ask questions and make informed decisions.

AI can take on much of the implementation work and help us explore ideas faster. Our responsibility is to understand the problem, guide the process, and make sure the solution holds up beyond the demo. At the end of the day, the goal is not to generate more code. It is to build better software.

KnowIt0034-Oslo2024Is your AI-built application ready for real users?

Built something promising with AI tools? Before real users arrive, it helps to know what the demo doesn't show. A technical review gives you a clear picture of security, architecture and launch readiness, with a prioritized plan for what to fix first.

 

Ready to move from adoption to efficiency?

Talk to our AI Advisory team.