{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "othmanadi-planning-with-files--keep-your-agents-plan-after-clear",
 "repo": "OthmanAdi/planning-with-files",
 "repo_url": "https://github.com/OthmanAdi/planning-with-files",
 "repo_slug": "othmanadi-planning-with-files",
 "title": "Keep your agent's plan after /clear and compaction",
 "page_title": "How to keep your agent's plan after /clear and compaction with Planning with Files",
 "summary": "Install the skill so the plan lives in task_plan.md on disk and is re-injected every turn.",
 "who": "A developer whose Claude Code session forgets what it was doing after compaction or a /clear.",
 "problem": "When the context window resets, an in-context to-do list disappears and the agent has to re-orient from scratch.",
 "outcome": "An agent that resumes at the current phase from task_plan.md, findings.md and progress.md.",
 "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"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "10 minutes",
 "basis": "readme",
 "caveat": "The planning files are gitignored by default, so they will not be shared with teammates unless you change that.",
 "category": "Personal productivity",
 "tags": [
  "Personal productivity"
 ],
 "lang": "shell",
 "requirements": [
  "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+"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/othmanadi-planning-with-files/keep-your-agents-plan-after-clear/",
 "md": "https://dedupedai.com/use-cases/othmanadi-planning-with-files/keep-your-agents-plan-after-clear/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/othmanadi-planning-with-files--keep-your-agents-plan-after-clear.json",
 "api_version": "v1"
}
