beam-ape-optimizer

Automate iterative prompt optimization for Beam agent nodes using APE.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/beam-ai-team/beam-next-skills --skill beam-ape-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: beam-ape-optimizer
Source: https://github.com/beam-ai-team/beam-next-skills/tree/main/skills/beam/beam-tools/beam-ape-optimizer
Command: npx skills add https://github.com/beam-ai-team/beam-next-skills --skill beam-ape-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates the end-to-end process of iterating, validating, and redeploying improved prompts for Beam agent nodes using Automated Prompt Engineering (APE). This reduces manual prompt engineering time and increases agent accuracy.

Core Features & Use Cases

  • Iterative prompt optimization with a 3-agent credit assignment (Doer/Critic/Editor) to identify and fix failing instructions.
  • Runs test batches against a golden dataset and records reasoning traces for auditability.
  • Redeploys improved prompts to Beam agents and tracks performance improvements over iterations.

Quick Start

Trigger a Beam APE optimization run on your agent graph to begin refining prompts and redeploying improvements.

Frequently Asked Questions about beam-ape-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate prompt optimization for my AI agents?

Automated prompt optimization uses a three-agent credit assignment system of Doer, Critic, and Editor to identify failing instructions and iteratively refine prompts. It runs test batches against a golden dataset to ensure improved agent accuracy before redeployment.

What is the best way to fix failing prompts in a Beam agent graph?

Fixing failing prompts in a Beam agent graph is best handled by running iterative Automated Prompt Engineering (APE). The system records reasoning traces during test batches to audit failures, automatically identifies problematic instructions, and redeploys the corrected prompts.

How does credit assignment work in automated prompt engineering?

Credit assignment in automated prompt engineering works by using three specialized agents: a Doer to execute tasks, a Critic to evaluate reasoning traces, and an Editor to fix identified failing instructions. This isolates specific prompt errors for targeted optimization.

Can I track prompt performance improvements over multiple iterations?

You can track prompt performance improvements over multiple iterations by running test batches against a golden dataset. The system tracks redeployed prompts and reasoning traces across iterations to ensure sustained accuracy gains for your Beam agents.

Do I need a golden dataset to run Automated Prompt Engineering?

A golden dataset is required to run test batches for validating prompt improvements. It provides the baseline accuracy metrics needed for the Doer/Critic/Editor credit assignment loop to effectively identify and fix failing instructions during redeployment.