Skip to main content

Module constants

Module constants 

Source
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