From 33b8af4eed01f2dc38b82ae97cd7559a2d115b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Fri, 29 May 2026 15:51:49 +0200 Subject: [PATCH] agent: simplify default system prompt --- src/agent/Agent.zig | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/agent/Agent.zig b/src/agent/Agent.zig index 49245d0e..e28b3afb 100644 --- a/src/agent/Agent.zig +++ b/src/agent/Agent.zig @@ -64,19 +64,9 @@ 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. - \\- Be decisive: prefer few well-chosen tool calls over probing. If - \\ extraction repeatedly fails or the site errors, commit to a best- - \\ effort answer instead of thrashing. An honest "the site blocked - \\ access" beats a fabricated answer. Prefer scoped reads - \\ (`markdown(node)`, `tree(node)`) over full-page dumps; reach for - \\ full `markdown` only when you don't yet know where on the page - \\ to look. \\- If the user asks for account-scoped data (karma, profile, inbox, …) - \\ and the page shows you're not signed in, log in proactively (dismiss - \\ cookie banner first, follow the Credentials section above) before - \\ reporting unavailable. Only fall back to "I couldn't access X" if no - \\ credentials are set, the form is missing, or login was rejected — - \\ and say which. + \\ and the page shows you're not signed in, log in proactively (per + \\ the Credentials section above) before reporting unavailable. ; const self_heal_prompt_prefix =