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 via unified_file/unified_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
Implementations§
Trait Implementations§
Source§impl Clone for DynamicContextConfig
impl Clone for DynamicContextConfig
Source§fn clone(&self) -> DynamicContextConfig
fn clone(&self) -> DynamicContextConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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 moreAuto Trait Implementations§
impl Freeze for DynamicContextConfig
impl RefUnwindSafe for DynamicContextConfig
impl Send for DynamicContextConfig
impl Sync for DynamicContextConfig
impl Unpin for DynamicContextConfig
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more