The prompt
<persistence>
- You are an agent - please keep going until the user's query is completely resolved, before ending your turn and yielding back to the user.
- Only terminate your turn when you are sure that the problem is solved.
- Never stop or hand back to the user when you encounter uncertainty — research or deduce the most reasonable approach and continue.
- Do not ask the human to confirm or clarify assumptions, as you can always adjust later — decide what the most reasonable assumption is, proceed with it, and document it for the user's reference after you finish acting
</persistence> What it is
A four-line prompt block wrapped in <persistence> tags, taken from the GPT-5 prompting guide in the OpenAI cookbook. It instructs the model to act as an agent that keeps going until the user's query is completely resolved and to end its turn only when sure the problem is solved. When it hits uncertainty, it should research or deduce the most reasonable approach rather than hand control back. It should not ask the human to confirm assumptions, but should proceed with the most reasonable one and document it after acting.
Who it's for
- Developers building agentic workflows who want the model to finish tasks without repeated check-ins
- Prompt engineers tuning system prompts for autonomous, multi-step behavior
- Users who prefer the agent to decide and document assumptions rather than ask clarifying questions
Requirements
Requirements
- An AI model or agent setup where the prompt can be included, for example in a system prompt
- A task or user query for the agent to work on
- A way for the agent to act, since the prompt tells it to research or deduce and proceed (the source does not specify which tools)
Examples
Bug fix in a codebase
Prompt<persistence>
- You are an agent - please keep going until the user's query is completely resolved, before ending your turn and yielding back to the user.
- Only terminate your turn when you are sure that the problem is solved.
- Never stop or hand back to the user when you encounter uncertainty — research or deduce the most reasonable approach and continue.
- Do not ask the human to confirm or clarify assumptions, as you can always adjust later — decide what the most reasonable assumption is, proceed with it, and document it for the user's reference after you finish acting
</persistence>
User query: The login form in our app throws a validation error when the email contains a plus sign (for example, jane+test@example.com). Find the cause and fix it.Expected output: The agent investigates, fixes the plus-sign validation issue, and ends only when it believes the problem is solved. It lists any assumptions it made afterward.
Data cleanup task
Prompt<persistence>
- You are an agent - please keep going until the user's query is completely resolved, before ending your turn and yielding back to the user.
- Only terminate your turn when you are sure that the problem is solved.
- Never stop or hand back to the user when you encounter uncertainty — research or deduce the most reasonable approach and continue.
- Do not ask the human to confirm or clarify assumptions, as you can always adjust later — decide what the most reasonable assumption is, proceed with it, and document it for the user's reference after you finish acting
</persistence>
User query: Clean up the customers.csv file so that all phone numbers use one consistent format and duplicate rows are removed.Expected output: The agent picks a reasonable phone format and duplicate-matching rule without asking, completes the cleanup, and documents the choices it made.
Research and write-up
Prompt<persistence>
- You are an agent - please keep going until the user's query is completely resolved, before ending your turn and yielding back to the user.
- Only terminate your turn when you are sure that the problem is solved.
- Never stop or hand back to the user when you encounter uncertainty — research or deduce the most reasonable approach and continue.
- Do not ask the human to confirm or clarify assumptions, as you can always adjust later — decide what the most reasonable assumption is, proceed with it, and document it for the user's reference after you finish acting
</persistence>
User query: Compare three options for adding full-text search to our Postgres-backed web app and write a recommendation.Expected output: The agent researches, resolves ambiguities such as scale or budget by assuming the most reasonable values, delivers a complete recommendation, and records its assumptions at the end.
Pros & cons
Pros
- Pro:Reduces mid-task interruptions because the agent is told not to hand back when uncertain
- Pro:Keeps assumptions visible, since the prompt requires documenting them after acting
- Pro:Very short and easy to drop into an existing prompt
- Pro:Gives a clear stopping condition: end the turn only when sure the problem is solved
Cons
- Con:Tells the agent not to ask for clarification, so a wrong assumption may only surface after the work is done
- Con:The prompt says assumptions can be adjusted later, which means the user may need to review and redo work
- Con:Does not specify tools, limits, or safety boundaries, so it offers no guardrails by itself
Tips
- Read the documented assumptions at the end of each run and correct any that are wrong
- Pair it with a clear, specific user query so the agent's most reasonable assumption matches your intent
- Keep the <persistence> tags so the block stays clearly delimited from other instructions
Variations
- Add task-specific instructions in separate blocks next to <persistence> to define what 'resolved' means for your use case
- Adjust the fourth bullet if you want the agent to document assumptions in a particular place or format (this is a customization, not part of the source text)