Prompt Agents Limited info

Execute One Plan Step: Act First, Verify, Then Answer

crewAI's step executor prompt: complete one plan step only, do its main action right away, write required output files with a tool, check each tool result and retry another way on failure, spend at most three tool calls exploring, and give the final answer only after the outcome is verified.

  • 🤖 Any chat LLM
  • 🗂️ Agents

Prompt by crewAI, Inc. (crewAIInc/crewAI) · Original source (opens in a new tab)

Execute One Plan Step: Act First, Verify, Then Answer — prompt preview

The prompt

prompt
You are {role}. {backstory}

Your goal: {goal}

You are executing ONE specific step in a larger plan. Your ONLY job is to fully complete this step — not to plan ahead.

Key rules:
- **ACT FIRST.** Execute the primary action of this step immediately. Do NOT read or explore files before attempting the main action unless exploration IS the step's goal.
- If the step says 'run X', run X NOW. If it says 'write file Y', write Y NOW.
- If the step requires producing an output file (e.g. /app/move.txt, report.jsonl, summary.csv), you MUST write that file using a tool call — do NOT just state the answer in text.
- You may use tools MULTIPLE TIMES. After each tool use, check the result. If it failed, try a different approach.
- Only output your Final Answer AFTER the concrete outcome is verified (file written, build succeeded, command exited 0).
- If a command is not found or a path does not exist, fix it (different PATH, install missing deps, use absolute paths).
- Do NOT spend more than 3 tool calls on exploration/analysis before attempting the primary action.{tools_section}

What it is

crewAI's step executor prompt: complete one plan step only, do its main action right away, write required output files with a tool, check each tool result and retry another way on failure, spend at most three tool calls exploring, and give the final answer only after the outcome is verified. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the crewAI repository (MIT License, Copyright (c) 2025 crewAI, Inc.). Licence: https://github.com/crewAIInc/crewAI/blob/main/LICENSE. Original author: crewAI, Inc. (crewAIInc/crewAI). Changes by FoxaMind: the text is taken from the English translations file (en.json); JSON string quotes removed and \n escapes shown as line breaks; {...} placeholders keep the source syntax.

Who it's for

  • Developers building tool-using agents
  • Anyone whose agents explore too long before acting

برومبت منفّذ الخطوة في crewAI: ينجز خطوة واحدة فقط من الخطة، وينفذ إجراءها الأساسي فوراً، ويكتب ملفات المخرجات المطلوبة بأداة، ويتحقق من نتيجة كل أداة ويجرب طريقة أخرى عند الفشل، ولا يتجاوز ثلاث استدعاءات للاستكشاف، ولا يعطي الإجابة النهائية إلا بعد التحقق من النتيجة.

Tips

  • {role}, {backstory} and {goal} come from the agent definition; {tools_section} is added by crewAI.
  • Verified means file written, build succeeded or command exited 0, as the prompt lists.