pi-context
v1.0.2
Published
agent-driven context management tools
Maintainers
Readme
Pi Context Extension
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.
Installation
pi install npm:pi-contextUsage
For Humans
Load the skill to enable the workflow:
/skill:context-managementView 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.
