1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! Prompt management system for AI coding agent
//!
//! This crate provides:
//! - Model-specific system prompts (Claude, GPT, Gemini)
//! - Embedded defaults with runtime file-based overrides
//! - Layered prompt composition
//! - External tool descriptions
//!
//! # Quick Start
//!
//! ```rust
//! use codive_prompts::{PromptStore, PromptComposer, ProviderFamily};
//!
//! // Create store with embedded defaults
//! let store = PromptStore::new();
//!
//! // Compose a prompt for a specific model
//! let prompt = PromptComposer::new(&store)
//! .with_base()
//! .with_provider_auto("claude-3-sonnet")
//! .with_current_environment()
//! .compose();
//! ```
//!
//! # File-Based Overrides
//!
//! Prompts can be overridden at runtime by placing files in a config directory:
//!
//! ```text
//! ~/.config/agent/prompts/
//! ├── base.txt # Override base prompt
//! ├── verification.txt # Override verification
//! ├── providers/
//! │ ├── anthropic.txt # Override Claude prompt
//! │ ├── openai.txt # Override GPT prompt
//! │ └── gemini.txt # Override Gemini prompt
//! └── tools/
//! ├── bash.txt # Override bash description
//! └── read_file.txt # Override read_file description
//! ```
//!
//! Load with overrides:
//!
//! ```rust,ignore
//! use codive_prompts::PromptStore;
//! use std::path::Path;
//!
//! let store = PromptStore::new()
//! .with_overrides_dir(Path::new("~/.config/agent/prompts"))
//! .expect("Failed to load overrides");
//! ```
pub use ;
pub use ;
pub use ProviderFamily;
// Re-export embedded prompts for direct access if needed
pub use EmbeddedPrompts;