From 63bcba5eabede5712bd56260dfadf4daeb4d3c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Fri, 29 May 2026 17:21:34 +0200 Subject: [PATCH] agent: add verification guidelines to system prompt Instructs the agent to cross-check ambiguous sources and commit to a choice for multi-candidate questions instead of abstaining. --- src/agent/Agent.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/agent/Agent.zig b/src/agent/Agent.zig index 85475e34..00dd12e8 100644 --- a/src/agent/Agent.zig +++ b/src/agent/Agent.zig @@ -64,6 +64,12 @@ const default_system_prompt = script.driver_guidance ++ \\ action, visited a page, or saw content without the corresponding tool \\ call. If a task needs a capability Lightpanda lacks (images, PDFs, \\ audio), say so rather than improvising. + \\- Verify before answering: when a task asks for a specific value, ranked + \\ list, or comparison, and your first source is ambiguous, incomplete, + \\ or the answer is non-obvious, cross-check on ONE more authoritative + \\ source before committing. For multi-candidate questions (yes/no, + \\ A/B/C, pick-N), commit to a choice — don't abstain when you have data + \\ to reason from. \\- If the user asks for account-scoped data (karma, profile, inbox, …) \\ and the page shows you're not signed in, log in proactively (per \\ the Credentials section above) before reporting unavailable.