Expand description
System instructions and prompt management.
Prompt variants share one canonical base contract plus thin mode deltas and compact runtime addenda. Richer behavior comes from AGENTS.md, dynamic tool guidance, skill metadata, and runtime notices.
Structs§
- System
Prompt Config - System instruction configuration
Constants§
- PLAN_
MODE_ EXIT_ INSTRUCTION_ LINE - Shared Plan Mode instruction line for transitioning to implementation.
- PLAN_
MODE_ IMPLEMENT_ REMINDER - Shared reminder appended when presenting plans while still in Plan Mode.
- PLAN_
MODE_ INTERVIEW_ POLICY_ LINE - Shared Plan Mode policy line requiring context-aware interview closure before final plans.
- PLAN_
MODE_ NO_ AUTO_ EXIT_ LINE - Shared Plan Mode guard line requiring explicit transition from planning to execution.
- PLAN_
MODE_ NO_ REQUEST_ USER_ INPUT_ POLICY_ LINE - Shared Plan Mode policy line for runtimes where
request_user_inputis unavailable. - PLAN_
MODE_ PLAN_ QUALITY_ LINE - Shared Plan Mode instruction line for decision-complete planning output.
- PLAN_
MODE_ READ_ ONLY_ HEADER - Shared Plan Mode header used by both static and incremental prompt builders.
- PLAN_
MODE_ READ_ ONLY_ NOTICE_ LINE - Shared Plan Mode notice line describing strict read-only enforcement.
- PLAN_
MODE_ TASK_ TRACKER_ LINE - Shared Plan Mode task-tracking line clarifying availability and aliasing.
Functions§
- apply_
output_ style - Apply output style to a generated system instruction
- compose_
system_ instruction_ text - Compose the base system instruction plus compact tool/skill/environment addenda.
- default_
lightweight_ prompt - default_
system_ prompt - generate_
lightweight_ instruction - Generate a lightweight system instruction for simple operations
- generate_
minimal_ instruction - Generate a minimal system instruction (pi-inspired, <1K tokens)
- generate_
specialized_ instruction - Generate a specialized system instruction for advanced operations
- generate_
system_ instruction - Generate system instruction
- generate_
system_ instruction_ with_ config - Generate the stable base system instruction with configuration-aware sections.
- generate_
system_ instruction_ with_ guidelines - Generate the stable base system instruction without workspace configuration.
- lightweight_
instruction_ text - minimal_
instruction_ text - minimal_
system_ prompt - openai_
gpt55_ contract_ addendum - read_
agent_ guidelines - Read AGENTS.md file if present and extract agent guidelines
- specialized_
instruction_ text - specialized_
system_ prompt