Skip to main content

Module predictive_preload

Module predictive_preload 

Source
Expand description

Predict file reads before the agent asks for them.

The predictor deliberately stays small and deterministic: task triage plus file topology provide useful first-read predictions without a remote model.

Structs§

PredictivePreloader

Functions§

accuracy
Returns the proportion of emitted predictions that were later read.
on_file_read
Record an externally observed file read in the shared predictor.
predict_next
Predict the next reads for callers that do not need access to the model.
record_read_and_predict
Record a completed read and produce paths safe to warm in the background.
warm_paths
Primes the OS file cache. The bounded read deliberately avoids allocating a second copy of a large source file in the MCP process.