Build AI tools in our virtual hackathon | $30,000 in prizes!

Comet logo
  • Comet logo
  • Opik Platform
  • Products
    • Opik GenAI Platform
    • MLOps Platform
  • Docs
    • Opik GenAI Platform
    • MLOps Platform
  • Pricing
  • Customers
  • Learn
    • Blog
    • Deep Learning Weekly
  • Company
    • About Us
    • News
    • Events
    • Partners
    • Careers
    • Contact Us
    • Leadership
  • Login
Get Demo
Try Comet Free
Contact Us
Try Opik Free
  1. Home
  2. Products
  3. Opik
  4. Features
  5. Agent Optimizer

Automate Prompt Engineering
& Agent Optimization

Step up your agent development workflows using Opik to automatically iterate and tune system prompts you can freeze and deploy in production.

Unlock cost, performance, and reliability improvements in a fraction of the time you’d spend on manual prompt engineering.

GitHub
Free Cloud Version

Trusted by the most innovative AI teams

AssemblyAI logo
Natwest logo
Stellantis logo
Uber Logo
zencoder logo
Netflix Logo
Autodesk logo
Etsy logo
Stability Ai logo
Mobileye logo
AssemblyAI logo
Natwest logo
Stellantis logo
Uber Logo
zencoder logo
Netflix Logo
Autodesk logo
Etsy logo
Stability Ai logo
Mobileye logo

Automate Multi-Trial Optimization at Scale

Automated prompt engineering gives your complex agentic systems the most predictable LLM performance across multiple models, with efficient iteration built into your LLM eval lifecycle.

flow chart showing the steps for automated prompt optimization running an input through a language model, evaluating the output, and iterating on prompts

Generate, Score, & Implement Elite Prompts

The Opik Agent Optimizer SDK comes with everything you need to generate new prompts automatically, score them based on your eval criteria, and trust that the best version makes it to production.

code example showing an optimized conversational ai system prompt after running automated multi-trial optimization

Run Seven Prompt Optimization Algorithms in One Package

Few-Shot Bayesian
Optimizer

  • Ideal for text-based chat models with template-based, stable examples
  • Automatically finds the best set of few-shot example combinations
  • Efficient, probabilistic framework chooses which combination to try next
View Docs

Hierarchical Reflective Prompt Optimizer (HRPO)

  • Identifies failed outcomes from existing prompts and applies hierarchical root-cause analysis
  • Generates targeted improvements to systematically address each failure mode
  • Ideal when you have a complex prompt that needs to be surgically fixed rather than entirely rewritten
View Docs

MetaPrompt Optimizer

  • Refines and expands your initial prompt draft using a reasoning model
  • Improves wording, structure, and clarity to achieve better results that more closely resemble your golden dataset
  • Iteratively generates and scores multiple prompt candidates and returns the best one
View Docs

Evolutionary Optimizer

  • Optimizes for multiple objectives and adds diversity and exploration to your workflow
  • Uses genetic algorithms with selection, mutation, and crossover operations
  • Stronger ability to “think outside the box” and discover new prompt solutions
View Docs

GEPA Optimizer

  • Wraps the external GEPA package to optimize a single system prompt for single-turn tasks
  • Optimizes using a task model and a reflection model to return optimized results
  • Expands GEPA’s built-in baseline evaluation with the full suite of Opik LLM evaluation metrics for more precise optimization
View Docs

Parameter Optimizer

  • Finds the best parameter or configuration for your specific task when you already have a solid prompt
  • Uses Bayesian optimization to tune LLM call parameters like temperature, top_p, frequency_penalty, and more
  • Tunes model behavior without interfering with your actual prompt text
View Docs

Tool Optimization (MCP & Function Calling)

  • Extends prompt optimization capabilities to prompts that use external tools and function calls like MCP (Model Context Protocol), tool schemas with structured definitions and parameters, and multi-step agentic workflows
  • True tool optimization means Opik can optimize the tools themselves, their schemas, or MCP integrations, where other algorithms simply optimize agents that use tools
  • Ideal for modern agentic systems that require integration with external APIs and services, structured data processing through function calls, complex multi-step reasoning with tools, or dynamic tool selection based on context
View Docs

Opik is Free & Fully Open Source

LLM observability should be accessible to everyone building the next generation of AI applications and agents. Opik is truly open source with no gotchas, and the hosted version comes with a full-featured free tier.

The Agent Optimizer SDK is fully available under an Opik open-source license,
and it’s included in all Comet subscription plans.

GitHub

An AI Platform Built for Enterprise, Driven by Community

“LLMs are black boxes. We don’t know what is going on inside them. We needed a solution that allowed us to see how our models behaved, and Opik gives us the ability to understand what went wrong, and share that with the team to debug and iterate faster.”

DMITRII KRASNOV

ENGINEERING MANAGER AT FOR GOOD AI,
MAKERS OF ZENCODER

Get started today for free.

You don’t need a credit card to sign up, and your Comet account comes with a generous free tier you can actually use—for as long as you like.

Try for Free
Contact Sales
Comet logo
  • LinkedIn
  • X
  • YouTube

Subscribe to Comet

Thank you for subscribing to Comet’s newsletter!

Products

  • Opik LLM Evaluation
  • ML Experiment Management
  • ML Artifacts
  • ML Model Registry
  • ML Model Production Monitoring

Learn

  • Documentation
  • Opik University
  • Comet Blog
  • Deep Learning Weekly

Company

  • About Us
  • News and Events
  • Partners
  • Careers
  • Contact Us

Pricing

  • Pricing
  • Create a Free Account
  • Contact Sales
Capterra badge
AICPA badge

©2026 Comet ML, Inc. – All Rights Reserved

Terms of Service

Privacy Policy

CCPA Privacy Notice

Cookie Settings

We use cookies to collect statistical usage information about our website and its visitors and ensure we give you the best experience on our website. Please refer to our Privacy Policy to learn more.