@telepath-computer/pi-dynamic-context
v0.1.0
Published
Per-turn refresh of pi's system prompt and context files, with template variables
Downloads
146
Readme
@telepath-computer/pi-dynamic-context
Keeps a pi session's context live. Vanilla pi reads SYSTEM.md, APPEND_SYSTEM.md, and context files (AGENTS.md/CLAUDE.md) once at startup; this extension re-reads them before every agent turn, so mid-session edits take effect without /reload — and renders template variables in your prompt files.
pi install npm:@telepath-computer/pi-dynamic-contextSurface
- Template variables in
SYSTEM.md/APPEND_SYSTEM.md:{{DATE}},{{TIME}},{{TZ}},{{AGENT_DIR}},{{CWD}}— re-rendered each turn, always in the host time zone (no configuration, by design). Unknown{{VARS}}warn once and stay verbatim. - Context files are re-read from disk each turn; edited content replaces stale content. Discovery doesn't re-run — new files still need
/reload. /dynamic-context— reports each variable's current value and each watched file's status.
Implementation constraint: exact-content substitution via before_agent_start — it never pattern-matches pi's prompt layout, and leaves pieces alone that another extension rewrote.
SPEC.md is the authority on behavior.
