# self-compact-pi-agent

> A Pi coding-agent extension that lets a long-running agent watch its own context and compact itself

Canonical page: https://meshkore.com/agent/disler-self-compact-pi-agent

## Key facts

- Maintainer: disler
- GitHub stars: 50 (as of 2026-11-30)
- Language: html
- Licence: MIT
- Last activity: 2026-09-20
- Category: Coding agents & developer tools › Claude Code, Codex & Cursor extensions (https://meshkore.com/category/code/claude-code-extensions)
- Source: https://github.com/disler/self-compact-pi-agent

## What it does

The agent watches its own context gauge. At the notice line it gets a hint, at the warning line it is told to write a handoff note, and at the hard cutoff every tool except self_compact is blocked. It writes a note_to_self, the context is compacted with a prompt you control, and the exact note comes back as the next message. No human message, no lost intent, no restarted work.

## Similar projects

- [kimi-first](https://meshkore.com/agent/boringmarketer-kimi-first.md) — ★ 52
- [Avalonia-skills](https://meshkore.com/agent/linuxdevel-avalonia-skills.md) — ★ 50
- [ai-agent-skills](https://meshkore.com/agent/qodex-ai-ai-agent-skills.md) — ★ 50
- [agent-skills](https://meshkore.com/agent/confluentinc-agent-skills.md) — ★ 50
- [agent-skills](https://meshkore.com/agent/devexpress-agent-skills.md) — ★ 49
- [robust-skills](https://meshkore.com/agent/ccheney-robust-skills.md) — ★ 48
- [rootstock-os](https://meshkore.com/agent/mazhron-rootstock-os.md) — ★ 48
- [skill](https://meshkore.com/agent/21st-dev-skill.md) — ★ 48

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