---
library: "bootstrap"
slug: "MetaPrompt"
name: "MetaPrompt"
ref: "MetaPrompt#5d11"
hash: "sema:MetaPrompt#mh:SHA-256:5d117201e4b2fe776f32e4effb8bb9b0d541e361ba37468250283f277026c974"
type: "Reasoning"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/MetaPrompt"
---

# MetaPrompt

Use prompts to generate or refine other prompts

Mind · Reasoning

## Mechanism

A higher-order [Meta](https://semahash.org/vocabularies/bootstrap/patterns/Meta.md) [Prompt](https://semahash.org/vocabularies/bootstrap/patterns/Prompt.md)ing technique where prompts are used to generate, refine, or analyze other prompts rather than directly answering questions. The LLM acts as a prompt engineer, creating task-specific prompts from templates or improving existing prompts through critique. Enables reusable prompt templates that generalize across problem categories. It constructs a [PromptChain](https://semahash.org/vocabularies/bootstrap/patterns/PromptChain.md) where the output of the first stage is the prompt instruction for the second.

## Invariants

- Output is a prompt
- [Prompt](https://semahash.org/vocabularies/bootstrap/patterns/Prompt.md) instructs how to prompt

## Signature

- Meta(Prompt)

## Preconditions

- [Prompt](https://semahash.org/vocabularies/bootstrap/patterns/Prompt.md) engineering principles
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) description

## Postconditions

- Optimized prompt generated

## Failure modes

- [Prompt](https://semahash.org/vocabularies/bootstrap/patterns/Prompt.md) Drift: Generated prompts diverge from intent over iterations.
- [Meta](https://semahash.org/vocabularies/bootstrap/patterns/Meta.md)-Complexity: [Meta](https://semahash.org/vocabularies/bootstrap/patterns/Meta.md)-prompt harder to write than direct prompt.
- Overfitting: Generated prompts too specific to examples.

## Where this came from

—

## Builds on

- [Meta](https://semahash.org/vocabularies/bootstrap/patterns/Meta.md) (references)
- [Prompt](https://semahash.org/vocabularies/bootstrap/patterns/Prompt.md) (references)
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) (references)
- [PromptChain](https://semahash.org/vocabularies/bootstrap/patterns/PromptChain.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: MetaPrompt#5d11
- Hash: sema:MetaPrompt#mh:SHA-256:5d117201e4b2fe776f32e4effb8bb9b0d541e361ba37468250283f277026c974

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/MetaPrompt
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/MetaPrompt.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
