原始内容
pi-context-control
Small pi package with a /context TUI for session-local context pruning.
What it does
- toggles loaded skills out of the system prompt for the current session branch
- toggles extension/custom tools with
pi.setActiveTools() - persists choices in the session tree, so forks can carry different context profiles
- shows
/context-statusand a footer marker when anything is disabled
Command-only extensions are listed as loaded, but not toggled: pi cannot safely unload an already-loaded extension handler session-only. Use pi config when you need full resource filtering and reload.
Install
pi install https://github.com/lukaspanni/pi-context-control
Local development:
pi -e ./extensions/context-control.ts
Commands
/contextopens the TUI/context-statusprints disabled skills and extension tools
Validate
npm install
npm run validate