pub struct DynamicContextConfig {
pub enabled: bool,
pub tool_output_threshold: usize,
pub sync_terminals: bool,
pub persist_history: bool,
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 via read_file/grep_file.
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
sync_mcp_tools: boolEnable syncing MCP tool descriptions to .vtcode/mcp/tools/
sync_skills: boolEnable generating skill index in .vtcode/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
Implementations§
Trait Implementations§
Source§impl Clone for DynamicContextConfig
impl Clone for DynamicContextConfig
Source§fn clone(&self) -> DynamicContextConfig
fn clone(&self) -> DynamicContextConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for DynamicContextConfig
impl JsonSchema for DynamicContextConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for DynamicContextConfig
impl RefUnwindSafe for DynamicContextConfig
impl Send for DynamicContextConfig
impl Sync for DynamicContextConfig
impl Unpin for DynamicContextConfig
impl UnwindSafe for DynamicContextConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more