@dihak/pix-prompts
v0.3.1
Published
Pi extension — system-prompt injection (SOP.md + repo directives)
Downloads
180
Readme
pix-prompts
Pi extension — system-prompt injection (SOP.md + repo directives).
What it does
Injects structured context into the system prompt at the start of every agent turn via before_agent_start. Two sources are injected in order: the bundled SOP.md (the pix agent operating spec baseline), followed by repo-root directive files the Pi host does not load (GEMINI.md, .cursorrules, .windsurfrules). Each source is wrapped in a labelled XML tag for provenance.
Injection is idempotent and host-aware. A file is skipped when either our own tag is already present (retry turns) or the Pi host has injected that same absolute path as <project_instructions path="...">. Pi natively owns AGENTS.md and CLAUDE.md; pix-prompts intentionally does not scan them, preventing duplicate injection when host and extension paths use different normalization.
Install
pi install npm:@dihak/pix-promptsAlso included in
@dihak/pix-core:pi install npm:@dihak/pix-core
Full distro
Source: github.com/dihak/pix-mono
To install the complete pix suite (all packages + Pi itself):
curl -fsSL https://raw.githubusercontent.com/dihak/pix-mono/main/scripts/install.sh | shLicense
MIT
