pub struct DynamicContextConfig {
pub enabled: bool,
pub tool_output_threshold: usize,
pub sync_terminals: bool,
pub persist_history: bool,
pub retained_user_messages: usize,
pub sync_mcp_tools: bool,
pub sync_skills: bool,
pub spool_max_age_secs: u64,
pub max_spooled_files: usize,
}Expand description
Configuration for dynamic context discovery
This implements Cursor-style dynamic context discovery patterns where
large outputs are written to files instead of being truncated, allowing
agents to retrieve them on demand through shell inspection or code_search.
Fields§
§enabled: boolEnable dynamic context discovery features
tool_output_threshold: usizeThreshold in bytes above which tool outputs are spooled to files
sync_terminals: boolEnable syncing terminal sessions to .vtcode/terminals/ files
persist_history: boolEnable persisting conversation history during summarization
retained_user_messages: usizeMaximum number of recent user messages to retain verbatim during local compaction
sync_mcp_tools: boolEnable syncing MCP tool descriptions to .vtcode/mcp/tools/
sync_skills: boolEnable generating skill index in .agents/skills/INDEX.md
spool_max_age_secs: u64Maximum age in seconds for spooled tool output files before cleanup
max_spooled_files: usizeMaximum number of spooled files to keep
Trait Implementations§
Source§impl Clone for DynamicContextConfig
impl Clone for DynamicContextConfig
Source§impl Debug for DynamicContextConfig
impl Debug for DynamicContextConfig
Source§impl Default for DynamicContextConfig
impl Default for DynamicContextConfig
Source§impl<'de> Deserialize<'de> for DynamicContextConfig
impl<'de> Deserialize<'de> for DynamicContextConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for DynamicContextConfig
impl JsonSchema for DynamicContextConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more