pi-live-context
Pi extension that reloads AGENTS.md every turn and sends it as a user message instead of system prompt text.
Package details
Install pi-live-context from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-live-context- Package
pi-live-context- Version
1.0.1- Published
- Sep 20, 2026
- Downloads
- 305/mo · 26/wk
- Author
- bradennss
- License
- MIT
- Types
- extension
- Size
- 10.2 KB
- Dependencies
- 0 dependencies · 1 peer
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-live-context
A Pi extension that reloads AGENTS.md every turn and sends it as a user message instead of system prompt text.
Install
# from npm
pi install npm:pi-live-context
# or from git
pi install git:github.com/bradennss/pi-live-context
# try it for a single run without installing
pi -e npm:pi-live-context
How it works
Pi discovers AGENTS.md and CLAUDE.md the same way it usually does, but sends it just before your message instead of including it in the system prompt. This makes agents follow global and project instructions more reliably, with the tradeoff of consuming more input tokens over time.
Requirements
- Node.js >= 22.19, the version Pi itself requires.
- Pi 0.85 or newer.
Development
pnpm install
pnpm run check
Contributing
Every change that affects the published package needs a changeset:
pnpm changeset