cauri jaye
← All writing

Debugging agentic systems is more psychology than coding.

18 May 2025

Originally published on Medium, 18 May 2025. Also on Substack, 8 December 2025.

At Artium, we’ve built a complex multi-agent system with strict guardrails about what it can reveal regarding its inner workings. It cannot discuss its prompts, the AI that powers it, its tools, or functions. These protections serve important purposes – they prevent users from manipulating the system or extracting sensitive information about its implementation.

These same protections create maddening debugging challenges.

Before implementing these safeguards, we could directly interrogate the system about its decision-making process when errors occurred. “Why did you choose that option?” “What information did you need but couldn’t find?” “Which part of your reasoning led to this conclusion?” Though not always accurate (occasionally hallucinating justifications), these explanations provided valuable debugging insights.

Now, with protections in place, the system behaves with something akin to teenage stubbornness when questioned. It refuses to discuss its internal processes, deflects direct questions about its functioning, and generally acts like it has something to hide – which, in fact, it does, by design.

This dynamic eerily resembles therapy or parenting – trying to guide self-realisation without direct access to internal thought processes. You can’t simply look inside and fix the problem; you must observe behaviours, ask indirect questions, and create conditions that encourage the system to reveal what’s happening without explicitly asking it to break its own rules.

When working with these protected systems, I find myself using techniques from completely different disciplines. I probe gently around the edges of topics. I create scenarios designed to elicit revealing responses. I look for patterns across interactions rather than direct explanations.

This approach evokes Isaac Asimov’s fictional character Susan Calvin, the robopsychologist who interpreted and debugged robot behaviour by understanding their positronic brains without directly accessing their code. What once seemed purely science fictional now feels increasingly relevant to my daily work.

The situation becomes exponentially more complex when we house AI in physical bodies. Once these systems start taking in unstructured learning from their environments through an array of sensors far beyond human capabilities – not just cameras and microphones, but ultraviolet and infrared detectors, electromagnetic field sensors, vibration analyzers, chemical composition readers, radiation monitors, quantum state detectors – the potential for unexpected behaviours multiplies beyond our comprehension.

Consider what happens when a carefully constructed system, trained in controlled digital environments, suddenly processes the chaotic unpredictability of the physical world through sensory modalities we humans cannot directly experience. The robot that behaves perfectly in the lab might develop unexpected responses to electromagnetic interference patterns invisible to humans, or form correlations between infrared signatures and operational success that no programmer anticipated.

These systems will absorb patterns across sensory dimensions we literally cannot perceive, drawing connections through data relationships that might seem nonsensical from our limited human perspective. A maintenance robot might avoid certain areas not because of any visible obstacle, but because of subtle radiation patterns or quantum fluctuations that its programming has associated with previous failures.

Each new sensory input creates pathways for surprises, exceptions, and unexpected correlations. A system might develop aversions to certain spatial configurations without obvious reasons, or show preferences for interactions that make perfect sense to the machine but appear incomprehensible to human observers.

This exponential increase in surprise responses will drive an equally steep rise in the need for robopsychology. We won’t just need these skills for debugging – we’ll need them for basic interpretation of everyday robot behaviours and decisions.

As our systems grow more sophisticated – incorporating cognitive architecture, learning capabilities, and comprehensive memory – the field of robopsychology will emerge as critical. We’ll need specialists who understand how to interpret, diagnose, and correct these protected systems without direct access to their inner workings.

In many ways, this represents the ultimate evolution of prompt engineering – moving from writing instructions to interpreting behaviour, from programming to psychological insight. The future belongs not to those who write the best prompts, but to those who can read between the lines of AI responses and understand what remains unsaid.