What problem does it solve?
Writing an effective system prompt for a Browserbase Agent is guesswork: runs fail, loop, or return wrong data, and there is no systematic way to know which prompt change fixed what. This Skill turns prompt tuning into a controlled experiment by holding the task, result schema, and evaluation criteria fixed while iterating one prompt heuristic at a time.
Core Features & Use Cases
- Experiment Harness: A Node.js CLI creates an isolated workspace, runs a fixed task against the Browserbase Agents API, and saves the system prompt, run status, messages, session logs, and a scored summary per iteration.
- Trace-Based Diagnosis: Inspect ordered tool calls and tool results from Agent messages, plus CDP session logs, to find the first consequential failure before editing the prompt.
- Scoring and Convergence: A built-in scorer combines required-field coverage, known-fact regex checks, factuality warnings, and terminal status, and a report command compares all runs so a winning prompt is confirmed with an unchanged rerun.
- Use Case: A POC Agent keeps looping after a protected site returns 403. Run the baseline, inspect the trace, add a retry-cap heuristic to the prompt, rerun, and confirm the improved score with an unchanged confirmation run.
Quick Start
Ask the agent to set up an optimize-agent-prompt experiment workspace for your Browserbase Agent task, run the baseline prompt, and iterate on the system prompt until it converges.