awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

Prompt Optimization and Auto-Tuning Frameworks

Ranking updated Jun 30, 2026

For a framework for automatic prompt optimization, the strongest matches are microsoft/promptbase (Microsoft Promptbase is a Python framework for designing, testing), zou-group/textgrad (TextGrad is a Python library that treats language model) and mshumer/gpt-prompt-engineer (This repository is an automated prompt engineering framework that). comet-ml/comet-llm and linshenkx/prompt-optimizer round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

Automated tools and libraries designed to programmatically refine, test, and improve large language model prompts.

Prompt Optimization and Auto-Tuning Frameworks

Find the best repos with AI.We'll search the best matching repositories with AI.
  • microsoft/promptbasemicrosoft avatar

    microsoft/promptbase

    5,754View on GitHub↗

    Promptbase is a prompt engineering framework designed for designing, testing, and optimizing prompts for large language models. It provides a system for measuring model accuracy and performance through an evaluation toolkit that compares outputs against ground-truth datasets. The project also includes an orchestration pipeline for automating multi-component machine learning tasks across cloud-based endpoints and a utility for preparing retrieval-augmented generation datasets. The framework distinguishes itself through advanced response quality optimization, utilizing chain-of-thought generato

    Microsoft Promptbase is a Python framework for designing, testing, and optimizing LLM prompts with built-in evaluation against ground truth, orchestration pipelines, and advanced response quality optimization, directly matching your need for a programmatic automatic optimization tool.

    PythonLLM EvaluationPrompt Evaluation Tools
    View on GitHub↗5,754
  • zou-group/textgradzou-group avatar

    zou-group/textgrad

    3,374View on GitHub↗

    TextGrad is a differentiable text optimization library and framework designed for simulated language model backpropagation. It functions as a textual gradient engine that treats language model feedback as gradients to iteratively refine prompts and unstructured text variables. The system utilizes a computation graph to trace errors from a defined loss function back to input text, allowing it to determine specific improvements. It differentiates itself by implementing natural-language backpropagation and gradient aggregation, which merges multiple pieces of textual critique into consolidated i

    TextGrad is a Python library that treats language model feedback as gradients to iteratively refine prompts, providing a programmatic API, optimization algorithms, and evaluation via loss functions — directly addressing this search for an automatic prompt optimization tool.

    PythonPrompt OptimizersPrompt Optimizers
    View on GitHub↗3,374
  • mshumer/gpt-prompt-engineermshumer avatar

    mshumer/gpt-prompt-engineer

    9,659View on GitHub↗

    This project is an automated prompt engineering and optimization tool designed to iteratively create, test, and refine prompts using a language model to improve output quality. It functions as a framework for generating candidate prompts and ranking their performance through correctness matching and ELO-based ratings. The system includes capabilities for model distillation, generating high-quality example pairs from frontier models to create training data for smaller models. It also provides tools to condense prompts for smaller models and transform instruction-tuned prompts into completion-b

    This repository is an automated prompt engineering framework that iteratively generates, tests, and refines prompts using ELO-based ranking and model distillation, directly addressing the need for programmatic prompt optimization; however, its Jupyter Notebook format may limit direct SDK-style integration.

    Jupyter NotebookPrompt Evaluation ToolsPrompt OptimizersPrompt Version Trackers
    View on GitHub↗9,659
  • comet-ml/comet-llmcomet-ml avatar

    comet-ml/comet-llm

    19,673View on GitHub↗

    Comet LLM is an observability platform and evaluation framework designed for large language model applications and agentic workflows. It functions as a system for tracing, monitoring, and debugging execution flows while providing tools for prompt optimization and the enforcement of AI safety guardrails. The platform distinguishes itself through a combination of model-based scoring and heuristic metrics to quantify output quality and detect hallucinations. It includes a dedicated prompt and agent optimizer with an interactive playground for refining templates and tool configurations. For retri

    Comet LLM is a platform that includes a dedicated prompt and agent optimizer, automated evaluation with model-based and heuristic scoring, prompt version tracking, and SDK integrations — making it a programmatic tool for automatically refining prompts across multiple LLM providers.

    PythonLLM EvaluationPrompt Version Trackers
    View on GitHub↗19,673
  • linshenkx/prompt-optimizerlinshenkx avatar

    linshenkx/prompt-optimizer

    30,927View on GitHub↗

    Prompt Optimizer is a framework designed for the iterative refinement and testing of text-based instructions for large language models. It functions as an automated evaluation pipeline that systematically adjusts prompt structure, constraints, and clarity to improve the accuracy and consistency of model outputs. The system distinguishes itself through a model-agnostic interface that standardizes communication across different artificial intelligence providers. It incorporates a versioned asset management system to track prompt history, enabling developers to maintain consistency and perform r

    Prompt Optimizer is a dedicated framework for iterative prompt refinement with automated evaluation, model-agnostic interfaces, versioned prompt management, and optimization capabilities, perfectly matching your search for a programmatic prompt optimization tool.

    TypeScriptPrompt Evaluation Tools
    View on GitHub↗30,927
  • stanfordnlp/dspystanfordnlp avatar

    stanfordnlp/dspy

    35,325View on GitHub↗

    DSPy is a declarative programming framework designed for building complex language model applications. It treats model interactions as modular, composable programs, allowing developers to define task logic through typed class schemas rather than relying on manually written prompts. By organizing workflows into hierarchical, reusable Python objects, the framework enables the construction of sophisticated AI systems that manage state and execution flow independently. The framework distinguishes itself through an automated optimization engine that iteratively refines prompt instructions and few-

    DSPy is a declarative programming framework with an automated optimization engine that iteratively refines prompts and few-shot examples, providing a programmatic API for building and tuning LLM applications—exactly the kind of automatic prompt optimization tool you're looking for.

    PythonLLM Evaluation
    View on GitHub↗35,325
  • thunlp/openpromptthunlp avatar

    thunlp/OpenPrompt

    4,877View on GitHub↗

    OpenPrompt is a prompt learning framework designed to adapt large language models to downstream natural language processing tasks. It provides a comprehensive toolkit for implementing manual, soft, and continuous prompting strategies, allowing models to be refined without updating all underlying parameters. The project is distinguished by its support for both discrete and continuous prompt tuning. It includes a system for injecting trainable soft tokens and embeddings into model inputs via gradient descent, as well as an automatic prompt generation engine that uses beam search and generative

    OpenPrompt is a Python framework for prompt learning and optimization that provides a template engine and optimization algorithms for adapting LLMs to tasks, fitting the search for a programmatic prompt optimization tool, though it is research-oriented and lacks some requested features like multi-LLM provider support and built-in evaluation.

    PythonPrompt Templates
    View on GitHub↗4,877
  • boundaryml/bamlBoundaryML avatar

    BoundaryML/baml

    7,636View on GitHub↗

    BAML is a prompt engineering framework and LLM client generator that defines AI prompts as type-safe functions. It serves as a structured data extraction tool and workflow orchestrator, transforming unstructured model responses into strongly typed objects using a custom schema language and alignment algorithms. The project distinguishes itself by using a compiler to generate language-specific boilerplate code for API communication and output parsing. It features a dedicated environment for designing complex prompt templates with conditional logic and reusable snippets, and employs genetic alg

    BAML is a prompt engineering framework that uses genetic algorithms to automatically optimize prompts and provides a type-safe SDK for programmatic use, fitting your search for an automatic prompt optimization tool.

    RustLLM Provider IntegrationsPrompt Templates
    View on GitHub↗7,636
  • codelion/openevolvecodelion avatar

    codelion/openevolve

    6,608View on GitHub↗

    OpenEvolve is an evolutionary algorithm framework that uses large language models to autonomously discover and optimize programming algorithms. It functions as an algorithm discovery engine and code search tool, evolving populations of candidate programs to find efficient implementations and hardware-specific speedups. The system treats both code and system instructions as evolvable entities, utilizing an automated prompt optimizer to iteratively refine model performance. It maintains search stability through niche-based population management to preserve diversity and employs a closed-loop fe

    OpenEvolve is an evolutionary algorithm framework that automatically optimizes prompts and system instructions for LLMs, providing algorithmic prompt refinement and optimization, though its primary focus is on programming algorithm discovery rather than general prompt tuning.

    PythonEvolutionary Algorithm DiscoveryAutomated Code Refinement LoopsClosed-Loop Code Iteration
    View on GitHub↗6,608
  • keirp/automatic_prompt_engineerkeirp avatar

    keirp/automatic_prompt_engineer

    1,360View on GitHub↗

    Automatic Prompt Engineer is a framework designed to automate the generation, refinement, and performance measurement of language model instructions. It functions as a systematic tool for optimizing prompt phrasing by iteratively testing candidate instructions against specific input and output datasets to maximize task accuracy. The system distinguishes itself through an evaluation-driven approach that uses automated feedback loops to score prompt variations. By employing template-based input structuring, it ensures consistent testing environments where candidate instructions are measured aga

    This repository provides the implementation of the Automatic Prompt Engineer (APE) method, a research-backed tool that automatically generates and optimizes prompts for LLMs, matching your intent for a programmatic prompt optimization tool.

    PythonLLM EvaluationPrompt Evaluation Tools
    View on GitHub↗1,360
  • madcowd/ellMadcowD avatar

    MadcowD/ell

    5,874View on GitHub↗

    Ell is a Python library that treats prompts as callable functions, transforming a Python function into a language model program where the docstring defines the system message and the return value defines the user message. It provides a framework for writing language model programs that can accept and return images, audio, and text natively within message objects, and supports chaining multiple model calls into a single function for multi-step reasoning or test-time compute. The library decouples model selection from client instantiation through a registry that supports multiple provider backe

    Ell is a framework for writing and managing prompt programs as Python functions with versioning and multi-model support, but it does not include automatic optimization algorithms or iterative prompt tuning — it’s a prompt programming library, not an auto-optimization tool.

    PythonPrompt Version TrackersPrompt Versioning EnginesVersioned Prompt Variants
    View on GitHub↗5,874
  • typpo/promptfootyppo avatar

    typpo/promptfoo

    22,295View on GitHub↗

    promptfoo is an evaluation framework for measuring the performance of large language model prompts, agents, and retrieval augmented generation pipelines. It provides a suite of tools for conducting comparative benchmarking and executing automated quality and security regressions. The system features a benchmarking suite for running identical prompts across different model providers to compare output quality side-by-side. It also includes a dedicated red teaming tool for identifying security vulnerabilities and prompt injection risks through automated penetration testing. The framework suppor

    promptfoo is an evaluation and benchmarking framework for comparing prompt performance across models, but it does not provide automatic prompt optimization or algorithmic tuning, which is the core need you specified.

    TypeScriptLLM EvaluationPrompt Evaluation Tools
    View on GitHub↗22,295
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
microsoft/promptbase5.8KPythonMITJun 4, 2024
zou-group/textgrad3.4KPythonmitJul 25, 2025
mshumer/gpt-prompt-engineer9.7KJupyter NotebookmitOct 16, 2025
comet-ml/comet-llm19.7KPythonApache-2.0Jun 17, 2026
linshenkx/prompt-optimizer30.9KTypeScriptNOASSERTIONJun 9, 2026
stanfordnlp/dspy35.3KPythonMITJun 18, 2026
thunlp/openprompt4.9KPythonApache-2.0Jul 16, 2024
boundaryml/baml7.6KRustapache-2.0Feb 21, 2026
codelion/openevolve6.6KPythonApache-2.0Mar 18, 2026
keirp/automatic_prompt_engineer1.4KPythonMITApr 29, 2024

Related searches

  • a platform for experimenting with prompts in production
  • a toolkit for detecting prompt injection attacks
  • a tool for versioning and managing prompts
  • a toolkit for red-teaming language models
  • a toolkit for building tool-using AI agents
  • a playground for testing and sharing prompts
  • an automated machine learning framework for tuning
  • Prompt engineering guides