Install
Install with PiG
pig install npm:@agimon-ai/po-model-guidanceInstall with Pi
pi install npm:@agimon-ai/po-model-guidancePackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
README
Written by the package's publisher, shown as published in version 0.0.0-alpha.197 (README.md). PiG does not review it.
@agimon-ai/po-model-guidance
Per-model system-prompt guidance, selected through Po's optional llm layer. Guidance is keyed by the exact model ID reported by the host, so a new model's adjustments do not change older models' prompts.
Enable
Add @agimon-ai/po-model-guidance to a layer selected by your preset in .po/presets.yaml, then run po sync. Listing it in default.packages enables it for every preset. Preserve the other package entries.
The built-in preset currently supplies guidance for gpt-6-astra to continue agreed plans and scoped tasks without repeated confirmation of minor decisions. It does not remove security or approval requirements.
Configure
Custom guidance lives in ~/.po/model-guidance.yaml and <repository>/.po/model-guidance.yaml:
modelGuidance:
claude-opus-5: |
Keep the task focused. Never go off rails.
gpt-6-astra: |
Prefer fewer, larger tool batches.
Model IDs match exactly. Use the ID shown by /model; a newly versioned ID needs its own entry.
The built-in preset applies first, then the home file, then the repository file. Each later entry replaces the earlier text for that model only. Models without an entry receive no guidance. A malformed or unreadable file warns on stderr and falls back to the built-in preset rather than ending the session.
The native before_agent_start hook reads the files for each turn and appends the selected guidance to the system prompt. An edit therefore applies on the next turn without a restart. This package publishes a server entry, not a standalone Pi extension.
Development
pnpm exec nx run-many -t lint typecheck build test -p @agimon-ai/po-model-guidance
The hook lives under src/extensions; matching and merging live in src/services/modelGuidance, and layered file reads in src/services/modelGuidanceStore.