A Prompt That Carves Prompts — Principles and Evidence of Meta-Prompting
A Prompt That Carves Prompts: Principles and Evidence of Meta-Prompting
Meta-prompting means that instead of telling an AI "build X" directly, you ask it "first, help me write a good prompt for building X," refine that prompt together, and then run the real task by putting the finished prompt into a fresh context.
This post lays out the principles behind meta-prompting and grades how well papers and official docs support each one. At the end, it looks at meta-prompting-harness, a Claude Code plugin that bundles these principles into a step-by-step procedure.
✍️ TL;DR
Instead of "build X," start with "let's write the prompt for building X," and paste only the finished prompt into a clean, fresh window. Along the way you ask what's missing first, tie success criteria to external checks, carve the prompt for the execution environment, and let a human do the final check. Only some of these are proven techniques; the rest are practice.
What meta-prompting is
Meta-prompting here means a prompt that makes prompts. It has three steps.
- Gather context — If you already have meeting notes, instructions from a lead, or memos, hand them over as-is without cleaning them up. If not, the AI fills the gaps by asking one question at a time.
- Carve — Fill the blanks with questions, set success and verification criteria, and shape the prompt for the tool it will run in.
- Review, then inject into a fresh context — After a human fixes it with domain knowledge, only the finished prompt goes into a new window to run.
A different idea shares the name. Suzgun & Kalai's Meta-Prompting (2024) refers to a multi-agent setup where one LLM acts as a conductor that spawns expert instances and integrates their results. Its purpose differs from "a prompt that makes prompts," so it's best not to mix the two.
Why it matters: in long tasks, the first prompt is almost everything
Agents that loop on their own (/goal, loop) and multi-agent workflows can run for hours or days and burn many tokens. You can steer midway, but a vague first prompt means digging in the wrong place for a long time. Common failures look like this:
- The AI fills the blanks on its own. Say "build a CRM" and the AI picks the target industry, the level of completeness (MVP or finished product), and the tools. The result looks plausible but isn't what you wanted.
- There is no "when to stop." Without a stop condition, a looping task keeps inventing more work.
- "Verify it" isn't verification. "Check that everything is done" tends to end with the model re-reading its own answer and calling it fine.
- Running the task in the same window where the prompt was polished. All the trial and error from polishing stays in context when the real work starts.
Meta-prompting tries to solve these four before execution.
Six principles
How well papers and official docs support each principle is collected in the evidence grade table in the next section.
1. Make it ask before it builds
Don't stop at "write me a prompt." Add "if there's anything I haven't told you yet, ask me first." Ambiguous requirements consistently lower accuracy, and clarifying questions before generation raise it (ClarifyGPT, Orchid).
There is an important caveat: clarification isn't something models do well on their own. It's a capability separate from coding and reasoning, so strong models don't ask automatically (ClarifyCodeBench). The instruction to ask has to be explicit.
The axes worth asking about are fairly stable:
- Who will use it (target users)
- What the core features and value are, and whether there are references
- Level of completeness — an MVP or done in one go. This sets how strong the prompt is.
- Environment-specific variables — composition and lighting for images, stop conditions for looping tasks
How you ask matters too. Showing every missing piece as one long question list reveals how thin the context was, but the person answering gets tired, skims, or ends with "just handle it all." So it works better to ask one question at a time, with numbered options, picking the next question based on the previous answer, and to skip questions that became unnecessary. The evidence backs clarifying questions themselves, not the format of "dump all your context at once," so pasting notes can stay optional.
Handing some items off with "you decide" is fine. What to avoid is delegating everything. If the target, purpose, and key constraints all go to the AI, there's no reason to meta-prompt at all.
2. Tie success and verification to external criteria
Replace "make it good" with success criteria you can judge by observation.
- Bad: "make it easy to use"
- Good: "the core value is visible on the first mobile screen," "every button and form actually works"
Anthropic's prompt engineering guide names "a clear definition of success criteria" and "a way to test empirically against those criteria" as prerequisites for prompt work, and recommends instructing the model to check its answer against [test criteria] before finishing.
One distinction matters. Criteria-free self-correction like "review your own work" has contested effects in research (Huang et al. 2023). What's supported is verification against external criteria, so verification instructions always take the form "check against [specific success criteria]." Point at spots basic checks tend to miss, such as multi-step forms or input combinations, but don't invent criteria beyond the completeness you asked for.
3. Carve for the execution environment
The same content needs a different prompt depending on the tool it goes into. Here are each environment's hard constraints, must-include variables, and ending conditions.
| Environment | Hard constraints | Must-include variables | Ending / stop condition |
|---|---|---|---|
| Goal / loop (autonomous) | Length limit (varies by tool) | Goal, verifiable definition of done, iteration scope | Explicit stop condition required |
| Workflow orchestration | Token budget | Constraints, parallelization scope, verification and aggregation | Budget exhausted, convergence criteria, agent count cap |
| Coding agent (long tasks) | Context budget | File/module boundaries, how to run and verify, reversible vs risky | Tests pass, criteria for "done" |
| Image generation | Prompt length | Composition, subject, style, lighting, camera | What must be in the frame to accept |
| Research | Varies | Source criteria, scope, verification method, output format | Coverage, verification passed, citation requirements |
| Plain chat | Response length | Role, output format, examples, success criteria | Output format satisfied |
Tools change numbers like length limits often, so don't memorize them; check the actual value right before writing. If unknown, use a relative instruction like "within this environment's length limit."
When there is a length limit, a common recommendation is to lay out the big picture first, then trim. Don't start short: capture everything, then remove what the AI can decide while running (detailed data models, an overly specific tech stack, obvious login implementations). Keeping a note of what was cut and why lets you put it back later.
To be honest, no direct evidence was found that either environment-specific adaptation or "expand then compress" improves quality. Treat them as common-sense practice.
4. A human makes the final edits
Don't use the AI-carved prompt as-is; give it one more adversarial look.
- Are any instructions open to interpretation?
- Did demands beyond the intended completeness slip in?
- Are stop conditions or required variables missing?
- Is verification tied to external criteria?
- Are there domain facts you never provided (libraries or numbers the AI slipped in)?
- Was anything you should decide left as "the AI will figure it out"?
Then fix it with your domain knowledge. "A different email tool," "dark mode instead of a light background" — only you know those. AI-optimized prompts wobble across models and tasks (T1's limits), so a human check is the final safeguard.
Scoring prompt quality isn't recommended. Once you certify a prompt with a number, the prompt tends to bend toward the number.
5. Put only the finished prompt into a fresh context
When refining is done, don't run it in that chat window. Copy only the final prompt into a new one (/goal <prompt>, an image generation window, and so on).
The evidence is long-context degradation. Performance drops sharply when relevant information sits in the middle of the input (Lost in the Middle), and it falls consistently as input grows, even on easy tasks (Chroma Context Rot, NoLiMa). The trial and error accumulated while refining is context the real task doesn't need.
That said, no study directly compares "only the finished prompt in a new window" with "continuing in the same window." It's a directional measure derived from "long context isn't free."
6. It's not a silver bullet
Anthropic's guide itself says not every problem is best solved with prompts. If latency or cost is the problem, for example, choosing a different model may be easier than refining the prompt. Add the instability of AI-optimized prompts (T1's limits below), and meta-prompting is best seen as "helpful, but limited and model-dependent."
Evidence grades: what's proven and what's practice
Each technique was checked against 2023–2026 primary sources and sorted into three grades.
- STRONG — Directly supported by papers or official docs. Most are conditional on model and task and self-reported by authors, so not universal laws.
- report-only — Widely used, but no primary evidence was found. Accept as practice only.
- REFUTED — Rejected during verification.
| # | Technique | Grade | Evidence | Limits to keep in mind |
|---|---|---|---|---|
| T1 | AI optimizes and generates the prompt | STRONG (conditional) | Suzgun & Kalai (GPT-4, +17.1% over standard prompting), OPRO (up to 8% on GSM8K, up to 50% on BBH over human-written prompts), PromptAgent | Author-reported, model- and task-specific. OPRO's "Take a deep breath" didn't reproduce on other models; PromptAgent varies about 20% between runs |
| T2 | Ask for missing pieces before generating | STRONG | ClarifyGPT (GPT-4 MBPP Pass@1 70.96% → 80.80%), Orchid (requirement ambiguity consistently lowers Pass@1) | Clarification is separate from coding and reasoning. Strong models don't ask on their own — you have to tell them to |
| T3 | State success and verification criteria | STRONG | Anthropic prompt engineering guide | "Reliably catches errors" is an unbenchmarked vendor claim. Only verification against external criteria is supported, not criteria-free self-correction |
| T4 | Adapt to the execution environment | report-only | No direct evidence (indirectly plausible) | Common-sense usefulness only |
| T5 | Only the finished prompt into a fresh context | STRONG (directional) | Lost in the Middle, Chroma Context Rot, NoLiMa | Certain up to "long context isn't free." No study directly compares this intervention |
| T6 | Big picture first, then trim | report-only | No direct evidence (Self-Refine is only adjacent) | Practice for length-limited environments only |
| T7 | Meta-prompting is not a silver bullet | STRONG | Anthropic (model choice may be easier for latency and cost) + T1's instability | — |
Two claims were refuted.
- "Meta-prompting = a conductor LLM spawning expert instances" — As noted above, that's a different concept and can't serve as evidence for "a prompt that makes prompts."
- "LLMs cannot identify and resolve ambiguity on their own" — The reality is the opposite. It doesn't happen automatically, but prompting can draw it out — which is why principle 1 tells the model explicitly to ask.
A note on timing: Orchid and ClarifyCodeBench are 2026 preprints, not yet peer-reviewed, and their numbers may change.
What meta-prompting is not
One criterion decides it: is the output an instruction prompt to feed into another tool? These look similar but are different jobs.
- Assembling, compressing, or retrieving a context payload — choosing material for the model once the goal is set. The output is data, not instructions.
- Writing planning documents or user stories — filling blanks with questions is similar, but the output is a document.
- Interviews to align a plan or methodology — the final output isn't a prompt.
- Running autonomous loops — meta-prompting stops at making the prompt for that loop.
Even if a request mentions "prompt," it isn't meta-prompting when the output is advice. For example, "tell me, by UX methodology, what to put in a prompt for a prototyping tool" is a request for methodology advice.
Bundling it into a procedure: meta-prompting-harness
Remembering and following all these principles every time is hard, so it helps to bundle them into a procedure that enforces the order. meta-prompting-harness is a Claude Code plugin that walks through these principles step by step. It works on its own without other plugins, and it stops at producing the prompt — it neither runs the prompt nor commits.
| Phase | What it does | Principles |
|---|---|---|
| 0 Intake | Pin down what the prompt is for and which environment it goes into, one question at a time. Paste notes if you have them | 1, 3 |
| 1 Elicitation | Ask for missing pieces one by one in priority order; warn on total delegation | 1 |
| 2 Success & verification | Observable success criteria and verification against external criteria | 2 |
| 3 Environment-fit carving | Apply each environment's constraints, required variables, and stop conditions; big picture → trim | 3 |
| 4 Review & injection guide | Adversarial review → user edits → guide to a fresh window | 4, 5 |
At the end of each phase it shows the result and waits for approval before moving on. Even if the user starts with "just write me a prompt," it never skips confirming the goal and the execution environment.
Install and invoke
/plugin marketplace add seungahhong/seungah-claude-plugins
/plugin install meta-prompting-harness@seungah-claude-plugins/meta-prompting-harness:meta-promptingNatural-language requests also work, such as "carve a good prompt for this" or "refine an instruction prompt for a research agent, with source and verification criteria."
Example run: a CRM prompt for a looping task
[Phase 0] What is this prompt for?
→ A CRM for a small B2B sales team
Which environment will it go into?
1) Goal/loop 2) Workflow 3) Coding agent 4) Image 5) Research 6) Plain chat
→ 1
[Phase 1] Who mainly uses it?
1) Sales reps themselves 2) Team leads (pipeline management) 3) Both
→ 3
What level of completeness?
1) MVP with only the core flow working 2) Deployable finished product
→ 1
... (three more to go) ...
[Phase 2] Success criteria + "check every form and button actually works against the checklist"
[Phase 3] Stop condition and length limit applied → final prompt + summary of what was cut
[Phase 4] Review report → "Anything to change, like the email tool or the screen theme?"
→ After edits: open a new window and inject it with /goal <final prompt>Wrapping up
"Meta-prompting" sounds like a special technique, but following the evidence, what remains is the same story as handing work to a person: ask what's missing first, decide what "done" means, deliver it in a way that fits the receiver's situation (the tool's constraints), and let them start from a clean slate without the chatter.
Of these, clarifying questions, verification against external criteria, and fresh-context injection have evidence behind them; environment fitting and "expand then compress" are practice. Knowing the difference lets you use meta-prompting without overtrusting or underrating it.
References
- Suzgun & Kalai, Meta-Prompting (2024) · Yang et al., OPRO (2023) · Wang et al., PromptAgent (ICLR 2024)
- Mu et al., ClarifyGPT (FSE 2024) · Orchid · ClarifyCodeBench
- Liu et al., Lost in the Middle (TACL 2024) · Chroma, Context Rot (2025)
- Huang et al., Large Language Models Cannot Self-Correct Reasoning Yet (2023)
- Anthropic, Prompt engineering overview
- meta-prompting-harness (GitHub)