pi-ctx-kit

Context engineering for Pi coding agent — dynamic context pruning, slow-call nudges, and smart compaction

Packages

Package details

extension

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

$ pi install npm:pi-ctx-kit
Package
pi-ctx-kit
Version
2.3.0
Published
Sep 25, 2026
Downloads
279/mo · 279/wk
Author
sting8k
License
MIT
Types
extension
Size
112.9 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

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

README

pi-ctx-kit

DCP context pruning and slow-call nudges for Pi 0.86.1.

pi install npm:pi-ctx-kit

Pruned outputs replace original session content by default (dcp.persistPrune: false disables future rewrites).

Reasoning (thinking) blocks of older assistant messages are removed the same way — outside dcp.turnProtection, never in the in-flight turn, persisted like pruned outputs. Disable with dcp.pruneReasoning: false (the key is added to an existing ~/.pi/agent/ctx-kit-config.json automatically).

For tool calls whose output is pruned, argument values longer than 500 chars are replaced whole by an explicit [DCP: input removed — N chars …] placeholder (never a truncated prefix); paths and short values stay verbatim. Disable with dcp.pruneToolInputs: false.