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§
- PLANNING_
WORKFLOW_ EXIT_ INSTRUCTION_ LINE - Shared Planning workflow instruction line for transitioning to implementation.
- PLANNING_
WORKFLOW_ IMPLEMENT_ REMINDER - Shared reminder appended when presenting plans while still in Planning workflow.
- PLANNING_
WORKFLOW_ INTERVIEW_ POLICY_ LINE - Shared Planning workflow policy line requiring context-aware interview closure before final plans.
- PLANNING_
WORKFLOW_ NO_ AUTO_ EXIT_ LINE - Shared Planning workflow guard line requiring explicit transition from planning to execution.
- PLANNING_
WORKFLOW_ NO_ REQUEST_ USER_ INPUT_ POLICY_ LINE - Shared Planning workflow policy line for runtimes where
request_user_inputis unavailable. - PLANNING_
WORKFLOW_ PLAN_ QUALITY_ LINE - Shared Planning workflow instruction line for decision-complete planning output.
- PLANNING_
WORKFLOW_ READ_ ONLY_ HEADER - Shared Planning workflow header used by both static and incremental prompt builders.
- PLANNING_
WORKFLOW_ READ_ ONLY_ NOTICE_ LINE - Shared Planning workflow notice line describing strict read-only enforcement.
- PLANNING_
WORKFLOW_ TASK_ TRACKER_ LINE - Shared Planning workflow 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 - fable_
5_ contract_ addendum - 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