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//! - `proactive_gatherer`: Automatically gathers relevant context
13
14pub mod conversation_memory;
15pub mod dynamic_init;
16pub mod entity_resolver;
17pub mod history_files;
18pub mod proactive_gatherer;
19pub mod workspace_state;
20
21// Re-export key types for convenience
22pub use conversation_memory::{ConversationMemory, EntityMention, MentionHistory};
23pub use dynamic_init::{
24    DynamicContextDirs, ensure_mcp_dynamic_context, ensure_skills_dynamic_context,
25    initialize_dynamic_context,
26};
27pub use entity_resolver::{EntityIndex, EntityMatch, EntityResolver, FileLocation};
28pub use history_files::{HistoryConfig, HistoryFileManager, HistoryMessage, HistoryWriteResult};
29pub use proactive_gatherer::{GatheredContext, ProactiveGatherer};
30pub use workspace_state::{FileActivity, ValueHistory, WorkspaceState};