planning-with-files

Persistent file-based planning for AI coding agents: keeps task_plan.md, findings.md and progress.md on disk so the plan survives /clear, context loss and compaction. Manus-style. Ships the skill plus a Pi Coding Agent extension.

Packages

Package details

extensionskill

Install planning-with-files from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:planning-with-files
Package
planning-with-files
Version
3.10.0
Published
Aug 9, 2026
Downloads
154/mo · 154/wk
Author
ahmad_othman_adi
License
MIT
Types
extension, skill
Size
321.9 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "skills": [
    "SKILL.md"
  ],
  "extensions": [
    "extensions/planning-with-files/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

planning-with-files

Your agent's context window dies. The plan does not.

Persistent file-based planning for AI coding agents. The skill keeps task_plan.md, findings.md and progress.md on disk and re-injects them every turn, so the plan survives context loss, /clear, crashes and compaction. Manus-style working memory on disk, with an opt-in completion gate.

This is the npm distribution of OthmanAdi/planning-with-files, which installs across 60+ agents via the Agent Skills standard. The package ships:

  • the planning skill itself: SKILL.md, scripts/ and templates/
  • a Pi Coding Agent extension providing Claude-style lifecycle automation

Installation

npm

npm install planning-with-files

Places the skill, scripts and templates under node_modules/planning-with-files/. Use this to pin an exact version into a project, or to copy SKILL.md and scripts/ into your agent's skills directory yourself. It does not register hooks on its own.

Pi Install

pi install npm:planning-with-files

Wires up the skill, the extension and the status bar automatically.

Other agents

Claude Code gets the full surface (skill, hooks, slash commands) through the plugin route, and 60+ other agents install in one line. See the main README.

Manual Install

# From the planning-with-files repo root
pi install ./.pi/skills/planning-with-files

Or add to .pi/settings.json:

{
  "packages": ["./path/to/planning-with-files/.pi/skills/planning-with-files"]
}

Usage

Pi discovers the skill and extension from the installed package.

Start with:

Use the planning-with-files skill to help me with this task.

Or:

/skill:planning-with-files

Hook Parity in Pi

The bundled extension maps Claude-style behavior onto Pi events:

  • session_start - session catchup
  • passive plan status before approval
  • before_agent_start - plan reminder/injection after /plan-execute
  • tool_call - pre-tool recitation equivalent after /plan-execute
  • tool_result - post-write reminder after /plan-execute
  • agent_end - incomplete-task auto-continue after /plan-execute (limit 3)
  • session_before_compact - pre-compaction reminder

Attestation is supported. If task_plan.md differs from approved hash, plan injection is blocked with:

[planning-with-files] [PLAN TAMPERED - injection blocked]

Mode System

planningWithFiles.mode supports:

  • auto (default): DeepSeek -> cache-safe, others -> parity
  • parity: full dynamic hook-equivalent behavior
  • cache-safe: fixed reminder strings for KV-cache stability
  • notify: notification-only mode

Configure via env:

PWF_MODE=cache-safe pi

Or settings:

{
  "planningWithFiles": {
    "mode": "auto"
  }
}

Commands

  • /plan-status
  • /plan-attest [--show|--clear]
  • /plan-execute
  • /plan-execute reset
  • /plan-goal <text|default|clear>
  • /plan-loop [interval] [prompt] (stop to cancel)

Draft and review task_plan.md first. The extension stays passive until you approve the active plan with /plan-execute; after that, plan injection, pre-tool reminders, post-write reminders, and auto-continue are enabled for the current session and plan.


Session Recovery

If needed, run catchup manually:

python3 .pi/skills/planning-with-files/scripts/session-catchup.py .

File Structure

The skill workflow still centers on three files in your project:

your-project/
├── task_plan.md
├── findings.md
└── progress.md