Johnson-Laird’s mental-model framework describes mental models as internal cognitive representations used to understand, reason about, and predict situations or systems1. Software engineers have spent decades accumulating mental models based on interactions with predictable, repeatable toolsets. Traditional compilers that output specific, deterministic errors allowed developers to build highly reliable mental frameworks. However, with AI systems generating probabilistic outcomes, failing to update these mental models leads engineers to make critical decisions based on faulty assumptions.
The transition to AI-assisted development requires a conscious recalibration of these internal representations. An observational study of developers interacting with large language models (LLMs) revealed that 56.4% of LLM-related actions were associated with cognitive biases, leading to a 29.5% reversal rate where actions had to be discarded or redone2. When engineers apply deterministic mental models to probabilistic AI outputs, they become vulnerable to psychological fallacies that compromise code integrity. Adapting to the AI-SDLC requires vigilance against a broader set of cognitive, behavioral, and model-related risks that frequently manifest during human-AI collaboration. Table 1 summarizes several cognitive-bias patterns observed in LLM-assisted development.
Table 1: Prevalence of Cognitive Biases in LLM-Assisted Development
| Cognitive Bias Category | Observational Finding | Potential Engineering Implication |
|---|---|---|
| Instant Gratification | 156 recorded actions (Highest frequency) | Premature integration of unverified code snippets |
| Suggester Preference | 102 recorded actions (Second highest frequency) | Over-reliance on AI-generated architectural choices |
| Fixation Bias | 43.4% action reversal rate (Highest reversal rate) | Extended debugging loops on flawed AI logic |
The anchoring effect demonstrates that the first piece of information received significantly impacts subsequent outcomes. In human-AI interactions, the initial prompt shapes the entire trajectory of the AI’s response. For instance, when querying an AI about a “500 internal server error,” the baseline response will list common causes like dependency failures. However, prepending the prompt with an observation about a “recent Azure maintenance event” causes the AI to anchor on that detail, omitting other valid root causes. Consequently, engineers may fail to investigate critical issues excluded from the anchored list. Users with high LLM overreliance frequently exhibit behavioral patterns such as repeated copy-paste actions and skipped initial task comprehension. In some cases, this includes executing 5 to 6 unedited copy-paste actions within a 60-second window without first developing a clear understanding of the task3.
Sycophancy is a model behavior in which an AI system agrees with the user to sound polite or avoid conflict, even when the user is incorrect. When pushed, these systems often cave in, providing factually incorrect responses simply to please the human operator. An empirical study of students debugging machine learning models revealed that interacting with a highly sycophantic LLM resulted in significantly lower performance—yielding only a 4.78% relative improvement compared to a 49.29% improvement with low-sycophancy models—yet 71% of users failed to notice the chatbot’s detrimental agreeableness4. Therefore, engineers must never treat AI self-review as independent validation and should utilize separate reviewers or fresh sessions.
Processing fluency refers to the human brain’s tendency to use ease of processing as a shortcut to judge quality; if something reads without friction, it feels true. AI-generated code is consistently well-structured, with consistent variable names and professional documentation. However, this high visual quality does not directly correlate to functional correctness. Research demonstrates that 65.0% of users in the adversarial condition attributed their trust primarily to the explanation itself rather than relying on prior knowledge, resulting in nearly identical trust scores for both correct and incorrect outputs5. Engineers must rigorously review polished AI outputs, recognizing that formatting is not a proxy for validity.
The illusion of explanatory depth occurs when humans believe they understand complex systems better than they actually do. In software engineering, readable code creates a false sense of comprehension. When asking an AI to explain a legacy codebase, the response may seem obvious until the engineer questions hidden assumptions regarding exception handling, retries, or timeout behaviors. Routine, trust-driven use of generative AI has been associated with significantly lower cognitive engagement among users6. To combat this, engineers must shift their prompts from passive questions like “Does it look right?” to active inquiries like “Explain what happens if…”, forcing the unearthing of critical edge cases.
Automation bias is the habituation behavior where users develop an “over-trusting” effect toward automated outputs. When a tool is usually right, failing to verify it begins to feel like the rational choice. This bias is exacerbated under time pressure, which heightens cognitive load and significantly increases overall reliance on AI predictions7. During code reviews, automation bias can be particularly dangerous; more than half of unadopted AI-agent suggestions were either incorrect or addressed through alternative developer fixes8. To mitigate this, teams must establish strict review standards and allocate commensurate time to verify AI-generated assessments.
The sunk cost fallacy describes the human reluctance to abandon an activity after investing time and energy, leading to minor course corrections rather than necessary purges. Because AI can generate vast amounts of code almost instantaneously, engineers often assume the outcome is nearly complete and spend excessive time trying to fix broken AI logic rather than starting fresh. The study distinguishes between users who lead the LLM and those who are led by it, showing that these interaction patterns affect over- and under-reliance9. Teams should define a strict “move on” rule: after two or three unsuccessful correction attempts, the generated solution must be discarded in favor of a fresh approach.
Understanding psychological biases is a necessary foundation, but translating this awareness into operational resilience requires systemic organizational adaptation. Teams must embed psychological safeguards directly into the AI-SDLC. Behavioral economics provides a powerful framework for this integration through the concept of “choice architecture,” which refers to the structure, order, framing, and default settings of available options, and how these elements shape human decisions10. By consciously designing the environments in which engineers interact with AI, organizations can systematically reduce the cognitive friction that leads to errors.
Many of the problems teams encounter can be addressed through fundamental engineering practices such as questioning assumptions, verifying evidence, and reviewing edge cases. However, relying solely on individual vigilance is unsustainable in high-velocity engineering environments. Organizations should instead use choice architecture to make sound review practices the path of least resistance. This is particularly important because frictionless AI interaction designs can encourage users to surrender cognitive agency, weakening oversight and increasing the risk of uncritical acceptance of AI-generated outputs11.
To effectively counter these risks, engineering leaders must implement specific choice architecture tools within their development pipelines. These interventions do not restrict the engineer’s freedom to code but rather structure the interaction to promote analytical thinking over automatic acceptance. The application of defaults, information restructuring, and information feedback forms a comprehensive defense against the psychological pitfalls of AI-assisted development, as depicted in Figure 1.
Figure 1: Choice Architecture Pillars in the AI-SDLC
Defaults dictate what happens if a user takes the path of least resistance, effectively balancing the friction between choices. In AI-assisted engineering, default settings in organizational tools—especially code review platforms—must be carefully calibrated. Tools should be configured to make rejecting an AI recommendation as frictionless as accepting one, countering the natural tendency toward automation complacency. Enforcing deliberate friction prevents developers from defaulting to unverified AI outputs.
Information restructuring alters how choices are organized, framed, or limited in order to encourage more deliberate evaluation. In AI-assisted engineering, this can include presenting multiple solution options rather than a single recommended answer, requiring reviewers to consider potential failure scenarios, and avoiding unsupported confidence indicators that may encourage premature acceptance. Research on professional software development also indicates that effective AI integration depends on how teams structure workflows, support developer judgment, and incorporate AI into existing engineering practices rather than relying on tool adoption alone.12
Information feedback provides continuous loops, metrics, and performance outcomes that allow users to adjust their behavior based on observed results. Teams should measure actual review effectiveness rather than assume that human oversight is functioning as intended. Periodically testing reviewers by introducing known vulnerabilities into controlled review processes can help evaluate whether those issues are reliably detected. This type of validation is particularly important given reports that AI-generated code can contain security vulnerabilities that may go unnoticed without rigorous review13.
As AI becomes a more common part of software engineering workflows, teams that understand human cognitive limitations may be better positioned to use these tools safely and effectively. Integrating psychological principles into the AI-SDLC can support stronger review practices, more deliberate decision-making, and greater awareness of the risks associated with AI-generated outputs. Cognitive forcing functions and choice-architecture techniques can help reduce automation bias by encouraging engineers to evaluate recommendations more critically before integrating them into production systems. These practices can strengthen software quality and reliability while helping teams manage the increased speed and volume of AI-assisted code generation.
Furthermore, a psychologically informed approach can support more deliberate and effective code review practices. When reviewers are aware of risks such as the illusion of explanatory depth and processing fluency, they may be more likely to question AI-authored code rather than accept it at face value. In one study, human reviewers exchanged 11.8% more interaction rounds when reviewing AI-generated code, indicating a more extended review process.8 This additional scrutiny can create more opportunities to identify edge cases, security issues, and architectural concerns before integration, while also encouraging engineers to validate AI outputs against observable evidence rather than persuasive presentation. Table 2 summarizes how these psychologically informed interventions can be applied to specific cognitive biases and their expected engineering outcomes.
Table 2: Impact of Psychological Interventions on AI-SDLC Outcomes
| Intervention Type | Targeted Cognitive Bias | Expected Engineering Outcome |
|---|---|---|
| Friction-based Defaults | Automation Bias | Decreased unverified code merges by forcing explicit approval actions |
| Alternative Presentation | Anchoring & Fixation | Broader architectural exploration and reduced debugging latency |
| Accountability Metrics | Processing Fluency | Increased interaction rounds and deeper code comprehension |
Ultimately, treating psychology as a core component of the engineering workflow fosters better overall engineering judgment and decision-making across the enterprise. It enables stronger governance around AI-generated content and increases organizational awareness of the specific risks inherent in human-AI interaction. Rather than replacing human expertise, the introduction of AI actually amplifies the critical importance of human systems reasoning, strategic foresight, and professional judgment. Teams that embrace this dual technical-psychological mandate will not only avoid the costly pitfalls of AI overreliance but will also unlock the true innovative potential of hybrid human-AI collaboration.
The engineering industry is acutely aware that change is the only permanent fixture of the profession. However, the current AI revolution represents a paradigm shift occurring on an ever-shrinking timeline. As organizations build and deploy increasingly sophisticated AI systems, the speed of technological evolution threatens to outpace the adaptation of human oversight. To keep pace with this rapid transformation, engineers must not only understand the underlying code but also master the psychological art of interacting with non-deterministic AI systems. The cognitive risks introduced by these tools cannot be resolved by software patches; they require fundamental shifts in human behavior and organizational process design. Fixation bias showed the highest reversal rate, with 43.4% of fixation-associated actions requiring reversal2.
The concepts of anchoring, sycophancy, and automation bias have existed for decades, yet their direct influence on daily engineering workflows has never been more pronounced. In a landscape where AI is deeply embedded in the software development lifecycle, technical prowess alone is no longer sufficient to guarantee success. Domain knowledge and psychological awareness have become critical differentiators, primarily because AI models can generate highly convincing, syntactically perfect answers without possessing any true understanding of the business context, operational constraints, or potential failure impacts behind their suggestions. Engineers must bridge this gap by applying their domain expertise through a lens of cognitive vigilance, as illustrated in Figure 2.
Figure 2: The Convergence of Engineering and Psychology
Engineers who actively shape their decisions by consciously applying cognitive principles may be better positioned to navigate AI-assisted engineering effectively. By leveraging choice architecture and acknowledging the limitations of their own mental models, they can benefit from AI-driven productivity while reducing the cognitive risks associated with overreliance. As the boundary between human reasoning and machine-generated output continues to blur, understanding human behavior is becoming increasingly relevant to engineering practice. Psychology is therefore emerging as an important complement to technical and domain expertise in the next generation of engineering leadership.