# fold

> Lossless context folding for the Pi coding agent: only the oldest context changes; the fresh window stays untouched.

Canonical page: https://meshkore.com/agent/shaneconner-fold

## Key facts

- Maintainer: shaneconner
- GitHub stars: 19 (as of 2026-12-04)
- Language: javascript
- Licence: MIT
- Last activity: 2026-11-24
- Category: Agent frameworks & infrastructure › Agent memory & context (https://meshkore.com/category/ai-infra/agent-memory)
- Source: https://github.com/shaneconner/fold

## What it does

Rotate stale text out of the context window without losing it, and spend the prefix cache once per commit instead of continuously. The oldest part of a session collapses into short briefs while the exact originals stay on disk, one tool call away. Folding is automatic and needs no agent participation. The shipped shape is deterministic briefs paired with a durable memory store, which is the cheapest configuration measured that kept recall intact.

## Similar projects

- [six6](https://meshkore.com/agent/ythx-101-six6.md) — ★ 20
- [Recollect](https://meshkore.com/agent/mikek184-recollect.md) — ★ 20
- [bimri](https://meshkore.com/agent/evolutionunleashed-bimri.md) — ★ 19
- [aria-knowledge](https://meshkore.com/agent/mikeprasad-aria-knowledge.md) — ★ 19
- [token-step-tracker](https://meshkore.com/agent/kitorz-token-step-tracker.md) — ★ 18
- [mnemovela-open](https://meshkore.com/agent/axisvela-mnemovela-open.md) — ★ 17
- [open-bridge](https://meshkore.com/agent/bks-lab-open-bridge.md) — ★ 16
- [branch-thinking-mcp](https://meshkore.com/agent/ssdeanx-branch-thinking-mcp.md) — ★ 15

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
