planning-with-files

GitHub

Persistent file-based planning for AI coding agents and long-running tasks. Crash-proof markdown plans, session recovery after /clear and compaction, per-turn re-injection against context rot, deterministic completion gate. Manus-style. Install from npm, the Claude Code plugin marketplace, or npx skills. Codex, Cursor, OpenCode, 60+ agents.

AI Prompts & Endpoints
Agent Skills View CodeWiki Knowledge Base

Repository: OthmanAdi/planning-with-files


Stars: 18868

README.md

<div align="center">
<img src="media/banner.png" alt="planning-with-files" width="100%">
</div>

Planning with Files

Work like Manus β€” the AI agent company Meta acquired for $2 billion.

![Benchmark](docs/evals.md)
![A/B Verified](docs/evals.md)
![Loaditout Security Grade](https://loaditout.ai/skills/OthmanAdi/planning-with-files)
![SkillCheck Validated](https://getskillcheck.com)
![Security Verified](docs/evals.md)

![Skills Playground](https://skillsplayground.com/skills/othmanadi-planning-with-files-planning-with-files/)
![Version](https://github.com/OthmanAdi/planning-with-files/releases)
![License: MIT](https://opensource.org/licenses/MIT)
![Closed Issues](https://github.com/OthmanAdi/planning-with-files/issues?q=is%3Aissue+is%3Aclosed)
![Closed PRs](https://github.com/OthmanAdi/planning-with-files/pulls?q=is%3Apr+is%3Aclosed)

<details>
<summary><strong>πŸ’¬ A Note from the Author</strong></summary>

To everyone who starred, forked, and shared this skill β€” thank you. This project blew up in less than 24 hours, and the support from the community has been incredible.

If this skill helps you work smarter, that's all I wanted.

</details>

<details>
<summary><strong>🌍 What the community shipped</strong></summary>

Forks & Extensions

| Fork | Author | What They Built |
|------|--------|-----------------|
| devis | @st01cs | Interview-first workflow, /devis:intv and /devis:impl commands, guaranteed activation |
| multi-manus-planning | @kmichels | Multi-project support, SessionStart git sync |
| plan-cascade | @Taoidle | Multi-level task orchestration, parallel execution, multi-agent collaboration |
| agentfund-skill | @RioTheGreat-ai | Crowdfunding for AI agents with milestone-based escrow on Base |
| openclaw-github-repo-commander | @wd041216-bit | 7-stage GitHub repo audit, optimization, and cleanup workflow for OpenClaw |

Used in the Wild

| Project | What It Is |
|---------|-----------|
| lincolnwan/Planning-with-files-copilot-agent | Entire Copilot agent repo built around the planning-with-files skill |
| cooragent/ClarityFinance | AI finance agent framework β€” Planning-with-Files approach directly credited |
| oeftimie/vv-claude-harness | Claude Code harness built on Manus-style persistent markdown planning |
| jessepwj/CCteam-creator | Multi-agent team orchestration skill using file-based planning |

Built something? Open an issue to get listed!

</details>

<details>
<summary><strong>🀝 Contributors</strong></summary>

See the full list of everyone who made this project better in CONTRIBUTORS.md.

</details>

<details>
<summary><strong>πŸ“¦ Releases & Session Recovery</strong></summary>

Current Version: v2.34.0

| Version | Highlights |
|---------|------------|
| v2.34.0 | Codex hooks fully restored (closes #132): .codex/hooks.json + lifecycle scripts back β€” SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop. Tessl CI for SKILL.md quality reviews. Exec bit fix. 4 missing contributors added. (thanks @Leon-Algo, @popey!) |
| v2.33.0 | Multi-language expansion: Arabic, German, and Spanish skill variants added (thanks to community contributors!) |
| v2.32.0 | Codex session catchup rewrite (thanks @ebrevdo!), Loaditout A-grade security badge, Stop hook Git Bash fix |
| v2.31.0 | Codex hooks.json integration with full lifecycle hooks (thanks @Leon-Algo!) |
| v2.30.1 | Fix: Codex script executable bits restored (thanks @Leon-Algo!) |
| v2.30.0 | CLAUDE_SKILL_DIR variable, IDE configs moved to per-IDE branches, plugin.json bumped from 2.23.0 |
| v2.29.0 | Analytics workflow template: --template analytics flag for data exploration sessions (thanks @mvanhorn!) |
| v2.28.0 | Traditional Chinese (zh-TW) skill variant (thanks @waynelee2048!) |
| v2.26.2 | Fix: --- in hook commands broke YAML frontmatter parsing, hooks now register correctly |
| v2.26.1 | Fix: session catchup after /clear, path sanitization on Windows + content injection (thanks @tony-stark-eth!) |
| v2.26.0 | IDE audit: Factory hooks, Copilot errorOccurred hook, Gemini hooks, bug fixes |
| v2.18.2 | Mastra Code hooks fix (hooks.json + docs accuracy) |
| v2.18.1 | Copilot garbled characters complete fix |
| v2.18.0 | BoxLite sandbox runtime integration |
| v2.17.0 | Mastra Code support + all IDE SKILL.md spec fixes |
| v2.16.1 | Copilot garbled characters fix: PS1 UTF-8 encoding + bash ensure_ascii (thanks @Hexiaopi!) |
| v2.16.0 | GitHub Copilot hooks support (thanks @lincolnwan!) |
| v2.27.0 | Kiro Agent Skill layout (thanks @EListenX!) |
| v2.15.1 | Session catchup false-positive fix (thanks @gydx6!) |
| v2.15.0 | /plan:status command, OpenCode compatibility fix |
| v2.14.0 | Pi Agent support, OpenClaw docs update, Codex path fix |
| v2.11.0 | /plan command for easier autocomplete |
| v2.10.0 | Kiro steering files support |
| v2.7.0 | Gemini CLI support |
| v2.2.0 | Session recovery, Windows PowerShell, OS-aware hooks |

View all releases Β· CHANGELOG

πŸ§ͺ Experimental: Isolated parallel planning (.planning/{uuid}/ folders) is being tested on experimental/isolated-planning. Try it and share feedback!

---

Session Recovery

When your context fills up and you run /clear, this skill automatically recovers your previous session.

How it works:
1. Checks for previous session data in the active IDE's session store (~/.claude/projects/ for Claude Code, ~/.codex/sessions/ for Codex)
2. Finds when planning files were last updated
3. Extracts conversation that happened after (potentially lost context)
4. Shows a catchup report so you can sync

Pro tip: Disable auto-compact to maximize context before clearing:

json
{ "autoCompact": false }

</details>

<details>
<summary><strong>πŸ› οΈ Supported IDEs (16+ Platforms)</strong></summary>

#### Enhanced Support (hooks + lifecycle automation)

These IDEs have dedicated hook configurations that automatically re-read your plan before tool use, remind you to update progress, and verify completion before stopping:

| IDE | Installation Guide | Integration |
|-----|-------------------|-------------|
| Claude Code | Installation | Plugin + SKILL.md + Hooks |
| Cursor | Cursor Setup | Skills + hooks.json |
| GitHub Copilot | Copilot Setup | Hooks (incl. errorOccurred) |
| Mastra Code | Mastra Setup | Skills + Hooks |
| Gemini CLI | Gemini Setup | Skills + Hooks |
| Kiro | Kiro Setup | Agent Skills |
| Codex | Codex Setup | Skills + Hooks |
| CodeBuddy | CodeBuddy Setup | Skills + Hooks |
| FactoryAI Droid | Factory Setup | Skills + Hooks |
| OpenCode | OpenCode Setup | Skills + Custom session storage |

#### Standard Agent Skills Support

These IDEs implement the Agent Skills open specification. Install with npx skills add β€” the installer places the skill in each IDE's discovery path automatically:

| IDE | Installation Guide | Skill Discovery Path |
|-----|-------------------|---------------------|
| Continue | Continue Setup | .continue/skills/ + .prompt files |
| Pi Agent | Pi Agent Setup | .pi/skills/ (npm package) |
| OpenClaw | OpenClaw Setup | .openclaw/skills/ (docs) |
| Antigravity | Antigravity Setup | .agent/skills/ (docs) |
| Kilocode | Kilocode Setup | .kilocode/skills/ (docs) |
| AdaL CLI (Sylph AI) | AdaL Setup | .adal/skills/ (docs) |

Note: If your IDE uses the legacy Rules system instead of Skills, see the legacy-rules-support branch.

</details>

<details>
<summary><strong>🧱 Sandbox Runtimes (1 Platform)</strong></summary>

| Runtime | Status | Guide | Notes |
|---------|--------|-------|-------|
| BoxLite | βœ… Documented | BoxLite Setup | Run Claude Code + planning-with-files inside hardware-isolated micro-VMs |

Note: BoxLite is a sandbox runtime, not an IDE. Skills load via ClaudeBox β€” BoxLite’s official Claude Code integration layer.

</details>

---

A Claude Code plugin that transforms your workflow to use persistent markdown files for planning, progress tracking, and knowledge storage β€” the exact pattern that made Manus worth billions.

![Claude Code Plugin](https://code.claude.com/docs/en/plugins)
![Claude Code Skill](https://code.claude.com/docs/en/skills)
![Cursor Skills](https://docs.cursor.com/context/skills)
![Kilocode Skills](https://kilo.ai/docs/agent-behavior/skills)
![Gemini CLI](https://geminicli.com/docs/cli/skills/)
![OpenClaw](https://openclaw.ai)
![Kiro](https://kiro.dev/docs/skills/)
![AdaL CLI](https://docs.sylph.ai/features/plugins-and-skills)
![Pi Agent](https://pi.dev)
![GitHub Copilot](https://docs.github.com/en/copilot/reference/hooks-configuration)
![Mastra Code](https://code.mastra.ai)
![BoxLite](https://boxlite.ai)

Quick Install

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

<details>
<summary><strong>🌐 Available in 5 other languages</strong></summary>

πŸ‡ΈπŸ‡¦ Ψ§Ω„ΨΉΨ±Ψ¨ΩŠΨ© / Arabic

bash
npx skills add OthmanAdi/planning-with-files --skill planning-with-files-ar -g

πŸ‡©πŸ‡ͺ Deutsch / German

bash
npx skills add OthmanAdi/planning-with-files --skill planning-with-files-de -g

πŸ‡ͺπŸ‡Έ EspaΓ±ol / Spanish

bash
npx skills add OthmanAdi/planning-with-files --skill planning-with-files-es -g

πŸ‡¨πŸ‡³ δΈ­ζ–‡η‰ˆ / Chinese (Simplified)

bash
npx skills add OthmanAdi/planning-with-files --skill planning-with-files-zh -g

πŸ‡ΉπŸ‡Ό ζ­£ι«”δΈ­ζ–‡η‰ˆ / Chinese (Traditional)

bash
npx skills add OthmanAdi/planning-with-files --skill planning-with-files-zht -g

</details>

Works with Claude Code, Cursor, Codex, Gemini CLI, and 40+ agents supporting the Agent Skills spec.

<details>
<summary><strong>πŸ”§ Claude Code Plugin (Advanced Features)</strong></summary>

For Claude Code-specific features like /plan autocomplete commands:

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

</details>

That's it! Now use one of these commands in Claude Code:

| Command | Autocomplete | Description |
|---------|--------------|-------------|
| /planning-with-files:plan | Type /plan | Start planning session (v2.11.0+) |
| /planning-with-files:status | Type /plan:status | Show planning progress at a glance (v2.15.0+) |
| /planning-with-files:start | Type /planning | Original start command |

Alternative: If you want /planning-with-files (without prefix), copy skills to your local folder:

macOS/Linux:

bash
cp -r ~/.claude/plugins/cache/planning-with-files/planning-with-files/*/skills/planning-with-files ~/.claude/skills/

Windows (PowerShell):

powershell
Copy-Item -Recurse -Path "$env:USERPROFILE\.claude\plugins\cache\planning-with-files\planning-with-files\*\skills\planning-with-files" -Destination "$env:USERPROFILE\.claude\skills\"

See docs/installation.md for all installation methods.

Why This Skill?

On December 29, 2025, Meta acquired Manus for $2 billion. In just 8 months, Manus went from launch to $100M+ revenue. Their secret? Context engineering.

"Markdown is my 'working memory' on disk. Since I process information iteratively and my active context has limits, Markdown files serve as scratch pads for notes, checkpoints for progress, building blocks for final deliverables."

β€” Manus AI

The Problem

Claude Code (and most AI agents) suffer from:

- Volatile memory β€” TodoWrite tool disappears on context reset
- Goal drift β€” After 50+ tool calls, original goals get forgotten
- Hidden errors β€” Failures aren't tracked, so the same mistakes repeat
- Context stuffing β€” Everything crammed into context instead of stored

The Solution: 3-File Pattern

For every complex task, create THREE files:

text
task_plan.md      β†’ Track phases and progress
findings.md β†’ Store research and findings
progress.md β†’ Session log and test results

The Core Principle

text
Context Window = RAM (volatile, limited)
Filesystem = Disk (persistent, unlimited)

β†’ Anything important gets written to disk.

The Manus Principles

| Principle | Implementation |
|-----------|----------------|
| Filesystem as memory | Store in files, not context |
| Attention manipulation | Re-read plan before decisions (hooks) |
| Error persistence | Log failures in plan file |
| Goal tracking | Checkboxes show progress |
| Completion verification | Stop hook checks all phases |

Usage

Once installed, the AI agent will:

1. Ask for your task if no description is provided
2. Create task_plan.md, findings.md, and progress.md in your project directory
3. Re-read plan before major decisions (via PreToolUse hook)
4. Remind you to update status after file writes (via PostToolUse hook)
5. Store findings in findings.md instead of stuffing context
6. Log errors for future reference
7. Verify completion before stopping (via Stop hook)

Invoke with:
- /planning-with-files:plan - Type /plan to find in autocomplete (v2.11.0+)
- /planning-with-files:start - Type /planning to find in autocomplete
- /planning-with-files - Only if you copied skills to ~/.claude/skills/

See docs/quickstart.md for the full 5-step guide.

Benchmark Results

Formally evaluated using Anthropic's skill-creator framework (v2.22.0). 10 parallel subagents, 5 task types, 30 objectively verifiable assertions, 3 blind A/B comparisons.

| Test | with_skill | without_skill |
|------|-----------|---------------|
| Pass rate (30 assertions) | 96.7% (29/30) | 6.7% (2/30) |
| 3-file pattern followed | 5/5 evals | 0/5 evals |
| Blind A/B wins | 3/3 (100%) | 0/3 |
| Avg rubric score | 10.0/10 | 6.8/10 |

Full methodology and results Β· Technical write-up

Key Rules

1. Create Plan First β€” Never start without task_plan.md
2. The 2-Action Rule β€” Save findings after every 2 view/browser operations
3. Log ALL Errors β€” They help avoid repetition
4. Never Repeat Failures β€” Track attempts, mutate approach

When to Use

Use this pattern for:
- Multi-step tasks (3+ steps)
- Research tasks
- Building/creating projects
- Tasks spanning many tool calls

Skip for:
- Simple questions
- Single-file edits
- Quick lookups

File Structure

text
planning-with-files/
β”œβ”€β”€ commands/ # Plugin commands
β”‚ β”œβ”€β”€ plan.md # /planning-with-files:plan command (v2.11.0+)
β”‚ β”œβ”€β”€ plan-ar.md # Arabic /plan command (v2.33.0+)
β”‚ β”œβ”€β”€ plan-de.md # German /plan command (v2.33.0+)
β”‚ β”œβ”€β”€ plan-es.md # Spanish /plan command (v2.33.0+)
β”‚ └── start.md # /planning-with-files:start command
β”œβ”€β”€ templates/ # Root-level templates (for CLAUDE_PLUGIN_ROOT)
β”œβ”€β”€ scripts/ # Root-level scripts (for CLAUDE_PLUGIN_ROOT)
β”œβ”€β”€ docs/ # Documentation
β”‚ β”œβ”€β”€ installation.md
β”‚ β”œβ”€β”€ quickstart.md
β”‚ β”œβ”€β”€ workflow.md
β”‚ β”œβ”€β”€ troubleshooting.md
β”‚ β”œβ”€β”€ gemini.md # Gemini CLI setup
β”‚ β”œβ”€β”€ cursor.md
β”‚ β”œβ”€β”€ windows.md
β”‚ β”œβ”€β”€ kilocode.md
β”‚ β”œβ”€β”€ codex.md
β”‚ β”œβ”€β”€ opencode.md
β”‚ β”œβ”€β”€ mastra.md # Mastra Code setup
β”‚ └── boxlite.md # BoxLite sandbox setup
β”œβ”€β”€ examples/ # Integration examples
β”‚ └── boxlite/ # BoxLite quickstart
β”‚ β”œβ”€β”€ README.md
β”‚ └── quickstart.py
β”œβ”€β”€ planning-with-files/ # Plugin skill folder
β”‚ β”œβ”€β”€ SKILL.md
β”‚ β”œβ”€β”€ templates/
β”‚ └── scripts/
β”œβ”€β”€ skills/ # Skill variants
β”‚ β”œβ”€β”€ planning-with-files/ # English (default)
β”‚ β”‚ β”œβ”€β”€ SKILL.md
β”‚ β”‚ β”œβ”€β”€ examples.md
β”‚ β”‚ β”œβ”€β”€ reference.md
β”‚ β”‚ β”œβ”€β”€ templates/
β”‚ β”‚ └── scripts/
β”‚ β”‚ β”œβ”€β”€ init-session.sh
β”‚ β”‚ β”œβ”€β”€ check-complete.sh
β”‚ β”‚ β”œβ”€β”€ init-session.ps1 # Windows PowerShell
β”‚ β”‚ └── check-complete.ps1 # Windows PowerShell
β”‚ β”œβ”€β”€ planning-with-files-ar/ # Arabic (v2.33.0+)
β”‚ β”‚ β”œβ”€β”€ SKILL.md
β”‚ β”‚ β”œβ”€β”€ templates/
β”‚ β”‚ └── scripts/
β”‚ β”œβ”€β”€ planning-with-files-de/ # German (v2.33.0+)
β”‚ β”‚ β”œβ”€β”€ SKILL.md
β”‚ β”‚ β”œβ”€β”€ templates/
β”‚ β”‚ └── scripts/
β”‚ β”œβ”€β”€ planning-with-files-es/ # Spanish (v2.33.0+)
β”‚ β”‚ β”œβ”€β”€ SKILL.md
β”‚ β”‚ β”œβ”€β”€ templates/
β”‚ β”‚ └── scripts/
β”‚ β”œβ”€β”€ planning-with-files-zh/ # Chinese Simplified (v2.25.0+)
β”‚ └── planning-with-files-zht/ # Chinese Traditional (v2.28.0+)
β”œβ”€β”€ .gemini/ # Gemini CLI skills + hooks
β”‚ β”œβ”€β”€ settings.json # Hook configuration (v2.26.0)
β”‚ β”œβ”€β”€ hooks/ # Hook scripts (SessionStart, BeforeTool, AfterTool, BeforeModel, SessionEnd)
β”‚ └── skills/
β”‚ └── planning-with-files/
β”œβ”€β”€ .codex/ # Codex CLI skills + hooks
β”‚ └── skills/
β”œβ”€β”€ .opencode/ # OpenCode skills (custom session storage)
β”‚ └── skills/
β”œβ”€β”€ .claude-plugin/ # Plugin manifest
β”œβ”€β”€ .cursor/ # Cursor skills + hooks
β”‚ β”œβ”€β”€ hooks.json # Hook configuration
β”‚ β”œβ”€β”€ hooks/ # Hook scripts (bash + PowerShell)
β”‚ └── skills/
β”œβ”€β”€ .codebuddy/ # CodeBuddy skills + hooks
β”‚ └── skills/
β”œβ”€β”€ .factory/ # FactoryAI Droid skills + hooks (v2.26.0)
β”‚ └── skills/
β”œβ”€β”€ .pi/ # Pi Agent skills (npm package)
β”‚ └── skills/
β”‚ └── planning-with-files/
β”œβ”€β”€ .continue/ # Continue.dev skills + prompt files
β”‚ β”œβ”€β”€ prompts/ # .prompt file for slash commands
β”‚ └── skills/
β”œβ”€β”€ .github/ # GitHub Copilot hooks (incl. errorOccurred)
β”‚ └── hooks/
β”‚ β”œβ”€β”€ planning-with-files.json # Hook configuration
β”‚ └── scripts/ # Hook scripts (bash + PowerShell)
β”œβ”€β”€ .mastracode/ # Mastra Code skills + hooks
β”‚ └── skills/
β”œβ”€β”€ .kiro/ # Kiro Agent Skills (v2.27.0+)
β”‚ └── skills/
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ CITATION.cff
β”œβ”€β”€ LICENSE
└── README.md

Documentation

All platform setup guides and documentation are in the docs/ folder.


Acknowledgments

- Manus AI β€” For pioneering context engineering patterns
- Anthropic β€” For Claude Code, Agent Skills, and the Plugin system
- Lance Martin β€” For the detailed Manus architecture analysis
- Based on Context Engineering for AI Agents

Contributing

Contributions welcome! Please:
1. Fork the repository
2. Create a feature branch
3. Submit a pull request

License

MIT License β€” feel free to use, modify, and distribute.

---

Author: Ahmad Othman Ammar Adi

Star History

<a href="https://repostars.dev/?repos=OthmanAdi%2Fplanning-with-files&theme=copper"><img src="https://repostars.dev/api/embed?repo=OthmanAdi%2Fplanning-with-files&theme=copper" width="100%" alt="Star History Chart" /></a>