DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to keep a long Pi coding task going across fresh windows with Pi Posthorse

Run a long Pi task that rolls into fresh context windows using saved notes instead of summaries.

Short answer: Confirm your Node version with node --version; it must be 24.12.0 or later; then Update an older Pi installation before you install Posthorse; run pi install npm:pi-posthorse. All steps.

Credentials. Notes are plaintext files under .pi/notes/, so keep secrets out of them and add that folder to .gitignore if the notes must stay private.

Who it is forA developer using the Pi coding agent on a multi-step task that runs past one context window and needs to keep going without re-explaining the work.

The problemLong sessions fill the context window, and a model-written summary can drop details the next steps depend on.

The outcomeThe task continues in a fresh context window with its state restored from notes and live checks, and the session history stays recoverable.

What you need first

  • Node 24.12.0 or later
  • Pi 1.0.0 or later (official Pi or the fitchmultz/pi fork)
  • A terminal where you can run pi commands
  • A decision on whether notes under .pi/notes/ should be added to .gitignore

Steps

  1. Confirm your Node version with node --version; it must be 24.12.0 or later. (inferred, check the README)
  2. Update an older Pi installation before you install Posthorse.
  3. Run pi install npm:pi-posthorse.
  4. Run pi, then restart Pi after installation.
  5. Give Pi your task and ask it to save task state in a note before starting a fresh context window with the next steps.

Prompt for your agent

Using the pi-posthorse repo (fitchmultz/pi-posthorse), set up Posthorse for the project at <project-path>, then give Pi a multi-step coding task and ask it to save task state in notes before rolling over. Expected output: a task note saved under .pi/notes/ in the project and a fresh context window started. Verify by running `pi list` and confirming pi-posthorse appears as an installed source.

Caveat. Only one Posthorse copy should be loaded, and automatic rollover needs at least 10,000 tokens after compaction.reserveTokens, so smaller models may fall back to Pi's own compaction.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for fitchmultz/pi-posthorse and "Keep a long Pi coding task going across fresh windows"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer