Planner and Executor Prompt Pair

Split a task into a plan step and an execution step with checks between them.

Added October 15, 2026. Written with AI assistance and checked for clarity and placeholders; not reviewed by a lawyer, accountant, clinician or other professional. How these prompts are made

The Open buttons send the prompt text as currently shown below to that site only when you click. Fill in the placeholders first.

I need a two-part prompt for this goal: [GOAL]. Constraints: [CONSTRAINTS]. Available tools: [TOOLS]. Success looks like: [SUCCESS_CRITERIA].

Part one is a planner prompt: it restates the goal, lists assumptions, produces a numbered plan with a tool and expected output for each step, and marks steps that are irreversible. Part two is an executor prompt: it takes one step at a time, reports what it did, compares the result with the expected output, and stops to ask when they differ.

Add the rule that irreversible steps need my approval, the format for a progress log, and a stop condition after [MAX_STEPS] steps. Return both prompts and a short example run using invented data.

Also explain how the executor should handle a step that fails twice, how plans can be revised mid-run without losing the log, and how I can read the log afterwards to understand why a particular decision was taken.

Make the planner output easy to check with a fixed plan format. Each step has a number, the action in one sentence, the tool to use, the input it needs, the output expected, whether it can be undone, and a check that proves it worked. For example, step three might read: retrieve last month's invoices from the accounting export, tool file reader, input the file name, output a list of invoice numbers, reversible, check that the count matches the total shown in the file. The executor repeats the step number, states what it did, pastes the real result, and compares it with the check before continuing. If the plan changes during the run, the executor writes the revised plan as a new numbered version and explains why.

Close with a test run on an invented task, including a deliberate failure at step three, to confirm that the executor stops and reports.

Fill in before use

Optional: type your details and the prompt above updates. Nothing is saved or sent.

Replace each bracketed placeholder with your own details, then paste into Any AI or another assistant.

Rate this prompt

Related prompts