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 =