Module context

Module context 

Source
Expand description

Context management with progressive disclosure for optimal token usage.

Re-exports§

pub use crate::types::TokenUsage;
pub use builder::ContextBuilder;
pub use import_extractor::ImportExtractor;
pub use level::LeveledMemoryProvider;
pub use level::enterprise_base_path;
pub use level::user_base_path;
pub use memory_loader::DEFAULT_IMPORT_DEPTH;
pub use memory_loader::MAX_IMPORT_DEPTH;
pub use memory_loader::MemoryContent;
pub use memory_loader::MemoryLoader;
pub use memory_loader::MemoryLoaderConfig;
pub use orchestrator::PromptOrchestrator;
pub use provider::FileMemoryProvider;
pub use provider::InMemoryProvider;
pub use provider::MemoryProvider;
pub use routing::RoutingStrategy;
pub use rule_index::RuleIndex;
pub use static_context::McpToolMeta;
pub use static_context::StaticContext;
pub use crate::skills::SkillIndex;

Modules§

builder
Context Builder for Progressive Disclosure
import_extractor
CLI-compatible @import extraction using Markdown-aware parsing.
level
Memory provider for aggregating content from multiple resource levels.
memory_loader
CLAUDE.md and CLAUDE.local.md loader with CLI-compatible @import processing.
orchestrator
Context Orchestrator - Progressive Disclosure Engine
provider
Memory provider trait and implementations.
routing
Routing Strategy for Skill Discovery
rule_index
Rule Index for Progressive Disclosure
static_context
Static Context for Prompt Caching

Enums§

ContextError

Type Aliases§

ContextResult