A collection of extensions for pi-coding-agent — the open-source AI coding agent that runs in your terminal.
Automatically monitors and manages context window usage. When context exceeds a configurable threshold, it compacts the context and auto-resumes if the agent was mid-task — no manual intervention needed.
Features
- 📊 Real-time context usage indicator in the status bar
- ⚡ Auto-compaction when usage exceeds threshold
- 🔄 Seamless auto-resume for interrupted tasks
- 🎛️ Configurable threshold (default: 30%)
Usage
pi --extension proactive-compact.ts
# Custom threshold (e.g. 50%)
pi --extension proactive-compact.ts --compact-threshold 50Contributions are welcome! Feel free to submit a PR with your extension.
- Add your extension file to the repository root
- Update this README with a description of your extension
- Submit a pull request