pi-context-control

Pi extension for session-local skill and extension-tool toggles.

Packages

Package details

extension

Install pi-context-control from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-context-control
Package
pi-context-control
Version
0.1.1
Published
Jul 5, 2026
Downloads
320/mo · 16/wk
Author
lukaspanni
License
MIT
Types
extension
Size
15.4 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

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-status and 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

  • /context opens the TUI
  • /context-status prints disabled skills and extension tools

Validate

npm install
npm run validate