@myriadcodelabs/pi-dynamic-context
Domain-aware dynamic context extraction and injection extension for Pi.
Package details
Install @myriadcodelabs/pi-dynamic-context from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@myriadcodelabs/pi-dynamic-context- Package
@myriadcodelabs/pi-dynamic-context- Version
0.1.1- Published
- Jul 12, 2026
- Downloads
- 48/mo · 48/wk
- Author
- myriadcodelabs
- License
- MIT
- Types
- extension
- Size
- 31 KB
- Dependencies
- 0 dependencies · 4 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-dynamic-context
Domain-aware dynamic context extraction and injection extension for Pi.
Alpha: this package is currently in alpha. Behavior and configuration may change.
Install
pi install npm:@myriadcodelabs/pi-dynamic-context
Then start or reload Pi. The package manifest exposes index.ts as a Pi extension.
What it does
- Automatically selects a domain for each prompt.
- Injects the stored context for that domain into provider requests.
- Extracts updated context after each settled agent run.
- Omits adding previous conversation history when generating the latest context.
- Stores extracted context in the current Pi session as custom entries.
Commands and tools
/dynamic-contextshows current status.get_dynamic_contextlets the assistant inspect selected and stored context.