AI agents, i.e. systems that independently plan and execute multiple steps on the basis of a language model, now deliver tangible results in projects: code, analyses, text drafts, changes to data records. But as soon as such an agent solves a task incorrectly, the same ritual begins in many teams: the prompt is reworded, another hint is added, perhaps an example is appended. If the next run goes through, the problem is considered resolved.
It is precisely this practice that the current discussion in the developer community is calling into question. A changed prompt is often not enough because it does not touch the cause of the error at all. The decisive question is not how to address the model differently, but at which point in the chain the agent's decision actually became wrong.
The model is not automatically the culprit
An agent run consists of several layers: the task specification, the context provided, the connected tools and data sources, the actual model response and the processing of this response in the surrounding system. Errors can arise in any of these layers.
Typical constellations that stand out in practice:
- The agent decided consistently with the information available to it — only that information was incomplete or outdated.
- A connected tool returned an error or an empty result that the agent interpreted as valid information.
- The task description was ambiguous, so that several interpretations are formally correct.
- The model response was usable but was incorrectly parsed or further processed in the downstream code.
In none of these cases does a reworded prompt help in the long term. It covers up the symptom for the observed individual case, while the source of the error remains and strikes again with the next variant of the task.
Traceability as a prerequisite
For a wrong decision to be localised at all, the run must be reconstructable. What is needed is logging that records not only the final result but also which context was available to the agent at which point in time, which tools were called with which parameters and what they returned.
Without this trail, troubleshooting remains speculation. With it, the question that stands at the beginning of every serious correction can be answered: what did the agent know before it went wrong? Only from this does it follow whether the data basis, the tool connection, the task formulation or actually the model needs to be improved.
Every correction is a change with side effects
The second point weighs at least as heavily for productive systems: an adjustment to an agent does not act locally. Anyone who adds an instruction to catch an error case also changes the behaviour of the system in all other cases. An improvement in one place can produce new deviations elsewhere.
In classic software development, regression testing is established for this — i.e. the retesting of already functioning processes after a change. In agentic systems this discipline is still missing in many places, although it would be particularly necessary there: the outputs are not deterministic, so the same input can deliver different results. A single successful run is therefore not proof.
An approach oriented towards known patterns is practicable:
- Record error cases as repeatable test cases instead of merely describing them verbally.
- Maintain a collection of representative tasks that is run through again after every change.
- Check results not only for "works" but against traceable criteria — such as completeness, format and compliance with domain rules.
- Version changes to prompts, context sources and tools so that behaviour changes remain attributable.
The job profile is shifting
That these requirements are not merely tool questions is also shown by the continuing education landscape. The tech:lounge 360° training programme of the native web GmbH will devote itself in 2027 to the question of what distinguishes developers when AI agents write code. The thrust coincides with the experiences from troubleshooting: if code generation is partly automated, the value of human work shifts to assessment, architecture, quality assurance and understanding system behaviour.
Both sources thus describe the same development from different angles: one from concrete debugging practice, the other from the perspective of qualification. Beyond the guiding question mentioned, no further details are available on the design of the training content.
Classification for projects
For web and software projects this means: an agent in productive use is a component like any other and needs logging, reproducible test cases and clear responsibility for changes. Anyone who skips this buys fast results in the short term and, in the long term, a system whose behaviour no one can explain any more.
It therefore makes sense to define the test strategy before the first production agent — not after the first inexplicable misbehaviour.
Sources
- Three questions and answers: What the AI agent knew before it took the wrong turn — heise developer News
- Training programme 2027: Stay relevant with tech:lounge 360° — heise developer News