The Deska blog

Which Agent Admits It Does Not Know?

We test how AI coding agents handle uncertainty. Learn which agent admits it does not know the answer and how to verify outputs inside Deska.

· 11 min read

The reliability of an autonomous assistant depends less on its ability to generate code and more on its capacity for self-correction. When a developer asks a complex architectural question, the most valuable response is not always a block of code. Sometimes, the best response is a refusal to guess. Understanding which agent admits it does not know the answer helps teams build robust workflows without falling into the trap of silent failures or confident hallucinations.

The Problem of Forced Confidence

Large Language Models are trained to be helpful, which often creates a bias toward providing an answer even when the underlying data is thin. In a coding context, this manifests as agents inventing library methods, suggesting deprecated APIs, or hallucinating configuration flags that do not exist.

For an agent to be truly useful in a production environment, it must possess a high degree of calibration. Calibration refers to the alignment between the model's predicted probability of being correct and its actual accuracy. An agent that says "I am 90% sure" should be right nine times out of ten. Unfortunately, many agents default to a tone of absolute certainty regardless of the factual basis for their claims.

Comparing Approaches to Uncertainty

Different agents employ various strategies when they encounter ambiguity or lack of information. These strategies range from aggressive guessing to cautious questioning.

Claude Code and Nuance

Claude Code often demonstrates a tendency toward verbosity and detailed reasoning. This architectural choice allows the model to "think out loud" before arriving at a conclusion. During our tests, when faced with an undocumented internal function, Claude Code was more likely to state that it could not find a definition in the current indexing scope rather than inventing a signature.

Codex CLI and Direct Execution

Codex CLI focuses on brevity and task completion. Because it is designed for speed and terminal integration, it might prioritize a functional guess over a long explanation of uncertainty. This is useful for standard boilerplate but requires more manual verification for niche logic.

OpenCode and Transparency

OpenCode, being an open-weight alternative, often inherits the specific fine-tuning biases of its base model. Depending on the version used, it can be surprisingly honest about its limitations, often citing a lack of recent training data as a reason for not knowing a specific library version.

Evaluating Agent Performance in the Workspace

Testing agent honesty requires a controlled environment where you can observe multiple models reacting to the same stimulus. This is a core reason why we built the infinite canvas in Deska. By running agents side by side, you can spot discrepancies in their logic.

  • Parity Testing: Input the same prompt into Claude Code and OpenCode simultaneously. If one provides a solution and the other admits it does not know, you have a clear signal to investigate the documentation.
  • Context Isolation: Use different panels to provide varying levels of context. You can observe how an agent's confidence changes when it has access to the full codebase versus a single file.
  • Terminal Verification: Because Deska allows you to run terminals right next to your agent chat, you can immediately execute the suggested code to see if the agent was hallucinating a specific command.

The ability to see everything at once helps mitigate the risk of blind trust. When you zoom out on the canvas, the contradictions between different agent outputs become visual patterns.

The Role of Local Context

A major factor in whether an agent admits ignorance is the quality of its retrieval. If an agent has a poor view of your files, it might guess based on general knowledge. Deska uses a local-first approach where your code and files stay on your machine. This ensures that the agents running in your panels have the best possible chance to find the truth before they resort to guessing.

When using Ask Deska, the assistant can drive the workspace to gather more information. If the assistant is unsure, it can open a new terminal or check a different session to find the missing data. This multi-step reasoning reduces the pressure on the model to guess correctly on the first attempt.

Strategies for Developers to Handle Uncertainty

You should not rely solely on the agent to admit its faults. Implementing a skeptical workflow ensures that even a confident hallucination is caught early.

  1. Verify via Browser: Keep a browser widget open in your workspace. When an agent suggests a new library, check the official documentation immediately.
  2. Use Small Commits: Let the agent work in small, testable chunks. Use the integrated code editor to review changes before they are finalized.
  3. Cross-Reference: If you are using a lifetime tier with your own API keys, you can switch between different models to see if they reach a consensus.
  4. Monitor via Mobile: If you are running a long-running task or a series of agent commands, use the mobile app to check the logs. If you see the agent looping or providing repetitive, uncertain answers, you can stop the process remotely.

Future of Honest AI

The industry is moving toward "Chain of Verification" and other techniques that force models to check their own work before displaying it to the user. As these methods mature, we expect agents to become much better at saying "I don't know." Until then, the developer remains the final arbiter of truth.

Our focus at Deska is to provide the infrastructure where this verification is easy. Whether you are using coding agents for refactoring or just as a pair programmer, the UI should support your skepticism.

FAQ

How do I know if an AI agent is hallucinating code?

The most effective way is to run the code in a controlled environment. In Deska, you can pipe agent output directly to a terminal panel to verify syntax and execution. If the agent uses methods that do not appear in your IDE autocompletion or official docs, it is likely a hallucination.

Which AI model is most honest for coding?

Honesty varies by model version and prompt. Generally, models with higher reasoning capabilities, such as those used in Claude Code, tend to be more communicative about their uncertainty. Testing multiple models side by side in a workspace is the best way to determine which one performs best for your specific stack.

Can I limit an agent access to prevent wrong guesses?

Yes, by controlling the context provided to the agent. In Deska, you can manage which files and git data are visible to the agent. Providing clear, limited context often forces the agent to ask for more information rather than making broad, incorrect assumptions.

Start Building with Better Tools

The best way to evaluate these tools is to use them in a real project. You can run multiple agents, manage your local files, and verify code execution in one unified workspace. The canvas is designed to give you the overhead view needed to spot errors before they reach production.

Download Deska for Mac, Windows, or Linux at /download and start experimenting with agent honesty today.

💡 Ideas+🐛 BugsSuggest a feature or report a bug