Expand description
Hierarchical context map for token-aware codebase ingestion.
Manages a three-level view of the codebase (tiers from the shared
crate::evolve::ContextMode vocabulary):
- L1: Project tree (directory names, file names, sizes) —
ContextMode::Map, always loaded - L2: File skeletons (function/struct/trait signatures, no bodies) —
ContextMode::Lite, on demand - L3: Full file content —
ContextMode::Full, on demand, auto-downgradable
Each entry tracks its token cost so the agent can make budget-aware decisions about what to load, upgrade, or evict.
Re-exports§
pub use crate::evolve::skeleton::extract_rust_skeleton;pub use crate::evolve::skeleton::FileSkeleton;pub use crate::evolve::skeleton::SkeletonItem;
Structs§
- Context
Map - Hierarchical context manager that tracks what’s loaded and at what cost.
- Context
MapStats - Context
Recommendation - Result of
recommend_context()— a complete plan for context optimization. - Context
Suggestion - A suggestion to change a file’s context level.
- Level
Costs - Token costs for a file at each context level.
- Load
Estimate - Result of a pre-load budget check.
- Loading
Plan - Plan for which files to load at which level.
Enums§
- Context
Modality - Task-driven context loading strategy.