Planning with Files
Keeps task_plan.md, findings.md and progress.md on disk so an agent never loses the thread across long, multi-step work.
AutomationIntermediate★ 27,953⑂ 2,313AI score 10/10Last updated: Nov 7, 2026
What it does
Implements the "Manus" pattern: the context window is RAM, the filesystem is disk — anything important gets written down.
- Three planning files:
task_plan.md(phases + status),findings.md(research),progress.md(session log), created in your project directory. - State restore first: resolves the owning plan, re-reads it before continuing, and can pull aggregate counts from past same-project sessions via
session-catchup.py --metadata. - Structure validation:
init-session.shscaffolds the plan,check-complete.sh --validateconfirms the### Phase N+**Status:**markers are intact (format only, not completion). - Error discipline: every error is logged in the plan, and a 3-strike protocol forces an approach change, then escalation to the user.
- Lifecycle hooks: injects current plan context on UserPromptSubmit, PreToolUse, PreCompact and Stop.
Who it's for
- Anyone handing the agent research or build tasks that need 5+ tool calls
- People who hit context compaction and watch earlier decisions disappear
- Teams running parallel tasks/worktrees that need separate pinned plans
- Anyone who wants durable records instead of ephemeral TodoWrite lists
Examples
- Refactor project: run
init-session.shto scaffold a 5-phase plan, flip each phase tocompleteas you go, and log touched files inprogress.md. - Technical research: following the 2-action rule, dump key takeaways to
findings.mdafter every two reads/searches so nothing is lost when context is compacted. - Resuming next day: run
set-active-plan.sh --listto see saved plans and phase progress, pin the rightPLAN_ID, and continue exactly where you stopped.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/OthmanAdi/planning-with-files/HEAD/.codex/skills/planning-with-files/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the .codex/skills/planning-with-files folder from the GitHub repo OthmanAdi/planning-with-files into my ~/.claude/skills/othmanadi-planning-with-files-2/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/OthmanAdi/planning-with-files.git /tmp/pwf && mkdir -p ~/.claude/skills && cp -r /tmp/pwf/.codex/skills/planning-with-files ~/.claude/skills/ && rm -rf /tmp/pwf⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/OthmanAdi/planning-with-files.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r planning-with-files/.codex/skills/planning-with-files ~/.claude/skills/ - If you also use Codex, run
mkdir -p ~/.codex/skills && cp -r planning-with-files/.codex/skills/planning-with-files ~/.codex/skills/— the SKILL.md examples reference~/.codex/...paths. - Make the helpers executable:
chmod +x ~/.claude/skills/planning-with-files/scripts/*.sh - If you installed to a non-standard path, add
export PWF_SCRIPT_DIR=~/.claude/skills/planning-with-files/scriptsto your.bashrc/.zshrcso the hooks can find the script. - Restart Claude Code, then from your project root ask it to "track this task with planning files".
- Smoke-test by running
sh ~/.claude/skills/planning-with-files/scripts/init-session.shin the project root and checking that a.planning/directory appears.
View source on GitHub ↗License: MIT