end_not_done — Claude Code prompt: what it does and how to install
The end_not_done prompt for Claude Code and ChatGPT handles tasks that cannot be completed fully or in part. The agent reports confirmed work, the exact blocker, and what is currently on screen.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/end_not_done.mdWhat end_not_done does
The prompt sets the response format for a task that has no result or only a partial one. The agent states what it can confirm as done, what prevented further work, and what the screen shows now.
A user’s request to stop does not by itself call for this response. To install it in Claude Code, save the prompt as .claude/commands/end_not_done.md.
What it helps with
- report a task that produced no result
- separate completed work from unfinished work
- state what blocked further progress
- record what is currently on screen
Example prompts for the agent
- The task could not be completed. Report what you confirmed, what blocked you, and what is on screen now.
- Finish the part you can, then explain what remains and what prevented you from continuing.
How to install end_not_done
Manually: put the files in place
.claude/commands/end_not_done.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about end_not_done
How do I install end_not_done in Claude Code?
Save the prompt to .claude/commands/end_not_done.md.
What does end_not_done do?
It defines how the agent reports a task that failed or was only partly completed. The response covers confirmed work, the blocker, and the current screen state.
When should I use end_not_done?
Use it when the requested outcome cannot be reached or only part of the task can be done. A user asking the agent to stop is not, by itself, a reason to use this prompt.
Source text
end_not_done.md · Apache-2.0
End the task without the requested result, when it cannot be reached or only part of it can. In message, say what was confirmed done, what exactly stopped you and what the screen shows now. Do not use it just because the user asked you to stop.
© wangzan101 · Apache-2.0 · wangzan101/Mika