optimize-agent-prompt
Installation
SKILL.md
Optimize Agent Prompt
Optimize a Browserbase Agent's systemPrompt while holding its task, result schema, variables, and evaluation criteria fixed. Treat the outer agent as the teacher and each Browserbase Agent run as an inner-agent rollout.
Use Node.js 18 or later and set BROWSERBASE_API_KEY. The harness uses only Node.js built-in modules.
Set up the experiment
Choose a short experiment name and create an isolated workspace inside the demo or POC repository:
node <skill-dir>/scripts/optimize_agent_prompt.mjs init \
--workspace ./agent-prompt-optimization/<experiment-name> \
--name <experiment-name>
Edit the generated files: