Skip to main content

vtcode_core/prompts/system/
mod.rs

1//! System instructions and prompt management.
2//!
3//! Prompt variants share one canonical base contract plus thin mode deltas and
4//! compact runtime addenda. Project-specific behavior comes from dynamically
5//! loaded instruction maps (`AGENTS.md`/`CLAUDE.md`), dynamic tool guidance,
6//! skill metadata, and runtime notices.
7
8mod cache;
9mod compose;
10mod constants;
11mod tokens;
12mod types;
13
14pub use compose::{
15    apply_coordinator_role_guidance, apply_output_style, compose_system_instruction_text,
16    compose_system_instruction_with_report, generate_system_instruction_with_config,
17    generate_system_instruction_with_config_and_report, generate_system_instruction_with_context_and_report,
18    measure_system_prompt_size,
19};
20pub use constants::*;
21pub use tokens::{
22    estimate_token_count, generate_lightweight_instruction, generate_minimal_instruction,
23    generate_specialized_instruction,
24};
25pub use types::{SectionKind, SystemPromptConfig, SystemPromptReport};
26
27pub use crate::prompts::static_prompts::{
28    agent_identity_label, default_lightweight_prompt, default_system_prompt, lightweight_instruction_text,
29    minimal_instruction_text, minimal_system_prompt, specialized_instruction_text, specialized_system_prompt,
30    static_profile_prompt,
31};
32
33#[cfg(test)]
34mod tests;