Checkpointed long task setup: AI agent prompt

Set up long agent runs to save progress, check their own work, and resume instead of starting over, a widely shared X thread on agent harness setup.

Curated by AgentPlaybook Real Estate · How we make and check prompts

CodingLong-running tasksintermediate

The prompt

Before you start this long task: [describe], write a PLAN.md with numbered steps and a 'done when' check for each. After every step, update a PROGRESS.md with what's finished, what's next, and any open problems. Verify each step (run tests or re-read the output) before moving on. If you get stuck or run out of time, stop and leave notes so a fresh run can pick up from PROGRESS.md.
Open in ChatGPT Open in Claude Perplexity Download as agent skill (SKILL.md)

How to use it

  1. Copy the prompt above.
  2. Replace every [bracket] with your own details (or fill in the blanks on AgentPlaybook Real Estate, which remembers your answers for the next prompt).
  3. Paste it into Claude Code, Codex, Cursor and review the answer before you use it.

Works with: Claude Code, Codex, Cursor

Real-world example: x.com/beamnxw/status/2107522996046905797

Before you use it: what to check

Already built into this prompt

Check yourself

Using an AI agent? Download this prompt as a SKILL.md agent skill with these checks built in, or get the .zip for Claude.ai. How to install skills.

Share:Post on XLinkedInFacebookRedditWhatsApp
</> Embed this prompt on your site

Paste this HTML into your blog or website. It's a plain card with no tracking scripts that links back to this prompt.

Want to make this prompt even better? Grade it with the free prompt grader or build your own with the AI prompt generator.

Get the free Solo Founder Stack pack

32 copy-paste agent prompts (PDF) plus 5 new prompts every week.

Get it free

More Coding prompts

Ship a small feature as a PRFeatures · intermediateBuild a simple internal toolNo-code apps · beginnerAutomation script for a boring taskScripts · beginnerCommit & PR assistantGit workflow · intermediateFix a failed pipelineCI fixes · intermediateTool-stack upgrade scoutTooling upgrades · advanced

See all Coding prompts →