Dev tools

Posthorse replaces agent context summarization with a rollover that keeps the full transcript

September 5, 2026 at 1:45 PM PT

The GitHub card for the fitchmultz/pi-posthorse repository

Image: GitHub

Why it mattersSummarization silently discards the detail an agent later needs, so treating a full window as a boundary to cross rather than text to compress removes a whole class of quiet failure.

Posthorse is an extension for the fitchmultz fork of the Pi coding agent that changes what happens when a context window fills up. Instead of summarizing the conversation to make room, it starts a fresh window and keeps the complete transcript recoverable. The repository was created on 31 August and had 177 stars when checked on 5 September, under an MIT licence.

The problem it names is familiar to anyone running long agent sessions. When a model hits its token limit, the usual fix is compaction: the agent writes a summary of what happened and continues from that. The summary is lossy by design, and what it drops is chosen by a model that does not know which detail will matter in twenty minutes. The failure is quiet, because the agent carries on confidently with a thinner picture than it had before.

Rollover instead of compression

Posthorse's answer is to treat the full window as a boundary rather than as text to shrink. A new_context call requests an atomic rollover after the current batch of tool calls succeeds, and it can carry an optional handoff that becomes the starting state of the new window. The old transcript is not summarized away. It stays on disk and stays searchable.

Two supporting tools do the recovery work. A notes store at .pi/notes/ holds plain text that survives the package being removed and is shared across linked worktrees, with list, read, write, append and search operations. A history tool searches the stored transcript and returns entries with window identifiers and character offsets, so an agent that needs an earlier detail can go and read it rather than hoping the summary preserved it.

The thresholds are stated rather than implied. Posthorse needs at least 10,000 usable tokens after its reserve to operate. It issues one best-effort checkpoint reminder in the last 10 percent of usable context, capped at 32,000 tokens. A handoff is capped at 20,000 characters, or half the fresh window's operational capacity, whichever is smaller.

The adoption cost is high and stated plainly

This is where the honesty of the project helps and its reach suffers. Posthorse does not run on the official Pi agent. It requires the fitchmultz fork pinned to one named commit, because it depends on native context window entries and specific compaction hooks that the upstream project does not expose. Node 22.19.0 or later is required. Anyone not already on that fork is looking at an idea rather than a tool they can adopt this week.

The idea is the part that travels. Most agent harnesses today treat a full context window as a compression problem, and the design consequence is that the agent's memory quality degrades every time it fills up. Posthorse treats it as a paging problem instead: keep everything, hand forward only what is needed to continue, and let the agent fetch the rest on demand. That distinction is available to any team building its own harness, whatever agent sits underneath it.

The 177 stars in five days say other people recognise the problem. Whether the rollover model beats summarization in practice is not something the repository measures, and no benchmark is published alongside it.

Source

fitchmultz/pi-posthorse, GitHub, created 31 August 2026.

Source: GitHub

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

More from AI News

Codenotch puts your Claude, Cursor and Codex usage limits on the edge of the screen

Codenotch is a macOS app that pins how much of each coding agent's session limit you have used to the edge of the screen, and it reached 196 stars within hours of being published.

Dev tools

Ponytail makes a coding agent check seven things before it writes any new code

Ponytail is an MIT-licensed rule set that makes a coding agent work through a seven-step ladder of cheaper options before it writes new code, and it has reached 127,785 stars on GitHub.

Dev tools

Cole Medin's AI Software Factory turns GitHub issues into merged pull requests with no human review

Cole Medin has released AI Software Factory, a repository that takes GitHub issues in and ships merged pull requests out with nobody reading the diff, using a doctor script that refuses to raise the autonomy dial until specific evidence exists.

Dev tools