@gtheys/pi-aven-context0.2.0
Pi extension that injects live aven workspace state (open issues, active/ready/blocked tasks) as session-start context
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-aven-context
Pi extension that injects live aven workspace state as session-start context.
At each new session start it runs aven prime from the session's working directory (aven infers the workspace and project from its cwd routes) and appends the live portion — local conventions, open issues, active/ready/blocked breakdown — as a hidden custom message that participates in LLM context.
The static CLI primer head is stripped: that reference is already available via the aven skill, so injecting it every session would burn tokens for nothing.
Behavior
- Non-fatal — a missing or slow
avenbinary silently skips injection; startup never breaks. - Idempotent — sessions resumed/forked/reloaded skip injection if an aven-context entry already exists in the branch, so context is never duplicated.
- Child-session gate — sessions spawned as background subagents (detected via
PI_SUBAGENT_ID, set by pi-interactive-subagents on every spawn) never inject the workspace blob. Parent/interactive sessions still inject once per session, with the existing resume/fork dedup.
Why the child gate exists
The injected blob is fully dynamic — it changes on every aven prime run. Making it the first message of a child subagent's message stream would change that stream's prefix on every spawn, defeating provider prompt caching of the static guidance that follows. Skipping injection in child sessions keeps their prompt prefix stable.
Usage
Load the repo package per the quickstart; the extension registers itself, no commands or config.