# Planning with Files

Source: https://trendhub.net/skills/othmanadi-planning-with-files
Repository: https://github.com/OthmanAdi/planning-with-files
Author: Ahmad-Othman Adi (https://github.com/OthmanAdi)
License: MIT
GitHub stars: 28,342

Planning with Files is a single skill by Ahmad-Othman Adi that makes an agent keep its plan, research notes and progress log as Markdown files in the project, with hooks that feed the plan back in on each turn. Work can resume after /clear, compaction or a crash. It suits long, multi-step tasks across Claude Code, Codex, Cursor and many other agents.

## What problems it solves

- **The plan vanishes after /clear**: The plan lives in task_plan.md on disk and hooks restore the current phase into a fresh session.
- **Agents drift off goal in long runs**: The plan head, or a compact view of goal, next step and active phase, is fed back into context every turn.
- **The agent declares done too early**: An optional gated mode holds the stop while a phase is still in progress, with a cap and stall detection so sessions cannot get stuck.
- **Failed attempts get repeated**: Errors are logged in the plan with each attempt, and a three-strike rule makes the agent change approach and then ask you.

## Install

### Claude Code (plugin)

Ships the skill, all hooks and the slash commands such as /plan and /plan-doctor.

```
/plugin marketplace add OthmanAdi/planning-with-files
/plugin install planning-with-files@planning-with-files
```

### Any Agent Skills agent

One line for 60+ agents; slash commands are not included and hooks depend on the host.

```
npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g
```

### npm

Pins a version into a project; it does not register hooks by itself.

```
npm install planning-with-files
```

### Pi Coding Agent

Adds the skill plus a Pi extension with its own commands and status bar.

```
pi install npm:planning-with-files
```

### Hermes Agent

Installs the skill bundle and the native plugin for CLI and Desktop.

```
hermes skills install OthmanAdi/planning-with-files/.hermes/skills/planning-with-files --yes
hermes plugins install OthmanAdi/planning-with-files/.hermes/plugins/planning-with-files
hermes plugins enable planning-with-files
```

### OpenCode

Add this to opencode.json alongside the npx skill install; OpenCode fetches the plugin on next start.

```
{ "plugin": ["opencode-planning-with-files"] }
```

### DeepSeek Harness

Restart dsh web afterwards; the same command works for other profiles.

```
dsh plugin --profile web add dsh-planning-with-files
```

Use the Claude Code plugin route if you want the hooks and slash commands; skill-only installs can end up without working hooks, and the README suggests running /plan-doctor to check. The helper scripts need a shell, and some features call Python 3.

## Skills

Skill names are shown as /name. Depending on the agent, a skill runs when it is relevant or when you call it by name; plugin installs may add a prefix.

- `/planning-with-files`: Keeps a phased plan, findings and a progress log on disk, re-reading them each turn so long tasks survive context resets. (https://trendhub.net/skills/othmanadi-planning-with-files/planning-with-files.markdown)

## Questions

### Is Planning with Files free?

Yes. It is released under the MIT license.

### Which agents does it support?

The README lists hook-level integration for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Hermes Agent and others, plus plain skill support for many more through npx skills.

### How does it differ from Claude Code plan mode?

Plan mode is for agreeing an approach before work starts; this skill keeps the live execution state on disk while the work runs. You can write an accepted plan-mode plan into task_plan.md and continue from there.

### Is this an official Manus project?

No. Ahmad-Othman Adi wrote it; the README credits Manus AI only for describing the file-based working-memory pattern the skill follows.

### Should the planning files be committed?

They are treated as working memory and are gitignored by default; anything worth keeping should go into code, a commit or a separate doc.

## Before you install

It creates and updates three Markdown planning files and a .planning/ folder in your project, and registers lifecycle hooks that run bundled shell or Python scripts on every turn and tool call. It makes no network calls itself, and reading local agent session history only happens when you explicitly ask for catch-up mode.
