Expand description
Prompt constants migrated from original prompt.rs
These constants define the static content for various prompt sections. They are used by the PromptOrchestrator to assemble the final system prompt.
Constants§
- MEMORY_
SUMMARY_ HEADER - MEMORY_
USAGE_ INSTRUCTIONS - MSG_
COMPRESSING_ CONTEXT - Progress message during context compression
- MSG_
COMPRESSION_ FAILED - Error message prefix when compression fails
- MSG_
ITERATION_ WARNING - Warning message when approaching iteration limit (for model)
- MSG_
ITERATION_ WARNING_ UI - UI-only warning when approaching iteration limit
- MSG_
MAX_ ITERATIONS_ REACHED - Error message when maximum iterations reached
- MSG_
OPERATION_ CANCELLED - Error message when operation is cancelled
- SECTION_
ACCUMULATED_ MEMORY - SECTION_
AVAILABLE_ SKILLS - SECTION_
AVAILABLE_ WORKFLOWS - SECTION_
PROJECT_ CONTEXT - SECTION_
TASK_ CONTEXT - SYSTEM_
PROMPT_ AMBIGUITY - SYSTEM_
PROMPT_ BEHAVIOR - SYSTEM_
PROMPT_ COMMUNICATION - SYSTEM_
PROMPT_ COMPLETION - SYSTEM_
PROMPT_ DEBUGGING_ GENERIC - SYSTEM_
PROMPT_ DEBUGGING_ WITH_ CODEGRAPH - SYSTEM_
PROMPT_ EDITING - SYSTEM_
PROMPT_ EXECUTION - SYSTEM_
PROMPT_ GIT_ SAFETY - SYSTEM_
PROMPT_ IDENTITY - SYSTEM_
PROMPT_ LANGUAGE - SYSTEM_
PROMPT_ LSP_ PRACTICE - LSP practice guide (injected when LSP servers are active)
- SYSTEM_
PROMPT_ MISSION - SYSTEM_
PROMPT_ OUTPUT - SYSTEM_
PROMPT_ PERMISSION - SYSTEM_
PROMPT_ QUALITY - SYSTEM_
PROMPT_ RISK_ MANAGEMENT - SYSTEM_
PROMPT_ SECURITY - SYSTEM_
PROMPT_ SKILLS - SYSTEM_
PROMPT_ STYLE - SYSTEM_
PROMPT_ TESTING - SYSTEM_
PROMPT_ TOOL_ DECISION_ GENERIC - SYSTEM_
PROMPT_ TOOL_ DECISION_ WITH_ CODEGRAPH - SYSTEM_
PROMPT_ TRIGGER_ LOGIC - SYSTEM_
PROMPT_ VERIFICATION - SYSTEM_
PROMPT_ WORKFLOW - SYSTEM_
PROMPT_ WORKFLOWS - SYSTEM_
PROMPT_ WORKFLOW_ CREATION
Functions§
- get_
lsp_ section - Generate LSP servers info section dynamically
- get_
memory_ sections - Get memory-related sections
- get_
static_ sections - Get all static prompt sections for the given profile