Skip to main content

vtcode_core/context/
mod.rs

1//! Context management for vibe coding support
2//!
3//! This module provides intelligent context gathering and entity resolution
4//! to support lazy/vague user requests. It enables "vibe coding" by inferring
5//! user intent from minimal input.
6//!
7//! ## Components
8//!
9//! - `entity_resolver`: Maps vague terms to workspace entities
10//! - `workspace_state`: Tracks file activity and value changes
11//! - `conversation_memory`: Maintains entity mentions across conversation
12
13pub mod conversation_memory;
14pub mod dynamic_init;
15pub mod entity_resolver;
16pub mod history_files;
17pub mod workspace_state;
18
19// Re-export key types for convenience
20pub use conversation_memory::{ConversationMemory, EntityMention, MentionHistory};
21pub use dynamic_init::{
22    DynamicContextDirs, ensure_mcp_dynamic_context, ensure_skills_dynamic_context, initialize_dynamic_context,
23};
24pub use entity_resolver::{EntityIndex, EntityMatch, EntityResolver, FileLocation};
25pub use history_files::{HistoryConfig, HistoryFileManager, HistoryMessage, HistoryWriteResult};
26pub use workspace_state::{FileActivity, ValueHistory, WorkspaceState};