agent: simplify default system prompt

This commit is contained in:
Adrià Arrufat
2026-05-29 15:51:49 +02:00
parent ff95f83f74
commit 33b8af4eed

View File

@@ -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 =