What is planning-with-files?
planning-with-files makes a coding agent keep its working state on disk instead of only in the context window. It writes three files in your project, task_plan.md (phases and checkboxes), findings.md (research notes and decisions) and progress.md (a session log and test results), and lifecycle hooks feed the active plan back to the model each turn and after /clear or compaction. Parallel tasks get their own folder under .planning/. The pattern follows what Manus described in its context-engineering blog post.
Ahmad Othman Ammar Adi maintains it, under MIT. It installs as a Claude Code plugin, from npm, or with npx skills, and has native plugins for Codex CLI, Hermes Agent, OpenCode, Pi, Qoder CLI and DeepSeek Harness, with translated variants in 5 languages. Version 3 added optional autonomous and gated modes, a Stop gate that holds the agent until every phase is complete, and SHA-256 attestation that refuses a plan edited after you approved it.
Is planning-with-files worth it?
planning-with-files solves a narrow problem well: an agent that forgets where it was after a context reset. It has about 28,300 GitHub stars and shipped v3.29.1 on 23 November 2026, its fourth release that month.
The design is simple at its core. The plan sits on disk, a UserPromptSubmit hook puts the current phase back in front of the model every turn, and after /clear the agent reads the files again. The author's internal benchmark of July 2026, run against v3.4.0, found an agent resumed a half-finished task in 5.0 turns with the files against 13.3 without them; the README itself labels this the project's own measurement and notes the current file-only recovery has not been re-run. An earlier eval on claude-sonnet-4-6 passed 29 of 30 assertions with the skill against 2 without, and measured whether the agent kept the three-file structure, not long-run drift.
Version 3 adds real safeguards for long unattended runs. Gated mode blocks the agent from stopping while a phase is still in progress, capped at 20 consecutive blocks by default so an incomplete plan cannot trap a session. /plan-attest locks task_plan.md with a SHA-256 hash, and a plan changed afterwards is refused with [PLAN TAMPERED]. Injected plan text is wrapped in delimiters with an instruction to treat it as data, since a findings file full of pasted web content is a prompt-injection route.
The catch: the surface is now large. Claude Code alone gets 6 hooks, 13 slash commands and several environment variables, and the changelog is a long list of fixed hooks that silently stopped firing on one platform or another, including a Windows case where each hook took 7 to 12 seconds until v3.17.0. Trail of Bits' curated marketplace carries a trimmed 1.0.0 copy that keeps only the Stop hook and, in its own words, drops the expensive hooks. The README also carries sponsor banners, including affiliate links for proxy sellers.
Our take: the plain three-file habit is worth adopting on any long task, with or without the hooks. Superpowers also plans and reviews the work and spends more tokens doing it; planning-with-files only keeps the plan in view.
Where it earns its place
A solo developer migrating a Django app to a new auth library over several evenings
Pick up each evening where the agent stopped without re-explaining the task
Run /plan at the start; the agent writes phases into task_plan.md and logs into progress.md. After /clear or a new session, the hook re-injects the current phase. The files are gitignored by default, so copy anything worth keeping into a commit or doc.
A platform engineer running Claude Code unattended on a multi-hour refactor
Stop the agent declaring the job done halfway through
Start with /pwf --gated and attest the plan; the Stop gate holds the turn while a phase is in progress, up to PWF_GATE_CAP blocks (20 by default), and /plan-doctor checks that the hooks are actually firing.
Before you commit
- Setup
- npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g, or the Claude Code plugin route for the full hook set. Hooks need Bash or PowerShell; Python 3 enables the faster single-process hook path.
- Integrations
- Claude Code, Codex CLI, Cursor, GitHub Copilot, Gemini CLI, Kiro, OpenCode, Hermes Agent, Pi, Qoder CLI, DeepSeek Harness and other Agent Skills hosts, each with its own setup guide.
- Data and privacy
- Local Markdown files in your project, gitignored by default. Automatic recovery reads project files only and makes no network request; the selected plan text is sent to your model provider every turn.
- Cost at scale
- Free under MIT. Re-injecting the plan each turn adds tokens to every prompt, which autonomous mode reduces by dropping the per-tool-call recitation.
- Limits
- Two named plans in one project need an explicit PLAN_ID, or the hooks inject nothing. Translated variants lagged behind the English one until v3.10.0, and only the latest release is supported.
What’s good
- Plan survives /clear, compaction and crashes as plain Markdown
- Native plugins for 7 hosts, skills route for many more
- SHA-256 attestation refuses a plan edited after approval
- Gated Stop hook with a block cap against early "done"
What’s not
- Many hooks, modes and variables to understand
- History of hooks silently failing on some platforms
- Benchmarks are the author's own, partly on older versions
Best for
Developers who run agent tasks long enough to hit /clear or compaction and want the agent to resume from a written plan.
planning-with-files alternatives
Where it fits in the AI stack
planning-with-files: common questions
- Is planning-with-files worth it?
- Three plain Markdown files and a hook are the most dependable fix we know for an agent that loses its plan after /clear, and the rest of the machinery is optional. We rate it 4.3 out of 5.
- How much does planning-with-files cost?
- Free and open source (MIT). You pay for the model usage of the agent you run it in.
- What are the downsides of planning-with-files?
- Many hooks, modes and variables to understand; history of hooks silently failing on some platforms; benchmarks are the author's own, partly on older versions.
- Who is planning-with-files best for?
- Developers who run agent tasks long enough to hit /clear or compaction and want the agent to resume from a written plan.
- How much does planning-with-files cost for a team or in production?
- Free under MIT. Re-injecting the plan each turn adds tokens to every prompt, which autonomous mode reduces by dropping the per-tool-call recitation.
- Is planning-with-files safe for company data?
- Local Markdown files in your project, gitignored by default. Automatic recovery reads project files only and makes no network request; the selected plan text is sent to your model provider every turn.
- What are the best planning-with-files alternatives?
- The closest alternatives we have reviewed are Superpowers, Beads, context-mode and Taskmaster (claude-task-master).
Answers checked Nov 28, 2026.