DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to keep your agent's plan after /clear and compaction with Planning with Files

Install the skill so the plan lives in task_plan.md on disk and is re-injected every turn.

Short answer: Run npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g; then 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. All steps.

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

  1. Run npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g
  2. Start a long task; the skill creates task_plan.md with phases and checkboxes, findings.md and progress.md
  3. Let the lifecycle hooks inject the plan each turn
  4. Run /clear mid-task and watch the agent resume from task_plan.md
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer