Skip to content

[codex] Add Optimize Agent Prompt skill - #146

Merged
shubh24 merged 3 commits into
mainfrom
codex/agent-api-autobrowse-skill
Aug 18, 2026
Merged

[codex] Add Optimize Agent Prompt skill#146
shubh24 merged 3 commits into
mainfrom
codex/agent-api-autobrowse-skill

Conversation

@shubh24

@shubh24 shubh24 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What changed

  • add a reusable optimize-agent-prompt skill for improving Browserbase Agent API system prompts
  • add a zero-dependency Node harness for Agent creation/update, run polling, message pagination, session-log capture, scoring, stuck-run stopping, trace inspection, and comparison reports
  • add API and evaluation references, UI metadata, and three realistic skill evals
  • list the skill in the repository README

Why

Browserbase Agents can now be improved with the same outer-teacher pattern as Autobrowse: hold the task and schema fixed, inspect observable run traces, change one prompt heuristic, and require an unchanged confirmation run before convergence.

The public name is deliberately optimize-agent-prompt rather than the broader optimize-agent, so the trigger clearly targets prompt optimization rather than model, tool, or architecture changes.

Impact

Demo and POC authors can create an isolated experiment workspace and converge on an evidence-backed Agent system prompt without rebuilding the API orchestration for every project.

Validation

  • node scripts/validate-skills.mjs — 17 skills passed, zero warnings
  • node --check skills/optimize-agent-prompt/scripts/optimize_agent_prompt.mjs
  • full mocked lifecycle: init → Agent create → run → messages → session logs → score → inspect → report
  • renamed CLI workspace initialization and report generation
  • git diff --check

Note

Cursor Bugbot is generating a summary for commit 3db8c3b. Configure here.

@shubh24 shubh24 changed the title [codex] Add Agent API Autobrowse skill [codex] Add Optimize Agent Prompt skill Jul 24, 2026
@shubh24
shubh24 marked this pull request as ready for review August 12, 2026 21:17

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3db8c3b. Configure here.

Comment thread skills/optimize-agent-prompt/scripts/optimize_agent_prompt.mjs Outdated
Comment thread skills/optimize-agent-prompt/scripts/optimize_agent_prompt.mjs Outdated
Comment thread skills/optimize-agent-prompt/scripts/optimize_agent_prompt.mjs Outdated
@shubh24
shubh24 merged commit d15a21f into main Aug 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants