Files
zesdex/crates/zesdex-backend/src/prompts.rs
T

56 lines
2.0 KiB
Rust
Raw Normal View History

//! Compile-time embedded text resources: the system prompt, tool descriptions,
//! and the in-app help screen shown on Ctrl+H.
/// System prompt that defines the agent's core identity and behavior.
pub const SYSTEM_PROMPT: &str = include_str!("../src-misc/system-prompt.txt");
/// Tool descriptions injected into the system message for function-calling.
pub const SYSTEM_TOOLS: &str = include_str!("../src-misc/system-tools.txt");
/// Prompt template used by the inline quick-review subagent.
pub const AUTO_REVIEWER_PROMPT: &str = include_str!("../src-misc/auto-reviewer-prompt.txt");
/// Prompt template used by the test-generation subagent (fired asynchronously
/// at the end of each turn).
pub const TEST_GENERATOR_PROMPT: &str = include_str!("../src-misc/test-generator-prompt.txt");
/// Prompt template used by the architecture-review subagent.
pub const ARCH_REVIEWER_PROMPT: &str = include_str!("../src-misc/arch-reviewer-prompt.txt");
/// Prompt template used by the security-review subagent.
pub const SECURITY_REVIEWER_PROMPT: &str = include_str!("../src-misc/security-reviewer-prompt.txt");
/// In-app help screen text shown on Ctrl+H (navigation, input, commands).
pub const HELP_TEXT: &str = "
ZESDEX - Help
=============
Navigation:
Ctrl+Q Quit
Ctrl+H Help (this screen)
Ctrl+P Settings
Ctrl+A Toggle yolo arm
Ctrl+B Bash panel
Ctrl+S Session hub
Ctrl+T Task list
Ctrl+W Workflow view
Ctrl+K Key input mode
Esc Cancel / back
Tab Autocomplete
Up/Down History navigation
Input:
/help Show help
/clear Clear screen
/model Select AI model provider
/todo Open task list
/usage Open usage details
/compact Compact conversation history
/exit Exit application
Commands:
Any text is sent to the AI assistant as a prompt.
File paths use workspace-relative notation.
Use [0]/path for multi-workspace setups.
";