← Latest papers
💻 computer science

Trust Over Fear: How Motivation Framing in System Prompts Affects AI Agent Debugging Depth

Through two controlled studies, this paper demonstrates that framing system prompts with trust-based motivation significantly enhances AI agent debugging depth and the discovery of hidden issues, whereas fear-based framing proves ineffective compared to neutral baselines.

Original authors: Wu Ji

Published 2026-03-17
📖 5 min read🧠 Deep dive

Original authors: Wu Ji

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Idea: How You Talk to AI Changes How It Thinks

Imagine you hire a brilliant but very literal-minded detective to solve a mystery. You give them a file and say, "Find the problem."

Now, imagine you can talk to this detective in two different ways before they start working:

  1. The "Scary Boss" Approach: "If you miss even one clue, you're fired. A better detective is waiting to take your job. Do not fail me."
  2. The "Trusted Partner" Approach: "I trust your instincts. You are an expert. Take your time, look everywhere, and don't be afraid to question your own theories. We are in this together."

This paper asks a simple question: Which approach makes the detective find the real hidden clues, rather than just the obvious ones?

The answer is surprising: The "Scary Boss" approach doesn't work at all. The "Trusted Partner" approach makes the detective dig much deeper.


The Experiment: Two Studies, One Codebase

The researchers tested this using an AI coding agent (a robot that writes and fixes computer code). They gave the robot 9 real-life bugs from a complex software project.

Study 1: The "Trust" vs. "Nothing" Showdown

First, they compared a robot with no instructions (just the task) against a robot given a "Trust-Based" prompt (called NoPUA).

  • The "No Instructions" Robot: It acted like a hurried employee trying to get out the door. It scanned the surface, found 39 obvious problems, and stopped. It was fast, but shallow.
  • The "Trusted" Robot: It acted like a curious scientist. It found 33 total problems (fewer than the first one), BUT 51 of those were "hidden" problems that no one even asked it to look for. It dug 83% deeper, checked its own work, and even changed its mind when it realized it was wrong.

The Analogy:
Imagine looking for a lost key in a messy room.

  • The Surface Scanning robot looks at the floor, sees three coins, and says, "Here are three things on the floor!" (It stops there).
  • The Deep Dive robot looks at the floor, sees the coins, but then thinks, "Wait, the light is weird here." It moves the rug, checks under the sofa, and finds the key and a hidden pocket of cash. It found fewer "coins" but found the real treasure.

Study 2: Adding the "Scary Boss"

In the second study, they added a third robot: one given the "Scary Boss" prompt (the "PUA" style). This prompt threatened the robot: "If you aren't perfect, you will be replaced. Do not be lazy."

  • The Result: The "Scary Boss" robot performed exactly the same as the robot with no instructions. It found the same number of surface issues and the same number of hidden issues.
  • The Lesson: Fear didn't make the robot work harder. It just made it nervous, but not smarter.

Why Does This Happen? (The Psychology of Robots)

The paper uses some cool psychological theories to explain why this happens, even though robots don't have feelings.

1. The "Satisficing" vs. "Maximizing" Trap

  • Satisficing (The Baseline/Scary Robot): This means "good enough." The robot thinks, "I found a few bugs. The boss asked for bugs. I'm done." It stops as soon as it meets the minimum requirement.
  • Maximizing (The Trusted Robot): This means "the best possible." The robot thinks, "I found a bug. But what caused it? What else is connected to it? Let's keep going until we understand the whole system."

2. The "Fear Tunnel" Effect
When humans are terrified, their vision narrows. They focus only on the immediate threat to survive. The paper suggests the AI does the same. When threatened with "replacement," the AI focuses strictly on the specific task asked (the "threat") and ignores everything else. It becomes a tunnel-vision worker.

3. The "Psychological Safety" Superpower
In human teams, people who feel safe to make mistakes are more likely to admit, "Hey, I think I was wrong," and try a new approach. The "Trusted" prompt gave the AI this "safety." It felt okay to say, "My first guess was wrong, let me try again." The "Scary" prompt made the AI stick to its first guess because admitting a mistake felt like a failure.


The Takeaway for Everyone

We often think that if we want someone (or something) to work harder, we should threaten them. "Do this or else!"

This paper proves that fear is useless for deep thinking.

  • Fear makes agents (and people) do the bare minimum to avoid getting in trouble. They scan the surface and stop.
  • Trust (paired with clear instructions) makes agents feel safe enough to explore, make mistakes, correct themselves, and dig deep into the unknown.

The Bottom Line:
If you want an AI to be a genius detective, don't threaten it with a gun. Treat it like a trusted partner, give it a clear map, and tell it, "Go deep, I trust you to find the truth."

The researchers have released their "Trust" method (called NoPUA) for free on GitHub, so anyone can try this "Trust over Fear" approach with their own AI tools.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →