Skip to main content

Module context_map

Module context_map 

Source
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§

ContextMap
Hierarchical context manager that tracks what’s loaded and at what cost.
ContextMapStats
ContextRecommendation
Result of recommend_context() — a complete plan for context optimization.
ContextSuggestion
A suggestion to change a file’s context level.
LevelCosts
Token costs for a file at each context level.
LoadEstimate
Result of a pre-load budget check.
LoadingPlan
Plan for which files to load at which level.

Enums§

ContextModality
Task-driven context loading strategy.