pi-context
v1.1.2
Published
Agentic Context Management for the Pi
Maintainers
Readme
Pi Context: Agentic Context Management for the Pi
A Git-like context management tool that allows AI agents to proactively manage their context.
Inspired by kimi-cli d-mail, implementing lossless time travel on the Pi session tree.
For the design philosophy, see the blog post (中文版本).
Installation
pi install npm:pi-contextUsage
For Humans
Run the command to enable ACM (Agentic Context Management) for the current session.
/acmView detailed context window usage and token distribution with a visual dashboard. (like claude code /context)
/context
For Agents
This extension adds the context-management skill with three core tools:
🔖 Structure (
context_tag)git tagCreate named milestones to structure your conversation history.📊 Monitor (
context_log)git logVisualize your conversation history, check token usage, and see where you are in the task tree.⏪ Compress (
context_checkout)git checkoutMove the HEAD pointer to any tag or commit ID. Compress completed tasks into a summary to free up context window space.
