Who it is forA developer whose Claude Code session forgets what it was doing after compaction or a /clear.
The problemWhen the context window resets, an in-context to-do list disappears and the agent has to re-orient from scratch.
The outcomeAn agent that resumes at the current phase from task_plan.md, findings.md and progress.md.
What you need first
- Node.js with npx for the skills installer
- A supported host such as Claude Code, Cursor, GitHub Copilot, Gemini CLI, Codex, Kiro or Mastra Code
- For Qoder CLI: Bash and Python 3.10+
Steps
- Run
npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g - Start a long task; the skill creates task_plan.md with phases and checkboxes, findings.md and progress.md
- Let the lifecycle hooks inject the plan each turn
- Run /clear mid-task and watch the agent resume from task_plan.md
- Follow the per-IDE setup guide for your host to get hooks and the completion gate
Prompt for your agent
Install OthmanAdi/planning-with-files with npx skills add, then use it for <long task>: write task_plan.md with phases, log findings and progress as you go, and keep working until the plan reports complete.
Caveat. The planning files are gitignored by default, so they will not be shared with teammates unless you change that.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for OthmanAdi/planning-with-files and "Keep your agent's plan after /clear and compaction"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer